Bug 20116: Clarify behaviour of PD->lock.
[platform/upstream/glibc.git] / ChangeLog
1 2017-05-03  Carlos O'Donell  <carlos@redhat.com>
2
3         [BZ #20116]
4         * nptl/pthread_create.c: Expand comments to describe
5         semaphore-like and mutex-like uses of PD->lock.
6
7 2017-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8
9         * sysdeps/unix/sysv/linux/epoll_wait.c: New file.
10         * sysdeps/unix/sysv/linux/generic/epoll_wait.c: Remove file.
11         * sysdeps/unix/sysv/linux/syscalls.list: Remove epoll_wait from
12         auto-generation list.
13         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
14         epoll_wait.
15         * sysdeps/unix/sysv/linux/generic/Makefile (sysdep_routines):
16         Remove epoll_wait.
17
18         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Add
19         osf_select.
20         * sysdeps/unix/sysv/linux/alpha/select.c: New file.
21         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove select and
22         osf_select from auto-generation list.
23         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
24         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
25         * sysdeps/unix/sysv/linux/generic/select.c: Remove file.
26         * sysdeps/unix/sysv/linux/select.c: New file.
27
28         * sysdeps/unix/sysv/linux/generic/poll.c: Remove file.
29         * sysdeps/unix/sysv/linux/poll.c: New file.
30         * sysdeps/unix/sysv/linux/syscalls.list: Remove poll from
31         auto-generation list.
32
33 2017-05-03  Joseph Myers  <joseph@codesourcery.com>
34
35         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDRDM):
36         New macro.
37
38 2017-05-02  Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
39
40         [BZ #21179]
41         * sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
42         R_SPARC_REGISTER relocations.
43
44 2017-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
45
46         * include/unistd.h (__pread): Add libc_hidden_proto.
47         (__pread64): Likewise.
48         (__pwrite): Likewise.
49         * sysdeps/unix/sysv/linux/microblaze/localplt.data [libc.so]
50         (__pread64): Remove.
51         * sysdeps/unix/sysv/linux/pread.c (__pread64): Add libc_hidden_weak.
52         * sysdeps/unix/sysv/linux/pread64.c (__pread64): Likewise.
53         * sysdeps/unix/sysv/linux/pwrite.c (__pwrite): Likewise.
54
55 2017-05-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56
57         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58
59 2017-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
60
61         * nptl/tst-cancel4-common.c: Use libsupport.
62         * nptl/tst-cancel4-common.h: Likewise.
63         * nptl/tst-cancel4.c (tf_read): Likewise.
64         (tf_readv): Likewise.
65         (tf_write): Likewise.
66         (tf_writev): Likewise.
67         (tf_sleep): Likewise.
68         (tf_usleep): Likewise.
69         (tf_nanosleep): Likewise.
70         (tf_select): Likewise.
71         (tf_pselect): Likewise.
72         (tf_poll): Likewise.
73         (tf_ppoll): Likewise.
74         (tf_wait): Likewise.
75         (tf_waitpid): Likewise.
76         (tf_waitid): Likewise.
77         (tf_sigpause): Likewise.
78         (tf_sigsuspend): Likewise.
79         (tf_sigwait): Likewise.
80         (tf_sigwaitinfo): Likewise.
81         (tf_sigtimedwait): Likewise.
82         (tf_pause): Likewise.
83         (tf_accept): Likewise.
84         (tf_send): Likewise.
85         (tf_recv): Likewise.
86         (tf_recvfrom): Likewise.
87         (tf_recvmsg): Likewise.
88         (tf_open): Likewise.
89         (tf_close): Likewise.
90         (tf_pread): Likewise.
91         (tf_pwrite): Likewise.
92         (tf_preadv): Likewise.
93         (tf_pwritev): Likewise.
94         (tf_fsync): Likewise.
95         (tf_fdatasync): Likewise.
96         (tf_msync): Likewise.
97         (tf_sendto): Likewise.
98         (tf_sendmsg): Likewise.
99         (tf_creat): Likewise.
100         (tf_connect): Likewise.
101         (tf_tcdrain): Likewise.
102         (tf_msgrcv): Likewise.
103         (tf_msgsnd): Likewise.
104         * nptl/tst-cancel4_1.c (tf_sendmmsg): Likewise.
105         * nptl/tst-cancel4_2.c (tf_recvmmsg): Likewise.
106
107         * misc/tst-preadvwritev-common.c (do_prepare): Use libsupport
108         expected arguments.
109         (do_test): Adapt to use libsupport.
110
111 2017-05-01  Joseph Myers  <joseph@codesourcery.com>
112
113         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_CONNECT): New macro.
114
115         * sysdeps/unix/sysv/linux/bits/socket.h (PF_SMC): New macro.
116         (PF_MAX): Set to 44.
117         (AF_SMC): New macro.
118
119         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
120         kernel version to 4.11.
121
122 2017-04-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
123
124         [BZ #21280]
125         * sysdeps/powerpc/power7/fpu/s_logbl.c (__logbl): Ignore the
126         signal of subnormals and adjust the exponent of power of 2 down
127         when low part has opposite sign.
128
129 2017-04-28  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
130
131         * sysdeps/powerpc/powerpc64le/Implies: New file.
132         * sysdeps/powerpc/powerpc64le/fpu/Implies: New file.
133         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: New file.
134         * sysdeps/powerpc/powerpc64le/multiarch/Implies: New file.
135         * sysdeps/powerpc/powerpc64le/power7/Implies: New file.
136         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: New file.
137         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: New file.
138         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: New file.
139         * sysdeps/powerpc/powerpc64le/power8/Implies: New file.
140         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: New file.
141         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: New file.
142         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: New file.
143         * sysdeps/powerpc/powerpc64le/power9/Implies: New file.
144         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: New file.
145         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: New file.
146         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: New file.
147         * sysdeps/powerpc/preconfigure: New file.
148         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: New file.
149         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: New file.
150
151 2017-04-28  Joseph Myers  <joseph@codesourcery.com>
152
153         * conform/data/semaphore.h-data [XOPEN2K] (time.h): Allow header
154         inclusion.
155         * conform/Makefile (test-xfail-XOPEN2K/semaphore.h/conform):
156         Remove.
157
158 2017-04-27  Joseph Myers  <joseph@codesourcery.com>
159
160         * conform/GlibcConform.pm (XPG4): Rename standard to XPG42.
161         (XPG3): Rename standard to XPG4.
162         * conform/Makefile: Likewise.
163         * conform/list-header-symbols.pl: Likewise.
164         * conform/data/aio.h-data: Likewise.
165         * conform/data/arpa/inet.h-data: Likewise.
166         * conform/data/complex.h-data: Likewise.
167         * conform/data/ctype.h-data: Likewise.
168         * conform/data/dlfcn.h-data: Likewise.
169         * conform/data/fcntl.h-data: Likewise.
170         * conform/data/fenv.h-data: Likewise.
171         * conform/data/float.h-data: Likewise.
172         * conform/data/fmtmsg.h-data: Likewise.
173         * conform/data/ftw.h-data: Likewise.
174         * conform/data/grp.h-data: Likewise.
175         * conform/data/inttypes.h-data: Likewise.
176         * conform/data/iso646.h-data: Likewise.
177         * conform/data/langinfo.h-data: Likewise.
178         * conform/data/libgen.h-data: Likewise.
179         * conform/data/limits.h-data: Likewise.
180         * conform/data/locale.h-data: Likewise.
181         * conform/data/math.h-data: Likewise.
182         * conform/data/mqueue.h-data: Likewise.
183         * conform/data/ndbm.h-data: Likewise.
184         * conform/data/net/if.h-data: Likewise.
185         * conform/data/netdb.h-data: Likewise.
186         * conform/data/netinet/in.h-data: Likewise.
187         * conform/data/poll.h-data: Likewise.
188         * conform/data/pthread.h-data: Likewise.
189         * conform/data/pwd.h-data: Likewise.
190         * conform/data/sched.h-data: Likewise.
191         * conform/data/search.h-data: Likewise.
192         * conform/data/semaphore.h-data: Likewise.
193         * conform/data/signal.h-data: Likewise.
194         * conform/data/spawn.h-data: Likewise.
195         * conform/data/stdbool.h-data: Likewise.
196         * conform/data/stdint.h-data: Likewise.
197         * conform/data/stdio.h-data: Likewise.
198         * conform/data/stdlib.h-data: Likewise.
199         * conform/data/string.h-data: Likewise.
200         * conform/data/strings.h-data: Likewise.
201         * conform/data/stropts.h-data: Likewise.
202         * conform/data/sys/mman.h-data: Likewise.
203         * conform/data/sys/resource.h-data: Likewise.
204         * conform/data/sys/select.h-data: Likewise.
205         * conform/data/sys/socket.h-data: Likewise.
206         * conform/data/sys/stat.h-data: Likewise.
207         * conform/data/sys/statvfs.h-data: Likewise.
208         * conform/data/sys/time.h-data: Likewise.
209         * conform/data/sys/timeb.h-data: Likewise.
210         * conform/data/sys/types.h-data: Likewise.
211         * conform/data/sys/uio.h-data: Likewise.
212         * conform/data/sys/un.h-data: Likewise.
213         * conform/data/sys/wait.h-data: Likewise.
214         * conform/data/syslog.h-data: Likewise.
215         * conform/data/termios.h-data: Likewise.
216         * conform/data/tgmath.h-data: Likewise.
217         * conform/data/time.h-data: Likewise.
218         * conform/data/ucontext.h-data: Likewise.
219         * conform/data/unistd.h-data: Likewise.
220         * conform/data/utmpx.h-data: Likewise.
221         * conform/data/varargs.h-data: Likewise.
222         * conform/data/wchar.h-data: Likewise.
223         * conform/data/wctype.h-data: Likewise.
224
225 2017-04-26  Joseph Myers  <joseph@codesourcery.com>
226
227         * scripts/build-many-glibcs.py (Context.checkout): Default gcc
228         version to 7 branch.
229
230 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
231
232         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Add
233         earlyclobber to output operand of sqrt insn.
234         (__ieee754_sqrtf): Ditto.
235
236 2017-04-25  Joseph Myers  <joseph@codesourcery.com>
237
238         [BZ #21426]
239         * misc/bits/types/struct_iovec.h: New file.
240         * misc/Makefile (headers): Add bits/types/struct_iovec.h.
241         * include/bits/types/struct_iovec.h: New file.
242         * bits/uio.h (struct iovec): Replace by inclusion of
243         <bits/types/struct_iovec.h>.
244         * sysdeps/unix/sysv/linux/bits/uio.h (struct iovec): Likewise.
245         * socket/sys/socket.h: Include <bits/types/struct_iovec.h> instead
246         of <sys/uio.h>.
247         * nptl/tst-cancel4.c: Include <sys/uio.h>
248         * posix/test-errno.c: Likewise.
249         * support/resolv_test.c: Likewise.
250         * conform/Makefile (test-xfail-POSIX2008/arpa/inet.h/conform):
251         Remove.
252         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
253         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
254         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
255
256         * conform/data/sys/socket.h-data (*_t): Allow.
257
258 2017-04-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
259
260         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Remove ununsed
261         assignment.
262
263 2017-04-24  Daurnimator  <quae@daurnimator.com>
264             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
265
266         [BZ #21340]
267         * posix/Makefile (tests): Add tst-posix_spawn-setsid to list of tests.
268         * posix/spawn.h: define POSIX_SPAWN_SETSID flag.
269         * posix/spawnattr_setflags.c (ALL_FLAGS): Add POSIX_SPAWN_SETSID to
270         valid flags.
271         * posix/tst-posix_spawn-setsid.c: Add test for POSIX_SPAWN_SETSID.
272         * sysdeps/mach/hurd/spawni.c (__spawni): Implementation of
273         POSIX_SPAWN_SETSID.
274         * sysdeps/posix/spawni.c (__spawni): Likewise.
275         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
276         * NEWS: Add note about POSIX_SPAWN_SETSID support.
277
278 2017-04-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
279
280         * sysdeps/generic/math_private.h: Move the declaration of many
281         functions to sysdeps/generic/math_private_calls.h.
282         * sysdeps/generic/math_private_calls.h: New file with the
283         declarations of the functions removed from math_private.h
284         macroized by floating-point type.
285
286 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
287
288         * sysdeps/s390/multiarch/utf8-utf32-z9.c: New File.
289         * sysdeps/s390/utf8-utf32-z9.c: Move ifunc resolvers to multiarch
290         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
291         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
292         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
293         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
294
295 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
296
297         * sysdeps/s390/multiarch/utf16-utf32-z9.c: New File.
298         * sysdeps/s390/utf16-utf32-z9.c: Move ifunc resolvers to multiarch
299         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|VX].
300         (HAVE_FROM_C, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX, FROM_LOOP_DEFAULT,
301         FROM_LOOP_C, FROM_LOOP_VX, TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX):
302         New Define.
303
304 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
305
306         * sysdeps/s390/multiarch/utf8-utf16-z9.c: New File.
307         * sysdeps/s390/utf8-utf16-z9.c: Move ifunc resolvers to multiarch
308         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
309         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
310         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
311         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
312
313 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
314
315         * sysdeps/s390/multiarch/ifunc-resolve.h
316         (s390_libc_ifunc_expr_init, s390_libc_ifunc_expr): New Define.
317         * sysdeps/s390/multiarch/8bit-generic.c
318         (__to_generic, __from_generic): Use s390_libc_ifunc_expr to
319         define ifunc resolvers.
320
321 2017-04-21  Florian Weimer  <fweimer@redhat.com>
322
323         [BZ #20424]
324         * manual/memory.texi (Replacing malloc): New section.
325         (Allocating Storage For Program Data): Reference it.
326         (The GNU Allocator): Likewise.
327
328 2017-04-20  Joseph Myers  <joseph@codesourcery.com>
329
330         * stdlib/Versions (__strtod_internal): List explicitly, not as
331         wildcard.
332         (__strtof_internal): Likewise.
333         (__strtold_internal): Likewise.
334         (__strtol_internal): Likewise.
335         (__strtoll_internal): Likewise.
336         (__strtoul_internal): Likewise.
337         (__strtoull_internal): Likewise.
338         (__strtoq_internal): Likewise.
339         (__strtouq_internal): Likewise.
340         * wcsmbs/Versions (__wcstod_internal): Likewise.
341         (__wcstof_internal): Likewise.
342         (__wcstold_internal): Likewise.
343         (__wcstol_internal): Likewise.
344         (__wcstoll_internal): Likewise.
345         (__wcstoul_internal): Likewise.
346         (__wcstoull_internal): Likewise.
347
348 2017-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
349
350         * io/sys/stat.h: Use __USE_XOPEN2K8 insteaf of __USE_ATFILE for
351         struct timespec definition.
352
353 2017-04-19  Florian Weimer  <fweimer@redhat.com>
354
355         * resolv/nss_dns/dns-host.c (getanswer_r): Fix parentheses.
356
357 2017-04-19  Florian Weimer  <fweimer@redhat.com>
358
359         * inet/rcmd.c (rresvport_af): Fix typo in comment.
360         * inet/rexec.c (rexec_af): Likewise.
361
362 2017-04-19  Zack Weinberg  <zackw@panix.com>
363
364         * posix/tst-mmap-offset.c: Include stdint.h.
365         * resolv/tst-ns_name_compress.c: Include string.h.
366         * resolv/tst-resolv-edns.c: Include resolv.h.
367
368 2017-04-19  Florian Weimer  <fweimer@redhat.com>
369
370         * resolv/gai_suspend.c (gai_suspend): Replace __builtin_expect
371         with __glibc_likely.
372         * resolv/nss_dns/dns-host.c (getanswer_r, gaih_getanswer_slice):
373         Replace __builtin_expect with __glibc_unlikely.
374         * resolv/res_init.c (__res_vinit): Likewise.
375         * resolv/res_query.c (__libc_res_nquery): Likewise.
376         * resolv/res_send.c (__libc_res_nsend): Likewise.
377
378 2017-04-19  Florian Weimer  <fweimer@redhat.com>
379
380         [BZ #15722]
381         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Create socket
382         with SOCK_CLOEXEC.
383         * resolv/res_send.c (send_vc, reopen): Likewise.
384         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
385         * sysdeps/unix/sysv/linux/check_native.c (__check_native):
386         Likewise.
387         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_open): Likewise.
388         * inet/rexec.c (rexec_af): Add comment.
389         * inet/rcmd.c (rresvport_af): Likewise.
390
391 2017-04-19  Florian Weimer  <fweimer@redhat.com>
392
393         * nscd/connections.c (have_accept4): Removed definition.
394         (nscd_run_worker, main_loop_poll, main_loop_epolll): Assume that
395         accept4 works.
396         * manual/install.texi (Linux): Require at least kernel 3.2.18 for
397         ia64 because that was the first version with accept4 support.
398         * support/Makefile (libsupport-routines): Add xaccept4.
399         * support/xsocket.h (xaccept4): Declare.
400         * support/xaccept4.c: New file.
401         * socket/tst-accept4.c: New file.
402         * socket/Makefile (tests): Add tst-accept4.
403         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Remove
404         definition.
405         * sysdeps/nacl/kernel-features.h (__ASSUME_ACCEPT4): Remove
406         comment.
407         * sysdeps/unix/sysv/linux/accept4.c: Assume that an accept4
408         implementation is available.
409         (accept4): Use the system call if available, otherwise use the
410         socket call.
411         * sysdeps/unix/sysv/linux/ia64/configure.ac (arch_minimum_kernel):
412         Set to 3.2.18.
413         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
414         (__ASSUME_ACCEPT4_SYSCALL, __ASSUME_ACCEPT4): Do not undefine.
415         accept4 is unconditionally available in later 3.2 stable kernels.
416         (__ASSUME_ACCEPT4_SYSCALL): Define.
417         * sysdeps/unix/sysv/linux/kernel-features.h
418         (__ASSUME_ACCEPT4_SOCKETCALL, __ASSUME_ACCEPT4): Remove
419         definitions.
420         * sysdeps/unix/sysv/linux/i386/kernel-features.h
421         (__ASSUME_ACCEPT4_SYSCALL): Define for Linux 4.3 or later.
422
423 2017-04-18  Joseph Myers  <joseph@codesourcery.com>
424
425         * conform/Makefile (tests-special): Do not make addition of
426         $(conformtest-header-tests) conditional on [$(cross-compiling) = no].
427         (generated): Do not make addition of $(conformtest-header-base)
428         conditional on [$(cross-compiling) = no].
429
430         [BZ #21267]
431         * sysdeps/unix/sysv/linux/bits/socket.h (IOCSIZE_MASK): Undefine
432         if defined by <asm/socket.h> and not previously defined.
433         (IOCSIZE_SHIFT): Likewise.
434         (IOC_IN): Likewise.
435         (IOC_INOUT): Likewise.
436         (IOC_OUT): Likewise.
437
438 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
439
440         [BZ #21396]
441         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
442         Prefer_No_AVX512 if AVX512ER isn't available.
443         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_No_AVX512): New.
444         (index_arch_Prefer_No_AVX512): Likewise.
445         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Don't use
446         AVX512 version if Prefer_No_AVX512 is set.
447         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk):
448         Likewise.
449         * sysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Likewise.
450         * sysdeps/x86_64/multiarch/memmove_chk.S (__memmove_chk):
451         Likewise.
452         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
453         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk):
454         Likewise.
455         * sysdeps/x86_64/multiarch/memset.S (memset): Likewise.
456         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk):
457         Likewise.
458
459 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
460
461         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
462         Prefer_No_VZEROUPPER if AVX512ER is available.
463         * sysdeps/x86/cpu-features.h
464         (bit_cpu_AVX512PF): New.
465         (bit_cpu_AVX512ER): Likewise.
466         (bit_cpu_AVX512CD): Likewise.
467         (bit_cpu_AVX512BW): Likewise.
468         (bit_cpu_AVX512VL): Likewise.
469         (index_cpu_AVX512PF): Likewise.
470         (index_cpu_AVX512ER): Likewise.
471         (index_cpu_AVX512CD): Likewise.
472         (index_cpu_AVX512BW): Likewise.
473         (index_cpu_AVX512VL): Likewise.
474         (reg_AVX512PF): Likewise.
475         (reg_AVX512ER): Likewise.
476         (reg_AVX512CD): Likewise.
477         (reg_AVX512BW): Likewise.
478         (reg_AVX512VL): Likewise.
479
480 2017-04-18  Florian Weimer  <fweimer@redhat.com>
481
482         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Assume that
483         O_CLOEXEC is defined.
484         * include/fcntl.h (__have_o_cloexec): Remove declaration.
485         * io/Makefile (aux): Remove.
486         * io/have_o_cloexec.c: Remove file.
487         * libio/fileops.c (_IO_new_file_fopen): Assume that O_CLOEXEC is
488         defined and works.
489         * libio/iopopen.c (_IO_new_proc_open): Assume that O_CLOEXEC is
490         defined.
491         * login/utmp_file.c (O_flags): Remove definition.
492         (setutent_file): Use O_CLOEXEC instead of O_flags.  Assume that
493         O_CLOEXEC works.
494         (pututline_file): Likewise.
495         * malloc/mtrace.c: Assume that O_CLOEXEC works.
496         * nis/nss_compat/compat-grp.c (__compat_have_cloexec): Remove
497         definition.
498         (internal_setgrent): Assume that O_CLOEXEC works.
499         * nis/nss_compat/compat-initgroups.c (__compat_have_cloexec):
500         Remove definition.
501         (internal_setgrent): Assume that O_CLOEXEC works.
502         * nis/nss_compat/compat-pwd.c (__compat_have_cloexec): Remove
503         definition.
504         (internal_setpwent): Assume that O_CLOEXEC works.
505         * nis/nss_compat/compat-spwd.c (__compat_have_cloexec): Remove
506         definition.
507         (internal_setspent): Assume that O_CLOEXEC works.
508         * nscd/connections.c (EXTRA_O_FLAGS): Remove definition.
509         (nscd_init): Use O_CLOEXEC instead of EXTRA_O_FLAGS.  Assume that
510         O_CLOEXEC is defined and works.
511         * nss/Makefile (libnss_files-routines): Remove
512         files-have_o_cloexec.
513         * nss/nss_db/db-open.c (internal_setent): Assume that O_CLOEXEC is
514         defined.
515         * nss/nss_files/files-XXX.c (internal_setent): Assume that
516         O_CLOEXEC is defined and works.
517         * nss/nss_files/files-alias.c (internal_setent): Likewise.
518         * nss/nss_files/files-have_o_cloexec.c: Remove.
519         * posix/wordexp.c (exec_comm_child): Assume that O_CLOEXEC is
520         defined.
521         * shadow/lckpwdf.c (__lckpwdf): Assume that O_CLOEXEC is defined
522         and works.
523         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_O_CLOEXEC): Remove
524         definition.
525         * sysdeps/nacl/kernel-features.h (__ASSUME_O_CLOEXEC): Likewise.
526         * sysdeps/posix/getcwd.c (__getcwd): Assume that O_CLOEXEC works.
527         * sysdeps/posix/opendir.c (opendir_oflags): Turn into enum constant.
528         (__opendirat, __opendir): Adjust opendir_oflags call.
529         (check_have_o_cloexec): Remove.
530         (__alloc_dir): Assume that O_CLOEXEC is defined and works.
531         * sysdeps/posix/shm_open.c (shm_open): Assume that O_CLOEXEC is
532         defined.
533         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_O_CLOEXEC):
534         Remove definition.
535
536 2017-04-18  Florian Weimer  <fweimer@redhat.com>
537
538         * include/unistd.h (__have_dup3): Remove declaration.
539         * libio/freopen.c (freopen): Assume that O_CLOEXEC is defined and
540         dup3 is available.
541         * libio/freopen64.c (freopen64): Likewise.
542         * socket/Makefile (aux): Remove have_sock_cloexec.
543         * socket/have_sock_cloexec.c: Remove file.
544         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Remove
545         definition.
546         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_DUP3):
547         Likewise.
548         * sysdeps/nacl/kernel-features.h: Update comment.
549
550 2017-04-18  Florian Weimer  <fweimer@redhat.com>
551
552         * include/unistd.h (__have_pipe2): Remove declaration.
553         * socket/have_sock_cloexec.c (__have_pipe2): Remove definition.
554         * libio/iopopen.c (_IO_new_proc_open): Assume that pipe2 is
555         available.
556         * posix/wordexp.c (exec_comm_child, exec_comm): Likewise.
557         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PIPE2):
558         Remove definition.
559
560 2017-04-18  Florian Weimer  <fweimer@redhat.com>
561
562         * malloc/malloc.c (cfree): Turn into compat symbol.
563         (__cfree): Remove alias.
564         * stdlib/stdlib.h (cfree): Remove declaration.
565         * malloc/malloc.h (cfree): Likewise.
566         * manual/memory.texi (Freeing after Malloc): Remove cfree.
567         * malloc/Versions (GLIBC_2.26): Add.
568
569 2017-04-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
570
571         * sysdeps/powerpc/powerpc64/multiarch/Makefile
572         (sysdep_routines): Add strrchr-power8.
573         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
574         (strrchr): Add __strrchr_power8 to list of strrchr functions.
575         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: New file.
576         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c
577         (strrchr): Add __strrchr_power8 to ifunc list.
578         * sysdeps/powerpc/powerpc64/power8/strrchr.S: New file.
579
580 2017-04-17  Rabin Vincent  <rabinv@axis.com>
581
582         [BZ #21357]
583         * sysdeps/generic/unwind-dw2-fde.c (__deregister_frame_info_bases):
584         Call free() outside of mutex.
585
586 2017-04-13  Florian Weimer  <fweimer@redhat.com>
587
588         * csu/check_fds.c (__libc_check_standard_fds): Assume O_NOFOLLOW
589         is defined.
590         * elf/rtld.c (process_envvars): Likewise.
591         * sysdeps/posix/shm_open.c (shm_open): Likewise.
592         * elf/dl-profile.c (EXTRA_FLAGS): Remove definition.  Use
593         O_NOFOLLOW directly.
594         * gmon/gmon.c (O_NOFOLLOW): Remove definition.
595
596 2017-04-13  Florian Weimer  <fweimer@redhat.com>
597
598         [BZ #21369]
599         Remove EDNS fallback.
600         * resolv/res_query.c (__libc_res_nquery): Remove RES_F_EDNS0ERR
601         handling.
602         * resolv/res_send.c (send_dg): Likewise.
603         * resolv/tst-resolv-edns.c (response): Handle "formerr." and
604         "tcp." prefixes.
605         (do_test): Send a "formerr."-prefixed query in an attempt to
606         trigger EDNS fallback.
607
608 2017-04-13  Florian Weimer  <fweimer@redhat.com>
609
610         [BZ #21361]
611         Limit EDNS buffer size to 1200 bytes.
612         * include/resolv.h (__res_nopt): Remove declaration.
613         * resolv/Makefile (tests): tst-resolv-edns.
614         (tst-resolv-edns): Link with -lresolv, -lpthread.
615         * resolv/res_mkquery.c (__res_ntop): Limit EDNS buffer size to the
616         interval [512, 1200].
617         * resolv/res_query.c (__libc_res_nquery): Use 1200 buffer size if
618         we can resize the buffer.
619         * resolv/resolv-internal.h (RESOLV_EDNS_BUFFER_SIZE): Define.
620         (__res_nopt): Declare.
621         * resolv/tst-resolv-edns.c: New file.
622         * resolv/resolv_test.h (struct resolv_edns_info): Define.
623         (struct resolv_response_context): Add edns member.
624         * resolv/resolv_test.c (struct query_info): Add edns member.
625         (parse_query): Extract EDNS information from the query.
626         (server_thread_udp_process_one): Propagate EDNS data.
627         (server_thread_tcp_client): Likewise.
628
629 2017-04-13  Florian Weimer  <fweimer@redhat.com>
630
631         [BZ #21359]
632         * resolv/ns_name.c (ns_name_pack): Do not require an additional
633         byte in the destination buffer.  Avoid out-of-bounds pointer
634         arithmetic.
635         * resolv/Makefile (tests): Add tst-ns_name_compress.
636         (tst-ns_name_compress): Link with -lresolv.
637         * resolv/tst-ns_name_compress.c: New file.
638         * resolv/tst-resolv-basic.c (LONG_NAME): Define.
639         (response): Recognize LONG_NAME.
640         (do_test): Add LONG_NAME tests.
641         * resolv/tst-ns_name.c (run_test_case): Fix expected data check
642         for ns_name_unpack.  Add tests for ns_name_pton and
643         ns_name_compress.
644
645 2017-04-13  Florian Weimer  <fweimer@redhat.com>
646
647         * resolv/resolv.h (RES_EXHAUSTIVE, p_section, res_npquery)
648         (res_nisourserver): Remove definition.
649         (p_section, res_npquery, res_nisourserver): Remove declaration.
650         (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR): Move ...
651         * resolv/resolv-internal.h (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR):
652         ... here.
653         * resolv/res_send.c: Include <resolv/resolv-internal.h> instead of
654         <resolv.h>.
655         * resolv/res_query.c: Likewise.
656         * resolv/res_debug.c (p_section): Define as static.
657
658 2017-04-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
659
660         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines): Add
661         strncat-power8.
662         * sysdeps/powerpc/powerpc64/multiarch/strncat.c (strncat): Add
663         __strncat_power8 to ifunc list.
664         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
665         (strncat): Add __strncat_power8 to list of strncat functions.
666         * sysdeps/powerpc/powerpc64/multiarch/strncat-power8.c: New file.
667
668 2017-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
669
670         [BZ #21270]
671         * posix/tst-mmap-offset.c (do_prepare): New function.
672         (do_test): Rename to do_test_bz18877 and use FAIL_RET.
673         (do_test_bz21270): New function.
674         * sysdeps/unix/sysv/linux/aarch64/mmap.c: Remove file.
675         * sysdeps/unix/sysv/linux/arm/mmap.c: Remove file.
676         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c: Likewise.
677         * sysdeps/unix/sysv/linux/hppa/mmap.c: Likewise.
678         * sysdeps/unix/sysv/linux/i386/mmap.c: Likewise.
679         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
680         * sysdeps/unix/sysv/linux/m68k/mmap64.c: Likewise.
681         * sysdeps/unix/sysv/linux/microblaze/mmap.S: Likewise.
682         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: Likewise.
683         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: Likewise.
684         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: Likewise.
685         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
686         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
687         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
688         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: Likewise.
689         * sysdeps/unix/sysv/linux/wordsize-64/mmap64.c: Likewise.
690         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
691         * sysdeps/unix/sysv/linux/mmap_internal.h: New file.
692         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h: Likewise.
693         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap_internal.h: Likewise.
694         * sysdeps/unix/sysv/linux/s390/mmap_internal.h: Likewise.
695         * sysdeps/unix/sysv/linux/x86_64/64/mmap_internal.h: Likewise.
696         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Remove mmap
697         from auto-generation list.
698         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list: Likewise.
699         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
700         * sysdeps/unix/sysv/linux/mmap.c: New file.
701         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Add check for invalid
702         offsets and support for mmap2 syscall.
703
704         * posix/globtest.sh: Add cleanup routine on trap 0.
705
706 2017-04-11  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
707
708         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Define the
709         implementation-specific function name and remove unneeded
710         macros definition.
711         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
712         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
713         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Set a default function
714         name if not defined and pass as parameter to macros accordingly.
715         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
716         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
717
718         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Define the
719         implementation-specific function name and remove unneeded
720         macros definition.
721         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
722         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
723         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
724         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
725         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
726         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
727         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Set a default function
728         name if not defined and pass as parameter to macros accordingly.
729         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
730         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
731         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
732         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
733         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
734         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.
735
736         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Define the
737         implementation-specific function name and remove unneeded macros
738         definition.
739         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
740         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
741         * sysdeps/powerpc/powerpc64/power7/memchr.S: Set a default
742         function name if not defined and pass as parameter to macros
743         accordingly.
744         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
745         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Likewise.
746
747         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Define the
748         implementation-specific function name and remove unneeded macros
749         definition.
750         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
751         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
752         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
753         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
754         * sysdeps/powerpc/powerpc64/memset.S: Set a default function name if
755         not defined and pass as parameter to macros accordingly.
756         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
757         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
758         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
759         * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
760
761         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Define the
762         strcasestr implementation name and remove unneeded macros definition.
763         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Define
764         strstr implementation name and remove unneeded macros definition.
765         * sysdeps/powerpc/powerpc64/power7/strstr.S: Set a default function
766         name if not defined and pass as parameter to macros accordingly.
767         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Likewise.
768
769         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Define the
770         implementation-specific function name and remove unneeded macros
771         definition.
772         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
773         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
774         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
775         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
776         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
777         * sysdeps/powerpc/powerpc64/power7/strchr.S: Set a default
778         function name if not defined and pass as parameter to macros
779         accordingly.
780         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Likewise.
781         * sysdeps/powerpc/powerpc64/power7/strrchr.S: Likewise.
782         * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
783         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
784
785         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Define
786         the strlen implementation name and remove unneeded macros definition.
787         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
788         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
789         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Define
790         the strnlen implementation name and remove unneeded macros definition.
791         * sysdeps/powerpc/powerpc64/power7/strlen.S: Set a default function
792         name if not defined and pass as parameter to macros accordingly.
793         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Likewise.
794         * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
795         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
796
797         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Define
798         the implementation-specific function name and remove unneeded
799         macros definition.
800         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
801         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S Likewise.
802         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
803         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
804         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
805         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
806         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
807         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
808         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
809         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Set a default function
810         name if not defined and pass as parameter to macros accordingly.
811         * sysdeps/powerpc/powerpc64/power7/strcmp.S: Likewise.
812         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
813         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
814         * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
815         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
816         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
817         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
818         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
819
820         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Define the
821         implementation-specific function name and remove unneeded macros
822         definition.
823         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
824         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
825         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
826         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
827         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
828         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Set a default
829         function name if not defined.
830         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Likewise.
831         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
832
833 2017-04-11  Paul Clarke  <pc@us.ibm.com>
834
835         * elf/elf.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE,
836         AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY,
837         AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY): New.  Add auxvec
838         identifiers from kernel arch/powerpc/include/uapi/asm/auxvec.h.
839
840 2017-04-11  Florian Weimer  <fweimer@redhat.com>
841             Zack Weinberg  <zackw@panix.com>
842
843         * manual/filesys.texi (Reading/Closing Directory): Mark readdir,
844         readdir64 as thread-safe.  Update warning about readdir_r.
845
846 2017-04-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
847
848         * sysdeps/unix/sysv/linux/x86/Implies: New file.
849         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Move to ...
850         * sysdeps/alpha/nptl/bits/pthreadtypes.h: ... here.
851         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Move to ...
852         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: ... here.
853         * sysdeps/x86/bits/pthreadtypes.h: Move to ...
854         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
855
856 2017-04-10  H.J. Lu  <hongjiu.lu@intel.com>
857
858         * sysdeps/i386/dl-procinfo.c: Include
859         <sysdeps/x86/dl-procinfo.c>.
860         * sysdeps/x86_64/dl-procinfo.c: Likewise.
861         * sysdeps/x86/dl-procinfo.c: New file.
862
863 2017-04-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
864
865         * sysdeps/generic/math_private.h: Remove declarations of
866         many functions that are already declared in math.h.
867         * sysdeps/ieee754/ldbl-128/e_logl.c: Include math.h to get the
868         declaration for __frexpl.
869         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Include math.h to get
870         the declarations for __scalbnl and fabsl.
871
872 2017-04-09  Dmitry V. Levin  <ldv@altlinux.org>
873
874         [BZ #20831]
875         * elf/dl-map-segments.h (_dl_map_segments): Check for failure
876         of __mprotect to change protection on the excess portion
877         to disallow all access.
878
879 2017-04-07  H.J. Lu  <hongjiu.lu@intel.com>
880
881         * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Use
882         HAS_CPU_FEATURE to check for SSE.
883         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
884         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
885         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Likewise.
886         * sysdeps/i386/fpu/fegetmode.c (fegetmode): Likewise.
887         * sysdeps/i386/fpu/feholdexcpt.c (__feholdexcept): Likewise.
888         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Likewise.
889         * sysdeps/i386/fpu/fesetmode.c (fesetmode): Likewise.
890         * sysdeps/i386/fpu/fesetround.c (__fesetround): Likewise.
891         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
892         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
893         * sysdeps/i386/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
894         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
895         * sysdeps/i386/setfpucw.c (__setfpucw): Likewise.
896         * sysdeps/x86/cpu-features.h (bit_cpu_SSE): New.
897         (index_cpu_SSE): Likewise.
898         (reg_SSE): Likewise.
899
900 2017-04-07  Paul Eggert  <eggert@cs.ucla.edu>
901
902         * posix/getopt1.c: Include <config.h>, not "config.h".
903
904 2017-04-07  Zack Weinberg  <zackw@panix.com>
905
906         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h
907         * posix/getopt.c, posix/getopt1.c, posix/getopt_int.h:
908         Mention in top-of-file boilerplate that these files are shared
909         with gnulib.
910         * posix/getopt.h, posix/bits/getopt_posix.h:
911         Mention in top-of-file boilerplate that these files are NOT shared
912         with gnulib, unlike the rest of the getopt implementation.
913
914         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h:
915         New files, intended to be shared with gnulib.
916         * posix/bits/getopt_posix.h:
917         New file, not intended to be shared with gnulib.
918         * posix/getopt.h: Now just includes features.h,
919         bits/getopt_core.h, and bits/getopt_ext.h.  Will
920         no longer be shared with gnulib.
921         * include/bits/getopt_core.h, include/bits/getopt_ext.h
922         * include/bits/getopt_posix.h: New wrappers.
923         * posix/Makefile: Install new headers.
924         * posix/unistd.h, libio/stdio.h:
925         Include bits/getopt_posix.h instead of getopt.h.
926
927         * include/libc-symbols.h: For gnulib compatibility, define
928         _GL_UNUSED, _GL_UNUSED_LABEL, _GL_ATTRIBUTE_PURE, and
929         _GL_ATTRIBUTE_CONST.
930         * posix/getopt.c (_getopt_initialize): Mark argc and argv
931         parameters with _GL_UNUSED.
932
933         * posix/getopt.c: When used standalone, define __libc_use_alloca
934         as always false and alloca to abort if called.
935         (process_long_option): Rewrite handling of ambiguous long options
936         to use a single boolean vector, not a linked list; use
937         __libc_use_alloca to decide whether to allocate this using alloca.
938         * posix/tst-getopt_long1.c: Adjust text of expected error message.
939
940         * posix/getopt.c (process_long_option): New function split out
941         from _getopt_internal_r.
942         (_getopt_internal_r): Replace both copies of the long-option
943         processing code with calls to process_long_option.
944         * posix/bug-getopt4.c (one_test): Print argv[0] in error messages.
945         (do_test): Differentiate argv[0] in the two subtests.
946
947         * posix/getopt_int.h (_getopt_data): Remove __posixly_correct field.
948         * posix/getopt.c (_getopt_internal_r): Move some initialization code...
949         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
950
951         * posix/getopt.h: Add backup definition of __nonnull for
952         consistency with gnulib.  Define __getopt_argv_const to const
953         if not already defined.
954         (getopt): Update doc comment from gnulib.  Prototype
955         unconditionally.  Add __nonnull annotation.
956         (__posix_getopt): Add __nonnull annotation.
957         (getopt_long, getopt_long_only): Use __getopt_argv_const in
958         prototypes for consistency with gnulib.  Add __nonnull
959         annotations.
960         * posix/getopt.c (_getopt_initialize, _getopt_internal_r)
961         (getopt_internal): Change 'argv' argument to type 'char **'.
962         Remove now-unnecessary casts.
963         (getopt, __posix_getopt): Eliminate repetition with a macro.
964         Cast 'argv' to 'char **' when calling _getopt_internal.
965         * posix/getopt1.c (getopt_long, getopt_long_only):
966         Use __getopt_argv_const for consistency with gnulib.
967         Cast 'argv' to 'char **' when calling _getopt_internal.
968         (_getopt_long_r, _getopt_long_only_r):
969         Change 'argv' argument to type 'char **'.
970         (main): Constify 'long_options'.
971         * posix/getopt_int.h (getopt_internal, _getopt_internal_r)
972         (_getopt_long_r, _getopt_long_only_r):
973         Change 'argv' argument to type 'char **'.
974
975         * stdio-common/fxprintf.c (__fxprintf_nocancel): New function.
976         (locked_vfxprintf): New helper function. Handle arbitrary
977         multibyte strings, not just ASCII.
978         * include/stdio.h: Declare __fxprintf_nocancel.
979         * posix/getopt.c: When _LIBC is defined, define fprintf to
980         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
981         to _IO_funlockfile.  When neither _LIBC nor
982         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
983         funlockfile as no-ops.
984         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks;
985         the standalone error-printing code can now be used for libc as
986         well.  Add an flockfile/funlockfile pair around one case where
987         the error message is printed in several chunks.  Don't use fputc.
988         * posix/tst-getopt-cancel.c: New test.
989         * posix/Makefile: Run it.
990
991         * posix/getopt.c (_getopt_internal_r): Don't increment
992         d->optind a second time when reporting ambiguous -W options.
993
994         * posix/getopt_int.h: Include getopt.h.
995         Use impl-namespace names for all arguments to _getopt_internal and
996         _getopt_internal_r.
997         Declare __ordering enum outside the struct.
998         Harmonize comments with gnulib.
999         * posix/getopt1.c: Simplify #ifdeffage at top of file. Remove
1000         ELIDE_CODE logic entirely.  Move inclusion of stdlib.h to
1001         #ifdef TEST block and make unconditional.  Do not define NULL.
1002         * posix/getopt.c: Partial merge from gnulib, covering the
1003         initial includes and global declarations, commentary, and
1004         a couple of semantically-neutral code changes.
1005
1006         * posix/getopt.c, posix/getopt.h, posix/getopt1.c, posix/getopt_int.h:
1007         Use '...' instead of `...' for quotation marks inside
1008         comments and strings.
1009
1010         * config.h.in (USE_NONOPTION_FLAGS): Remove.
1011         * csu/init-first.c: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
1012         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1013         * posix/getopt_int.h: Likewise.
1014         * posix/getopt.c: Likewise. Also remove SWAP_FLAGS and the
1015         __libc_argc and __libc_argv externs, which were only used by
1016         #ifdef USE_NONOPTION_FLAGS blocks.
1017         * posix/getopt_init.c: Remove file.
1018         * posix/Makefile (routines): Remove getopt_init.
1019         * include/getopt.h: Don't declare __getopt_initialize_environment.
1020         * manual/getopt.texi: Remove mention of USE_NONOPTION_FLAGS in
1021         a comment.
1022
1023 2017-04-07  Florian Weimer  <fweimer@redhat.com>
1024
1025         * resolv/res_mkquery.c (res_nmkquery): Remove IQUERY support.
1026
1027 2017-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1028
1029         * sysdeps/sparc/sparc32/Makefile (libc.so-gnulib): New rule.
1030         * sysdeps/sparc/sparc32/sparcv8/udiv.S (.udiv): Make a strong_alias
1031         to __wrap_.udiv.
1032         * sysdeps/sparc/sparc32/sparcv9/udiv.S (.udiv): Likewise.
1033         * sysdeps/sparc/sparc32/udiv.S (.udiv): Likewise.
1034
1035         * sysdeps/i386/symbol-hacks.h: New file.
1036         * sysdeps/m68k/symbol-hacks.h: New file.
1037         * sysdeps/powerpc/powerpc32/symbol-hacks.h: New file.
1038         * sysdeps/s390/s390-32/symbol-hacks.h: New file.
1039         * sysdeps/unix/sysv/linux/i386/Makefile
1040         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
1041         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1042         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1043         * sysdeps/unix/sysv/linux/m68k/Makefile
1044         [$(subdir) = csu] (sysdep_routines): Likewise.
1045         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1046         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1048         [$(subdir) = csu] (sysdep_routines): Likewise.
1049         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1050         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1051         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1052         [$(subdir) = csu] (sysdep_routines): Likewise.
1053         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1054         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1055         * sysdeps/wordsize-32/Makefile: Remove file.
1056         * sysdeps/wordsize-32/symbol-hacks.h: Definitions move to ...
1057         * sysdeps/wordsize-32/divdi3-symbol-hacks.h: ... here.
1058
1059 2017-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1060
1061         * elf/tst-dlopen-aout.c (TEST_FUNCTION): Removed.
1062         (TEST_FUNCTION_ARGV): New.
1063
1064 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1065
1066         * elf/next.c: Import support/test-driver.c instead of
1067         test-skeleton.c and delete TEST_FUNCTION macro definition.
1068         * elf/nodelete.c: Likewise.
1069         * elf/order2.c: Likewise.
1070         * elf/tst-_dl_addr_inside_object.c: Likewise.
1071         * elf/tst-addr1.c: Likewise.
1072         * elf/tst-align.c: Likewise.
1073         * elf/tst-align2.c: Likewise.
1074         * elf/tst-audit11.c: Likewise.
1075         * elf/tst-audit12.c: Likewise.
1076         * elf/tst-audit2.c: Likewise.
1077         * elf/tst-audit9.c: Likewise.
1078         * elf/tst-auxv.c: Likewise and define TEST_FUNCTION_ARGV macro.
1079         * elf/tst-deep1.c: Likewise.
1080         * elf/tst-dl-iter-static.c: Likewise.
1081         * elf/tst-dlmodcount.c: Likewise.
1082         * elf/tst-dlmopen1.c: Likewise.
1083         * elf/tst-dlmopen2.c: Likewise.
1084         * elf/tst-dlmopen3.c: Likewise.
1085         * elf/tst-dlopen-aout.c: Likewise.
1086         * elf/tst-dlopenrpath.c: Likewise.
1087         * elf/tst-dlsym-error.c: Likewise.
1088         * elf/tst-execstack-needed.c: Likewise.
1089         * elf/tst-execstack-prog.c: Likewise.
1090         * elf/tst-execstack.c: Likewise.
1091         * elf/tst-global1.c: Likewise.
1092         * elf/tst-gnu2-tls1.c: Likewise.
1093         * elf/tst-latepthread.c: Likewise.
1094         * elf/tst-leaks1.c: Likewise.
1095         * elf/tst-linkall-static.c: Likewise.
1096         (do_test): New function.
1097         * elf/tst-nodelete-opened.c: Likewise.
1098         * elf/tst-nodelete.cc: Likewise.
1099         * elf/tst-nodelete2.c: Likewise.
1100         * elf/tst-noload.c: Likewise.
1101         * elf/tst-null-argv.c: Likewise and define TEST_FUNCTION_ARGV marcro.
1102         * elf/tst-order-main.c: Likewise.
1103         * elf/tst-pathopt.c: Likewise.
1104         * elf/tst-pie2.c: Likewise.
1105         * elf/tst-piemod1.c: Likewise.
1106         * elf/tst-prelink.c: Likewise.
1107         * elf/tst-protected1a.c: Likewise.
1108         * elf/tst-protected1b.c: Likewise.
1109         * elf/tst-ptrguard1.c: Likewise, import getopt.h,
1110         and define _GNU_SOURCE macro.
1111         (cmdline_process_function): New function.
1112         * elf/tst-relsort1.c: Likewise.
1113         * elf/tst-stackguard1.c: Likewise, import getopt.h,
1114         and define _GNU_SOURCE macro.
1115         (cmdline_process_function): New function.
1116         * elf/tst-thrlock.c: Likewise.
1117         * elf/tst-tls-dlinfo.c: Likewise.
1118         * elf/tst-tls-manydynamic.c: Likewise and import support/xthread.h.
1119         * elf/tst-tls1.c: Likewise.
1120         * elf/tst-tls10.c: Likewise.
1121         * elf/tst-tls11.c: Likewise.
1122         * elf/tst-tls12.c: Likewise.
1123         * elf/tst-tls13.c: Likewise.
1124         * elf/tst-tls14.c: Likewise.
1125         * elf/tst-tls15.c: Likewise.
1126         * elf/tst-tls16.c: Likewise.
1127         * elf/tst-tls17.c: Likewise.
1128         * elf/tst-tls18.c: Likewise.
1129         * elf/tst-tls19.c: Likewise.
1130         * elf/tst-tls2.c: Likewise.
1131         * elf/tst-tls3.c: Likewise.
1132         * elf/tst-tls4.c: Likewise.
1133         * elf/tst-tls5.c: Likewise.
1134         * elf/tst-tls6.c: Likewise.
1135         * elf/tst-tls7.c: Likewise.
1136         * elf/tst-tls8.c: Likewise.
1137         * elf/tst-tls9.c: Likewise.
1138         * elf/tst-tlsalign-extern.c: Likewise.
1139         * elf/tst-tlsalign.c: Likewise.
1140         * elf/tst-unique1.c: Likewise.
1141         * elf/tst-unique2.c: Likewise.
1142         * elf/vismain.c: Likewise.
1143
1144 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1145
1146         * string/test-strnlen.c (do_page_tests): New function
1147         to check length of strings ending at the page boundary.
1148         (test_main): Added call to the do_page_tests function.
1149
1150 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1151             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1152
1153         * sysdeps/powerpc/powerpc64/multiarch/Makefile
1154         (sysdep_routines): Add strnlen-power8.
1155         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1156         (strnlen): Add __strnlen_power8 to list of strnlen functions.
1157         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: New file.
1158         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c
1159         (__strnlen): Add __strnlen_power8 to ifunc list.
1160         * sysdeps/powerpc/powerpc64/power8/strnlen.S: New file.
1161
1162 2017-04-04  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1163
1164         * wcsmbs/tst-btowc.c: Import support/test-driver.c and remove
1165         the TEST_FUNCTION macro definition.
1166         * wcsmbs/tst-mbrtowc2.c: Likewise.
1167         * wcsmbs/tst-mbsrtowcs.c: Likewise.
1168         * wcsmbs/tst-wchar-h.c: Likewise.
1169         * wcsmbs/tst-wcpncpy.c: Likewise.
1170         * wcsmbs/tst-wcrtomb.c: Likewise.
1171         * wcsmbs/tst-wcsnlen.c: Likewise.
1172         * wcsmbs/tst-wcstof.c: Likewise.
1173
1174 2017-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1175
1176         * nptl/pthread_create.c (START_THREAD_DEFN): Remove
1177         CALL_THREAD_FCT macro usage.
1178         * sysdeps/i386/nptl/tls.h (CALL_THREAD_FCT): Remove definition.
1179         * sysdeps/x86_64/nptl/tls.h (CALL_THREAD_FCT): Likewise.
1180         * sysdeps/x86_64/32/nptl/tls.h: Remove file.
1181
1182         * nptl/pthreadP.h (USE_REQUEUE_PI): Remove ununsed macro.
1183         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1184         (__ASSUME_REQUEUE_PI): Likewise.
1185         * sysdeps/unix/sysv/linux/kernel-features.h
1186         (__ASSUME_REQUEUE_PI): Likewise.
1187         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1188         (__ASSUME_REQUEUE_PI): Likewise.
1189         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1190         (__ASSUME_REQUEUE_PI): Likewise.
1191         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1192         (__ASSUME_REQUEUE_PI): Likewise.
1193
1194 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1195
1196         * resolv/tst-resolv-canonname.c: New file.
1197         * resolv/Makefile (tests): Add tst-resolv-canonname.
1198         (tst-resolv-canonname): Link with -ldl, -lresolv, -lpthread.
1199
1200 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1201
1202         * include/arpa/nameser.h (__ns_name_ntop, __ns_name_unpack):
1203         Declare.
1204         * resolv/nss_dns/dns-network.c: Include <arpa/nameser.h>.
1205         (NS_MAXCDNAME): Remove definition.
1206         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1207         * resolv/nss_dns/dns-host.c: Include <arpa/nameser.h>.
1208         (NS_MAXCDNAME): Remove definition.
1209         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1210
1211 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1212
1213         * resolv/nss_dns/dns-network.c (getanswer_r): Remove __dn_expand
1214         call whose result is not used.
1215
1216 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1217
1218         * resolv/tst-ns_name.c, resolv/tst-ns_name.data: New file.
1219         * resolv/Makefile (tests): Add tst-ns_name.
1220         (tst-ns_name): Link with -lresolv.
1221         (tst-ns_name.out): Depend on the input data file.
1222
1223 2017-04-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
1224
1225         * sysdeps/s390/s390-32/tls-macros.h (TLS_LD, TLS_GD):
1226         Clobber also r14.
1227
1228 2017-04-03  Mike Frysinger  <vapier@gentoo.org>
1229
1230         [BZ #21253]
1231         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Increase argv_size
1232         slack space by 32KiB.
1233
1234 2017-04-01  Wladimir van der Laan  <laanwj@gmail.com>
1235
1236         [BZ #21338]
1237         * malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX
1238         instead of incorrect do_set_arena_test
1239
1240 2017-03-31  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1241
1242         * math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
1243         * math/bits/math-finite.h: Likewise.
1244
1245 2017-03-31  Slava Barinov  <v.barinov@samsung.com>
1246
1247         [BZ #21289]
1248         * io/fts.h (fts_set): Replace __REDIRECT with __REDIRECT_NTH.
1249
1250 2017-03-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1251
1252         * sysdeps/unix/sysv/linux/test-errno-linux.c (do_test): Handle
1253         non expected inotify_add_watch and quotactl return.
1254
1255 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1256
1257         * math/e_rem_pio2l.c (__ieee754_rem_pio2l): Change return type
1258         to int32_t.
1259         * sysdeps/generic/math_private.h: Declare __ieee754_rem_pio2l
1260         as returning int32_t.
1261
1262 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1263
1264         * math/math.h: Include bits/math-finite.h once per
1265         floating-point type.
1266         * math/bits/math-finite.h: Macroize all declarations by
1267         floating-point type.
1268
1269 2017-03-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1270
1271         [BZ #21182]
1272         * string/test-memchr.c (do_test): Add BZ#21182 checks for address
1273         near end of a page.
1274         * sysdeps/i386/i686/multiarch/memchr-sse2.S (__memchr): Fix
1275         overflow calculation.
1276
1277 2017-03-28  Steve Ellcey  <sellcey@caviumnetworks.com>
1278
1279         * benchtests/bench-memcpy-random.c (TEST_NAME): Change to memcpy.
1280         (IMPL) Call with 1 instead of 0 as argument.
1281
1282 2017-03-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1283
1284         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1285         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1286         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1287         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1288         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1289         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1290         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1291         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1292         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1293         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1294         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1295         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1296         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1297         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1298         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1299         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1300         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1301         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1302         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1303         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1304         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1305         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1306         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1307         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1308         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1309         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1310         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1311         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1312         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1313         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1314         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1315         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1316         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1317         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1318         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1319         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1320         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1321         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1322         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1323         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1324         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1325         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1326         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1327         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1328         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1329         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1330         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1331         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1332         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1333         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1334         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1335         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1336         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1337         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1338         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1339         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1340         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1341         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1342         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1343         defined.
1344         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1345         __NR_setgroups32 if defined.
1346         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1347         if defined.
1348         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1349         __NR_setresgid32 is defined.
1350         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1351         __NR_setresuid32 if defined.
1352         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1353         __NR_setreuid32 if defined.
1354         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1355         defined.
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
1429 2017-03-27  Joseph Myers  <joseph@codesourcery.com>
1430
1431         [BZ #21277]
1432         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IUCLC): Define
1433         unconditionally.
1434         (IMAXBEL): Likewise.
1435         (IUTF8): Likewise.
1436
1437 2017-03-27  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1438
1439         * sysdeps/aarch64/libm-test-ulps: Update.
1440
1441 2017-03-24  Sunyeop Lee  <sunyeop97@gmail.com>
1442
1443         * README.tunables: Updated descriptions.
1444         * elf/dl-tunables.list: Fixed typo: SXID_NONE -> NONE.
1445         * scripts/gen-tunables.awk: Updated the code related to the
1446         commit.
1447
1448 2017-03-23  Wilco Dijkstra  <wdijkstr@arm.com>
1449
1450         * benchtests/Makefile (string-benchset): Add memcpy-random.
1451         * benchtests/bench-memcpy-random.c: New file.
1452
1453 2017-03-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1454
1455         * stdio-common/printf.h (register_printf_modifier): Change the
1456         order of __wur and __THROW.
1457         (register_printf_type): Likewise.
1458
1459 2017-03-23  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1460
1461         * string/test-string.h (TEST_FUNCTION): Use test_main instead of
1462         test_main ().
1463         (CMDLINE_PROCESS): Use function instead of defined macro.
1464         * debug/test-strcpy_chk.c: Import support/test-driver.c and also
1465         <suppport/support.h> to use set_fortify_handler().
1466         * string/bug-envz1.c: Import support/test-driver.c instead of
1467         test-skeleton.c.
1468         * string/bug-strcoll2.c: Likewise.
1469         * string/bug-strtok1.c: Likewise.
1470         * string/stratcliff.c: Likewise.
1471         * string/test-ffs.c: Likewise.
1472         * string/test-memccpy.c: Likewise.
1473         * string/test-memchr.c: Likewise.
1474         * string/test-memcmp.c: Likewise.
1475         * string/test-memcpy.c: Likewise.
1476         * string/test-memmem.c: Likewise.
1477         * string/test-memmove.c: Likewise.
1478         * string/test-memrchr.c: Likewise.
1479         * string/test-memset.c: Likewise.
1480         * string/test-rawmemchr.c: Likewise.
1481         * string/test-strcasecmp.c: Likewise.
1482         * string/test-strcasestr.c: Likewise.
1483         * string/test-strcat.c: Likewise.
1484         * string/test-strchr.c: Likewise.
1485         * string/test-strcmp.c: Likewise.
1486         * string/test-strcpy.c: Likewise.
1487         * string/test-string.h: Likewise.
1488         * string/test-strlen.c: Likewise.
1489         * string/test-strncasecmp.c: Likewise.
1490         * string/test-strncat.c: Likewise.
1491         * string/test-strncmp.c: Likewise.
1492         * string/test-strncpy.c: Likewise.
1493         * string/test-strnlen.c: Likewise.
1494         * string/test-strpbrk.c: Likewise.
1495         * string/test-strrchr.c: Likewise.
1496         * string/test-strspn.c: Likewise.
1497         * string/test-strstr.c: Likewise.
1498         * string/tst-bswap.c: Likewise.
1499         * string/tst-cmp.c: Likewise.
1500         * string/tst-endian.c: Likewise.
1501         * string/tst-inlcall.c: Likewise.
1502         * string/tst-strcoll-overflow.c: Likewise.
1503         * string/tst-strfry.c: Likewise.
1504         * string/tst-strlen.c: Likewise.
1505         * string/tst-strtok.c: Likewise.
1506         * string/tst-strtok_r.c: Likewise.
1507         * string/tst-strxfrm.c: Likewise.
1508         * string/tst-strxfrm2.c: Likewise.
1509         * string/tst-svc.c: Likewise.
1510         * string/tst-svc2.c: Likewise.
1511
1512 2017-03-22  Zack Weinberg  <zackw@panix.com>
1513
1514         * stdio-common/bug25.c: Include stdlib.h.
1515         * support/tst-support_format_dns_packet.c: Include stdio.h,
1516         stdlib.h, and string.h.
1517         * support/tst-support_record_failure.c: Include string.h.
1518         * support/tst-support_record_failure-2.sh: Adjust line number
1519         expectations and correct a typo in an error message.
1520
1521 2017-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1522
1523         [BZ #21258]
1524         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve_opt):
1525         Define only if _dl_runtime_resolve is defined to
1526         _dl_runtime_resolve_sse_vex.
1527         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_opt):
1528         Fallthrough to _dl_runtime_resolve_sse_vex.
1529
1530 2017-03-21  Joseph Myers  <joseph@codesourcery.com>
1531
1532         * INSTALL: Regenerated.
1533
1534 2017-03-21  Thorsten Kukuk  <kukuk@suse.com>
1535
1536         * config.h.in: Add LINK_OBSOLETE_NSL.
1537         * config.make.in: Add build-obsolete-nsl.
1538         * configure.ac: Add obsolete-nsl option.
1539         * include/libc-symbols.h: Define libnsl_hidden_nolink_def.
1540         * include/rpcsvc/yp.h: Add missing functions as libnsl_hidden_proto.
1541         * include/rpcsvc/nislib.h: Likewise.
1542         * include/rpcsvc/ypclnt.h: Likewise.
1543         * manual/install.texi: Document --enable-obsolete-nsl.
1544         * nis/Makefile: Build only libnsl by default (add build-obsolete-nsl).
1545         * nis/nis_add.c: Replace libnsl_hidden_def with
1546         libnsl_hidden_nolink_def.
1547         * nis/nis_addmember.c: Likewise.
1548         * nis/nis_call.c: Likewise.
1549         * nis/nis_clone_obj.c: Likewise.
1550         * nis/nis_defaults.c: Likeise.
1551         * nis/nis_domain_of_r.c: Likewise.
1552         * nis/nis_error.c: Likewise.
1553         * nis/nis_file.c: Likewise.
1554         * nis/nis_free.c: Likewise.
1555         * nis_local_names.c: Likewise.
1556         * nis/nis_lookup.c: Likewise.
1557         * nis/nis_modify.c: Likewise.
1558         * nis/nis_print.c: Likewise.
1559         * nis/nis_remove.c: Likewise.
1560         * nis/nis_table.c: Likewise.
1561         * nis/nis_util.c: Likewise.
1562         * nis/nis_xdr.c: Likewise.
1563         * nis/yp_xdr.c: Likewise.
1564         * nis/ypclnt.c: Likewise.
1565         * nis/ypupdate_xdr.c: Likewise.
1566         * nis/nis_checkpoint.c: Add libnsl_hidden_nolink_def to all functions.
1567         * nis/nis_clone_dir.c: Likewise.
1568         * nis/nis_clone_res.c: Likewise.
1569         * nis/nis_creategroup.c: Likewise.
1570         * nis/nis_destroygroup.c: Likewise.
1571         * nis/nis_domain_of.c: Likewise.
1572         * nis/nis_getservlist.c: Likewise.
1573         * nis/nis_ismember.c: Likewise.
1574         * nis/nis_mkdir.c: Likewise.
1575         * nis/nis_ping.c: Likewise.
1576         * nis/nis_print_group_entry.c: Likewise.
1577         * nis/nis_removemember.c: Likewise.
1578         * nis/nis_rmdir.c: Likewise.
1579         * nis/nis_server.c: Likewise.
1580         * nis/nis_subr.c: Likewise.
1581         * nis/nis_verifygroup.c: Likewise.
1582
1583 2017-03-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
1584
1585         * malloc/tst-interpose-aux.c (check_for_allocations):
1586         Move compiler barrier before free.
1587
1588 2017-03-20  Joseph Myers  <joseph@codesourcery.com>
1589
1590         [BZ #21279]
1591         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
1592         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
1593         * conform/data/mqueue.h-data (mq_attr.mq_flags): XFAIL for
1594         x86_64-x32-linux.
1595         (mq_attr.mq_maxmsg): Likewise.
1596         (mq_attr.mq_msgsize): Likewise.
1597         (mq_attr.mq_curmsgs): Likewise.
1598
1599         [BZ #21278]
1600         * sysdeps/unix/sysv/linux/mips/mips32/Makefile
1601         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
1602         * conform/data/sys/stat.h-data (stat.st_rdev): XFAIL for
1603         mips-o32-linux.
1604
1605         [BZ #21268]
1606         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (NL2): Define only
1607         if [__USE_MISC]
1608         (NL3): Likewise.
1609
1610 2017-03-20  Mike Frysinger  <vapier@gentoo.org>
1611
1612         [BZ #21275]
1613         * sysdeps/unix/sysv/linux/spawni.c [__ia64__] (CLONE): Rename
1614         __stack to __stackbase.
1615         (STACK): Invert _STACK_GROWS_DOWN and _STACK_GROWS_UP order of
1616         checks so we can include defined(__ia64__) first.
1617
1618 2017-03-19  Christian Brauner  <christian.brauner@ubuntu.com>
1619
1620         * sysdeps/unix/sysv/linux/ttyname.h: New file.
1621         * sysdeps/unix/sysv/linux/ttyname.c: Include "ttyname.h".
1622         (ttyname) [!_STATBUF_ST_RDEV]: Make code unconditional.
1623         Call is_pty when the link does not exist or does not match, fail
1624         with ENODEV when it returns true.
1625         * sysdeps/unix/sysv/linux/ttyname_r.c: Include "ttyname.h".
1626         (__ttyname_r) [!_STATBUF_ST_RDEV]: Make code unconditional.
1627         Call is_pty when the link does not exist or does not match, fail
1628         with ENODEV when it returns true.
1629
1630 2017-03-18  Joseph Myers  <joseph@codesourcery.com>
1631
1632         [BZ #16437]
1633         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
1634         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
1635         * conform/data/signal.h-data (timespec.tv_nsec): XFAIL for
1636         x86_64-x32-linux.
1637         * conform/data/sys/select.h-data (timespec.tv_nsec): Likewise.
1638         * conform/data/sys/stat.h-data (timespec.tv_nsec): Likewise.
1639         * conform/data/time.h-data (timespec.tv_nsec): Likewise.
1640
1641         [BZ #21261]
1642         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h
1643         [__WORDSIZE == 64 && !_ASM] (__sparc64_jmp_buf): Use reserved
1644         names for all fields.
1645         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Update
1646         for jmp_buf field renaming.
1647         (_JMPBUF_UNWINDS_ADJ): Likewise.
1648
1649         * conform/conformtest.pl: Handle xfail[cond]- in header mentioned
1650         with allow-header.
1651
1652 2017-03-17  Chris Evans  <scarybeasts@gmail.com>
1653
1654         * malloc/malloc.c (unlink): Add consistency check between size and
1655         next->prev->size, to further harden against 1-byte overflows.
1656
1657 2017-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1658
1659         * sysdeps/x86/cpu-features.c (init_cpu_features): Check AVX with
1660         CPU_FEATURES_CPU_P.
1661
1662 2017-03-17  Joseph Myers  <joseph@codesourcery.com>
1663
1664         [BZ #21259]
1665         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IXANY): Define
1666         unconditionally, not just for [__USE_MISC].
1667
1668         [BZ #17786]
1669         * sysdeps/unix/sysv/linux/mips/mips32/Makefile: New file.
1670         * conform/data/sys/stat.h-data (stat.st_dev): XFAIL for
1671         mips-o32-linux.
1672
1673         [BZ #21260]
1674         * sysdeps/unix/sysv/linux/alpha/Makefile
1675         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
1676         * conform/data/netdb.h-data (netent.n_net): XFAIL for alpha-linux.
1677
1678         * conform/conformtest.pl ($cross): New variable.
1679         (--cross): New command-line option.
1680         (runtest): Skip test execution when cross-compiling.
1681         * conform/Makefile (conformtest-cross): New variable.
1682         ($(conformtest-header-tests)): Pass $(conformtest-cross) to
1683         conformtest.pl.
1684
1685         * conform/conformtest.pl ($xfail_str): New variable.
1686         (--xfail=): New command-line option.
1687         (top level): Handle expectations starting xfail[cond]-.
1688         * conform/Makefile (conformtest-xfail): New variable.
1689         ($(conformtest-header-tests)): Pass $(conformtest-xfail) to
1690         conformtest.pl.
1691
1692 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
1693
1694         * conform/conformtest.pl: Use compilation instead of execution
1695         tests for testing values of constants and usability in #if.
1696
1697 2017-03-16  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1698
1699         * math/auto-libm-test-in: Mark some catan and catanh as
1700         xfail-rounding:ibm128-libgcc.
1701         * math/auto-libm-test-out-catan: Regenerate.
1702         * math/auto-libm-test-out-catanh: Likewise.
1703
1704 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
1705
1706         * misc/sys/cdefs.h (__BEGIN_NAMESPACE_STD): Remove macro.
1707         (__END_NAMESPACE_STD): Likewise.
1708         (__USING_NAMESPACE_STD): Likewise.
1709         (__BEGIN_NAMESPACE_C99): Likewise.
1710         (__END_NAMESPACE_C99): Likewise.
1711         (__USING_NAMESPACE_C99): Likewise.
1712         * math/math.h (_Mdouble_BEGIN_NAMESPACE): Do not define and
1713         undefine macro.
1714         (_Mdouble_END_NAMESPACE): Likewise.
1715         * ctype/ctype.h: Do not handle C++ namespaces.
1716         * libio/bits/stdio-ldbl.h: Likewise.
1717         * libio/stdio.h: Likewise.
1718         * locale/locale.h: Likewise.
1719         * math/bits/mathcalls.h: Likewise.
1720         * setjmp/setjmp.h: Likewise.
1721         * signal/signal.h: Likewise.
1722         * stdlib/bits/stdlib-float.h: Likewise.
1723         * stdlib/bits/stdlib-ldbl.h: Likewise.
1724         * stdlib/stdlib.h: Likewise.
1725         * string/string.h: Likewise.
1726         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
1727         * time/bits/types/clock_t.h: Likewise.
1728         * time/bits/types/struct_tm.h: Likewise.
1729         * time/bits/types/time_t.h: Likewise.
1730         * time/time.h: Likewise.
1731         * wcsmbs/bits/wchar-ldbl.h: Likewise.
1732         * wcsmbs/uchar.h: Likewise.
1733         * wcsmbs/wchar.h: Likewise.
1734         [_GLIBCPP_USE_NAMESPACES] (wint_t): Remove conditional definition.
1735         * wctype/wctype.h: Do not handle C++ namespaces.
1736         * scripts/begin-end-check.pl: Remove.
1737         * Makefile (installed-headers): Likewise.
1738         (tests-special): Do not add $(objpfx)begin-end-check.out.
1739         ($(objpfx)begin-end-check.out): Remove.
1740
1741 2017-03-15  Steve Ellcey  <sellcey@caviumnetworks.com>
1742             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1743
1744         * sysdeps/aarch64/dl-machine.h: Include cpu-features.c.
1745         (DL_PLATFORM_INIT): New define.
1746         (dl_platform_init): New function.
1747         * sysdeps/aarch64/ldsodefs.h: Include cpu-features.h.
1748         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: New file.
1749         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h: Likewise.
1750         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c: Likewise.
1751         * sysdeps/unix/sysv/linux/aarch64/libc-start.c: Likewise.
1752
1753 2017-03-15  Mike Frysinger  <vapier@gentoo.org>
1754
1755         * sysdeps/x86_64/mempcpy_chk.S (__mempcpy_chk): Check for SHARED
1756         instead of PIC.
1757
1758 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
1759
1760         [BZ #21094]
1761         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
1762         24+24+24-bit pi for wider range of values around pi/2.
1763         * math/auto-libm-test-in: Add more tests of cos and tan.
1764         * math/auto-libm-test-out-cos: Regenerated.
1765         * math/auto-libm-test-out-tan: Likewise.
1766
1767 2017-03-15  John David Anglin  <danglin@gcc.gnu.org>
1768
1769         * sysdeps/hppa/dl-machine.h (DL_STACK_END): Define.
1770         (RTLD_START): Don't record stack end address in _dl_start_user.
1771
1772 2017-03-15  Alexey Neyman  <stilor@att.net>
1773
1774         [BZ #21088]
1775         * nss/nsswitch.c (nscd_init_cb, is_nscd): Make the #if check
1776         around definitions match those around use.
1777
1778 2017-03-15  Alexey Neyman  <stilor@att.net>
1779
1780         * configure.ac: Avoid empty subexpression in grep.
1781         * configure: Regenerate.
1782
1783 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1784
1785         * posix/test-errno.c (do_test): Initialize setsockopt optlen.
1786         * sysdeps/unix/sysv/linux/test-errno.c: Move to ...
1787         * sysdeps/unix/sysv/linux/test-errno-linux.c: ... here.
1788         (test_wrp_rv): Fix format.
1789         (test_wrp_rv2): New macro.
1790         (do_test): Handle mlock return on 64 bits kernels with 32 bits
1791         binaries.
1792
1793 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
1794
1795         * sysdeps/x86/fpu/test-math-vector-sincos.h (INIT_VEC_PTRS_LOOP):
1796         Use a union when storing pointers.
1797         (VECTOR_WRAPPER_fFF_2): Do not take address of integer vector and
1798         cast result when passing to INIT_VEC_PTRS_LOOP.
1799         (VECTOR_WRAPPER_fFF_3): Likewise.
1800         (VECTOR_WRAPPER_fFF_4): Likewise.
1801
1802 2017-03-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1803
1804         * include/bits/mathcalls-helper-functions.h: New file.
1805         * math/Makefile (headers): Add bits/mathcalls-helper-functions.h.
1806         * math/bits/mathcalls.h (__finite, __fpclassify, __iseqsig)
1807         (__isinf, __isnan, __issignaling, __signbit): Move declarations to
1808         math/bits/mathcalls-helper-functions.h.
1809         * math/bits/mathcalls-helper-functions.h: New file.
1810         * math/math.h: Include bits/mathcalls-helper-functions.h for
1811         float, double, and long double.
1812
1813 2017-03-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1814
1815         * math/s_iseqsig_template.c (__iseqsig): Use __feraiseexcept
1816         instead of feraiseexcept.
1817
1818 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1819
1820         [BZ #21243]
1821         * support/temp_file.c (support_delete_temp_files): Add comment
1822         about ignored errors.
1823
1824 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1825
1826         [BZ #21244]
1827         * support/xclose.c: New file.
1828         * support/Makefile (libsupport-routines): Add xclose.
1829         * support/xunistd.h (xclose): Declare.
1830         * support/resolv_test.c (server_thread_tcp_client)
1831         (server_thread_tcp, make_server_sockets, resolv_test_start)
1832         (resolv_test_end): Call xclose instead of close.
1833         * support/support_enter_network_namespace.c
1834         (support_enter_network_namespace): Likewise.
1835         * support/support_run_diff.c (write_to_temp_file): Likewise.
1836
1837 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1838
1839         * support/support_format_dns_packet.c (support_format_dns_packet):
1840         Handle CNAME records in the response.  Extract RDATA names from
1841         rdata, not the whole packet.  Check AAAA record length.
1842         * support/tst-support_format_dns_packet.c: New file.
1843         * support/Makefile (tests): Add tst-support_format_dns_packet.
1844         (tst-support_format_dns_packet): Link against libresolv.
1845
1846 2017-03-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1847
1848         [BZ #21232]
1849         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c: Add
1850         posix_fadvise64 weak_alias for static build.
1851
1852 2017-03-14  Andreas Schwab  <schwab@suse.de>
1853
1854         * sysdeps/generic/dl-procinfo.h (_dl_platform_string): Remove.
1855         * sysdeps/alpha/dl-procinfo.h (_dl_platform_string): Remove.
1856         (_dl_string_platform): Use GLRO(dl_alpha_platforms) directly.
1857         * sysdeps/i386/dl-procinfo.h (_dl_platform_string): Remove.
1858         * sysdeps/mips/dl-procinfo.h (_dl_platform_string): Remove.
1859         (_dl_string_platform): Use GLRO(dl_mips_platforms) directly.
1860         * sysdeps/s390/dl-procinfo.h (_dl_platform_string): Remove.
1861         * sysdeps/sparc/dl-procinfo.h (_dl_platform_string): Remove.
1862
1863 2017-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1864
1865         * sysdeps/mach/hurd/send.c (__send): Convert hurdish error code into
1866         posix error code.
1867         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
1868
1869 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1870
1871         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
1872         no_isolate usage for SH.
1873
1874 2017-03-13  Wilco Dijkstra  <wdijkstr@arm.com>
1875
1876         [BZ #15105]
1877         [BZ #19463]
1878         * elf/dl-cache.c (_dl_load_cache_lookup): Use __strdup.
1879         * inet/rcmd.c (rcmd_af): Likewise.
1880         * inet/rexec.c   (rexec_af): Likewise.
1881         * intl/dcigettext.c (_LIBC): Likewise.
1882         * intl/finddomain.c (_nl_find_domain): Use strdup expansion.
1883         * locale/loadarchive.c (_nl_load_locale_from_archive): Use __strdup.
1884         * locale/setlocale.c (setlocale): Likewise.
1885         * posix/spawn_faction_addopen.c
1886         (posix_spawn_file_actions_addopen): Likewise.
1887         * stdlib/putenv.c (putenv): Use __strndup.
1888         * sunrpc/svc_simple.c (__registerrpc): Use __strdup.
1889         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use __strdup/__strndup.
1890         * include/stdlib.h (__need_malloc_and_calloc): Remove uses.
1891         (__Need_M_And_C) Remove define/undef.
1892         * stdlib/stdlib.h (__need_malloc_and_calloc): Remove uses.
1893         (__malloc_and_calloc_defined): Remove define.
1894         * string/bits/string2.h (__strdup): Remove define.
1895         (strdup): Likewise.
1896         (__strndup): Likewise.
1897         (strndup): Likewise.
1898
1899 2017-03-13  Joseph Myers  <joseph@codesourcery.com>
1900
1901         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_AUTOFLOWLABEL): New
1902         macro.
1903         (IPV6_ADDR_PREFERENCES): Likewise.
1904         (IPV6_MINHOPCOUNT): Likewise.
1905         (IPV6_ORIGDSTADDR): Likewise.
1906         (IPV6_RECVORIGDSTADDR): Likewise.
1907         (IPV6_TRANSPARENT): Likewise.
1908         (IPV6_UNICAST_IF): Likewise.
1909         (IPV6_RECVFRAGSIZE): Likewise.
1910
1911 2017-03-13  Thorsten Kukuk  <kukuk@suse.com>
1912
1913         * sunrpc/Makefile: only run rpcgen tests if we build rpcgen.
1914
1915 2017-03-12  Alexey Neyman <stilor@att.net>
1916
1917         * sysdeps/sh/dl-machine.h (elf_machine_rela): The condition
1918         in R_SH_DIR32 case is always false when inlined from
1919         dl-conflict.c. Ifdef out to prevent GCC from insertin an
1920
1921 2016-03-12  Marko Myllynen  <myllynen@redhat.com>
1922
1923         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1924         (__ASSUME_RECV_SYSCALL): Replace duplicate by
1925         __ASSUME_SEND_SYSCALL.
1926
1927 2017-03-11  Thorsten Kukuk  <kukuk@suse.com>
1928
1929         * sunrpc/Makefile: don't build and install rpcsvc header
1930         files, rpcgen and librpcsvc.a by default.
1931
1932 2017-03-10  Stefan Liebler  <stli@linux.vnet.ibm.com>
1933
1934         * math/auto-libm-test-out-catan: Regenerated.
1935         * math/auto-libm-test-out-catanh: Likewise.
1936         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1937
1938 2017-03-09  Joseph Myers  <joseph@codesourcery.com>
1939
1940         * sysdeps/mips/mips64/libm-test-ulps: Update catan and catanh ulps
1941         for long double with corrected test expectations.
1942
1943 2016-03-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1944
1945         * sysdeps/unix/sysv/linux/sysdep.h (HAVE_INTERNAL_SEND_SYMBOL):
1946         Define.
1947         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
1948         (HAVE_INTERNAL_SEND_SYMBOL): Undefine.
1949         * sysdeps/unix/sysv/linux/nios2/sysdep.h
1950         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
1951         * sysdeps/unix/sysv/linux/tile/sysdep.h
1952         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
1953         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1954         (__ASSUME_RECV_SYSCALL): Define.
1955         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1956         (__ASSUME_RECV_SYSCALL): Likewise.
1957         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1958         (__ASSUME_RECV_SYSCALL): Likewise.
1959         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1960         (__ASSUME_RECV_SYSCALL): Likewise.
1961         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1962         (__ASSUME_RECV_SYSCALL): Likewise.
1963         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1964         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Remove define.
1965         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1966         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
1967         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1968         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
1969         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove send from
1970         auto-generation list.
1971         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1972         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1973         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewike.
1974         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1975         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1976         * sysdeps/unix/sysv/linux/send.c: Simplify includes.
1977         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Replace by
1978         __ASSUME_SENDTO_SYSCALL.
1979         * sysdeps/unix/sysv/linux/x86_64/send.c: Remove file.
1980         * sysdeps/unix/sysv/linux/mips/mips64/send.c: Likewise.
1981         * sysdeps/unix/sysv/linux/generic/send.c: Likewise.
1982
1983         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sendto from
1984         auto-generation list.
1985         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1986         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
1987         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1988         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1989         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1990         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1991         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1992         * sysdeps/unix/sysv/linux/kernel-features.h
1993         (__ASSUME_SENDTO_SYSCALL): Define by default.
1994         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1995         (__ASSUME_SENDTO_SYSCALL): Undef it is kernel does not support
1996         __NR_sendto.
1997         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1998         (__ASSUME_SENDTO_SYSCALL): Likewise.
1999         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2000         (__ASSUME_SENDTO_SYSCALL): Likewise.
2001         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2002         (__ASSUME_SENDTO_SYSCALL): Remove definition.
2003         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2004         (__ASSUME_SENDTO_SYSCALL): Likewise.
2005         * sysdeps/unix/sysv/linux/sh/kernel-features.h:
2006         (__ASSUME_SENDTO_SYSCALL): Likewise.
2007         * sysdeps/unix/sysv/linux/sendto.c: Simplify includes.
2008
2009         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recv from
2010         auto-generation list.
2011         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2012         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2013         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2014         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2015         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2016         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2017         (__ASSUME_RECV_SYSCALL): New define.
2018         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2019         (__ASSUME_RECV_SYSCALL): Likewise.
2020         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2021         (__ASSUME_RECV_SYSCALL): Likewise.
2022         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2023         (__ASSUME_RECV_SYSCALL): Likewise.
2024         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2025         (__ASSUME_RECV_SYSCALL): Likewise.
2026         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2027         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2028         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2029         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2030         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2031         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2032         * sysdeps/unix/sysv/linux/generic/recv.c: Remove file.
2033         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: Likewise.
2034         * sysdeps/unix/sysv/linux/x86_64/recv.c: Likewise.
2035         * sysdeps/unix/sysv/linux/recv.c: Simplify includes.
2036         (__libc_recv): Use __ASSUME_RECVFROM_SYSCALL instead of
2037         __ASSUME_RECVFROM_FOR_RECV_SYSCALL to issue recvfrom syscall.
2038
2039         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recvfrom from
2040         auto-generation list.
2041         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2042         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2043         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2044         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2045         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2046         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2047         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2048         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2049         (__ASSUME_RECVFROM_SYSCALL): Define by default.
2050         * sysdeps/unix/sysv/linux/kernel-features.h
2051         (__ASSUME_RECVFROM_SYSCALL): Undef it if kernel does not support
2052         __NR_recvfrom.
2053         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2054         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2055         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2056         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2057         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2058         (__ASSUME_RECVFROM_SYSCALL): Remove definition.
2059         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2060         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2061         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2062         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2063         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2064         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2065         * sysdeps/unix/sysv/linux/recvfrom.c: Simplify includes.
2066
2067         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove connect from
2068         auto-generation list.
2069         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2070         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2071         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2072         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2073         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2074         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2075         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2076         * sysdeps/unix/sysv/linux/connect.c: Simplify include list.
2077         * sysdeps/unix/sysv/linux/kernel-features.h
2078         (__ASSUME_CONNECT_SYSCALL): Define.
2079         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2080         (__ASSUME_CONNECT_SYSCALL): Undef if kernel does not support it.
2081         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2082         (__ASSUME_CONNECT_SYSCALL): Likewise.
2083         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2084         (__ASSUME_CONNECT_SYSCALL): Likewise.
2085         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2086         (__ASSUME_CONNECT_SYSCALL): Likewise.
2087
2088         * sysdeps/unix/sysv/linux/accept.c (__libc_accept): Replace
2089         __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL by __ASSUME_ACCEPT4_SYSCALL.
2090         * sysdeps/unix/sysv/linux/alpha/syscalls.list?: Remove accept from
2091         auto-generation list.
2092         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2093         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2094         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2095         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2096         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2097         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2098         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2099         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2100         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2101         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2102         * sysdeps/unix/sysv/linux/kernel-features.h
2103         (__ASSUME_ACCEPT_SYSCALL): New define.
2104         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2105         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2106         (__ASSUME_ACCEPT_SYSCALL): Define wheter kernel version supports.
2107         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2108         (__ASSUME_ACCEPT_SYSCALL): Define.
2109         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2110         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2111         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2112         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2113         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2114         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2115         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2116         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2117         (__ASSUME_ACCEPT_SYSCALL): Undefine for 32 bits.
2118
2119 2017-03-08  Yury Norov <ynorov@caviumnetworks.com>
2120             Zack Weinberg  <zackw@panix.com>
2121
2122         * posix/test-errno.c: New file.
2123         * posix/Makefile (tests): Add test-errno.
2124         * sysdeps/unix/sysv/linux/test-errno.c: New file.
2125         * sysdeps/unix/sysv/linux/Makefile (tests): Add test-errno.
2126
2127 2017-03-08  Stefan Liebler  <stli@linux.vnet.ibm.com>
2128
2129         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2130
2131 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2132
2133         * time/tzset.c (compute_offset): Open-code min macro.
2134         (min, max, sign): Remove.
2135
2136 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2137
2138         [BZ #15576]
2139         Remove TZNAME_MAX limit from sysconf.
2140         * include/time.h (__tzname_cur_max, __tzname_max): Remove
2141         declaration.
2142         * time/tzfile.c (__tzfile_read, __tzfile_default): Do not call
2143         compute_tzname_max.
2144         (compute_tzname_max): Remove.
2145         * time/tzset.c (__tzname_cur_max, __tzname_max): Remove.
2146         (update_vars): Do not update __tzname_cur_max.
2147         (tzset_internal): Remove argument.
2148         (__tzset): Adjust call to tzset_internal.
2149         (__tz_convert): Likewise.
2150
2151         * posix/sysconf.c (__sysconf): Return -1 for _SC_TZNAME_MAX.
2152         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
2153         * manual/conf.texi (Sysconf Definition): Update comment.
2154
2155 2017-03-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2156
2157         [BZ #21209]
2158         * elf/rtld.c (process_envvars): Ignore LD_HWCAP_MASK for
2159         AT_SECURE processes.
2160         * sysdeps/generic/unsecvars.h: Add LD_HWCAP_MASK.
2161         * elf/tst-env-setuid.c (test_parent): Test LD_HWCAP_MASK.
2162         (test_child): Likewise.
2163         * elf/Makefile (tst-env-setuid-ENV): Add LD_HWCAP_MASK.
2164
2165 2017-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2166
2167         * sysdeps/unix/sysv/linux/hppa/ipc_priv.h: New file.
2168
2169 2017-03-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
2170
2171         * sysdeps/s390/atomic-machine.h
2172         (USE_ATOMIC_COMPILER_BUILTINS): Define to 1.
2173         (__arch_compare_and_exchange_val_8_acq,
2174         __arch_compare_and_exchange_val_16_acq,
2175         __arch_compare_and_exchange_val_32_acq,
2176         __arch_compare_and_exchange_val_64_acq):
2177         Delete macro.
2178         (atomic_compare_and_exchange_val_acq,
2179         atomic_compare_and_exchange_val_rel,
2180         atomic_compare_and_exchange_bool_acq,
2181         catomic_compare_and_exchange_bool_acq,
2182         atomic_exchange_acq, atomic_exchange_rel,
2183         atomic_exchange_and_add_acq,
2184         atomic_exchange_and_add_rel,
2185         catomic_exchange_and_add, atomic_or_val,
2186         atomic_or, catomic_or, atomic_bit_test_set,
2187         atomic_and_val, atomic_and, catomic_and):
2188         Define macros with help of C11 atomic builtins.
2189
2190 2017-03-03  Justus Winter <justus@gnupg.org>
2191
2192         * sysdeps/mach/hurd/ftruncate64.c: New file.
2193         * sysdeps/mach/hurd/truncate64.c: Likewise.
2194
2195 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2196
2197         * time/tzfile.c (NOID): Do not define.
2198         * time/tzset.c (NOID): Likewise.
2199
2200 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2201
2202         * time/tzset.c (compute_offset): Remove __attribute_noinline__.
2203
2204 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2205
2206         * elf/get-dynamic-info.h: Remove header file inclusion guard.
2207
2208 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2209
2210         [BZ #21015]
2211         * manual/install.texi (Configuring and compiling): Document
2212         --enable-bind-now.
2213         * Makeconfig [bind-now] (LDFLAGS-lib.so): Set.
2214         (build-shlib-helper): Use $(LDFLAGS-lib.so).
2215         (format.lds): Likewise.
2216         [bind-now] (LDFLAGS-c.so): Remove.
2217         * sysdeps/x86_64/localplt.data (libm.so): matherr relocation can
2218         be R_X86_64_GLOB_DAT.
2219         * sysdeps/unix/sysv/linux/i386/localplt.data (libm.so): matherr
2220         relocation can be R_386_GLOB_DAT.
2221         * sysdeps/unix/sysv/linux/alpha/localplt.data (libm.so): matherr
2222         relocaiton can be R_ALPHA_GLOB_DAT.
2223         * iconvdata/Makefile [bind-now] (LDFLAGS.so): Add -Wl,-z,now.
2224
2225 2017-03-01  Zack Weinberg  <zackw@panix.com>
2226
2227         * include/libc-pointer-arith.h: New file.  Define
2228         cast_to_integer, ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and
2229         PTR_ALIGN_DOWN here.
2230         * include/libc-internal.h: Definitions of above macros
2231         moved from here.  Don't include libc-diag.h anymore either.
2232         * posix/wordexp-test.c: Include stdint.h and libc-pointer-arith.h.
2233         Don't include libc-internal.h.
2234
2235         * debug/pcprofile.c, elf/dl-tunables.c, elf/soinit.c, io/openat.c
2236         * io/openat64.c, misc/ptrace.c, nptl/pthread_clock_gettime.c
2237         * nptl/pthread_clock_settime.c, nptl/pthread_cond_common.c
2238         * string/strcoll_l.c, sysdeps/nacl/brk.c
2239         * sysdeps/unix/clock_settime.c
2240         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c
2241         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c
2242         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
2243         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c:
2244         Don't include libc-internal.h.
2245
2246         * elf/get-dynamic-info.h, iconv/loop.c
2247         * iconvdata/iso-2022-cn-ext.c, locale/weight.h, locale/weightwc.h
2248         * misc/reboot.c, nis/nis_table.c, nptl_db/thread_dbP.h
2249         * nscd/connections.c, resolv/res_send.c, soft-fp/fmadf4.c
2250         * soft-fp/fmasf4.c, soft-fp/fmatf4.c, stdio-common/vfscanf.c
2251         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
2252         * sysdeps/ieee754/dbl-64/k_rem_pio2.c
2253         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
2254         * sysdeps/ieee754/flt-32/k_rem_pio2f.c
2255         * sysdeps/ieee754/ldbl-128/k_tanl.c
2256         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
2257         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
2258         * sysdeps/ieee754/ldbl-96/k_tanl.c, sysdeps/nptl/futex-internal.h:
2259         Include libc-diag.h instead of libc-internal.h.
2260
2261         * elf/dl-load.c, elf/dl-reloc.c, locale/programs/locarchive.c
2262         * nptl/nptl-init.c, string/strcspn.c, string/strspn.c
2263         * malloc/malloc.c, sysdeps/i386/nptl/tls.h
2264         * sysdeps/nacl/dl-map-segments.h, sysdeps/x86_64/atomic-machine.h
2265         * sysdeps/unix/sysv/linux/spawni.c
2266         * sysdeps/x86_64/nptl/tls.h:
2267         Include libc-pointer-arith.h instead of libc-internal.h.
2268
2269         * elf/get-dynamic-info.h, sysdeps/nacl/dl-map-segments.h
2270         * sysdeps/x86_64/atomic-machine.h:
2271         Add multiple include guard.
2272
2273         * nss/tst-cancel-getpwuid_r.c: Include nss.h.
2274         * string/strcasestr.c: No need to include config.h.
2275         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
2276         sys/auxv.h. Don't include sysdep.h.
2277         * sysdeps/powerpc/tst-set_ppr.c: Don't include dl-procinfo.h.
2278
2279         * dlfcn/tst-dladdr.c: Don't include ldsodefs.h.  Don't use
2280         DL_LOOKUP_ADDRESS.
2281         * math/test-misc.c: Instead of testing NO_LONG_DOUBLE, test whether
2282         LDBL_MANT_DIG is greater than DBL_MANT_DIG.
2283         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Use
2284         sysconf (_SC_PAGESIZE) instead of __getpagesize in definition
2285         of ARTIFICIAL_LIMIT.
2286         * sysdeps/unix/sysv/linux/tst-clone.c [__ia64__]: Add extern
2287         declaration of __clone2.
2288
2289 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2290
2291         * scripts/backport-support.sh (latest_commit): New file.
2292
2293 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2294
2295         [BZ #20257]
2296         * inet/Makefile (routines): Add deadline.
2297         (tests-static): Add tst-deadline.
2298         * inet/net-internal.h (struct deadline_current_time)
2299         (__deadline_current_time, struct deadline, __deadline_is_infinite)
2300         (__deadline_elapsed, __deadline_first, __deadline_from_timeval)
2301         (__deadline_to_ms, __is_timeval_valid_timeout): Declare.
2302         * inet/deadline.c: New file.
2303         * inet/tst-deadline.c: Likewise.
2304         * sunrpc/Makefile (tests): Add tst-udp-nonblocking,
2305         tst-udp-timeout, tst-udp-garbage.
2306         (tst-udp-nonblocking, tst-udp-timeout): Link against libc.so
2307         explicitly.
2308         (tst-udp-garbage): Likewise.  Also link against thread library.
2309         * sunrpc/clnt_udp.c (struct cu_data): Mention in comment that the
2310         struct layout is part of the ABI.
2311         (clntudp_call): Rework timeout handling.
2312         * sunrpc/tst-udp-garbage.c: New file.
2313         * sunrpc/tst-udp-nonblocking.c: Likewise.
2314         * sunrpc/tst-udp-timeout.c: Likewise.
2315
2316 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2317
2318         [BZ #5010]
2319         * sunrpc/svc.c (svc_is_mapped): Remove.
2320         (svc_unregister): Obtain mapped status while the service is still
2321         registered.
2322         * sunrpc/Makefile [have-thread-library] (tests): Add
2323         tst-svc_register.
2324         (tst-svc_register): Link against libc.so explicitly and the thread
2325         library.
2326         * sunrpc/tst-svc_register.c: New file.
2327
2328 2017-02-28  Andreas Schwab  <schwab@linux-m68k.org>
2329
2330         * bits/sigthread.h: Refer to <signal.h>, not <pthread.h>.
2331         * sysdeps/pthread/bits/sigthread.h: Likewise.
2332
2333 2017-02-27  Florian Weimer  <fweimer@redhat.com>
2334
2335         [BZ #21115]
2336         * sunrpc/clnt_udp.c (clntudp_call): Free ancillary data later.
2337         * sunrpc/Makefile (tests): Add tst-udp-error.
2338         (tst-udp-error): Link against libc.so explicitly.
2339         * sunrpc/tst-udp-error: New file.
2340
2341 2017-02-25  Zack Weinberg  <zackw@panix.com>
2342
2343         * sysdeps/generic/math_private.h: Use __BIG_ENDIAN and
2344         __LITTLE_ENDIAN, not BIG_ENDIAN and LITTLE_ENDIAN.
2345
2346         * sysdeps/generic/math_ldbl.h
2347         * sysdeps/ia64/fpu/math_ldbl.h
2348         * sysdeps/ieee754/ldbl-128/math_ldbl.h
2349         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
2350         * sysdeps/ieee754/ldbl-96/math_ldbl.h
2351         * sysdeps/powerpc/fpu/math_ldbl.h
2352         * sysdeps/x86_64/fpu/math_ldbl.h:
2353         Allow direct inclusion.  Use uintNN_t instead of u_intNN_t.
2354         Use __BIG_ENDIAN and __LITTLE_ENDIAN, not BIG_ENDIAN and
2355         LITTLE_ENDIAN.  Include endian.h and/or stdint.h if necessary.
2356         Add copyright notices.
2357
2358         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
2359         Don't use EXTRACT_WORDS64.
2360
2361         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c
2362         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c
2363         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c
2364         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c:
2365         Include math_ldbl.h, not math_private.h.
2366
2367 2017-02-25  Zack Weinberg  <zackw@panix.com>
2368
2369         * include/libc-diag.h: New file.  Define ignore_value,
2370         DIAG_PUSH_NEEDS_COMMENT, DIAG_POP_NEEDS_COMMENT,
2371         DIAG_IGNORE_NEEDS_COMMENT, and DIAG_IGNORE_Os_NEEDS_COMMENT here.
2372
2373         * include/libc-internal.h: Definitions of above macros moved from
2374         here.  Include libc-diag.h.  Add copyright notice.
2375
2376         * malloc/tst-malloc.c, malloc/tst-memcheck.c, malloc/tst-realloc.c
2377         * misc/tst-error1.c, posix/tst-dir.c, stdio-common/bug21.c
2378         * stdio-common/scanf14.c, stdio-common/scanf4.c, stdio-common/scanf7.c
2379         * stdio-common/test-vfprintf.c, stdio-common/tst-printf.c
2380         * stdio-common/tst-printfsz.c, stdio-common/tst-sprintf.c
2381         * stdio-common/tst-unlockedio.c, stdio-common/tstdiomisc.c
2382         * stdlib/bug-getcontext.c, string/tester.c, string/tst-endian.c
2383         * time/tst-strptime2.c, wcsmbs/tst-wcstof.c:
2384         Include libc-diag.h instead of libc-internal.h.
2385
2386         * stdlib/tst-environ.c: Include libc-diag.h.  Suppress -Wnonnull for
2387         call to unsetenv (NULL).
2388         * nptl/tst-mutex1.c: Include libc-diag.h.  Suppress -Wnonnull for
2389         call to pthread_mutexattr_destroy (NULL).
2390
2391 2017-02-25  Zack Weinberg  <zackw@panix.com>
2392
2393         * include/features.h (__GLIBC_USE_DEPRECATED_GETS): New macro.
2394         * libio/stdio.h, libio/bits/stdio2.h: Condition gets on
2395         __GLIBC_USE (DEPRECATED_GETS).  Update comments to indicate
2396         gets was removed from C++ in C++14.
2397         * include/stdio.h: Remove redundant declaration of gets.
2398         * debug/tst-chk1.c, stdio-common/tst-gets.c: Force gets to
2399         be declared, since we are testing it.
2400         * stdio-common/Makefile (tst-gets.c): Compile with
2401         -Wno-deprecated-declarations.
2402         * debug/Makefile (tst-chk1.c, tst-chk2.c, tst-chk3.c, tst-chk4.cc)
2403         (tst-chk5.cc, tst-chk6.cc, tst-lfschk1.c, tst-lfschk2.c)
2404         (tst-lfschk3.c, tst-lfschk4.cc, tst-lfschk5.cc, tst-lfschk6.cc):
2405         Compile with -Wno-deprecated-declarations.
2406
2407 2017-02-24  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2408
2409         * math/libm-test-support.c (check_ulp): Use LIT() around literal
2410         numbers.
2411
2412 2017-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2413
2414         * resolv/tst-resolv-qtypes.c (domain):
2415         Change type to const pointer to const char.
2416
2417 2017-02-24  Joseph Myers  <joseph@codesourcery.com>
2418
2419         * math/Makefile (libm-tests-generated): Remove variable.
2420         (libm-tests-base-normal): New variable.
2421         (libm-tests-base-finite): Likewise.
2422         (libm-tests-base-inline): Likewise.
2423         (libm-tests-base): Likewise.
2424         (libm-tests-normal): Likewise.
2425         (libm-tests-finite): Likewise.
2426         (libm-tests-inline): Likewise.
2427         (libm-tests-vector): Likewise.
2428         (libm-tests): Define in terms of these new variables.
2429         (libm-tests-for-type): New variable.
2430         (libm-tests.o): Move definition.
2431         (tests): Move addition of $(libm-tests).
2432         (generated): Update for new and removed libm test files.
2433         ($(objpfx)libm-test.c): Remove target.
2434         ($(objpfx)libm-have-vector-test.h): Likewise.
2435         (CFLAGS-test-double-vlen2.c): Remove variable.
2436         (CFLAGS-test-double-vlen4.c): Likewise.
2437         (CFLAGS-test-double-vlen8.c): Likewise.
2438         (CFLAGS-test-float-vlen4.c): Likewise.
2439         (CFLAGS-test-float-vlen8.c): Likewise.
2440         (CFLAGS-test-float-vlen16.c): Likewise.
2441         (CFLAGS-test-float.c): Likewise.
2442         (CFLAGS-test-float-finite.c): Likewise.
2443         (CFLAGS-libm-test-support-float.c): Likewise.
2444         (CFLAGS-test-double.c): Likewise.
2445         (CFLAGS-test-double-finite.c): Likewise.
2446         (CFLAGS-libm-test-support-double.c): Likewise.
2447         (CFLAGS-test-ldouble.c): Likewise.
2448         (CFLAGS-test-ldouble-finite.c): Likewise.
2449         (CFLAGS-libm-test-support-ldouble.c): Likewise.
2450         (libm-test-inline-cflags): New variable.
2451         (CFLAGS-test-ifloat.c): Remove variable.
2452         (CFLAGS-test-idouble.c): Likewise.
2453         (CFLAGS-test-ildouble.c): Likewise.
2454         ($(addprefix $(objpfx), $(libm-tests.o))): Move target and update
2455         dependencies.
2456         ($(foreach t,$(libm-tests-normal),$(objpfx)$(t).c)): New rule.
2457         ($(foreach t,$(libm-tests-finite),$(objpfx)$(t).c)): Likewise.
2458         ($(foreach t,$(libm-tests-inline),$(objpfx)$(t).c)): Likewise.
2459         ($(foreach t,$(libm-tests-vector),$(objpfx)$(t).c)): Likewise.
2460         ($(foreach t,$(types),$(objpfx)libm-test-support-$(t).c)):
2461         Likewise.
2462         (dependencies on libm-test-support-*.o): Remove.
2463         ($(foreach f,$(libm-test-funcs-all),$(objpfx)$(o)-$(f).o)): New
2464         rules using iterators.
2465         ($(addprefix $(objpfx),$(call libm-tests-for-type,$(o)))):
2466         Likewise.
2467         ($(objpfx)libm-test-support-$(o).o): Likewise.
2468         ($(addprefix $(objpfx),$(filter-out $(tests-static)
2469         $(libm-vec-tests),$(tests)))): Filter out $(libm-tests-vector)
2470         instead.
2471         ($(addprefix $(objpfx), $(libm-vec-tests))): Use iterator to
2472         define rule instead.
2473         * math/README.libm-test: Update.
2474         * math/libm-test-acos.inc: Include libm-test-driver.c.
2475         (do_test): New function.
2476         * math/libm-test-acosh.inc: Include libm-test-driver.c.
2477         (do_test): New function.
2478         * math/libm-test-asin.inc: Include libm-test-driver.c.
2479         (do_test): New function.
2480         * math/libm-test-asinh.inc: Include libm-test-driver.c.
2481         (do_test): New function.
2482         * math/libm-test-atan.inc: Include libm-test-driver.c.
2483         (do_test): New function.
2484         * math/libm-test-atan2.inc: Include libm-test-driver.c.
2485         (do_test): New function.
2486         * math/libm-test-atanh.inc: Include libm-test-driver.c.
2487         (do_test): New function.
2488         * math/libm-test-cabs.inc: Include libm-test-driver.c.
2489         (do_test): New function.
2490         * math/libm-test-cacos.inc: Include libm-test-driver.c.
2491         (do_test): New function.
2492         * math/libm-test-cacosh.inc: Include libm-test-driver.c.
2493         (do_test): New function.
2494         * math/libm-test-canonicalize.inc: Include libm-test-driver.c.
2495         (do_test): New function.
2496         * math/libm-test-carg.inc: Include libm-test-driver.c.
2497         (do_test): New function.
2498         * math/libm-test-casin.inc: Include libm-test-driver.c.
2499         (do_test): New function.
2500         * math/libm-test-casinh.inc: Include libm-test-driver.c.
2501         (do_test): New function.
2502         * math/libm-test-catan.inc: Include libm-test-driver.c.
2503         (do_test): New function.
2504         * math/libm-test-catanh.inc: Include libm-test-driver.c.
2505         (do_test): New function.
2506         * math/libm-test-cbrt.inc: Include libm-test-driver.c.
2507         (do_test): New function.
2508         * math/libm-test-ccos.inc: Include libm-test-driver.c.
2509         (do_test): New function.
2510         * math/libm-test-ccosh.inc: Include libm-test-driver.c.
2511         (do_test): New function.
2512         * math/libm-test-ceil.inc: Include libm-test-driver.c.
2513         (do_test): New function.
2514         * math/libm-test-cexp.inc: Include libm-test-driver.c.
2515         (do_test): New function.
2516         * math/libm-test-cimag.inc: Include libm-test-driver.c.
2517         (do_test): New function.
2518         * math/libm-test-clog.inc: Include libm-test-driver.c.
2519         (do_test): New function.
2520         * math/libm-test-clog10.inc: Include libm-test-driver.c.
2521         (do_test): New function.
2522         * math/libm-test-conj.inc: Include libm-test-driver.c.
2523         (do_test): New function.
2524         * math/libm-test-copysign.inc: Include libm-test-driver.c.
2525         (do_test): New function.
2526         * math/libm-test-cos.inc: Include libm-test-driver.c.
2527         (do_test): New function.
2528         * math/libm-test-cosh.inc: Include libm-test-driver.c.
2529         (do_test): New function.
2530         * math/libm-test-cpow.inc: Include libm-test-driver.c.
2531         (do_test): New function.
2532         * math/libm-test-cproj.inc: Include libm-test-driver.c.
2533         (do_test): New function.
2534         * math/libm-test-creal.inc: Include libm-test-driver.c.
2535         (do_test): New function.
2536         * math/libm-test-csin.inc: Include libm-test-driver.c.
2537         (do_test): New function.
2538         * math/libm-test-csinh.inc: Include libm-test-driver.c.
2539         (do_test): New function.
2540         * math/libm-test-csqrt.inc: Include libm-test-driver.c.
2541         (do_test): New function.
2542         * math/libm-test-ctan.inc: Include libm-test-driver.c.
2543         (do_test): New function.
2544         * math/libm-test-ctanh.inc: Include libm-test-driver.c.
2545         (do_test): New function.
2546         * math/libm-test-erf.inc: Include libm-test-driver.c.
2547         (do_test): New function.
2548         * math/libm-test-erfc.inc: Include libm-test-driver.c.
2549         (do_test): New function.
2550         * math/libm-test-exp.inc: Include libm-test-driver.c.
2551         (do_test): New function.
2552         * math/libm-test-exp10.inc: Include libm-test-driver.c.
2553         (do_test): New function.
2554         * math/libm-test-exp2.inc: Include libm-test-driver.c.
2555         (do_test): New function.
2556         * math/libm-test-expm1.inc: Include libm-test-driver.c.
2557         (do_test): New function.
2558         * math/libm-test-fabs.inc: Include libm-test-driver.c.
2559         (do_test): New function.
2560         * math/libm-test-fdim.inc: Include libm-test-driver.c.
2561         (do_test): New function.
2562         * math/libm-test-floor.inc: Include libm-test-driver.c.
2563         (do_test): New function.
2564         * math/libm-test-fma.inc: Include libm-test-driver.c.
2565         (do_test): New function.
2566         * math/libm-test-fmax.inc: Include libm-test-driver.c.
2567         (do_test): New function.
2568         * math/libm-test-fmaxmag.inc: Include libm-test-driver.c.
2569         (do_test): New function.
2570         * math/libm-test-fmin.inc: Include libm-test-driver.c.
2571         (do_test): New function.
2572         * math/libm-test-fminmag.inc: Include libm-test-driver.c.
2573         (do_test): New function.
2574         * math/libm-test-fmod.inc: Include libm-test-driver.c.
2575         (do_test): New function.
2576         * math/libm-test-fpclassify.inc: Include libm-test-driver.c.
2577         (do_test): New function.
2578         * math/libm-test-frexp.inc: Include libm-test-driver.c.
2579         (do_test): New function.
2580         * math/libm-test-fromfp.inc: Include libm-test-driver.c.
2581         (do_test): New function.
2582         * math/libm-test-fromfpx.inc: Include libm-test-driver.c.
2583         (do_test): New function.
2584         * math/libm-test-getpayload.inc: Include libm-test-driver.c.
2585         (do_test): New function.
2586         * math/libm-test-hypot.inc: Include libm-test-driver.c.
2587         (do_test): New function.
2588         * math/libm-test-ilogb.inc: Include libm-test-driver.c.
2589         (do_test): New function.
2590         * math/libm-test-iscanonical.inc: Include libm-test-driver.c.
2591         (do_test): New function.
2592         * math/libm-test-iseqsig.inc: Include libm-test-driver.c.
2593         (do_test): New function.
2594         * math/libm-test-isfinite.inc: Include libm-test-driver.c.
2595         (do_test): New function.
2596         * math/libm-test-isgreater.inc: Include libm-test-driver.c.
2597         (do_test): New function.
2598         * math/libm-test-isgreaterequal.inc: Include libm-test-driver.c.
2599         (do_test): New function.
2600         * math/libm-test-isinf.inc: Include libm-test-driver.c.
2601         (do_test): New function.
2602         * math/libm-test-isless.inc: Include libm-test-driver.c.
2603         (do_test): New function.
2604         * math/libm-test-islessequal.inc: Include libm-test-driver.c.
2605         (do_test): New function.
2606         * math/libm-test-islessgreater.inc: Include libm-test-driver.c.
2607         (do_test): New function.
2608         * math/libm-test-isnan.inc: Include libm-test-driver.c.
2609         (do_test): New function.
2610         * math/libm-test-isnormal.inc: Include libm-test-driver.c.
2611         (do_test): New function.
2612         * math/libm-test-issignaling.inc: Include libm-test-driver.c.
2613         (do_test): New function.
2614         * math/libm-test-issubnormal.inc: Include libm-test-driver.c.
2615         (do_test): New function.
2616         * math/libm-test-isunordered.inc: Include libm-test-driver.c.
2617         (do_test): New function.
2618         * math/libm-test-iszero.inc: Include libm-test-driver.c.
2619         (do_test): New function.
2620         * math/libm-test-j0.inc: Include libm-test-driver.c.
2621         (do_test): New function.
2622         * math/libm-test-j1.inc: Include libm-test-driver.c.
2623         (do_test): New function.
2624         * math/libm-test-jn.inc: Include libm-test-driver.c.
2625         (do_test): New function.
2626         * math/libm-test-lgamma.inc: Include libm-test-driver.c.
2627         (do_test): New function.
2628         * math/libm-test-llogb.inc: Include libm-test-driver.c.
2629         (do_test): New function.
2630         * math/libm-test-llrint.inc: Include libm-test-driver.c.
2631         (do_test): New function.
2632         * math/libm-test-llround.inc: Include libm-test-driver.c.
2633         (do_test): New function.
2634         * math/libm-test-log.inc: Include libm-test-driver.c.
2635         (do_test): New function.
2636         * math/libm-test-log10.inc: Include libm-test-driver.c.
2637         (do_test): New function.
2638         * math/libm-test-log1p.inc: Include libm-test-driver.c.
2639         (do_test): New function.
2640         * math/libm-test-log2.inc: Include libm-test-driver.c.
2641         (do_test): New function.
2642         * math/libm-test-logb.inc: Include libm-test-driver.c.
2643         (do_test): New function.
2644         * math/libm-test-lrint.inc: Include libm-test-driver.c.
2645         (do_test): New function.
2646         * math/libm-test-lround.inc: Include libm-test-driver.c.
2647         (do_test): New function.
2648         * math/libm-test-modf.inc: Include libm-test-driver.c.
2649         (do_test): New function.
2650         * math/libm-test-nearbyint.inc: Include libm-test-driver.c.
2651         (do_test): New function.
2652         * math/libm-test-nextafter.inc: Include libm-test-driver.c.
2653         (do_test): New function.
2654         * math/libm-test-nextdown.inc: Include libm-test-driver.c.
2655         (do_test): New function.
2656         * math/libm-test-nexttoward.inc: Include libm-test-driver.c.
2657         (do_test): New function.
2658         * math/libm-test-nextup.inc: Include libm-test-driver.c.
2659         (do_test): New function.
2660         * math/libm-test-pow.inc: Include libm-test-driver.c.
2661         (do_test): New function.
2662         * math/libm-test-remainder.inc: Include libm-test-driver.c.
2663         (do_test): New function.
2664         * math/libm-test-remquo.inc: Include libm-test-driver.c.
2665         (do_test): New function.
2666         * math/libm-test-rint.inc: Include libm-test-driver.c.
2667         (do_test): New function.
2668         * math/libm-test-round.inc: Include libm-test-driver.c.
2669         (do_test): New function.
2670         * math/libm-test-roundeven.inc: Include libm-test-driver.c.
2671         (do_test): New function.
2672         * math/libm-test-scalb.inc: Include libm-test-driver.c.
2673         (do_test): New function.
2674         * math/libm-test-scalbln.inc: Include libm-test-driver.c.
2675         (do_test): New function.
2676         * math/libm-test-scalbn.inc: Include libm-test-driver.c.
2677         (do_test): New function.
2678         * math/libm-test-setpayload.inc: Include libm-test-driver.c.
2679         (do_test): New function.
2680         * math/libm-test-setpayloadsig.inc: Include libm-test-driver.c.
2681         (do_test): New function.
2682         * math/libm-test-signbit.inc: Include libm-test-driver.c.
2683         (do_test): New function.
2684         * math/libm-test-significand.inc: Include libm-test-driver.c.
2685         (do_test): New function.
2686         * math/libm-test-sin.inc: Include libm-test-driver.c.
2687         (do_test): New function.
2688         * math/libm-test-sincos.inc: Include libm-test-driver.c.
2689         (do_test): New function.
2690         * math/libm-test-sinh.inc: Include libm-test-driver.c.
2691         (do_test): New function.
2692         * math/libm-test-sqrt.inc: Include libm-test-driver.c.
2693         (do_test): New function.
2694         * math/libm-test-tan.inc: Include libm-test-driver.c.
2695         (do_test): New function.
2696         * math/libm-test-tanh.inc: Include libm-test-driver.c.
2697         (do_test): New function.
2698         * math/libm-test-tgamma.inc: Include libm-test-driver.c.
2699         (do_test): New function.
2700         * math/libm-test-totalorder.inc: Include libm-test-driver.c.
2701         (do_test): New function.
2702         * math/libm-test-totalordermag.inc: Include libm-test-driver.c.
2703         (do_test): New function.
2704         * math/libm-test-trunc.inc: Include libm-test-driver.c.
2705         (do_test): New function.
2706         * math/libm-test-ufromfp.inc: Include libm-test-driver.c.
2707         (do_test): New function.
2708         * math/libm-test-ufromfpx.inc: Include libm-test-driver.c.
2709         (do_test): New function.
2710         * math/libm-test-y0.inc: Include libm-test-driver.c.
2711         (do_test): New function.
2712         * math/libm-test-y1.inc: Include libm-test-driver.c.
2713         (do_test): New function.
2714         * math/libm-test-yn.inc: Include libm-test-driver.c.
2715         (do_test): New function.
2716         * math/libm-test-driver.c: Do not include libm-have-vector-test.h.
2717         (HAVE_VECTOR): Remove macro.
2718         (START): Do not call HAVE_VECTOR.
2719         * math/test-double-vlen2.h (FUNC_TEST): Remove macro.
2720         * math/test-double-vlen4.h (FUNC_TEST): Remove macro.
2721         * math/test-double-vlen8.h (FUNC_TEST): Remove macro.
2722         * math/test-float-vlen16.h (FUNC_TEST): Remove macro.
2723         * math/test-float-vlen4.h (FUNC_TEST): Remove macro.
2724         * math/test-float-vlen8.h (FUNC_TEST): Remove macro.
2725         * math/test-math-vector.h (FUNC_TEST): New macro.
2726         (WRAPPER_DECL): Rename to WRAPPER_DECL_f.
2727         * sysdeps/x86_64/fpu/Makefile (double-vlen2-funcs): New variable.
2728         (double-vlen4-funcs): Likewise.
2729         (double-vlen4-avx2-funcs): Likewise.
2730         (double-vlen8-funcs): Likewise.
2731         (float-vlen4-funcs): Likewise.
2732         (float-vlen8-funcs): Likewise.
2733         (float-vlen8-avx2-funcs): Likewise.
2734         (float-vlen16-funcs): Likewise.
2735         (CFLAGS-test-double-vlen4-avx2.c): Remove variable.
2736         (CFLAGS-test-float-vlen8-avx2.c): Likewise.
2737         * sysdeps/x86_64/fpu/test-double-vlen4.h (TEST_VECTOR_cos): Remove
2738         macro.
2739         (TEST_VECTOR_sin): Likewise.
2740         (TEST_VECTOR_sincos): Likewise.
2741         (TEST_VECTOR_log): Likewise.
2742         (TEST_VECTOR_exp): Likewise.
2743         (TEST_VECTOR_pow): Likewise.
2744         * sysdeps/x86_64/fpu/test-double-vlen8.h (TEST_VECTOR_cos):
2745         Likewise.
2746         (TEST_VECTOR_sin): Likewise.
2747         (TEST_VECTOR_sincos): Likewise.
2748         (TEST_VECTOR_log): Likewise.
2749         (TEST_VECTOR_exp): Likewise.
2750         (TEST_VECTOR_pow): Likewise.
2751         * sysdeps/x86_64/fpu/test-float-vlen16.h (TEST_VECTOR_cosf):
2752         Likewise.
2753         (TEST_VECTOR_sinf): Likewise.
2754         (TEST_VECTOR_sincosf): Likewise.
2755         (TEST_VECTOR_logf): Likewise.
2756         (TEST_VECTOR_expf): Likewise.
2757         (TEST_VECTOR_powf): Likewise.
2758         * sysdeps/x86_64/fpu/test-float-vlen8.h (TEST_VECTOR_cosf):
2759         Likewise.
2760         (TEST_VECTOR_sinf): Likewise.
2761         (TEST_VECTOR_sincosf): Likewise.
2762         (TEST_VECTOR_logf): Likewise.
2763         (TEST_VECTOR_expf): Likewise.
2764         (TEST_VECTOR_powf): Likewise.
2765         * math/gen-libm-have-vector-test.sh: Remove file.
2766         * math/libm-test.inc: Likewise.
2767         * math/libm-test-support-double.c: Likewise.
2768         * math/libm-test-support-float.c: Likewise.
2769         * math/libm-test-support-ldouble.c: Likewise.
2770         * math/test-double-finite.c: Likewise.: Likewise.
2771         * math/test-double.c: Likewise.
2772         * math/test-float-finite.c: Likewise.
2773         * math/test-float.c: Likewise.
2774         * math/test-idouble.c: Likewise.
2775         * math/test-ifloat.c: Likewise.
2776         * math/test-ildouble.c: Likewise.
2777         * math/test-ldouble-finite.c: Likewise.
2778         * math/test-ldouble.c: Likewise.
2779         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
2780         * sysdeps/x86_64/fpu/test-double-vlen2.h: Likewise.
2781         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
2782         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
2783         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
2784         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
2785         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
2786         * sysdeps/x86_64/fpu/test-float-vlen4.h: Likewise.
2787         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
2788         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
2789
2790 2017-02-23 Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2791            Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2792
2793         * math/Makefile: Add wrappers to gen-libm-calls.
2794         * math/w_acos_template.c: New file.
2795         * math/w_acosh_template.c: Likewise.
2796         * math/w_asin_template.c: Likewise.
2797         * math/w_atan2_template.c: Likewise.
2798         * math/w_atanh_template.c: Likewise.
2799         * math/w_cosh_template.c: Likewise.
2800         * math/w_exp10_template.c: Likewise.
2801         * math/w_exp2_template.c: Likewise.
2802         * math/w_exp_template.c: Likewise.
2803         * math/w_fmod_template.c: Likewise.
2804         * math/w_hypot_template.c: Likewise.
2805         * math/w_j0_template.c: Likewise.
2806         * math/w_j1_template.c: Likewise.
2807         * math/w_jn_template.c: Likewise.
2808         * math/w_lgamma_r_template.c: Likewise.
2809         * math/w_lgamma_template.c: Likewise.
2810         * math/w_log10_template.c: Likewise.
2811         * math/w_log2_template.c: Likewise.
2812         * math/w_log_template.c: Likewise.
2813         * math/w_pow_template.c: Likewise.
2814         * math/w_remainder_template.c: Likewise.
2815         * math/w_sinh_template.c: Likewise.
2816         * math/w_sqrt_template.c: Likewise.
2817         * math/w_tgamma_template.c: Likewise.: Likewise.
2818         * sysdeps/generic/math-type-macros-double.h
2819         (__USE_WRAPPER_TEMPLATE): New macro to control inclusion of
2820         the new wrappers.
2821         * sysdeps/generic/math-type-macros-float.h: Likewise.
2822         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
2823
2824 2017-02-22  Joseph Myers  <joseph@codesourcery.com>
2825
2826         * sysdeps/unix/sysv/linux/sys/timerfd.h (TFD_TIMER_CANCEL_ON_SET):
2827         New enum constant and macro.
2828
2829         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2830         kernel version to 4.10.
2831
2832 2017-02-21  Joseph Myers  <joseph@codesourcery.com>
2833
2834         * sysdeps/unix/sysv/linux/bits/in.h (IP_RECVFRAGSIZE): New macro.
2835
2836 2017-02-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2837
2838         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2839
2840 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2841
2842         * sysdeps/powerpc/tst-set_ppr.c: New file.
2843         Implement test cases for __ppc_set_ppr_* functions.
2844         * sysdeps/powerpc/Makefile ($(subdir),misc): Add tst-set_ppr
2845         in the list of tests.
2846
2847 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2848
2849         * sysdeps/powerpc/test-get_hwcap.c: Use <support/test-driver.c>
2850         instead of test-skeleton.c.
2851         (do_test): Replaced pthread_create and pthread_join with
2852         xpthread_create and xpthread_join.  Use TEST_VERIFY_EXIT macro.
2853         Removed unneeded status variable.
2854         * sysdeps/powerpc/test-gettimebase.c: Use <support/test-driver.c>
2855         instead of test-skeleton.c.
2856         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Likewise.
2857
2858 2017-02-20  Mike FABIAN  <mfabian@redhat.com>
2859
2860         [BZ #20313]
2861         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
2862         201605L, for Unicode 9.
2863
2864 2017-02-20  Joseph Myers  <joseph@codesourcery.com>
2865
2866         * math/libm-test-support.h (EXCEPTIONS_OK): Remove macro.
2867         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
2868         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
2869         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
2870         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
2871         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
2872
2873 2017-02-19  Zack Weinberg  <zackw@panix.com>
2874
2875         * rt/tst-mqueue4.c: Include stdint.h.
2876
2877 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
2878
2879         * sysdeps/arm/libm-test-ulps: Update.
2880         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
2881         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2882         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
2883
2884 2017-01-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2885
2886         [BZ #21029]
2887         * config.h.in [CAN_USE_REGISTER_ASM_EBP]: New define.
2888         * sysdeps/unix/sysv/linux/i386/Makefile
2889         [$(subdir) = elf] (sysdep-dl-routines): Add libc-do-syscall.
2890         (uses-6-syscall-arguments): Remove.
2891         [$(subdir) = misc] (CFLAGS-epoll_pwait.o): Likewise.
2892         [$(subdir) = misc] (CFLAGS-epoll_pwait.os): Likewise.
2893         [$(subdir) = misc] (CFLAGS-mmap.o): Likewise.
2894         [$(subdir) = misc] (CFLAGS-mmap.os): Likewise.
2895         [$(subdir) = misc] (CFLAGS-mmap64.o): Likewise.
2896         [$(subdir) = misc] (CFLAGS-mmap64.os): Likewise.
2897         [$(subdir) = misc] (CFLAGS-pselect.o): Likewise.
2898         [$(subdir) = misc] (cflags-pselect.o): Likewise.
2899         [$(subdir) = misc] (cflags-pselect.os): Likewise.
2900         [$(subdir) = misc] (cflags-rtld-mmap.os): Likewise.
2901         [$(subdir) = sysvipc] (cflags-semtimedop.o): Likewise.
2902         [$(subdir) = sysvipc] (cflags-semtimedop.os): Likewise.
2903         [$(subdir) = io] (CFLAGS-posix_fadvise64.o): Likewise.
2904         [$(subdir) = io] (CFLAGS-posix_fadvise64.os): Likewise.
2905         [$(subdir) = io] (CFLAGS-posix_fallocate.o): Likewise.
2906         [$(subdir) = io] (CFLAGS-posix_fallocate.os): Likewise.
2907         [$(subdir) = io] (CFLAGS-posix_fallocate64.o): Likewise.
2908         [$(subdir) = io] (CFLAGS-posix_fallocate64.os): Likewise.
2909         [$(subdir) = io] (CFLAGS-sync_file_range.o): Likewise.
2910         [$(subdir) = io] (CFLAGS-sync_file_range.os): Likewise.
2911         [$(subdir) = io] (CFLAGS-fallocate.o): Likewise.
2912         [$(subdir) = io] (CFLAGS-fallocate.os): Likewise.
2913         [$(subdir) = io] (CFLAGS-fallocate64.o): Likewise.
2914         [$(subdir) = io] (CFLAGS-fallocate64.os): Likewise.
2915         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o):
2916         Likewise.
2917         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.os):
2918         Likewise.
2919         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.o):
2920         Likewise.
2921         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.os):
2922         Likewise.
2923         [$(subdir) = nptl] (CFLAGS-sem_wait.o): Likewise.
2924         [$(subdir) = nptl] (CFLAGS-sem_wait.os): Likewise.
2925         [$(subdir) = nptl] (CFLAGS-sem_timedwait.o): Likewise.
2926         [$(subdir) = nptl] (CFLAGS-sem_timedwait.os): Likewise.
2927         * sysdeps/unix/sysv/linux/i386/configure.ac: Add check if compiler allows
2928         ebp on inline assembly.
2929         * sysdeps/unix/sysv/linux/i386/configure: Regenerate.
2930         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
2931         Set if CAN_USE_REGISTER_ASM_EBP is set.
2932
2933 2017-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2934
2935         * sysdeps/x86/cpu-features.c (init_cpu_features): Use
2936         index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
2937
2938 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
2939
2940         * math/auto-libm-test-in: Add tests of catan and catanh.
2941         * math/auto-libm-test-out-catan: New generated file.
2942         * math/auto-libm-test-out-catanh: Likewise.
2943         * math/libm-test-catan.inc (catan_test_data): Use AUTO_TESTS_c_c.
2944         Move tests with finite inputs, except divide-by-zero cases, to
2945         auto-libm-test-in.
2946         * math/libm-test-catanh.inc (catanh_test_data): Likewise.
2947         * math/Makefile (libm-test-funcs-auto): Add catan and catanh.
2948         (libm-test-funcs-noauto): Remove catan and catanh.
2949         * sysdeps/i386/fpu/libm-test-ulps: Update.
2950         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2952
2953         * math/auto-libm-test-in: Add tests of casin and casinh.
2954         * math/auto-libm-test-out-casin: New generated file.
2955         * math/auto-libm-test-out-casinh: Likewise.
2956         * math/libm-test-casin.inc (casin_test_data): Use AUTO_TESTS_c_c.
2957         Move tests with finite inputs to auto-libm-test-in.
2958         * math/libm-test-casinh.inc (casinh_test_data): Likewise.
2959         * math/Makefile (libm-test-funcs-auto): Add casin and casinh.
2960         (libm-test-funcs-noauto): Remove casin and casinh.
2961         * sysdeps/i386/fpu/libm-test-ulps: Update.
2962         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2964
2965         * math/auto-libm-test-in: Add tests of cacos and cacosh.
2966         * math/auto-libm-test-out-cacos: New generated file.
2967         * math/auto-libm-test-out-cacosh: Likewise.
2968         * math/libm-test-cacos.inc (cacos_test_data): Use AUTO_TESTS_c_c.
2969         Move tests with finite inputs to auto-libm-test-in.
2970         * math/libm-test-cacosh.inc (cacosh_test_data): Likewise.
2971         * math/Makefile (libm-test-funcs-auto): Add cacos and cacosh.
2972         (libm-test-funcs-noauto): Remove cacos and cacosh.
2973         * sysdeps/i386/fpu/libm-test-ulps: Update.
2974         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2976
2977         Revert:
2978         2017-02-16  Zack Weinberg  <zackw@panix.com>
2979
2980         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
2981         Don't include init-arch.h.
2982         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
2983         Don't include init-arch.h.
2984
2985 2017-02-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2986
2987         [BZ #21171]
2988         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Return
2989         +Inf and raise divide-by-zero when x is negative.
2990         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise.
2991         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Likewise.
2992         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10):  Return
2993         -Inf and raise divide-by-zero when x = +-0.
2994         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
2995         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
2996         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
2997         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2998         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
2999         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3000         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3001
3002 2017-02-16  Zack Weinberg  <zackw@panix.com>
3003
3004         * scripts/build-many-glibcs.py (bot_build_mail): If the
3005         bot_config does not contain all of the necessary email-
3006         related settings, just print a warning and continue.
3007
3008 2017-02-16  Zack Weinberg  <zackw@panix.com>
3009
3010         * crypt/md5.h: Test _LIBC with #if defined, not #if.
3011         * dirent/opendir-tst1.c: Include sys/stat.h.
3012         * dirent/tst-fdopendir.c: Include sys/stat.h.
3013         * dirent/tst-fdopendir2.c: Include stdlib.h.
3014         * dirent/tst-scandir.c: Include stdbool.h.
3015         * elf/tst-auditmod1.c: Include link.h and stddef.h.
3016         * elf/tst-tls15.c: Include stdlib.h.
3017         * elf/tst-tls16.c: Include stdlib.h.
3018         * elf/tst-tls17.c: Include stdlib.h.
3019         * elf/tst-tls18.c: Include stdlib.h.
3020         * iconv/tst-iconv6.c: Include endian.h.
3021         * iconvdata/bug-iconv11.c: Include limits.h.
3022         * io/test-utime.c: Include stdint.h.
3023         * io/tst-faccessat.c: Include sys/stat.h.
3024         * io/tst-fchmodat.c: Include sys/stat.h.
3025         * io/tst-fchownat.c: Include sys/stat.h.
3026         * io/tst-fstatat.c: Include sys/stat.h.
3027         * io/tst-futimesat.c: Include sys/stat.h.
3028         * io/tst-linkat.c: Include sys/stat.h.
3029         * io/tst-mkdirat.c: Include sys/stat.h and stdbool.h.
3030         * io/tst-mkfifoat.c: Include sys/stat.h and stdbool.h.
3031         * io/tst-mknodat.c: Include sys/stat.h and stdbool.h.
3032         * io/tst-openat.c: Include stdbool.h.
3033         * io/tst-readlinkat.c: Include sys/stat.h.
3034         * io/tst-renameat.c: Include sys/stat.h.
3035         * io/tst-symlinkat.c: Include sys/stat.h.
3036         * io/tst-unlinkat.c: Include stdbool.h.
3037         * libio/bug-memstream1.c: Include stdlib.h.
3038         * libio/bug-wmemstream1.c: Include stdlib.h.
3039         * libio/tst-fwrite-error.c: Include stdlib.h.
3040         * libio/tst-memstream1.c: Include stdlib.h.
3041         * libio/tst-memstream2.c: Include stdlib.h.
3042         * libio/tst-memstream3.c: Include stdlib.h.
3043         * malloc/tst-interpose-aux.c: Include stdint.h.
3044         * misc/tst-preadvwritev-common.c: Include sys/stat.h.
3045         * nptl/tst-basic7.c: Include limits.h.
3046         * nptl/tst-cancel25.c: Include pthread.h, not pthreadP.h.
3047         * nptl/tst-cancel4.c: Include stddef.h, limits.h, and sys/stat.h.
3048         * nptl/tst-cancel4_1.c: Include stddef.h.
3049         * nptl/tst-cancel4_2.c: Include stddef.h.
3050         * nptl/tst-cond16.c: Include limits.h.
3051         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
3052         * nptl/tst-cond18.c: Include limits.h.
3053         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
3054         * nptl/tst-cond4.c: Include stdint.h.
3055         * nptl/tst-cond6.c: Include stdint.h.
3056         * nptl/tst-stack2.c: Include limits.h.
3057         * nptl/tst-stackguard1.c: Include stddef.h.
3058         * nptl/tst-tls4.c: Include stdint.h. Don't include tls.h.
3059         * nptl/tst-tls4moda.c: Include stddef.h.
3060         Don't include stdio.h, unistd.h, or tls.h.
3061         * nptl/tst-tls4modb.c: Include stddef.h.
3062         Don't include stdio.h, unistd.h, or tls.h.
3063         * nptl/tst-tls5.h: Include stddef.h. Don't include stdlib.h or tls.h.
3064         * posix/tst-getaddrinfo2.c: Include stdio.h.
3065         * posix/tst-getaddrinfo5.c: Include stdio.h.
3066         * posix/tst-pathconf.c: Include sys/stat.h.
3067         * posix/tst-posix_fadvise-common.c: Include stdint.h.
3068         * posix/tst-preadwrite-common.c: Include sys/stat.h.
3069         * posix/tst-regex.c: Include stdint.h.
3070         Don't include spawn.h or spawn_int.h.
3071         * posix/tst-regexloc.c: Don't include spawn.h or spawn_int.h.
3072         * posix/tst-vfork3.c: Include sys/stat.h.
3073         * resolv/tst-bug18665-tcp.c: Include stdlib.h.
3074         * resolv/tst-res_hconf_reorder.c: Include stdlib.h.
3075         * resolv/tst-resolv-search.c: Include stdlib.h.
3076         * stdio-common/tst-fmemopen2.c: Include stdint.h.
3077         * stdio-common/tst-vfprintf-width-prec.c: Include stdlib.h.
3078         * stdlib/test-canon.c: Include sys/stat.h.
3079         * stdlib/tst-tls-atexit.c: Include stdbool.h.
3080         * string/test-memchr.c: Include stdint.h.
3081         * string/tst-cmp.c: Include stdint.h.
3082         * sysdeps/pthread/tst-timer.c: Include stdint.h.
3083         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Include stdint.h.
3084         * sysdeps/wordsize-64/tst-writev.c: Include limits.h and stdint.h.
3085         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
3086         Don't include init-arch.h.
3087         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
3088         Don't include init-arch.h.
3089         * sysdeps/x86_64/tst-auditmod10b.c: Include link.h and stddef.h.
3090         * sysdeps/x86_64/tst-auditmod3b.c: Include link.h and stddef.h.
3091         * sysdeps/x86_64/tst-auditmod4b.c: Include link.h and stddef.h.
3092         * sysdeps/x86_64/tst-auditmod5b.c: Include link.h and stddef.h.
3093         * sysdeps/x86_64/tst-auditmod6b.c: Include link.h and stddef.h.
3094         * sysdeps/x86_64/tst-auditmod6c.c: Include link.h and stddef.h.
3095         * sysdeps/x86_64/tst-auditmod7b.c: Include link.h and stddef.h.
3096         * time/clocktest.c: Include stdint.h.
3097         * time/tst-posixtz.c: Include stdint.h.
3098         * timezone/tst-timezone.c: Include stdint.h.
3099
3100 2017-02-16  Zack Weinberg  <zackw@panix.com>
3101
3102         * string/string.h [__USE_MISC]: Include strings.h.
3103         (__bzero, bcmp, bcopy, bzero, index, rindex)
3104         (strcasecmp, strncasecmp, strcasecmp_l, strncasecmp_l)
3105         (ffs, ffsl, ffsll): Don't declare.
3106         * string/strings.h: Do not suppress the file if string.h has
3107         already been included.
3108         (bcmp, bcopy, bzero, strcasecmp, strncasecmp): Add __nonnull
3109         annotations.
3110         (index, rindex): Define inline forwarders even if
3111         __CORRECT_ISO_CPP_STRING_H_PROTO is defined.
3112         (ffs): Use __attribute_const__.
3113         (ffsl, ffsll): Declare here.
3114         (strcasecmp_l, strncasecmp_l): Correct comments; these functions
3115         have now been standardized.
3116         * include/string.h (__bzero): Declare here.
3117
3118         * bits/types.h: Move to posix/bits.
3119         * include/bits/types.h: New wrapper.
3120
3121 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3122
3123         * string/bits/string2.h (strcmp): Remove define.
3124         (__strcmp_cg): Likewise.
3125         (strncmp): Likewise.
3126
3127 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3128
3129         * include/string.h: Add __cplusplus check.
3130
3131 2017-02-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3132
3133         [BZ #21134]
3134         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise the
3135         "divide by zero" exception when the input is zero.
3136         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y1): Likewise.
3137         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
3138         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
3139         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Likewise.
3140         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3141
3142 2017-02-15  Joseph Myers  <joseph@codesourcery.com>
3143
3144         * sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to,
3145         and include ...
3146         * sysdeps/x86_64/fpu/test-double-vlen2.h: ... here.  New file.
3147         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents
3148         to, and include ...
3149         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here.  New
3150         file.
3151         * sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to,
3152         and include ...
3153         * sysdeps/x86_64/fpu/test-double-vlen4.h: ... here.  New file.
3154         * sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to,
3155         and include ...
3156         * sysdeps/x86_64/fpu/test-double-vlen8.h: ... here.  New file.
3157         * sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to,
3158         and include ...
3159         * sysdeps/x86_64/fpu/test-float-vlen16.h: ... here.  New file.
3160         * sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to,
3161         and include ...
3162         * sysdeps/x86_64/fpu/test-float-vlen4.h: ... here.  New file.
3163         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents
3164         to, and include ...
3165         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here.  New file.
3166         * sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to,
3167         and include ...
3168         * sysdeps/x86_64/fpu/test-float-vlen8.h: ... here.  New file.
3169
3170 2017-02-14  Joseph Myers  <joseph@codesourcery.com>
3171
3172         * math/libm-test-support.h: Do not include <math-tests-arch.h>
3173         here.
3174         * math/libm-test-support.c (libm_test_init): Do not call
3175         INIT_ARCH_EXT here.
3176         * math/libm-test-driver.c: Include <math-tests-arch.h>.
3177         (main): Call INIT_ARCH_EXT.
3178
3179 2017-02-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3180
3181         [BZ #21130]
3182         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Return NAN
3183         with the "invalid" exception raised when x is -Inf.
3184         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3185
3186 2017-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
3187
3188         * string/bits/string2.h (strchr): Remove define.
3189
3190 2017-02-09  H.J. Lu  <hongjiu.lu@intel.com>
3191
3192         * sysdeps/x86_64/Makefile (tests): Add tst-sse, tst-avx and
3193         tst-avx512.
3194         (test-extras): Add tst-avx-aux and tst-avx512-aux.
3195         (extra-test-objs): Add tst-avx-aux.o and tst-avx512-aux.o.
3196         (modules-names): Add tst-ssemod, tst-avxmod and tst-avx512mod.
3197         ($(objpfx)tst-sse): New rule.
3198         ($(objpfx)tst-avx): Likewise.
3199         ($(objpfx)tst-avx512): Likewise.
3200         (CFLAGS-tst-avx-aux.c): New.
3201         (CFLAGS-tst-avxmod.c): Likewise.
3202         (CFLAGS-tst-avx512-aux.c): Likewise.
3203         (CFLAGS-tst-avx512mod.c): Likewise.
3204         * sysdeps/x86_64/tst-avx-aux.c: New file.
3205         * sysdeps/x86_64/tst-avx.c: Likewise.
3206         * sysdeps/x86_64/tst-avx512-aux.c: Likewise.
3207         * sysdeps/x86_64/tst-avx512.c: Likewise.
3208         * sysdeps/x86_64/tst-avx512mod.c: Likewise.
3209         * sysdeps/x86_64/tst-avxmod.c: Likewise.
3210         * sysdeps/x86_64/tst-sse.c: Likewise.
3211         * sysdeps/x86_64/tst-ssemod.c: Likewise.
3212
3213 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3214
3215         * math/auto-libm-test-in: Add more tests of csin and csinh.
3216         * math/auto-libm-test-out-csin: Regenerated.
3217         * math/auto-libm-test-out-csinh: Likewise.
3218         * math/libm-test-csin.inc (csin_test_data): Remove tests moved to
3219         auto-libm-test-in.
3220         * math/libm-test-csinh.inc (csinh_test_data): Likewise.
3221
3222 2017-02-09  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3223
3224         * math/Makefile (libm-compat-calls-ldouble-yes): Merge into
3225         libm-compat-calls-auto.
3226         (libm-compat-calls): Likewise.
3227         (libm-compat-calls-auto): Rename to libm-compat-calls and add
3228         w_lgamma_compatF and k_standardF (merged from the items above).
3229         (libm-routines): Use libm-compat-calls, instead of
3230         libm-compat-calls-auto, with type-foreach.
3231
3232 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3233
3234         * math/test-math-inline.h (__LIBC_INTERNAL_MATH_INLINES): Undefine
3235         macro.
3236         * math/Makefile (CPPFLAGS-test-ifloat.c): Rename to ...
3237         (CFLAGS-test-ifloat.c): ... this.  Remove
3238         -U__LIBC_INTERNAL_MATH_INLINES.
3239         * math/Makefile (CPPFLAGS-test-idouble.c): Rename to ...
3240         (CFLAGS-test-idouble.c): ... this.  Remove
3241         -U__LIBC_INTERNAL_MATH_INLINES.
3242         * math/Makefile (CPPFLAGS-test-ildouble.c): Rename to ...
3243         (CFLAGS-test-ildouble.c): ... this.  Remove
3244         -U__LIBC_INTERNAL_MATH_INLINES.
3245
3246 2017-02-08  Joseph Myers  <joseph@codesourcery.com>
3247
3248         * math/libm-test-support.c: New file.  Content from
3249         math/libm-test-driver.c.
3250         * math/libm-test-support.h: Likewise.
3251         * math/libm-test-support-double.c: New file.
3252         * math/libm-test-support-float.c: Likewise.
3253         * math/libm-test-support-ldouble.c: Likewise.
3254         * math/libm-test-driver.c: Remove main comment and header
3255         includes.  Include libm-test-support.h.
3256         [!_GNU_SOURCE] (_GNU_SOURCE): Do not define.
3257         (flag_test_errno): Remove static.
3258         (flag_test_exceptions): Likewise.
3259         (flag_test_finite): Likewise.
3260         (flag_test_inline): Likewise.
3261         (flag_test_mathvec): Likewise.
3262         (test_msg): Likewise.
3263         (NO_EXCEPTION): Remove.
3264         (INVALID_EXCEPTION): Likewise.
3265         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
3266         (OVERFLOW_EXCEPTION): Likewise.
3267         (UNDERFLOW_EXCEPTION): Likewise.
3268         (INEXACT_EXCEPTION): Likewise.
3269         (INVALID_EXCEPTION_OK): Likewise.
3270         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3271         (OVERFLOW_EXCEPTION_OK): Likewise.
3272         (UNDERFLOW_EXCEPTION_OK): Likewise.
3273         (NO_INEXACT_EXCEPTION): Likewise.
3274         (EXCEPTIONS_OK): Likewise.
3275         (IGNORE_ZERO_INF_SIGN): Likewise.
3276         (TEST_NAN_SIGN): Likewise.
3277         (TEST_NAN_PAYLOAD): Likewise.
3278         (NO_TEST_INLINE): Likewise.
3279         (XFAIL_TEST): Likewise.
3280         (ERRNO_UNCHANGED): Likewise.
3281         (ERRNO_EDOM): Likewise.
3282         (ERRNO_ERANGE): Likewise.
3283         (IGNORE_RESULT): Likewise.
3284         (NON_FINITE): Likewise.
3285         (TEST_SNAN): Likewise.
3286         (NO_TEST_MATHVEC): Likewise.
3287         (__CONCATX): Likewise.
3288         (TYPE_MIN): Likewise.
3289         (TYPE_TRUE_MIN): Likewise.
3290         (TYPE_MAX): Likewise.
3291         (MIN_EXP): Likewise.
3292         (MAX_EXP): Likewise.
3293         (MANT_DIG): Likewise.
3294         (FSTR_MAX): Likewise.
3295         (ulp_idx): Likewise.
3296         (qtype_str): Remove static.
3297         (TEST_COND_binary32): Remove.
3298         (TEST_COND_binary64): Likewise.
3299         (TEST_COND_binary128): Likewise.
3300         (TEST_COND_ibm128): Likewise.
3301         (TEST_COND_intel96): Likewise.
3302         (TEST_COND_m68k96): Likewise.
3303         (TEST_COND_ibm128_libgcc): Likewise.
3304         (XFAIL_IBM128_LIBGCC): Likewise.
3305         (PAYLOAD_DIG): Likewise.
3306         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3307         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3308         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3309         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
3310         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3311         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
3312         (TEST_COND_long32): Likewise.
3313         (TEST_COND_long64): Likewise.
3314         (TEST_COND_before_rounding): Likewise.
3315         (TEST_COND_after_rounding): Likewise.
3316         (ulps_file_name): Likewise.
3317         (ulps_file): Likewise.
3318         (output_ulps): Likewise.
3319         (output_dir): Likewise.
3320         (noErrors): Likewise.
3321         (noTests): Likewise.
3322         (noExcTests): Likewise.
3323         (noErrnoTests): Likewise.
3324         (verbose): Likewise.
3325         (output_max_error): Likewise.
3326         (output_points): Likewise.
3327         (ignore_max_ulp): Likewise.
3328         (max_error): Likewise.
3329         (real_max_error): Likewise.
3330         (imag_max_error): Likewise.
3331         (prev_max_error): Likewise.
3332         (prev_real_max_error): Likewise.
3333         (prev_imag_max_error): Likewise.
3334         (max_valid_error): Likewise.
3335         (TYPE_DECIMAL_DIG): Likewise.
3336         (TYPE_HEX_DIG): Likewise.
3337         (fmt_ftostr): Likewise.
3338         (compare_ulp_data): Likewise.
3339         (find_ulps): Likewise.
3340         (init_max_error): Likewise.
3341         (set_max_error): Likewise.
3342         (print_float): Likewise.
3343         (print_screen): Likewise.
3344         (print_screen_max_error): Likewise.
3345         (update_stats): Likewise.
3346         (print_function_ulps): Likewise.
3347         (print_complex_function_ulps): Likewise.
3348         (fpstack_test): Likewise.
3349         (print_max_error): Likewise.
3350         (print_complex_max_error): Likewise.
3351         (test_single_exception): Likewise.
3352         (test_exceptions): Likewise.
3353         (test_single_errno): Likewise.
3354         (test_errno): Likewise.
3355         (ULPDIFF): Likewise.
3356         (ulp): Likewise.
3357         (check_float_internal): Likewise.
3358         (check_float): Likewise.
3359         (check_complex): Likewise.
3360         (check_int): Likewise.
3361         (check_long): Likewise.
3362         (check_bool): Likewise.
3363         (check_longlong): Likewise.
3364         (check_intmax_t): Likewise.
3365         (check_uintmax_t): Likewise.
3366         (enable_test): Likewise.
3367         (matherr): Likewise.
3368         (initialize): Likewise.
3369         (options): Likewise.
3370         (doc): Remove static.
3371         (argp): Likewise.
3372         (parse_opt): Remove.
3373         (check_ulp): Likewise.
3374         (libm_test_init): Likewise.
3375         (libm_test_finish): Likewise.
3376         * math/Makefile (libm-test-support): New variable.
3377         (test-extras): Add libm-test-support files.
3378         (extra-test-objs): Likewise.
3379         (CFLAGS-libm-test-support-float.c): New variable.
3380         (CFLAGS-libm-test-support-double.c): Likewise.
3381         (CFLAGS-libm-test-support-ldouble.c): Likewise.
3382         ($(addprefix $(objpfx),$(libm-tests)): Depend on appropriate
3383         libm-test-support objects.
3384
3385 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3386
3387         * math/Makefile (libm-calls): Move w_exp...
3388         (libm-compat-calls-auto): Here.
3389
3390         * math/w_expl.c: Add suffix "_compat" to filename.
3391         * sysdeps/ia64/fpu/w_expl.c: Likewise.
3392         * sysdeps/ia64/fpu/w_expf.c: Likewise.
3393         * sysdeps/ia64/fpu/w_exp.c: Likewise.
3394         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3395         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3396         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3397         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
3398         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3399
3400         * math/w_expl_compat.c: New file, copied from above.
3401         * sysdeps/ia64/fpu/w_exp_compat.c: Likewise.
3402         * sysdeps/ia64/fpu/w_expf_compat.c: Likewise.
3403         * sysdeps/ia64/fpu/w_expl_compat.c: Likewise.
3404         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
3405         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
3406         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
3407         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
3408         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
3409
3410         * sysdeps/ieee754/ldbl-64-128/w_expl.c: Add suffix "_compat"
3411         to filename.
3412         * sysdeps/ieee754/ldbl-opt/w_exp.c: Likewise.
3413
3414         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: New file,
3415         copied from above and adjusted for the new filenames.
3416         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
3417
3418 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3419
3420         * math/Makefile (libm-calls): Move w_lgammaF...
3421         (libm-compat-calls-auto): Here.
3422
3423         * math/w_lgamma.c: Add suffix "_compat2" to filename.
3424         * math/w_lgammaf.c: Likewise.
3425         * math/w_lgammal.c: Likewise.
3426
3427         * math/w_lgamma_compat2.c: New file, copied from above.
3428         * math/w_lgammaf_compat2.c: Likewise.
3429         * math/w_lgammal_compat2.c: Likewise.
3430
3431 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3432
3433         * math/Makefile (libm-calls): Move w_lgammaF_r...
3434         (libm-compat-calls-auto): Here.
3435
3436         * math/w_lgamma_r.c: Add suffix "_compat" to filename.
3437         * math/w_lgammaf_r.c: Likewise.
3438         * math/w_lgammal_r.c: Likewise.
3439         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
3440         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
3441         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
3442
3443         * math/w_lgamma_r_compat.c: New file, copied from above.
3444         * math/w_lgammaf_r_compat.c: Likewise.
3445         * math/w_lgammal_r_compat.c: Likewise.
3446         * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise.
3447         * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise.
3448         * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise.
3449
3450         * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat"
3451         to filename.
3452         * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise.
3453
3454         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file
3455         copied from above and adjusted for the new filenames.
3456         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3457
3458 2017-02-08  Yury Norov  <ynorov@caviumnetworks.com>
3459
3460         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: use PTR_REG() for offset
3461         calculation in SYSCALL_ERROR_HANDLER().
3462
3463 2017-02-08  Rical Jasan  <ricaljasan@pacific.net>
3464
3465         * manual/contrib.texi: Fix typo.
3466
3467 2017-02-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3468
3469         [BZ #21109]
3470         * elf/dl-tunable-types.h (tunable_callback_t): Accept
3471         tunable_val_t as argument.
3472         * elf/dl-tunables.c (__tunable_set_val): Add comment.
3473         * malloc/arena.c (set_mallopt_check): Take tunable_val_t as
3474         argument.
3475         (DL_TUNABLE_CALLBACK_FNDECL): Likewise.
3476
3477 2017-02-08  Kir Kolyshkin  <kir@openvz.org>
3478
3479         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_eventcodes):
3480         Add PTRACE_EVENT_STOP.
3481         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3482         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3483         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3484         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3485         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
3486         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
3487
3488 2017-02-07  Joseph Myers  <joseph@codesourcery.com>
3489
3490         * math/test-math-finite.h (TEST_EXCEPTIONS): New macro.
3491         * math/test-math-no-finite.h (TEST_EXCEPTIONS): Likewise.
3492         * math/test-math-vector.h (TEST_EXCEPTIONS): Likewise.
3493         * math/test-math-no-inline.h (TEST_EXCEPTIONS): Remove macro.
3494         * math/test-double-vlen2.h (EXCEPTION_TESTS_double): Likewise.
3495         * math/test-double-vlen4.h (EXCEPTION_TESTS_double): Likewise.
3496         * math/test-double-vlen8.h (EXCEPTION_TESTS_double): Likewise.
3497         * math/test-float-vlen4.h (EXCEPTION_TESTS_float): Likewise.
3498         * math/test-float-vlen8.h (EXCEPTION_TESTS_float): Likewise.
3499         * math/test-float-vlen16.h (EXCEPTION_TESTS_float): Likewise.
3500
3501         [BZ #21112]
3502         * sysdeps/ieee754/flt-32/e_powf.c (cp_h): Use value with trailing
3503         12 bits zero.
3504         (cp_l): Update for new value of cp_h.
3505         * math/auto-libm-test-in: Add another test of pow.
3506         * math/auto-libm-test-out-pow: Regenerated.
3507
3508 2017-02-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3509
3510         * manual/contrib.texi: Fix typo.
3511
3512 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3513
3514         [BZ #15998]
3515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
3516         (arch_minimum_kernel): Set as 3.10.0 for ppc64le.
3517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
3518
3519 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3520
3521         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine
3522         STRCHR as __strchr_power8.
3523         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Redefine
3524         strlen as __strlen_power8.
3525
3526 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3527
3528         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Adjust address for
3529         unaligned load for shorter strings.
3530         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
3531
3532 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
3533
3534         * math/libm-test-driver.c (flag_test_errno): New variable.
3535         (flag_test_exceptions): Likewise.
3536         (flag_test_finite): Likewise.
3537         (flag_test_inline): Likewise.
3538         (flag_test_mathvec): Likewise.
3539         (test_msg): Likewise.
3540         (ulp_idx): Likewise.
3541         (qtype_str): Likewise.
3542         (ULP_IDX): Remove macro.
3543         (QTYPE_STR): Likewise.
3544         (find_ulps): Use ulp_idx not ULP_IDX.
3545         (print_function_ulps): Use qtype_str, printed with %s, not
3546         QTYPE_STR, printed with concatentation to format string.
3547         (print_complex_function_ulps): Likewise.
3548         (test_exceptions): Use flag_test_exceptions not TEST_EXCEPTIONS.
3549         (test_errno): Use flag_test_errno not TEST_ERRNO.
3550         (enable_test): Use flag_test_inline, flag_test_finite and
3551         flag_test_mathvec instead of TEST_INLINE, TEST_FINITE and
3552         TEST_MATHVEC.
3553         (libm_test_init): New function.  Factored out of main.
3554         (libm_test_finish): Likewise.
3555         (main): Call libm_test_init and libm_test_finish and move most
3556         code to those functions.
3557
3558         * math/libm-test-driver.c (STRX): New macro.
3559         (STR): Likewise.
3560         (STR_FLOAT): Likewise.
3561         (STR_VEC_LEN): Likewise.
3562         (TEST_MSG): Likewise.  Define here instead of expecting to be
3563         defined by including file.
3564         * math/test-double-finite.c (TEST_MSG): Remove macro.
3565         * math/test-double-vlen2.h (TEST_MSG): Likewise.
3566         * math/test-double-vlen4.h (TEST_MSG): Likewise.
3567         * math/test-double-vlen8.h (TEST_MSG): Likewise.
3568         * math/test-double.c (TEST_MSG): Likewise.
3569         * math/test-float-finite.c (TEST_MSG): Likewise.
3570         * math/test-float-vlen16.h (TEST_MSG): Likewise.
3571         * math/test-float-vlen4.h (TEST_MSG): Likewise.
3572         * math/test-float-vlen8.h (TEST_MSG): Likewise.
3573         * math/test-float.c (TEST_MSG): Likewise.
3574         * math/test-idouble.c (TEST_MSG): Likewise.
3575         * math/test-ifloat.c (TEST_MSG): Likewise.
3576         * math/test-ildouble.c (TEST_MSG): Likewise.
3577         * math/test-ldouble-finite.c (TEST_MSG): Likewise.
3578         * math/test-ldouble.c (TEST_MSG): Likewise.
3579
3580         * math/libm-test.inc: Move all tests of individual functions to
3581         libm-test-*.inc and #include libm-test-*.c files.
3582         (acos_test_data): Remove.
3583         (acos_test): Likewise.
3584         (acosh_test_data): Likewise.
3585         (acosh_test): Likewise.
3586         (asin_test_data): Likewise.
3587         (asin_test): Likewise.
3588         (asinh_test_data): Likewise.
3589         (asinh_test): Likewise.
3590         (atan_test_data): Likewise.
3591         (atan_test): Likewise.
3592         (atanh_test_data): Likewise.
3593         (atanh_test): Likewise.
3594         (atan2_test_data): Likewise.
3595         (atan2_test): Likewise.
3596         (cabs_test_data): Likewise.
3597         (cabs_test): Likewise.
3598         (cacos_test_data): Likewise.
3599         (cacos_test): Likewise.
3600         (cacosh_test_data): Likewise.
3601         (cacosh_test): Likewise.
3602         (canonicalize_test_data): Likewise.
3603         (canonicalize_test): Likewise.
3604         (carg_test_data): Likewise.
3605         (carg_test): Likewise.
3606         (casin_test_data): Likewise.
3607         (casin_test): Likewise.
3608         (casinh_test_data): Likewise.
3609         (casinh_test): Likewise.
3610         (catan_test_data): Likewise.
3611         (catan_test): Likewise.
3612         (catanh_test_data): Likewise.
3613         (catanh_test): Likewise.
3614         (cbrt_test_data): Likewise.
3615         (cbrt_test): Likewise.
3616         (ccos_test_data): Likewise.
3617         (ccos_test): Likewise.
3618         (ccosh_test_data): Likewise.
3619         (ccosh_test): Likewise.
3620         (ceil_test_data): Likewise.
3621         (ceil_test): Likewise.
3622         (cexp_test_data): Likewise.
3623         (cexp_test): Likewise.
3624         (cimag_test_data): Likewise.
3625         (cimag_test): Likewise.
3626         (clog_test_data): Likewise.
3627         (clog_test): Likewise.
3628         (clog10_test_data): Likewise.
3629         (clog10_test): Likewise.
3630         (conj_test_data): Likewise.
3631         (conj_test): Likewise.
3632         (copysign_test_data): Likewise.
3633         (copysign_test): Likewise.
3634         (cos_test_data): Likewise.
3635         (cos_test): Likewise.
3636         (cosh_test_data): Likewise.
3637         (cosh_test): Likewise.
3638         (cpow_test_data): Likewise.
3639         (cpow_test): Likewise.
3640         (cproj_test_data): Likewise.
3641         (cproj_test): Likewise.
3642         (creal_test_data): Likewise.
3643         (creal_test): Likewise.
3644         (csin_test_data): Likewise.
3645         (csin_test): Likewise.
3646         (csinh_test_data): Likewise.
3647         (csinh_test): Likewise.
3648         (csqrt_test_data): Likewise.
3649         (csqrt_test): Likewise.
3650         (ctan_test_data): Likewise.
3651         (ctan_test): Likewise.
3652         (ctanh_test_data): Likewise.
3653         (ctanh_test): Likewise.
3654         (erf_test_data): Likewise.
3655         (erf_test): Likewise.
3656         (erfc_test_data): Likewise.
3657         (erfc_test): Likewise.
3658         (exp_test_data): Likewise.
3659         (exp_test): Likewise.
3660         (exp10_test_data): Likewise.
3661         (exp10_test): Likewise.
3662         (pow10_test): Likewise.
3663         (exp2_test_data): Likewise.
3664         (exp2_test): Likewise.
3665         (expm1_test_data): Likewise.
3666         (expm1_test): Likewise.
3667         (fabs_test_data): Likewise.
3668         (fabs_test): Likewise.
3669         (fdim_test_data): Likewise.
3670         (fdim_test): Likewise.
3671         (floor_test_data): Likewise.
3672         (floor_test): Likewise.
3673         (fma_test_data): Likewise.
3674         (fma_test): Likewise.
3675         (fmax_test_data): Likewise.
3676         (fmax_test): Likewise.
3677         (fmaxmag_test_data): Likewise.
3678         (fmaxmag_test): Likewise.
3679         (fmin_test_data): Likewise.
3680         (fmin_test): Likewise.
3681         (fminmag_test_data): Likewise.
3682         (fminmag_test): Likewise.
3683         (fmod_test_data): Likewise.
3684         (fmod_test): Likewise.
3685         (fpclassify_test_data): Likewise.
3686         (fpclassify_test): Likewise.
3687         (frexp_test_data): Likewise.
3688         (frexp_test): Likewise.
3689         (fromfp_test_data): Likewise.
3690         (fromfp_test): Likewise.
3691         (fromfpx_test_data): Likewise.
3692         (fromfpx_test): Likewise.
3693         (getpayload_test_data): Likewise.
3694         (getpayload_test): Likewise.
3695         (hypot_test_data): Likewise.
3696         (hypot_test): Likewise.
3697         (ilogb_test_data): Likewise.
3698         (ilogb_test): Likewise.
3699         (iscanonical_test_data): Likewise.
3700         (iscanonical_test): Likewise.
3701         (iseqsig_test_data): Likewise.
3702         (iseqsig_test): Likewise.
3703         (isfinite_test_data): Likewise.
3704         (isfinite_test): Likewise.
3705         (finite_test): Likewise.
3706         (isgreater_test_data): Likewise.
3707         (isgreater_test): Likewise.
3708         (isgreaterequal_test_data): Likewise.
3709         (isgreaterequal_test): Likewise.
3710         (isinf_test_data): Likewise.
3711         (isinf_test): Likewise.
3712         (isless_test_data): Likewise.
3713         (isless_test): Likewise.
3714         (islessequal_test_data): Likewise.
3715         (islessequal_test): Likewise.
3716         (islessgreater_test_data): Likewise.
3717         (islessgreater_test): Likewise.
3718         (isnan_test_data): Likewise.
3719         (isnan_test): Likewise.
3720         (isnormal_test_data): Likewise.
3721         (isnormal_test): Likewise.
3722         (issignaling_test_data): Likewise.
3723         (issignaling_test): Likewise.
3724         (issubnormal_test_data): Likewise.
3725         (issubnormal_test): Likewise.
3726         (isunordered_test_data): Likewise.
3727         (isunordered_test): Likewise.
3728         (iszero_test_data): Likewise.
3729         (iszero_test): Likewise.
3730         (j0_test_data): Likewise.
3731         (j0_test): Likewise.
3732         (j1_test_data): Likewise.
3733         (j1_test): Likewise.
3734         (jn_test_data): Likewise.
3735         (jn_test): Likewise.
3736         (lgamma_test_data): Likewise.
3737         (lgamma_test): Likewise.
3738         (gamma_test): Likewise.
3739         (llogb_test_data): Likewise.
3740         (llogb_test): Likewise.
3741         (lrint_test_data): Likewise.
3742         (lrint_test): Likewise.
3743         (llrint_test_data): Likewise.
3744         (llrint_test): Likewise.
3745         (log_test_data): Likewise.
3746         (log_test): Likewise.
3747         (log10_test_data): Likewise.
3748         (log10_test): Likewise.
3749         (log1p_test_data): Likewise.
3750         (log1p_test): Likewise.
3751         (log2_test_data): Likewise.
3752         (log2_test): Likewise.
3753         (logb_test_data): Likewise.
3754         (logb_test): Likewise.
3755         (lround_test_data): Likewise.
3756         (lround_test): Likewise.
3757         (llround_test_data): Likewise.
3758         (llround_test): Likewise.
3759         (modf_test_data): Likewise.
3760         (modf_test): Likewise.
3761         (nearbyint_test_data): Likewise.
3762         (nearbyint_test): Likewise.
3763         (nextafter_test_data): Likewise.
3764         (nextafter_test): Likewise.
3765         (nextup_test_data): Likewise.
3766         (nextup_test): Likewise.
3767         (nextdown_test_data): Likewise.
3768         (nextdown_test): Likewise.
3769         (nexttoward_test_data): Likewise.
3770         (nexttoward_test): Likewise.
3771         (pow_test_data): Likewise.
3772         (pow_test): Likewise.
3773         (remainder_test_data): Likewise.
3774         (remainder_test): Likewise.
3775         (drem_test): Likewise.
3776         (remquo_test_data): Likewise.
3777         (remquo_test): Likewise.
3778         (rint_test_data): Likewise.
3779         (rint_test): Likewise.
3780         (round_test_data): Likewise.
3781         (round_test): Likewise.
3782         (roundeven_test_data): Likewise.
3783         (roundeven_test): Likewise.
3784         (scalb_test_data): Likewise.
3785         (scalb_test): Likewise.
3786         (scalbn_test_data): Likewise.
3787         (scalbn_test): Likewise.
3788         (ldexp_test): Likewise.
3789         (scalbln_test_data): Likewise.
3790         (scalbln_test): Likewise.
3791         (setpayload_test_data): Likewise.
3792         (setpayload_test): Likewise.
3793         (setpayloadsig_test_data): Likewise.
3794         (setpayloadsig_test): Likewise.
3795         (signbit_test_data): Likewise.
3796         (signbit_test): Likewise.
3797         (sin_test_data): Likewise.
3798         (sin_test): Likewise.
3799         (sincos_test_data): Likewise.
3800         (sincos_test): Likewise.
3801         (sinh_test_data): Likewise.
3802         (sinh_test): Likewise.
3803         (sqrt_test_data): Likewise.
3804         (sqrt_test): Likewise.
3805         (tan_test_data): Likewise.
3806         (tan_test): Likewise.
3807         (tanh_test_data): Likewise.
3808         (tanh_test): Likewise.
3809         (tgamma_test_data): Likewise.
3810         (tgamma_test): Likewise.
3811         (totalorder_test_data): Likewise.
3812         (totalorder_test): Likewise.
3813         (totalordermag_test_data): Likewise.
3814         (totalordermag_test): Likewise.
3815         (trunc_test_data): Likewise.
3816         (trunc_test): Likewise.
3817         (ufromfp_test_data): Likewise.
3818         (ufromfp_test): Likewise.
3819         (ufromfpx_test_data): Likewise.
3820         (ufromfpx_test): Likewise.
3821         (y0_test_data): Likewise.
3822         (y0_test): Likewise.
3823         (y1_test_data): Likewise.
3824         (y1_test): Likewise.
3825         (yn_test_data): Likewise.
3826         (yn_test): Likewise.
3827         (significand_test_data): Likewise.
3828         (significand_test): Likewise.
3829         * math/Makefile (auto-libm-test-out-files): Remove variable.
3830         (libm-test-funcs-noauto): New variable.
3831         (libm-test-funcs-all): Likewise.
3832         (libm-test-c-auto): Likewise.
3833         (libm-test-c-noauto): Likewise.
3834         (libm-tests-generated): Add $(libm-test-c-auto) and
3835         $(libm-test-c-noauto).
3836         (generated): Do not add auto-libm-test-out.
3837         (libm-test-c-auto-obj): New variable.
3838         (libm-test-c-noauto-obj): Likewise.
3839         ($(objpfx)libm-test.c): Do not generate or use auto-libm-test-out.
3840         ($(libm-test-c-noauto-obj)): New static pattern rule.
3841         ($(libm-test-c-auto-obj)): Likewise.
3842         (libm-test-incs): New variable.
3843         ($(objpfx)libm-have-vector-test.h): Depend on $(libm-test-incs)
3844         and pass it to gen-libm-have-vector-test.sh.
3845         * math/gen-libm-have-vector-test.sh: Expect list of .inc files to
3846         be passed on command line.
3847         * math/libm-test-acos.inc: New file.  Content from
3848         math/libm-test.inc.
3849         * math/libm-test-acosh.inc: Likewise.
3850         * math/libm-test-asin.inc: Likewise.
3851         * math/libm-test-asinh.inc: Likewise.
3852         * math/libm-test-atan.inc: Likewise.
3853         * math/libm-test-atan2.inc: Likewise.
3854         * math/libm-test-atanh.inc: Likewise.
3855         * math/libm-test-cabs.inc: Likewise.
3856         * math/libm-test-cacos.inc: Likewise.
3857         * math/libm-test-cacosh.inc: Likewise.
3858         * math/libm-test-canonicalize.inc: Likewise.
3859         * math/libm-test-carg.inc: Likewise.
3860         * math/libm-test-casin.inc: Likewise.
3861         * math/libm-test-casinh.inc: Likewise.
3862         * math/libm-test-catan.inc: Likewise.
3863         * math/libm-test-catanh.inc: Likewise.
3864         * math/libm-test-cbrt.inc: Likewise.
3865         * math/libm-test-ccos.inc: Likewise.
3866         * math/libm-test-ccosh.inc: Likewise.
3867         * math/libm-test-ceil.inc: Likewise.
3868         * math/libm-test-cexp.inc: Likewise.
3869         * math/libm-test-cimag.inc: Likewise.
3870         * math/libm-test-clog.inc: Likewise.
3871         * math/libm-test-clog10.inc: Likewise.
3872         * math/libm-test-conj.inc: Likewise.
3873         * math/libm-test-copysign.inc: Likewise.
3874         * math/libm-test-cos.inc: Likewise.
3875         * math/libm-test-cosh.inc: Likewise.
3876         * math/libm-test-cpow.inc: Likewise.
3877         * math/libm-test-cproj.inc: Likewise.
3878         * math/libm-test-creal.inc: Likewise.
3879         * math/libm-test-csin.inc: Likewise.
3880         * math/libm-test-csinh.inc: Likewise.
3881         * math/libm-test-csqrt.inc: Likewise.
3882         * math/libm-test-ctan.inc: Likewise.
3883         * math/libm-test-ctanh.inc: Likewise.
3884         * math/libm-test-erf.inc: Likewise.
3885         * math/libm-test-erfc.inc: Likewise.
3886         * math/libm-test-exp.inc: Likewise.
3887         * math/libm-test-exp10.inc: Likewise.
3888         * math/libm-test-exp2.inc: Likewise.
3889         * math/libm-test-expm1.inc: Likewise.
3890         * math/libm-test-fabs.inc: Likewise.
3891         * math/libm-test-fdim.inc: Likewise.
3892         * math/libm-test-floor.inc: Likewise.
3893         * math/libm-test-fma.inc: Likewise.
3894         * math/libm-test-fmax.inc: Likewise.
3895         * math/libm-test-fmaxmag.inc: Likewise.
3896         * math/libm-test-fmin.inc: Likewise.
3897         * math/libm-test-fminmag.inc: Likewise.
3898         * math/libm-test-fmod.inc: Likewise.
3899         * math/libm-test-fpclassify.inc: Likewise.
3900         * math/libm-test-frexp.inc: Likewise.
3901         * math/libm-test-fromfp.inc: Likewise.
3902         * math/libm-test-fromfpx.inc: Likewise.
3903         * math/libm-test-getpayload.inc: Likewise.
3904         * math/libm-test-hypot.inc: Likewise.
3905         * math/libm-test-ilogb.inc: Likewise.
3906         * math/libm-test-iscanonical.inc: Likewise.
3907         * math/libm-test-iseqsig.inc: Likewise.
3908         * math/libm-test-isfinite.inc: Likewise.
3909         * math/libm-test-isgreater.inc: Likewise.
3910         * math/libm-test-isgreaterequal.inc: Likewise.
3911         * math/libm-test-isinf.inc: Likewise.
3912         * math/libm-test-isless.inc: Likewise.
3913         * math/libm-test-islessequal.inc: Likewise.
3914         * math/libm-test-islessgreater.inc: Likewise.
3915         * math/libm-test-isnan.inc: Likewise.
3916         * math/libm-test-isnormal.inc: Likewise.
3917         * math/libm-test-issignaling.inc: Likewise.
3918         * math/libm-test-issubnormal.inc: Likewise.
3919         * math/libm-test-isunordered.inc: Likewise.
3920         * math/libm-test-iszero.inc: Likewise.
3921         * math/libm-test-j0.inc: Likewise.
3922         * math/libm-test-j1.inc: Likewise.
3923         * math/libm-test-jn.inc: Likewise.
3924         * math/libm-test-lgamma.inc: Likewise.
3925         * math/libm-test-llogb.inc: Likewise.
3926         * math/libm-test-llrint.inc: Likewise.
3927         * math/libm-test-llround.inc: Likewise.
3928         * math/libm-test-log.inc: Likewise.
3929         * math/libm-test-log10.inc: Likewise.
3930         * math/libm-test-log1p.inc: Likewise.
3931         * math/libm-test-log2.inc: Likewise.
3932         * math/libm-test-logb.inc: Likewise.
3933         * math/libm-test-lrint.inc: Likewise.
3934         * math/libm-test-lround.inc: Likewise.
3935         * math/libm-test-modf.inc: Likewise.
3936         * math/libm-test-nearbyint.inc: Likewise.
3937         * math/libm-test-nextafter.inc: Likewise.
3938         * math/libm-test-nextdown.inc: Likewise.
3939         * math/libm-test-nexttoward.inc: Likewise.
3940         * math/libm-test-nextup.inc: Likewise.
3941         * math/libm-test-pow.inc: Likewise.
3942         * math/libm-test-remainder.inc: Likewise.
3943         * math/libm-test-remquo.inc: Likewise.
3944         * math/libm-test-rint.inc: Likewise.
3945         * math/libm-test-round.inc: Likewise.
3946         * math/libm-test-roundeven.inc: Likewise.
3947         * math/libm-test-scalb.inc: Likewise.
3948         * math/libm-test-scalbln.inc: Likewise.
3949         * math/libm-test-scalbn.inc: Likewise.
3950         * math/libm-test-setpayload.inc: Likewise.
3951         * math/libm-test-setpayloadsig.inc: Likewise.
3952         * math/libm-test-signbit.inc: Likewise.
3953         * math/libm-test-significand.inc: Likewise.
3954         * math/libm-test-sin.inc: Likewise.
3955         * math/libm-test-sincos.inc: Likewise.
3956         * math/libm-test-sinh.inc: Likewise.
3957         * math/libm-test-sqrt.inc: Likewise.
3958         * math/libm-test-tan.inc: Likewise.
3959         * math/libm-test-tanh.inc: Likewise.
3960         * math/libm-test-tgamma.inc: Likewise.
3961         * math/libm-test-totalorder.inc: Likewise.
3962         * math/libm-test-totalordermag.inc: Likewise.
3963         * math/libm-test-trunc.inc: Likewise.
3964         * math/libm-test-ufromfp.inc: Likewise.
3965         * math/libm-test-ufromfpx.inc: Likewise.
3966         * math/libm-test-y0.inc: Likewise.
3967         * math/libm-test-y1.inc: Likewise.
3968         * math/libm-test-yn.inc: Likewise.
3969         * math/README.libm-test: Update.
3970
3971         * math/gen-auto-libm-tests.c: Update comment about use of program.
3972         (generate_output): Add argument FUNCTION.
3973         (main): Require extra argument.  Pass function name to
3974         generate_output.
3975         * math/Makefile (generated): Add auto-libm-test-out.
3976         (libm-test-funcs-auto): New variable.
3977         (auto-libm-test-out-files): New variable.
3978         ($(objpfx)libm-test.c): Depend on $(auto-libm-test-out-files).
3979         Concatenate those files to form $(objpfx)auto-libm-test-out and
3980         use it as input to gen-libm-test.pl.
3981         * math/README.libm-test: Update.
3982         * math/auto-libm-test-out: Remove.
3983         * math/auto-libm-test-out-acos: New generated file.
3984         * math/auto-libm-test-out-acosh: Likewise.
3985         * math/auto-libm-test-out-asin: Likewise.
3986         * math/auto-libm-test-out-asinh: Likewise.
3987         * math/auto-libm-test-out-atan: Likewise.
3988         * math/auto-libm-test-out-atan2: Likewise.
3989         * math/auto-libm-test-out-atanh: Likewise.
3990         * math/auto-libm-test-out-cabs: Likewise.
3991         * math/auto-libm-test-out-carg: Likewise.
3992         * math/auto-libm-test-out-cbrt: Likewise.
3993         * math/auto-libm-test-out-ccos: Likewise.
3994         * math/auto-libm-test-out-ccosh: Likewise.
3995         * math/auto-libm-test-out-cexp: Likewise.
3996         * math/auto-libm-test-out-clog: Likewise.
3997         * math/auto-libm-test-out-clog10: Likewise.
3998         * math/auto-libm-test-out-cos: Likewise.
3999         * math/auto-libm-test-out-cosh: Likewise.
4000         * math/auto-libm-test-out-cpow: Likewise.
4001         * math/auto-libm-test-out-csin: Likewise.
4002         * math/auto-libm-test-out-csinh: Likewise.
4003         * math/auto-libm-test-out-csqrt: Likewise.
4004         * math/auto-libm-test-out-ctan: Likewise.
4005         * math/auto-libm-test-out-ctanh: Likewise.
4006         * math/auto-libm-test-out-erf: Likewise.
4007         * math/auto-libm-test-out-erfc: Likewise.
4008         * math/auto-libm-test-out-exp: Likewise.
4009         * math/auto-libm-test-out-exp10: Likewise.
4010         * math/auto-libm-test-out-exp2: Likewise.
4011         * math/auto-libm-test-out-expm1: Likewise.
4012         * math/auto-libm-test-out-fma: Likewise.
4013         * math/auto-libm-test-out-hypot: Likewise.
4014         * math/auto-libm-test-out-j0: Likewise.
4015         * math/auto-libm-test-out-j1: Likewise.
4016         * math/auto-libm-test-out-jn: Likewise.
4017         * math/auto-libm-test-out-lgamma: Likewise.
4018         * math/auto-libm-test-out-log: Likewise.
4019         * math/auto-libm-test-out-log10: Likewise.
4020         * math/auto-libm-test-out-log1p: Likewise.
4021         * math/auto-libm-test-out-log2: Likewise.
4022         * math/auto-libm-test-out-pow: Likewise.
4023         * math/auto-libm-test-out-sin: Likewise.
4024         * math/auto-libm-test-out-sincos: Likewise.
4025         * math/auto-libm-test-out-sinh: Likewise.
4026         * math/auto-libm-test-out-sqrt: Likewise.
4027         * math/auto-libm-test-out-tan: Likewise.
4028         * math/auto-libm-test-out-tanh: Likewise.
4029         * math/auto-libm-test-out-tgamma: Likewise.
4030         * math/auto-libm-test-out-y0: Likewise.
4031         * math/auto-libm-test-out-y1: Likewise.
4032         * math/auto-libm-test-out-yn: Likewise.
4033
4034         * math/Makefile (generated): Do not include libm-test.stmp.
4035         ($(addprefix $(objpfx), $(libm-tests-generated))): Do not depend
4036         on $(objpfx)libm-test.stmp.
4037         ($(objpfx)libm-test.stmp): Remove rule.
4038         ($(objpfx)libm-test-ulps.h): New rule.
4039         ($(objpfx)libm-test.c): Likewise.
4040         ($(objpfx)libm-have-vector-test.h): Likewise.
4041         ($(addprefix $(objpfx), $(libm-tests.o)): Depend directly on
4042         individual generated files, not libm-test.stmp.
4043
4044         * math/gen-libm-test.pl ($output_dir): Remove variable.
4045         ($srcdir): Likewise.
4046         ($opt_a): New variable.
4047         ($opt_c): Likewise.
4048         ($opt_C): Likewise.
4049         ($opt_H): Likewise.
4050         (-n): Make option take argument and use it as NewUlps output.
4051         (-a): New option.  Use its argument for auto-libm-test-out input.
4052         (-c): New option.  Use its argument for libm-test.inc input.
4053         (-C): New option.  Use its argument for libm-test.c output.
4054         (-H): New option.  Use its argument for libm-test-ulps.h output.
4055         (top level): Only process inputs needed to generate outputs
4056         specified by command-line options.  Only generate outputs
4057         specified by command-line options.
4058         * math/README.libm-test: Update example gen-libm-test.pl command.
4059         * math/Makefile ($(objpfx)libm-test.stmp): Update gen-libm-test.pl
4060         commands.
4061         (regen-ulps): Likewise.
4062
4063 2017-02-06  Wilco Dijkstra  <wdijkstr@arm.com>
4064
4065         * hurd/path-lookup.c (file_name_path_scan): Rename index to strchr.
4066         * include/string.h (index): Remove define.
4067         (rindex): Likewise.
4068         * misc/getttyent.c (__getttyent): Rename index to strchr.
4069         * misc/ttyslot.c (ttyslot): Rename rindex to strrchr.
4070         * sunrpc/rpc_main.c (mkfile_output): Likewise.
4071
4072 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4073
4074         * math/libm-test-driver.c: New file.  Based on math/libm-test.inc.
4075         * math/libm-test.inc: Move all contents, other than tests of
4076         individual functions, to libm-test-driver.c.
4077         [!FE_TONEAREST] (FE_TONEAREST): Move to libm-test-driver.c.
4078         [!FE_TOWARDZERO] (FE_TOWARDZERO): Likewise.
4079         [!FE_UPWARD] (FE_UPWARD): Likewise.
4080         [!FE_DOWNWARD] (FE_DOWNWARD): Likewise.
4081         (NO_EXCEPTION): Likewise.
4082         (INVALID_EXCEPTION): Likewise.
4083         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
4084         (OVERFLOW_EXCEPTION): Likewise.
4085         (UNDERFLOW_EXCEPTION): Likewise.
4086         (INEXACT_EXCEPTION): Likewise.
4087         (INVALID_EXCEPTION_OK): Likewise.
4088         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4089         (OVERFLOW_EXCEPTION_OK): Likewise.
4090         (UNDERFLOW_EXCEPTION_OK): Likewise.
4091         (NO_INEXACT_EXCEPTION): Likewise.
4092         (EXCEPTIONS_OK): Likewise.
4093         (IGNORE_ZERO_INF_SIGN): Likewise.
4094         (TEST_NAN_SIGN): Likewise.
4095         (TEST_NAN_PAYLOAD): Likewise.
4096         (NO_TEST_INLINE): Likewise.
4097         (XFAIL_TEST): Likewise.
4098         (ERRNO_UNCHANGED): Likewise.
4099         (ERRNO_EDOM): Likewise.
4100         (ERRNO_ERANGE): Likewise.
4101         (IGNORE_RESULT): Likewise.
4102         (NON_FINITE): Likewise.
4103         (TEST_SNAN): Likewise.
4104         (NO_TEST_MATHVEC): Likewise.
4105         (TEST_NAN_PAYLOAD_CANONICALIZE): Likewise.
4106         (__CONCATX): Likewise.
4107         (TYPE_MIN): Likewise.
4108         (TYPE_TRUE_MIN): Likewise.
4109         (TYPE_MAX): Likewise.
4110         (MIN_EXP): Likewise.
4111         (MAX_EXP): Likewise.
4112         (MANT_DIG): Likewise.
4113         (FSTR_MAX): Likewise.
4114         (ULP_IDX): Likewise.
4115         (QTYPE_STR): Likewise.
4116         (TEST_COND_binary32): Likewise.
4117         (TEST_COND_binary64): Likewise.
4118         (TEST_COND_binary128): Likewise.
4119         (TEST_COND_ibm128): Likewise.
4120         (TEST_COND_intel96): Likewise.
4121         (TEST_COND_m68k96): Likewise.
4122         (TEST_COND_ibm128_libgcc): Likewise.
4123         (XFAIL_IBM128_LIBGCC): Likewise.
4124         (PAYLOAD_DIG): Likewise.
4125         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4126         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4127         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4128         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
4129         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4130         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
4131         (TEST_COND_long32): Likewise.
4132         (TEST_COND_long64): Likewise.
4133         (TEST_COND_before_rounding): Likewise.
4134         (TEST_COND_after_rounding): Likewise.
4135         (lit_pi_3_m_4_d): Likewise.
4136         (lit_pi_3_m_4_ln10_m_d): Likewise.
4137         (lit_pi_2_ln10_m_d): Likewise.
4138         (lit_pi_4_ln10_m_d): Likewise.
4139         (lit_pi_ln10_d): Likewise.
4140         (lit_pi_2_d): Likewise.
4141         (lit_pi_4_d): Likewise.
4142         (lit_pi): Likewise.
4143         (lit_e): Likewise.
4144         (ulps_file_name): Likewise.
4145         (ulps_file): Likewise.
4146         (output_ulps): Likewise.
4147         (output_dir): Likewise.
4148         (noErrors): Likewise.
4149         (noTests): Likewise.
4150         (noExcTests): Likewise.
4151         (noErrnoTests): Likewise.
4152         (verbose): Likewise.
4153         (output_max_error): Likewise.
4154         (output_points): Likewise.
4155         (ignore_max_ulp): Likewise.
4156         (plus_zero): Likewise.
4157         (minus_zero): Likewise.
4158         (plus_infty): Likewise.
4159         (minus_infty): Likewise.
4160         (qnan_value_pl): Likewise.
4161         (qnan_value): Likewise.
4162         (snan_value_pl): Likewise.
4163         (snan_value): Likewise.
4164         (max_value): Likewise.
4165         (min_value): Likewise.
4166         (min_subnorm_value): Likewise.
4167         (snan_value_ld): Likewise.
4168         (max_error): Likewise.
4169         (real_max_error): Likewise.
4170         (imag_max_error): Likewise.
4171         (prev_max_error): Likewise.
4172         (prev_real_max_error): Likewise.
4173         (prev_imag_max_error): Likewise.
4174         (max_valid_error): Likewise.
4175         (TYPE_DECIMAL_DIG): Likewise.
4176         (TYPE_HEX_DIG): Likewise.
4177         (fmt_ftostr): Likewise.
4178         (compare_ulp_data): Likewise.
4179         (find_ulps): Likewise.
4180         (init_max_error): Likewise.
4181         (set_max_error): Likewise.
4182         (print_float): Likewise.
4183         (print_screen): Likewise.
4184         (print_screen_max_error): Likewise.
4185         (update_stats): Likewise.
4186         (print_function_ulps): Likewise.
4187         (print_complex_function_ulps): Likewise.
4188         (fpstack_test): Likewise.
4189         (print_max_error): Likewise.
4190         (print_complex_max_error): Likewise.
4191         (test_single_exception): Likewise.
4192         (test_exceptions): Likewise.
4193         (test_single_errno): Likewise.
4194         (test_errno): Likewise.
4195         (ULPDIFF): Likewise.
4196         (ulp): Likewise.
4197         (check_float_internal): Likewise.
4198         (check_float): Likewise.
4199         (check_complex): Likewise.
4200         (check_int): Likewise.
4201         (check_long): Likewise.
4202         (check_bool): Likewise.
4203         (check_longlong): Likewise.
4204         (check_intmax_t): Likewise.
4205         (check_uintmax_t): Likewise.
4206         (enable_test): Likewise.
4207         (struct test_f_f_data): Likewise.
4208         (struct test_ff_f_data): Likewise.
4209         (struct test_fj_f_data): Likewise.
4210         (struct test_fi_f_data): Likewise.
4211         (struct test_fl_f_data): Likewise.
4212         (struct test_if_f_data): Likewise.
4213         (struct test_fff_f_data): Likewise.
4214         (struct test_fiu_M_data): Likewise.
4215         (struct test_fiu_U_data): Likewise.
4216         (struct test_c_f_data): Likewise.
4217         (struct test_f_f1_data): Likewise.
4218         (struct test_fF_f1_data): Likewise.
4219         (struct test_ffI_f1_data): Likewise.
4220         (struct test_c_c_data): Likewise.
4221         (struct test_cc_c_data): Likewise.
4222         (struct test_f_i_data): Likewise.
4223         (struct test_ff_i_data): Likewise.
4224         (struct test_f_l_data): Likewise.
4225         (struct test_f_L_data): Likewise.
4226         (struct test_fFF_11_data): Likewise.
4227         (struct test_Ff_b1_data): Likewise.
4228         (IF_ROUND_INIT_): Likewise.
4229         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
4230         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
4231         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4232         (IF_ROUND_INIT_FE_UPWARD): Likewise.
4233         (ROUND_RESTORE_): Likewise.
4234         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
4235         (ROUND_RESTORE_FE_TONEAREST): Likewise.
4236         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
4237         (ROUND_RESTORE_FE_UPWARD): Likewise.
4238         (RM_): Likewise.
4239         (RM_FE_DOWNWARD): Likewise.
4240         (RM_FE_TONEAREST): Likewise.
4241         (RM_FE_TOWARDZERO): Likewise.
4242         (RM_FE_UPWARD): Likewise.
4243         (COMMON_TEST_SETUP): Likewise.
4244         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4245         (COMMON_TEST_CLEANUP): Likewise.
4246         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4247         (RUN_TEST_f_f): Likewise.
4248         (RUN_TEST_LOOP_f_f): Likewise.
4249         (RUN_TEST_fp_f): Likewise.
4250         (RUN_TEST_LOOP_fp_f): Likewise.
4251         (RUN_TEST_2_f): Likewise.
4252         (RUN_TEST_LOOP_2_f): Likewise.
4253         (RUN_TEST_ff_f): Likewise.
4254         (RUN_TEST_LOOP_ff_f): Likewise.
4255         (RUN_TEST_LOOP_fj_f): Likewise.
4256         (RUN_TEST_fi_f): Likewise.
4257         (RUN_TEST_LOOP_fi_f): Likewise.
4258         (RUN_TEST_fl_f): Likewise.
4259         (RUN_TEST_LOOP_fl_f): Likewise.
4260         (RUN_TEST_if_f): Likewise.
4261         (RUN_TEST_LOOP_if_f): Likewise.
4262         (RUN_TEST_fff_f): Likewise.
4263         (RUN_TEST_LOOP_fff_f): Likewise.
4264         (RUN_TEST_fiu_M): Likewise.
4265         (RUN_TEST_LOOP_fiu_M): Likewise.
4266         (RUN_TEST_fiu_U): Likewise.
4267         (RUN_TEST_LOOP_fiu_U): Likewise.
4268         (RUN_TEST_c_f): Likewise.
4269         (RUN_TEST_LOOP_c_f): Likewise.
4270         (RUN_TEST_f_f1): Likewise.
4271         (RUN_TEST_LOOP_f_f1): Likewise.
4272         (RUN_TEST_fF_f1): Likewise.
4273         (RUN_TEST_LOOP_fF_f1): Likewise.
4274         (RUN_TEST_fI_f1): Likewise.
4275         (RUN_TEST_LOOP_fI_f1): Likewise.
4276         (RUN_TEST_ffI_f1_mod8): Likewise.
4277         (RUN_TEST_LOOP_ffI_f1_mod8): Likewise.
4278         (RUN_TEST_Ff_b1): Likewise.
4279         (RUN_TEST_LOOP_Ff_b1): Likewise.
4280         (RUN_TEST_Ffp_b1): Likewise.
4281         (RUN_TEST_LOOP_Ffp_b1): Likewise.
4282         (RUN_TEST_c_c): Likewise.
4283         (RUN_TEST_LOOP_c_c): Likewise.
4284         (RUN_TEST_cc_c): Likewise.
4285         (RUN_TEST_LOOP_cc_c): Likewise.
4286         (RUN_TEST_f_i): Likewise.
4287         (RUN_TEST_LOOP_f_i): Likewise.
4288         (RUN_TEST_f_i_tg): Likewise.
4289         (RUN_TEST_LOOP_f_i_tg): Likewise.
4290         (RUN_TEST_ff_b): Likewise.
4291         (RUN_TEST_LOOP_ff_b): Likewise.
4292         (RUN_TEST_ff_i_tg): Likewise.
4293         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4294         (RUN_TEST_f_b): Likewise.
4295         (RUN_TEST_LOOP_f_b): Likewise.
4296         (RUN_TEST_f_b_tg): Likewise.
4297         (RUN_TEST_LOOP_f_b_tg): Likewise.
4298         (RUN_TEST_f_l): Likewise.
4299         (RUN_TEST_LOOP_f_l): Likewise.
4300         (RUN_TEST_f_L): Likewise.
4301         (RUN_TEST_LOOP_f_L): Likewise.
4302         (RUN_TEST_fFF_11): Likewise.
4303         (RUN_TEST_LOOP_fFF_11): Likewise.
4304         (VEC_SUFF): Likewise.
4305         (STR_CONCAT): Likewise.
4306         (STR_CON3): Likewise.
4307         (HAVE_VECTOR): Likewise.
4308         (START): Likewise.
4309         (END): Likewise.
4310         (END_COMPLEX): Likewise.
4311         (ALL_RM_TEST): Likewise.
4312         (matherr): Likewise.
4313         (initialize): Likewise.
4314         (options): Likewise.
4315         (doc): Likewise.
4316         (parse_opt): Likewise.
4317         (argp): Likewise.
4318         (check_ulp): Likewise.
4319         (main): Likewise.
4320         (do_test): New function.  Call tests of individual functions
4321         previously called from main.
4322
4323         * math/libm-test.inc: Remove comment listing functions tested and
4324         not tested.
4325
4326 2016-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4327
4328         * nptl/allocatestack.c [COLORING_INCREMENT] (nptl_ncreated): Remove.
4329         (allocate_stack): Remove COLORING_INCREMENT usage.
4330         * nptl/stack-aliasing.h (COLORING_INCREMENT). Likewise.
4331         * sysdeps/i386/i686/stack-aliasing.h (COLORING_INCREMENT): Likewise.
4332
4333 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4334
4335         * manual/libm-err-tab.pl (@all_functions): Change to
4336         %all_functions.  Initialize as empty.
4337         (parse_ulps): Add to %all_functions based on functions found in
4338         ulps files.  Ignore results for non-default rounding modes and
4339         vector functions.
4340         (print_platforms): Use %all_platforms.
4341         * manual/math.texi (Errors in Math Functions): Document omissions
4342         from the table.
4343
4344         * math/Makefile (before-compile): Remove.
4345
4346 2017-02-06  Ivo Raisr <ivo.raisr@oracle.com>
4347
4348         [BZ #21075]
4349         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Remove
4350         unused assignment.
4351         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4352
4353 2017-02-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4354
4355         * sysdeps/nptl/lowlevellock.h (lll_trylock, lll_cond_trylock):
4356         Add __glibc_unlikely hint.
4357
4358 2017-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4359
4360         [BZ #16640]
4361         * sysdeps/i386/i686/strtok.S: Remove file.
4362         * sysdeps/i386/i686/strtok_r.S: Likewise.
4363         * sysdeps/i386/strtok.S: Likewise.
4364         * sysdeps/i386/strtok_r.S: Likewise.
4365         * sysdeps/powerpc/powerpc64/strtok.S: Likewise.
4366         * sysdeps/powerpc/powerpc64/strtok_r.S: Likewise.
4367         * sysdeps/x86_64/strtok.S: Likewise.
4368         * sysdeps/x86_64/strtok_r.S: Likewise.
4369
4370         * sysdeps/unix/sysv/linux/arm/posix_fadvise.c: Remove file.
4371         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
4372         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4373         (__ASSUME_FADVISE64_AS_64_64): Define.
4374         * sysdeps/unix/sysv/linux/posix_fadvise.c [__NR_fadvise64]: Add
4375         !defined __ASSUME_FADVISE64_AS_64_64 to use syscall issue.
4376         [!__NR_fadvise64 && __ASSUME_FADVISE64_64_6ARG]: Remove
4377         __ALIGNMENT_ARG usage.
4378         [!__NR_fadvise64 && !__ASSUME_FADVISE64_64_6ARG]: Define
4379         __NR_fadvise64_64 if it is not defined.
4380
4381 2017-02-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4382
4383         * version.h (RELEASE): Set to "development"
4384         (VERSION): Set to 2.25.90.
4385         * NEWS: Add 2.26 section.
4386
4387         * version.h (RELEASE): Set to "stable"
4388         (VERSION): Set to 2.25.
4389         * include/features.h (__GLIBC_MINOR__): Set to 25.
4390
4391         * manual/contrib.texi: Add more contributors from this release
4392         and past releases.
4393
4394         * NEWS (2.25): Add list of bugs fixed.
4395
4396         * NEWS: Add missing news items.
4397
4398 2017-02-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4399
4400         * elf/tst-env-setuid.c (do_execve): Return EXIT_UNSUPPORTED in
4401         parent if child exited in that manner.  Print WEXITSTATUS
4402         instead of the raw status.
4403         (do_test_prep): Rename to do_test.
4404         (do_test): Return the result of run_executable_sgid.
4405         (TEST_FUNCTION_ARGV): Adjust.
4406
4407 2017-02-03  Alexandre Oliva  <aoliva@redhat.com>
4408             Florian Weimer  <fweimer@redhat.com>
4409             Carlos O'Donell  <carlos@redhat.com>
4410
4411         [BZ #20915]
4412         * elf/dl-reloc.c (_dl_nothread_init_static_tls):
4413         Do not initialize DTV.
4414         * nptl/allocatestack.c (init_one_static_tls): Likewise.
4415
4416 2017-02-03  David S. Miller  <davem@davemloft.net>
4417
4418         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax-vis3.S: Remove file.
4419         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4420         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: Likewise.
4421         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4422         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: Likewise.
4423         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4424         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: Likewise.
4425         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4426         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
4427         (libm-sysdep_routines): Update.
4428         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Remove file.
4429         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: Likewise.
4430         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4431         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: Likewise.
4432         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4433         * sysdeps/sparc/sparc64/fpu/s_fmax.S: Likewise.
4434         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: Likewise.
4435         * sysdeps/sparc/sparc64/fpu/s_fmin.S: Likewise.
4436         * sysdeps/sparc/sparc64/fpu/s_fminf.S: Likewise.
4437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S:
4438         Likewise.
4439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S:
4441         Likewise.
4442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S:
4444         Likewise.
4445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S:
4447         Likewise.
4448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4450         (libm-sysdep_routines): Update.
4451
4452 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
4453
4454         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
4455         _dl_fatal_printf with _dl_error_printf for IFUNC relocation
4456         against unrelocated shared library.
4457         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4458
4459 2017-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4460
4461         * sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES.
4462         * elf/tst-env-setuid-tunables.c
4463         (test_child_tunables)[!HAVE_TUNABLES]: Verify that
4464         GLIBC_TUNABLES is removed in a setgid process.
4465
4466         [BZ #21073]
4467         * elf/dl-tunable-types.h (tunable_seclevel_t): New enum.
4468         * elf/dl-tunables.c (tunables_strdup): Remove.
4469         (get_next_env): Also return the previous envp.
4470         (parse_tunables): Erase tunables of category
4471         TUNABLES_SECLEVEL_SXID_ERASE.
4472         (maybe_enable_malloc_check): Make MALLOC_CHECK_
4473         TUNABLE_SECLEVEL_NONE if /etc/setuid-debug is accessible.
4474         (__tunables_init)[TUNABLES_FRONTEND ==
4475         TUNABLES_FRONTEND_valstring]: Update GLIBC_TUNABLES envvar
4476         after parsing.
4477         [TUNABLES_FRONTEND != TUNABLES_FRONTEND_valstring]: Erase
4478         tunable envvars of category TUNABLES_SECLEVEL_SXID_ERASE.
4479         * elf/dl-tunables.h (struct _tunable): Change member is_secure
4480         to security_level.
4481         * elf/dl-tunables.list: Add security_level annotations for all
4482         tunables.
4483         * scripts/gen-tunables.awk: Recognize and generate enum values
4484         for security_level.
4485         * elf/tst-env-setuid.c: New test case.
4486         * elf/tst-env-setuid-tunables: new test case.
4487         * elf/Makefile (tests-static): Add them.
4488
4489 2017-02-01  Richard Henderson  <rth@twiddle.net>
4490
4491         * sysdeps/alpha/memchr.c (__memchr): Use saturating arithmetic
4492         adjusting the byte count.
4493
4494 2017-02-01  Andreas Schwab  <schwab@linux-m68k.org>
4495
4496         * conform/Makefile (linknamespace-libs): Define.
4497
4498         * sysdeps/m68k/m680x0/m68020/atomic-machine.h
4499         (__arch_compare_and_exchange_val_64_acq, atomic_exchange_acq)
4500         (atomic_exchange_and_add, atomic_add): Add casts to 64 bit asm
4501         operands.
4502
4503 2017-01-31  Chung-Lin Tang  <cltang@codesourcery.com>
4504
4505         * sysdeps/unix/sysv/linux/nios2/ipc_priv.h: New file.
4506
4507 2017-01-30  H.J. Lu  <hongjiu.lu@intel.com>
4508
4509         [BZ #21081]
4510         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4511         (L(stosb)): Add VZEROUPPER before ret.
4512
4513 2016-01-28  Carlos O'Donell  <carlos@redhat.com>
4514             Alexey Makhalov <amakhalov@vmware.com>
4515             Florian Weimer <fweimer@redhat.com>
4516
4517         [BZ #20116]
4518         * nptl/pthread_create.c: Document concurrency notes.
4519         Enhance thread creation notes.
4520         (create_thread): Use bool *stopped_start.
4521         (START_THREAD_DEFN): Comment ownership of PD.
4522         (__pthread_create_2_1): Add local bool stopped_start and use
4523         that instead of pd->stopped_start where appropriate.
4524         * nptl/createthread.c (create_thread): Use bool *stopped_start.
4525         * sysdeps/nacl/createthread.c (create_thread): Use bool *stopped_start.
4526         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
4527         * nptl/tst-create-detached.c: New file.
4528         * nptl/Makefile (tests): Add tst-create-detached.
4529         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
4530         Reference the enhanced thread creation notes.
4531         * nptl/pthread_setschedparam.c (__pthread_setschedparam): Likewise.
4532         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
4533         * nptl/tpp.c (__pthread_tpp_change_priority): Likewise.
4534         (__pthread_current_priority): Likewise.
4535         * support/Makefile (libsupport-routines): Add xpthread_attr_destroy
4536         xpthread_attr_init, xpthread_attr_setdetachstate, and
4537         xpthread_attr_setstacksize.
4538         * support/xpthread_attr_destroy.c: New file.
4539         * support/xpthread_attr_init.c: New file.
4540         * support/xpthread_attr_setdetachstate.c: New file.
4541         * support/xpthread_attr_setstacksize.c: New file.
4542         * support/xthread.h: Define prototypes for xpthread_attr_destroy
4543         xpthread_attr_init, xpthread_attr_setdetachstate, and
4544         xpthread_attr_setstacksize.
4545
4546 2017-01-27  Florian Weimer  <fweimer@redhat.com>
4547
4548         * nptl/Makefile (tests): Add tst-robust-fork.
4549         * nptl/tst-robust-fork.c: New file.
4550         * support/Makefile (libsupport-routines): Add xmmap, xmunmap,
4551         xpthread_mutex_consistent, xpthread_mutex_destroy,
4552         xpthread_mutex_init, xpthread_mutexattr_destroy,
4553         xpthread_mutexattr_init, xpthread_mutexattr_setprotocol,
4554         xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust,
4555         xpthread_mutexattr_settype.
4556         * support/xmmap.c: New file.
4557         * support/xmunmap.c: Likewise.
4558         * support/xpthread_mutex_consistent.c: Likewise.
4559         * support/xpthread_mutex_destroy.c: Likewise.
4560         * support/xpthread_mutex_init.c: Likewise.
4561         * support/xpthread_mutexattr_destroy.c: Likewise.
4562         * support/xpthread_mutexattr_init.c: Likewise.
4563         * support/xpthread_mutexattr_setprotocol.c: Likewise.
4564         * support/xpthread_mutexattr_setpshared.c: Likewise.
4565         * support/xpthread_mutexattr_setrobust.c: Likewise.
4566         * support/xpthread_mutexattr_settype.c: Likewise.
4567         * support/xthread.h (xpthread_mutexattr_destroy)
4568         (xpthread_mutexattr_init, xpthread_mutexattr_setprotocol)
4569         (xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust)
4570         (xpthread_mutexattr_settype, xpthread_mutex_init)
4571         (xpthread_mutex_destroy, xpthread_mutex_consistent): Declare.
4572         * support/xunistd.h (xmmap, xmunmap): Likewise.
4573
4574 2017-01-25  Florian Weimer  <fweimer@redhat.com>
4575
4576         * string/Makefile (xtests): Add comment.
4577         (LOCALES): Add en_GB.UTF-8.
4578         (tst-strcoll-overflow.out): Depend on generated locales.
4579         * string/tst-strcoll-overflow.c: Convert to support/test-driver.c.
4580         (SIZE, TIMEOUT): Update comments.
4581         (do_test): Define as static.  Fail test if setlocale fails.
4582         Return EXIT_UNSUPPORTED if insufficient memory.  Enhance output
4583         messages.
4584         (EXPECTED_SIGNAL, EXPECTED_STATUS, TEST_FUNCTION): Remove.
4585         TIMEOUT at 300 seconds should be enough to run this test
4586         successfully.
4587
4588 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
4589
4590         * soft-fp/op-common.h (_FP_MUL, _FP_FMA, _FP_DIV): Add
4591         /* FALLTHRU */ comments.
4592
4593 2017-01-24  James Clarke  <jrtc27@jrtc27.com>
4594
4595         [BZ #21053]
4596         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: Use new REG_R*
4597         constants instead of the old R* ones.
4598         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: Likewise.
4599         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGPREG): Rename...
4600         (NGREG): ... to this, to fit in with other architectures.
4601         (gpregset_t): Use new NGREG macro.
4602         [__USE_GNU]: Remove condition; all architectures other than tile
4603         are unconditional.
4604         (R*): Rename to REG_R*.
4605
4606 2017-01-20  DJ Delorie  <dj@redhat.com>
4607
4608         * elf/dl-tunables.c (tunable_set_val_if_valid_range): Split into ...
4609         (tunable_set_val_if_valid_range_signed) ... this, and ...
4610         (tunable_set_val_if_valid_range_unsigned) ... this.
4611         (tunable_initialize): Call the correct one of the above based on type.
4612
4613 2017-01-20  Joseph Myers  <joseph@codesourcery.com>
4614
4615         * sysdeps/hppa/fpu/libm-test-ulps: Remove *_tonearest entries.
4616         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
4617         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
4618         * sysdeps/microblaze/libm-test-ulps: Likewise.
4619         * sysdeps/sh/libm-test-ulps: Likewise.
4620
4621         * math/README.libm-test: Update list of characters for input and
4622         output types.
4623
4624 2017-01-20  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4625
4626         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
4627         (__lll_unlock_elision): Fix adapt_count decrement.
4628
4629 2017-01-14  Martin Galvan  <martingalvan@sourceware.org>
4630
4631         * README.pretty-printers (Known issues): Warn about printers not
4632         always covering everything.
4633         * nptl/nptl-printers.py (MutexPrinter): Change output.
4634         * nptl/test-mutex-printers.py: Fix test and adapt to changed output.
4635
4636 2017-01-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
4637
4638         * sysdeps/unix/sysv/linux/s390/htm.h: Adjust comments.
4639         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
4640         * sysdeps/unix/sysv/linux/s390/elision-lock.c: Adjust comments.
4641         (__lll_lock_elision): Do not test futex before starting a
4642         transaction.  Use __glibc_likely instead of __builtin_expect.
4643         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Adjust comments.
4644         (__lll_trylock_elision): Do not test futex before starting a
4645         transaction.  Use __glibc_likely instead of __builtin_expect.
4646
4647 2017-01-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4648
4649         * po/Makefile (update-translations): New target.
4650
4651 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
4652
4653         [BZ #21061]
4654         * sysdeps/unix/sysv/linux/microblaze/clock-compat.c: New file.
4655
4656 2017-01-19  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4657
4658         * elf/dl-tunables (get_next_env): Always advance envp.
4659         * stdlib/tst-empty-env.c: New test case.
4660         * stdlib/Makefile (tests): Use it.
4661
4662 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
4663
4664         [BZ #21047]
4665         * sysdeps/arm/fpu_control.h [!__SOFTFP__] (_FPU_GETCW): Use VFP
4666         name for instruction.
4667         [!__SOFTFP__] (_FPU_SETCW): Likewise.
4668
4669 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
4670
4671         * scripts/build-many-glibcs.py (Config.build_cross_tool): Use -j1
4672         for make install.
4673
4674 2017-01-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4675
4676         * po/bg.po: Merge from Translation Project.
4677         * po/fr.po: Likewise.
4678         * po/ko.po: Likewise.
4679         * po/nl.po: Likewise.
4680         * po/sv.po: Likewise.
4681
4682 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
4683
4684         * manual/install.texi (Tools for Compilation): Update GCC version
4685         known to work to build glibc.
4686         * INSTALL: Regenerated.
4687
4688 2017-01-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
4689
4690         [BZ #21006]
4691         * string/Makefile (LDFLAGS-tst-xbzero-opt): New variable.
4692
4693 2017-01-16  Joseph Myers  <joseph@codesourcery.com>
4694
4695         [BZ #21045]
4696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4697         (__CONTEXT_FUNC_NAME): Pass address of signal mask to be restored
4698         to __sigprocmask.
4699
4700 2017-01-16  Chris Metcalf  <cmetcalf@mellanox.com>
4701
4702         * sysdeps/tile/tilegx/memchr.c (__memchr): Handle pointer
4703         wrap-around.
4704         * sysdeps/tile/tilepro/memchr.c (__memchr): Likewise.
4705
4706         * sysdeps/unix/sysv/linux/tile/ipc_priv.h: New file.
4707
4708 2016-01-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4709
4710         * NEWS: Fix typo.
4711
4712 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4713
4714         * nptl/descr.h (ENQUEUE_MUTEX_BOTH, DEQUEUE_MUTEX): Add compiler
4715         barriers and comments.
4716         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Likewise.
4717         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
4718         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
4719
4720 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4721
4722         [BZ #19402]
4723         * sysdeps/nptl/fork.c (__libc_fork): Clear list of acquired robust
4724         mutexes.
4725
4726 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4727
4728         [BZ #20985]
4729         * nptl/Makefile: Adapt.
4730         * nptl/pthread_mutex_cond_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
4731         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
4732         * nptl/pthread_mutex_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
4733         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
4734         (__pthread_mutex_lock_full): Inline lll_robust* functions and adapt.
4735         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Inline
4736         lll_robust* functions and adapt.
4737         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
4738         * sysdeps/nptl/lowlevellock.h (__lll_robust_lock_wait,
4739         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
4740         __lll_robust_timedlock, __lll_robust_unlock): Remove.
4741         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_robust_lock,
4742         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
4743         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_robust_lock,
4744         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
4745         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (__lll_robust_lock_wait,
4746         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
4747         __lll_robust_timedlock, __lll_robust_unlock): Remove.
4748         * nptl/lowlevelrobustlock.c: Remove file.
4749         * nptl/lowlevelrobustlock.sym: Likewise.
4750         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Likewise.
4751         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
4752
4753 2017-01-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4754
4755         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4756
4757 2017-01-12  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4758
4759         * po/cs.po: Merge translations from the Translation Project.
4760         * po/de.po: Likewise.
4761         * po/pl.po: Likewise.
4762         * po/ru.po: Likewise.
4763         * po/tr.po: Likewise.
4764         * po/uk.po: Likewise.
4765         * po/vi.po: Likewise.
4766         * po/zh_CN.po: Likewise.
4767
4768 2017-01-12  Joseph Myers  <joseph@codesourcery.com>
4769
4770         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: New file.
4771
4772         * math/fgetexcptflg.c (__fegetexceptflag): Store 0 in fexcept_t
4773         object.
4774
4775 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
4776
4777         [BZ #16458]
4778         * bits/uintn-identity.h: New file.
4779         * inet/netinet/in.h: Include <bits/uintn-identity.h>.
4780         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl): Use __uint32_identity.
4781         [__BYTE_ORDER == __BIG_ENDIAN] (ntohs): Use __uint16_identity.
4782         [__BYTE_ORDER == __BIG_ENDIAN] (htonl): Use __uint32_identity.
4783         [__BYTE_ORDER == __BIG_ENDIAN] (htohs): Use __uint16_identity.
4784         * string/endian.h: Include <bits/uintn-identity.h>.
4785         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole16): Use
4786         __uint16_identity.
4787         [__BYTE_ORDER == __LITTLE_ENDIAN] (le16toh): Likewise.
4788         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole32): Use
4789         __uint32_identity.
4790         [__BYTE_ORDER == __LITTLE_ENDIAN] (le32toh): Likewise.
4791         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole64): Use
4792         __uint64_identity.
4793         [__BYTE_ORDER == __LITTLE_ENDIAN] (le64toh): Likewise.
4794         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe16): Use
4795         __uint16_identity.
4796         [__BYTE_ORDER != __LITTLE_ENDIAN] (be16toh): Likewise.
4797         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe32): Use
4798         __uint32_identity.
4799         [__BYTE_ORDER != __LITTLE_ENDIAN] (be32toh): Likewise.
4800         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe64): Use
4801         __uint64_identity.
4802         [__BYTE_ORDER != __LITTLE_ENDIAN] (be64toh): Likewise.
4803         * string/Makefile (headers): Add bits/uintn-identity.h.
4804         (tests): Add test-endian-types.
4805         * string/test-endian-types.c: New file.
4806         * inet/Makefile (tests): Add test-hnto-types.
4807         * inet/test-hnto-types.c: New file.
4808
4809 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4810
4811         * po/be.po: Update from Translation Project.
4812         * po/bg.po: Likewise.
4813         * po/ca.po: Likewise.
4814         * po/cs.po: Likewise.
4815         * po/da.po: Likewise.
4816         * po/de.po: Likewise.
4817         * po/el.po: Likewise.
4818         * po/eo.po: Likewise.
4819         * po/es.po: Likewise.
4820         * po/fi.po: Likewise.
4821         * po/fr.po: Likewise.
4822         * po/gl.po: Likewise.
4823         * po/hr.po: Likewise.
4824         * po/hu.po: Likewise.
4825         * po/ia.po: Likewise.
4826         * po/id.po: Likewise.
4827         * po/it.po: Likewise.
4828         * po/ja.po: Likewise.
4829         * po/ko.po: Likewise.
4830         * po/lt.po: Likewise.
4831         * po/nb.po: Likewise.
4832         * po/nl.po: Likewise.
4833         * po/pl.po: Likewise.
4834         * po/pt_BR.po: Likewise.
4835         * po/ru.po: Likewise.
4836         * po/rw.po: Likewise.
4837         * po/sk.po: Likewise.
4838         * po/sl.po: Likewise.
4839         * po/sv.po: Likewise.
4840         * po/tr.po: Likewise.
4841         * po/uk.po: Likewise.
4842         * po/vi.po: Likewise.
4843         * po/zh_CN.po: Likewise.
4844         * po/zh_TW.po: Likewise.
4845
4846 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
4847
4848         * stdio-common/tst-printf.c [__GNUC_PREREQ (7, 0)]: Ignore
4849         -Wformat-truncation instead of -Wformat-length.
4850         * time/tst-strptime2.c (mkbuf) [__GNUC_PREREQ (7, 0)]: Likewise.
4851         * stdio-common/tstdiomisc.c (F): Ignore -Wformat-truncation for
4852         GCC 7.
4853         * wcsmbs/tst-wcstof.c: Include <libc-internal.h>.
4854         (do_test): Ignore -Wformat-truncation for GCC 7.
4855
4856         * locale/programs/ld-address.c (INT_STR_ELEM): Increase size of
4857         buffer used to print long int value.
4858
4859         * elf/sotruss-lib.c (init): Increase space allocated for pid by
4860         one byte.  Print it with %ld, cast to long int.
4861
4862 2017-01-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4863
4864         * scripts/build-many-glibcs.py (os.cpu_count): Add compatibility definition.
4865         (re.fullmatch, subprocess.run): Likewise.
4866
4867 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4868
4869         * po/libc.pot: Regenerate.
4870
4871 2016-01-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4872
4873         * elf/dl-tunables.c (tunables_unsetenv): Remove function.
4874         (min_strlen): Likewise.
4875         (disable_tunable): Likewise.
4876         (maybe_disable_malloc_check): Rename to
4877         maybe_enable_malloc_check.
4878         (maybe_enable_malloc_check): Enable glibc.malloc.check tunable
4879         if /etc/suid-debug file exists.
4880         (__tunables_init): Update caller.
4881         * elf/dl-tunables.list (glibc.malloc.check): Don't mark as
4882         secure.
4883
4884 2016-01-10  Torvald Riegel  <triegel@redhat.com>
4885
4886         * nptl/DESIGN-rwlock.txt: Remove.
4887         * nptl/lowlevelrwlock.sym: Remove.
4888         * nptl/Makefile: Add new tests.
4889         * nptl/pthread_rwlock_common.c: New file.  Contains the new rwlock.
4890         * nptl/pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Remove.
4891         (PTHREAD_RWLOCK_WRPHASE, PTHREAD_RWLOCK_WRLOCKED,
4892         PTHREAD_RWLOCK_RWAITING, PTHREAD_RWLOCK_READER_SHIFT,
4893         PTHREAD_RWLOCK_READER_OVERFLOW, PTHREAD_RWLOCK_WRHANDOVER,
4894         PTHREAD_RWLOCK_FUTEX_USED): New.
4895         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Adapt to new
4896         implementation.
4897         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow): Remove.
4898         (__pthread_rwlock_rdlock): Adapt.
4899         * nptl/pthread_rwlock_timedrdlock.c
4900         (pthread_rwlock_timedrdlock): Adapt.
4901         * nptl/pthread_rwlock_timedwrlock.c
4902         (pthread_rwlock_timedwrlock): Adapt.
4903         * nptl/pthread_rwlock_trywrlock.c (pthread_rwlock_trywrlock): Adapt.
4904         * nptl/pthread_rwlock_tryrdlock.c (pthread_rwlock_tryrdlock): Adapt.
4905         * nptl/pthread_rwlock_unlock.c (pthread_rwlock_unlock): Adapt.
4906         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow): Remove.
4907         (__pthread_rwlock_wrlock): Adapt.
4908         * nptl/tst-rwlock10.c: Adapt.
4909         * nptl/tst-rwlock11.c: Adapt.
4910         * nptl/tst-rwlock17.c: New file.
4911         * nptl/tst-rwlock18.c: New file.
4912         * nptl/tst-rwlock19.c: New file.
4913         * nptl/tst-rwlock2b.c: New file.
4914         * nptl/tst-rwlock8.c: Adapt.
4915         * nptl/tst-rwlock9.c: Adapt.
4916         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4917         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4918         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4919         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4920         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4921         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4922         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4923         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4924         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4925         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4926         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4927         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4928         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
4929         (pthread_rwlock_t): Adapt.
4930         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4931         (pthread_rwlock_t): Adapt.
4932         * sysdeps/x86/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4933         * nptl/nptl-printers.py (): Adapt.
4934         * nptl/nptl_lock_constants.pysym: Adapt.
4935         * nptl/test-rwlock-printers.py: Adapt.
4936         * nptl/test-rwlockattr-printers.c: Adapt.
4937         * nptl/test-rwlockattr-printers.py: Adapt.
4938
4939 2017-01-10  Joseph Myers  <joseph@codesourcery.com>
4940
4941         * math/libm-test.inc (XFAIL_IBM128_LIBGCC): New macro.
4942         (fdim_test_data): Use XFAIL_ROUNDING_IBM128_LIBGCC for some tests.
4943         (fma_test_data): Likewise.
4944         (hypot_test_data): Likewise.
4945         (log1p_test_data): Likewise.
4946         (modf_test_data): Likewise.
4947         (pow_test_data): Likewise.
4948         (remainder_test_data): Likewise.
4949         (remquo_test_data): Likewise.
4950         (scalb_test_data): Likewise.
4951         (scalbn_test_data): Likewise.
4952         (scalbln_test_data): Likewise.
4953         * math/gen-libm-test.pl (parse_args): Transform
4954         XFAIL_ROUNDING_IBM128_LIBGCC to XFAIL_IBM128_LIBGCC or 0 depending
4955         on the rounding mode.
4956
4957 2017-01-09  Joseph Myers  <joseph@codesourcery.com>
4958
4959         * math/gen-auto-libm-tests.c (output_for_one_input_case): Apply
4960         xfail-rounding:ibm128-libgcc automatically to tests overflowing
4961         and those that can underflow to zero.
4962         * math/auto-libm-test-in: Remove most XFAILs for ibm128-libgcc and
4963         add others.
4964         * math/auto-libm-test-out: Regenerated.
4965
4966         * math/test-fenv.c (fe_tests): Skip most tests when exceptions not
4967         supported.
4968         (feholdexcept_tests): Skip tests requiring exceptions or rounding
4969         modes support if not supported.
4970
4971         * sysdeps/unix/sysv/linux/microblaze/localplt.data (__pread64):
4972         Add libc.so PLT entry.
4973         (__tls_get_addr): Make ld.so PLT entry optional.
4974
4975 2017-01-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4976
4977         * string/bits/strings_fortified.h (explicit_bzero): Move back to ..
4978         * string/bits/string3.h: ... here.
4979
4980 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
4981
4982         [BZ #21028]
4983         * math/fsetexcptflg.c (__fesetexceptflag): Always return 0.
4984         * math/test-fexcept.c (test_set): Allow failure of feraiseexcept
4985         if EXCEPTION_TESTS returns false.
4986
4987 2017-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4988
4989         [BZ #20558]
4990         * string/bits/string3.h [__USE_MISC] (bcopy): Move to
4991         strings_fortified.h.
4992         [__USE_MISC] (bzero): Likewise.
4993         [__USE_MISC] (explicit_bzero): Likewise.
4994         * string/strings.h: Include strings_fortified.h.
4995         * string/Makefile (headers): Add strings_fortified.h.
4996         * string/bits/strings_fortified.h: New file.
4997         * include/bits/strings_fortified.h: Likewise.
4998
4999 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
5000
5001         * elf/tst-tls13.c (TIMEOUT): Remove.
5002         * iconvdata/tst-loading.c (TIMEOUT): Likewise.
5003         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Increase to 100.
5004         * malloc/tst-mallocfork2.c (TIMEOUT): Define to 100.
5005         * nss/tst-cancel-getpwuid_r.c (TIMEOUT): Define to 900.
5006         * nss/tst-nss-getpwent.c (TIMEOUT): Define to 300.
5007
5008         [BZ #21026]
5009         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
5010         (readahead): New syscall entry.
5011
5012 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
5013
5014         * string/tester.c (test_strncat): Disable -Wstringop-overflow=
5015         around tests of strncat with large sizes.
5016
5017         * malloc/tst-malloc.c: Include <libc-internal.h>.
5018         (do_test): Disable -Walloc-size-larger-than= around tests of
5019         malloc with negative sizes.
5020         * malloc/tst-mcheck.c: Include <libc-internal.h>.
5021         (do_test): Disable -Walloc-size-larger-than= around tests of
5022         malloc and realloc with negative sizes.
5023         * malloc/tst-realloc.c: Include <libc-internal.h>.
5024         (do_test): Disable -Walloc-size-larger-than= around tests of
5025         realloc with negative sizes.
5026
5027         * math/libm-test.inc (TEST_COND_ibm128_libgcc): New macro.
5028         (init_max_error) [TEST_COND_ibm128]: Increase maximum error
5029         allowed to 16 ulps.
5030         * math/auto-libm-test-in: Change most XFAILs for ibm128 to use
5031         ibm128-libgcc.  XFAIL more tests for ibm128-libgcc.
5032         * math/auto-libm-test-out: Regenerated.
5033
5034 2017-01-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5035
5036         * math/Makefile (libm-calls): Move wrappers...
5037         (libm-compat-call-auto): Here.
5038         (libm-routines): Add items in libm-compat-calls-auto.
5039         * sysdeps/powerpc/nofpu/Makefile: Add suffix ("_compat") to
5040         the filenames of the wrappers that have been renamed.
5041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Likewise.
5042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5043
5044         * math/w_acos.c: Add _compat suffix to filename.
5045         * math/w_acosf.c: Likewise.
5046         * math/w_acosh.c: Likewise.
5047         * math/w_acoshf.c: Likewise.
5048         * math/w_acoshl.c: Likewise.
5049         * math/w_acosl.c: Likewise.
5050         * math/w_asin.c: Likewise.
5051         * math/w_asinf.c: Likewise.
5052         * math/w_asinl.c: Likewise.
5053         * math/w_atan2.c: Likewise.
5054         * math/w_atan2f.c: Likewise.
5055         * math/w_atan2l.c: Likewise.
5056         * math/w_atanh.c: Likewise.
5057         * math/w_atanhf.c: Likewise.
5058         * math/w_atanhl.c: Likewise.
5059         * math/w_cosh.c: Likewise.
5060         * math/w_coshf.c: Likewise.
5061         * math/w_coshl.c: Likewise.
5062         * math/w_exp10.c: Likewise.
5063         * math/w_exp10f.c: Likewise.
5064         * math/w_exp10l.c: Likewise.
5065         * math/w_exp2.c: Likewise.
5066         * math/w_exp2f.c: Likewise.
5067         * math/w_exp2l.c: Likewise.
5068         * math/w_fmod.c: Likewise.
5069         * math/w_fmodf.c: Likewise.
5070         * math/w_fmodl.c: Likewise.
5071         * math/w_hypot.c: Likewise.
5072         * math/w_hypotf.c: Likewise.
5073         * math/w_hypotl.c: Likewise.
5074         * math/w_j0.c: Likewise.
5075         * math/w_j0f.c: Likewise.
5076         * math/w_j0l.c: Likewise.
5077         * math/w_j1.c: Likewise.
5078         * math/w_j1f.c: Likewise.
5079         * math/w_j1l.c: Likewise.
5080         * math/w_jn.c: Likewise.
5081         * math/w_jnf.c: Likewise.
5082         * math/w_jnl.c: Likewise.
5083         * math/w_log10.c: Likewise.
5084         * math/w_log10f.c: Likewise.
5085         * math/w_log10l.c: Likewise.
5086         * math/w_log2.c: Likewise.
5087         * math/w_log2f.c: Likewise.
5088         * math/w_log2l.c: Likewise.
5089         * math/w_log.c: Likewise.
5090         * math/w_logf.c: Likewise.
5091         * math/w_logl.c: Likewise.
5092         * math/w_pow.c: Likewise.
5093         * math/w_powf.c: Likewise.
5094         * math/w_powl.c: Likewise.
5095         * math/w_remainder.c: Likewise.
5096         * math/w_remainderf.c: Likewise.
5097         * math/w_remainderl.c: Likewise.
5098         * math/w_scalb.c: Likewise.
5099         * math/w_scalbf.c: Likewise.
5100         * math/w_scalbl.c: Likewise.
5101         * math/w_sinh.c: Likewise.
5102         * math/w_sinhf.c: Likewise.
5103         * math/w_sinhl.c: Likewise.
5104         * math/w_sqrt.c: Likewise.
5105         * math/w_sqrtf.c: Likewise.
5106         * math/w_sqrtl.c: Likewise.
5107         * math/w_tgamma.c: Likewise.
5108         * math/w_tgammaf.c: Likewise.
5109         * math/w_tgammal.c: Likewise.
5110
5111         * math/w_acos_compat.c: New file copied from above and
5112         adjusted for new #includes path
5113         * math/w_acosf_compat.c: Likewise.
5114         * math/w_acosh_compat.c: Likewise.
5115         * math/w_acoshf_compat.c: Likewise.
5116         * math/w_acoshl_compat.c: Likewise.
5117         * math/w_acosl_compat.c: Likewise.
5118         * math/w_asin_compat.c: Likewise.
5119         * math/w_asinf_compat.c: Likewise.
5120         * math/w_asinl_compat.c: Likewise.
5121         * math/w_atan2_compat.c: Likewise.
5122         * math/w_atan2f_compat.c: Likewise.
5123         * math/w_atan2l_compat.c: Likewise.
5124         * math/w_atanh_compat.c: Likewise.
5125         * math/w_atanhf_compat.c: Likewise.
5126         * math/w_atanhl_compat.c: Likewise.
5127         * math/w_cosh_compat.c: Likewise.
5128         * math/w_coshf_compat.c: Likewise.
5129         * math/w_coshl_compat.c: Likewise.
5130         * math/w_exp10_compat.c: Likewise.
5131         * math/w_exp10f_compat.c: Likewise.
5132         * math/w_exp10l_compat.c: Likewise.
5133         * math/w_exp2_compat.c: Likewise.
5134         * math/w_exp2f_compat.c: Likewise.
5135         * math/w_exp2l_compat.c: Likewise.
5136         * math/w_fmod_compat.c: Likewise.
5137         * math/w_fmodf_compat.c: Likewise.
5138         * math/w_fmodl_compat.c: Likewise.
5139         * math/w_hypot_compat.c: Likewise.
5140         * math/w_hypotf_compat.c: Likewise.
5141         * math/w_hypotl_compat.c: Likewise.
5142         * math/w_j0_compat.c: Likewise.
5143         * math/w_j0f_compat.c: Likewise.
5144         * math/w_j0l_compat.c: Likewise.
5145         * math/w_j1_compat.c: Likewise.
5146         * math/w_j1f_compat.c: Likewise.
5147         * math/w_j1l_compat.c: Likewise.
5148         * math/w_jn_compat.c: Likewise.
5149         * math/w_jnf_compat.c: Likewise.
5150         * math/w_jnl_compat.c: Likewise.
5151         * math/w_log10_compat.c: Likewise.
5152         * math/w_log10f_compat.c: Likewise.
5153         * math/w_log10l_compat.c: Likewise.
5154         * math/w_log2_compat.c: Likewise.
5155         * math/w_log2f_compat.c: Likewise.
5156         * math/w_log2l_compat.c: Likewise.
5157         * math/w_log_compat.c: Likewise.
5158         * math/w_logf_compat.c: Likewise.
5159         * math/w_logl_compat.c: Likewise.
5160         * math/w_pow_compat.c: Likewise.
5161         * math/w_powf_compat.c: Likewise.
5162         * math/w_powl_compat.c: Likewise.
5163         * math/w_remainder_compat.c: Likewise.
5164         * math/w_remainderf_compat.c: Likewise.
5165         * math/w_remainderl_compat.c: Likewise.
5166         * math/w_scalb_compat.c: Likewise.
5167         * math/w_scalbf_compat.c: Likewise.
5168         * math/w_scalbl_compat.c: Likewise.
5169         * math/w_sinh_compat.c: Likewise.
5170         * math/w_sinhf_compat.c: Likewise.
5171         * math/w_sinhl_compat.c: Likewise.
5172         * math/w_sqrt_compat.c: Likewise.
5173         * math/w_sqrtf_compat.c: Likewise.
5174         * math/w_sqrtl_compat.c: Likewise.
5175         * math/w_tgamma_compat.c: Likewise.
5176         * math/w_tgammaf_compat.c: Likewise.
5177         * math/w_tgammal_compat.c: Likewise.
5178
5179         * sysdeps/i386/fpu/w_sqrt.c: Add _compat suffix to filename.
5180         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5181         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5182         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5183         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5184         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5185         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5186         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5187         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5188         * sysdeps/ia64/fpu/w_scalbl.c: Likewise.
5189         * sysdeps/ia64/fpu/w_scalbf.c: Likewise.
5190         * sysdeps/ia64/fpu/w_scalb.c: Likewise.
5191         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5192         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5193         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5194         * sysdeps/ia64/fpu/w_powl.c: Likewise.
5195         * sysdeps/ia64/fpu/w_powf.c: Likewise.
5196         * sysdeps/ia64/fpu/w_pow.c: Likewise.
5197         * sysdeps/ia64/fpu/w_logl.c: Likewise.
5198         * sysdeps/ia64/fpu/w_logf.c: Likewise.
5199         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5200         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5201         * sysdeps/ia64/fpu/w_log2.c: Likewise.
5202         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5203         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5204         * sysdeps/ia64/fpu/w_log10.c: Likewise.
5205         * sysdeps/ia64/fpu/w_log.c: Likewise.
5206         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5207         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5208         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5209         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5210         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5211         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5212         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5213         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5214         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5215         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5216         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5217         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5218         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5219         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5220         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5221         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5222         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5223         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5224         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5225         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5226         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5227         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5228         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5229         * sysdeps/ia64/fpu/w_asin.c: Likewise.
5230         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5231         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5232         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5233         * sysdeps/ia64/fpu/w_acos.c: Likewise.
5234         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
5235         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
5236         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
5237         * sysdeps/ieee754/ldbl-opt/w_acos.c: Likewise.
5238         * sysdeps/ieee754/ldbl-opt/w_acosh.c: Likewise.
5239         * sysdeps/ieee754/ldbl-opt/w_acoshl.c: Likewise.
5240         * sysdeps/ieee754/ldbl-opt/w_acosl.c: Likewise.
5241         * sysdeps/ieee754/ldbl-opt/w_asin.c: Likewise.
5242         * sysdeps/ieee754/ldbl-opt/w_asinl.c: Likewise.
5243         * sysdeps/ieee754/ldbl-opt/w_atan2.c: Likewise.
5244         * sysdeps/ieee754/ldbl-opt/w_atan2l.c: Likewise.
5245         * sysdeps/ieee754/ldbl-opt/w_atanh.c: Likewise.
5246         * sysdeps/ieee754/ldbl-opt/w_atanhl.c: Likewise.
5247         * sysdeps/ieee754/ldbl-opt/w_cosh.c: Likewise.
5248         * sysdeps/ieee754/ldbl-opt/w_coshl.c: Likewise.
5249         * sysdeps/ieee754/ldbl-opt/w_exp10.c: Likewise.
5250         * sysdeps/ieee754/ldbl-opt/w_exp10l.c: Likewise.
5251         * sysdeps/ieee754/ldbl-opt/w_fmod.c: Likewise.
5252         * sysdeps/ieee754/ldbl-opt/w_fmodl.c: Likewise.
5253         * sysdeps/ieee754/ldbl-opt/w_hypot.c: Likewise.
5254         * sysdeps/ieee754/ldbl-opt/w_hypotl.c: Likewise.
5255         * sysdeps/ieee754/ldbl-opt/w_j0.c: Likewise.
5256         * sysdeps/ieee754/ldbl-opt/w_j0l.c: Likewise.
5257         * sysdeps/ieee754/ldbl-opt/w_j1.c: Likewise.
5258         * sysdeps/ieee754/ldbl-opt/w_j1l.c: Likewise.
5259         * sysdeps/ieee754/ldbl-opt/w_jn.c: Likewise.
5260         * sysdeps/ieee754/ldbl-opt/w_jnl.c: Likewise.
5261         * sysdeps/ieee754/ldbl-opt/w_log10.c: Likewise.
5262         * sysdeps/ieee754/ldbl-opt/w_log10l.c: Likewise.
5263         * sysdeps/ieee754/ldbl-opt/w_log2.c: Likewise.
5264         * sysdeps/ieee754/ldbl-opt/w_log2l.c: Likewise.
5265         * sysdeps/ieee754/ldbl-opt/w_log.c: Likewise.
5266         * sysdeps/ieee754/ldbl-opt/w_logl.c: Likewise.
5267         * sysdeps/ieee754/ldbl-opt/w_pow.c: Likewise.
5268         * sysdeps/ieee754/ldbl-opt/w_powl.c: Likewise.
5269         * sysdeps/ieee754/ldbl-opt/w_remainder.c: Likewise.
5270         * sysdeps/ieee754/ldbl-opt/w_remainderl.c: Likewise.
5271         * sysdeps/ieee754/ldbl-opt/w_scalb.c: Likewise.
5272         * sysdeps/ieee754/ldbl-opt/w_scalbl.c: Likewise.
5273         * sysdeps/ieee754/ldbl-opt/w_sinh.c: Likewise.
5274         * sysdeps/ieee754/ldbl-opt/w_sinhl.c: Likewise.
5275         * sysdeps/ieee754/ldbl-opt/w_sqrt.c: Likewise.
5276         * sysdeps/ieee754/ldbl-opt/w_sqrtl.c: Likewise.
5277         * sysdeps/ieee754/ldbl-opt/w_tgamma.c: Likewise.
5278         * sysdeps/ieee754/ldbl-opt/w_tgammal.c: Likewise.
5279         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S:
5280         Likewise.
5281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S:
5282         Likewise.
5283         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: Likewise.
5284         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S:
5285         Likewise.
5286         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S:
5287         Likewise.
5288         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: Likewise.
5289         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5290         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5291         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5292         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5293         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
5294         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
5295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: Likewise.
5296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
5297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: Likewise.
5298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
5299         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
5300         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
5301         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
5302         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
5303
5304         * sysdeps/i386/fpu/w_sqrt_compat.c: New file copied from above
5305         and adjusted for new #includes path
5306         * sysdeps/ia64/fpu/w_acos_compat.c: Likewise.
5307         * sysdeps/ia64/fpu/w_acosf_compat.c: Likewise.
5308         * sysdeps/ia64/fpu/w_acosh_compat.c: Likewise.
5309         * sysdeps/ia64/fpu/w_acoshf_compat.c: Likewise.
5310         * sysdeps/ia64/fpu/w_acoshl_compat.c: Likewise.
5311         * sysdeps/ia64/fpu/w_acosl_compat.c: Likewise.
5312         * sysdeps/ia64/fpu/w_asin_compat.c: Likewise.
5313         * sysdeps/ia64/fpu/w_asinf_compat.c: Likewise.
5314         * sysdeps/ia64/fpu/w_asinl_compat.c: Likewise.
5315         * sysdeps/ia64/fpu/w_atan2_compat.c: Likewise.
5316         * sysdeps/ia64/fpu/w_atan2f_compat.c: Likewise.
5317         * sysdeps/ia64/fpu/w_atan2l_compat.c: Likewise.
5318         * sysdeps/ia64/fpu/w_atanh_compat.c: Likewise.
5319         * sysdeps/ia64/fpu/w_atanhf_compat.c: Likewise.
5320         * sysdeps/ia64/fpu/w_atanhl_compat.c: Likewise.
5321         * sysdeps/ia64/fpu/w_cosh_compat.c: Likewise.
5322         * sysdeps/ia64/fpu/w_coshf_compat.c: Likewise.
5323         * sysdeps/ia64/fpu/w_coshl_compat.c: Likewise.
5324         * sysdeps/ia64/fpu/w_exp10_compat.c: Likewise.
5325         * sysdeps/ia64/fpu/w_exp10f_compat.c: Likewise.
5326         * sysdeps/ia64/fpu/w_exp10l_compat.c: Likewise.
5327         * sysdeps/ia64/fpu/w_exp2_compat.c: Likewise.
5328         * sysdeps/ia64/fpu/w_exp2f_compat.c: Likewise.
5329         * sysdeps/ia64/fpu/w_exp2l_compat.c: Likewise.
5330         * sysdeps/ia64/fpu/w_fmod_compat.c: Likewise.
5331         * sysdeps/ia64/fpu/w_fmodf_compat.c: Likewise.
5332         * sysdeps/ia64/fpu/w_fmodl_compat.c: Likewise.
5333         * sysdeps/ia64/fpu/w_hypot_compat.c: Likewise.
5334         * sysdeps/ia64/fpu/w_hypotf_compat.c: Likewise.
5335         * sysdeps/ia64/fpu/w_hypotl_compat.c: Likewise.
5336         * sysdeps/ia64/fpu/w_log10_compat.c: Likewise.
5337         * sysdeps/ia64/fpu/w_log10f_compat.c: Likewise.
5338         * sysdeps/ia64/fpu/w_log10l_compat.c: Likewise.
5339         * sysdeps/ia64/fpu/w_log2_compat.c: Likewise.
5340         * sysdeps/ia64/fpu/w_log2f_compat.c: Likewise.
5341         * sysdeps/ia64/fpu/w_log2l_compat.c: Likewise.
5342         * sysdeps/ia64/fpu/w_log_compat.c: Likewise.
5343         * sysdeps/ia64/fpu/w_logf_compat.c: Likewise.
5344         * sysdeps/ia64/fpu/w_logl_compat.c: Likewise.
5345         * sysdeps/ia64/fpu/w_pow_compat.c: Likewise.
5346         * sysdeps/ia64/fpu/w_powf_compat.c: Likewise.
5347         * sysdeps/ia64/fpu/w_powl_compat.c: Likewise.
5348         * sysdeps/ia64/fpu/w_remainder_compat.c: Likewise.
5349         * sysdeps/ia64/fpu/w_remainderf_compat.c: Likewise.
5350         * sysdeps/ia64/fpu/w_remainderl_compat.c: Likewise.
5351         * sysdeps/ia64/fpu/w_scalb_compat.c: Likewise.
5352         * sysdeps/ia64/fpu/w_scalbf_compat.c: Likewise.
5353         * sysdeps/ia64/fpu/w_scalbl_compat.c: Likewise.
5354         * sysdeps/ia64/fpu/w_sinh_compat.c: Likewise.
5355         * sysdeps/ia64/fpu/w_sinhf_compat.c: Likewise.
5356         * sysdeps/ia64/fpu/w_sinhl_compat.c: Likewise.
5357         * sysdeps/ia64/fpu/w_sqrt_compat.c: Likewise.
5358         * sysdeps/ia64/fpu/w_sqrtf_compat.c: Likewise.
5359         * sysdeps/ia64/fpu/w_sqrtl_compat.c: Likewise.
5360         * sysdeps/ia64/fpu/w_tgamma_compat.S: Likewise.
5361         * sysdeps/ia64/fpu/w_tgammaf_compat.S: Likewise.
5362         * sysdeps/ia64/fpu/w_tgammal_compat.S: Likewise.
5363         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Likewise.
5364         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5365         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5366         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5367         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5368         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5369         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5370         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5371         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5372         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5373         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5374         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5375         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c: Likewise.
5376         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Likewise.
5377         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5378         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5379         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5380         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5381         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5382         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5383         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5384         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5385         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5386         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5387         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5388         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5389         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5390         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5391         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5392         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5393         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5394         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5395         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c: Likewise.
5396         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5397         * sysdeps/ieee754/ldbl-opt/w_scalb_compat.c: Likewise.
5398         * sysdeps/ieee754/ldbl-opt/w_scalbl_compat.c: Likewise.
5399         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5400         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5401         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5402         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5403         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5404         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5405         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
5406         Likewise.
5407         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
5408         Likewise.
5409         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
5410         Likewise.
5411         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
5412         Likewise.
5413         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
5414         Likewise.
5415         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
5416         Likewise.
5417         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5418         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5419         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5420         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5421         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
5422         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
5423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
5424         Likewise.
5425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
5426         Likewise.
5427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
5428         Likewise.
5429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
5430         Likewise.
5431         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
5432         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
5433         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
5434         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
5435
5436 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
5437
5438         * sysdeps/microblaze/bits/setjmp.h (__jmp_buf): Give struct tag
5439         __jmp_buf_internal_tag.
5440
5441         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Always
5442         preserve NaN payload if [__mips_nan2008].
5443         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5444
5445         [BZ #21022]
5446         * sysdeps/microblaze/backtrace.c (get_frame_size): Make static.
5447
5448 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5449
5450         * sysdeps/i386/fpu/libm-test-ulps: Update.
5451
5452 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5453
5454         * sysdeps/ia64/strcat.c: Remove file.
5455         * sysdeps/powerpc/strcat.c: Likewise.
5456         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Use default
5457         C implementation.
5458         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Likewise.
5459         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: Likewise.
5460
5461 2017-01-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5462             Steven Munroe  <sjmunroe@us.ibm.com>
5463             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5464
5465         [BZ #20822]
5466         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
5467         (__lll_lock_elision): Access adapt_count via C11 atomics.
5468         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
5469         (__lll_trylock_elision): Likewise.
5470         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
5471         (__lll_unlock_elision):  Update adapt_count variable inside the
5472         critical section using C11 atomics.
5473
5474 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5475
5476         * math/test-fenvinline.c (do_test): Disable tests of raised
5477         exceptions if !EXCEPTION_TESTS (FLOAT).
5478
5479 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5480
5481         [BZ #19390]
5482         * string/test-strncat.c (test_main): Add tests with SIZE_MAX as
5483         maximum string size.
5484         * sysdeps/i386/i686/multiarch/strcat-sse2.S (STRCAT): Avoid overflow
5485         in pointer addition.
5486         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S (STRCPY):
5487         Likewise.
5488
5489 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5490
5491         * elf/Makefile ($(objpfx)tst-ldconfig-X.out): Correct arguments
5492         passed to tst-ldconfig-X.sh.
5493
5494 2017-01-03  Martin Galvan  <martingalvan@sourceware.org>
5495
5496         * nptl/nptl-printers.py: Fix tabs/spaces mismatches.
5497
5498 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5499
5500         [BZ #21019]
5501         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (lseek64):
5502         New syscall entry.
5503         * sysdeps/unix/sysv/linux/mips/mips64/n32/lseek.c: New file.
5504         * io/test-lfs.c (do_test): Test offset returned from lseek64 and
5505         lseek.
5506
5507         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
5508         power4 glibc for powerpc-linux-gnu.
5509
5510 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5511
5512         * sysvipc/test-sysvsem.c (do_test): Define and use union semun on
5513         semctl.
5514
5515 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5516
5517         * math/test-nearbyint-except.c: Include <stdbool.h>.
5518         (any_supported): New variable.
5519         (TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT).  Otherwise
5520         set any_supported.
5521         (do_test): Return 77 if no floating-point type supported
5522         exceptions.
5523
5524         * sysdeps/mips/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Do not
5525         condition on [__mips_hard_float].
5526
5527 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5528
5529         [BZ #21014]
5530         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S (MEMCHR): Avoid overflow
5531         in pointer addition.
5532         * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Likewise.
5533
5534 2017-01-02  Torvald Riegel  <triegel@redhat.com>
5535
5536         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt to
5537         new condvar.
5538
5539 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5540
5541         * scripts/build-many-glibcs.py (Context.checkout): Default
5542         binutils version to 2.28 branch.
5543
5544 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5545
5546         * support/support_format_netent.c (support_format_netent): Work
5547         around alpha struct netent definition difference.
5548
5549 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5550
5551         * support/xwrite.c (xwrite): Use %td for pointer difference.
5552
5553 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5554
5555         * malloc/Makefile (tests): Add tst-malloc-usable-tunables for
5556         have-tunables only.
5557         (tests-static): Add tst-malloc-usable-static-tunables for
5558         have-tunables only.
5559
5560 2017-01-01  Joseph Myers  <joseph@codesourcery.com>
5561
5562         * scripts/config.guess: Update to version 2017-01-01.
5563         * scripts/config.sub: Update to version 2017-01-01.
5564
5565         * NEWS: Update copyright dates.
5566         * catgets/gencat.c (print_version): Likewise.
5567         * csu/version.c (banner): Likewise.
5568         * debug/catchsegv.sh: Likewise.
5569         * debug/pcprofiledump.c (print_version): Likewise.
5570         * debug/xtrace.sh (do_version): Likewise.
5571         * elf/ldconfig.c (print_version): Likewise.
5572         * elf/ldd.bash.in: Likewise.
5573         * elf/pldd.c (print_version): Likewise.
5574         * elf/sotruss.sh: Likewise.
5575         * elf/sprof.c (print_version): Likewise.
5576         * iconv/iconv_prog.c (print_version): Likewise.
5577         * iconv/iconvconfig.c (print_version): Likewise.
5578         * locale/programs/locale.c (print_version): Likewise.
5579         * locale/programs/localedef.c (print_version): Likewise.
5580         * login/programs/pt_chown.c (print_version): Likewise.
5581         * malloc/memusage.sh (do_version): Likewise.
5582         * malloc/memusagestat.c (print_version): Likewise.
5583         * malloc/mtrace.pl: Likewise.
5584         * manual/libc.texinfo: Likewise.
5585         * nptl/version.c (banner): Likewise.
5586         * nscd/nscd.c (print_version): Likewise.
5587         * nss/getent.c (print_version): Likewise.
5588         * nss/makedb.c (print_version): Likewise.
5589         * posix/getconf.c (main): Likewise.
5590         * scripts/test-installation.pl: Likewise.
5591         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5592
5593         * All files with FSF copyright notices: Update copyright dates
5594         using scripts/update-copyrights.
5595         * intl/plural.c: Regenerated.
5596         * locale/programs/charmap-kw.h: Likewise.
5597         * locale/programs/locfile-kw.h: Likewise.
5598
5599 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5600
5601         [BZ #20593]
5602         Update DNS RR type definitions.
5603         * scripts/gen-rrtypes.py: New file.
5604         * resolv/arpa/nameser.h (ns_type): Remove ns_t_zxfr, a
5605         BIND-internal RR type not used on the Internet.  Add ns_t_ds,
5606         ns_t_sshfp, ns_t_ipseckey, ns_t_rrsig, ns_t_nsec, ns_t_dnskey,
5607         ns_t_dhcid, ns_t_nsec3, ns_t_nsec3param, ns_t_tlsa, ns_t_smimea,
5608         ns_t_hip, ns_t_ninfo, ns_t_rkey, ns_t_talink, ns_t_cds,
5609         ns_t_cdnskey, ns_t_openpgpkey, ns_t_csync, ns_t_spf, ns_t_uinfo,
5610         ns_t_uid, ns_t_gid, ns_t_unspec, ns_t_nid, ns_t_l32, ns_t_l64,
5611         ns_t_lp, ns_t_eui48, ns_t_eui64, ns_t_uri, ns_t_caa, ns_t_avc,
5612         ns_t_ta, ns_t_dlv.
5613         * resolv/arpa/nameser_compat.h (T_KX, T_CERT, T_SINK, T_OPT)
5614         (T_APL, T_DS, T_SSHFP, T_IPSECKEY, T_RRSIG, T_NSEC, T_DNSKEY)
5615         (T_DHCID, T_NSEC3, T_NSEC3PARAM, T_TLSA, T_SMIMEA, T_HIP, T_NINFO)
5616         (T_RKEY, T_TALINK, T_CDS, T_CDNSKEY, T_OPENPGPKEY, T_CSYNC, T_SPF)
5617         (T_UINFO, T_UID, T_GID, T_UNSPEC, T_NID, T_L32, T_L64, T_LP)
5618         (T_EUI48, T_EUI64, T_TKEY, T_URI, T_CAA, T_AVC, T_TA, T_DLV):
5619         Define.
5620         * resolv/res_debug.c (__p_type_syms): Update comment.  Remove
5621         entry for ns_t_zxfr.
5622
5623 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5624
5625         [BZ #18784]
5626         CVE-2015-5180
5627         * include/arpa/nameser_compat.h (T_QUERY_A_AND_AAAA): Rename from
5628         T_UNSPEC.  Adjust value.
5629         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Use it.
5630         * resolv/res_query.c (__libc_res_nquery): Likewise.
5631         * resolv/res_mkquery.c (res_nmkquery): Check for out-of-range
5632         QTYPEs.
5633         * resolv/tst-resolv-qtypes.c: New file.
5634         * resolv/Makefile (xtests): Add tst-resolv-qtypes.
5635         (tst-resolv-qtypes): Link against libresolv and libpthread.
5636
5637 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5638
5639         * elf/dl-tunables.h (__tunables_init): Fix unused attribute.
5640
5641 2016-12-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5642
5643         * manual/tunables.texi: New chapter.
5644         * manual/Makefile (chapters): Add it.
5645         * manual/probes.texi (@node): Point to the Tunables chapter.
5646
5647         * Makeconfig (have-tunables): Check for non-negative instead
5648         of positive.
5649         * configure.ac: Add 'valstring' as a valid value for
5650         --enable-tunables.
5651         * configure: Regenerate.
5652         * elf/Makefile (have-tunables): Check for non-negative instead
5653         of positive.
5654         (CPPFLAGS-dl-tunables.c): Define TUNABLES_FRONTEND for
5655         dl-tunables.c.
5656         * elf/dl-tunables.c (GLIBC_TUNABLES): Define only when
5657         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
5658         (tunables_strdup): Likewise.
5659         (disable_tunables): Likewise.
5660         (parse_tunables): Likewise.
5661         (__tunables_init): Process GLIBC_TUNABLES envvar only when.
5662         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
5663         * elf/dl-tunables.h (TUNABLES_FRONTEND_valstring): New macro.
5664         (TUNABLES_FRONTEND_yes): New macro, define as
5665         TUNABLES_FRONTEND_valstring by default.
5666         * manual/install.texi: Document new acceptable values for
5667         --enable-tunables.
5668         * INSTALL: Regenerate.
5669
5670         * config.make.in (have-loop-to-function): Define.
5671         * elf/Makefile (CFLAGS-dl-tunables.c): Add
5672         -fno-tree-loop-distribute-patterns.
5673         * elf/dl-tunables.c: Include libc-internals.h.
5674         (GLIBC_TUNABLES): New macro.
5675         (tunables_strdup): New function.
5676         (parse_tunables): New function.
5677         (min_strlen): New function.
5678         (__tunables_init): Use the new functions and macro.
5679         (disable_tunable): Disable tunable from GLIBC_TUNABLES.
5680         * malloc/tst-malloc-usable-tunables.c: New test case.
5681         * malloc/tst-malloc-usable-static-tunables.c: New test case.
5682         * malloc/Makefile (tests, tests-static): Add tests.
5683
5684         * manual/install.texi: Add --enable-tunables option.
5685         * INSTALL: Regenerate.
5686         * README.tunables: New file.
5687         * Makeconfig (CPPFLAGS): Define TOP_NAMESPACE.
5688         (before-compile): Generate dl-tunable-list.h early.
5689         * config.h.in: Add HAVE_TUNABLES.
5690         * config.make.in: Add have-tunables.
5691         * configure.ac: Add --enable-tunables option.
5692         * configure: Regenerate.
5693         * csu/init-first.c (__libc_init_first): Move
5694         __libc_init_secure earlier...
5695         * csu/init-first.c (LIBC_START_MAIN):... to here.
5696         Include dl-tunables.h, libc-internal.h.
5697         (LIBC_START_MAIN) [!SHARED]: Initialize tunables for static
5698         binaries.
5699         * elf/Makefile (dl-routines): Add dl-tunables.
5700         * elf/Versions (ld): Add __tunable_set_val to GLIBC_PRIVATE
5701         namespace.
5702         * elf/dl-support (_dl_nondynamic_init): Unset MALLOC_CHECK_
5703         only when !HAVE_TUNABLES.
5704         * elf/rtld.c (process_envvars): Likewise.
5705         * elf/dl-sysdep.c [HAVE_TUNABLES]: Include dl-tunables.h
5706         (_dl_sysdep_start): Call __tunables_init.
5707         * elf/dl-tunable-types.h: New file.
5708         * elf/dl-tunables.c: New file.
5709         * elf/dl-tunables.h: New file.
5710         * elf/dl-tunables.list: New file.
5711         * malloc/tst-malloc-usable-static.c: New test case.
5712         * malloc/Makefile (tests-static): Add it.
5713         * malloc/arena.c [HAVE_TUNABLES]: Include dl-tunables.h.
5714         Define TUNABLE_NAMESPACE.
5715         (DL_TUNABLE_CALLBACK (set_mallopt_check)): New function.
5716         (DL_TUNABLE_CALLBACK_FNDECL): New macro.  Use it to define
5717         callback functions.
5718         (ptmalloc_init): Set tunable values.
5719         * scripts/gen-tunables.awk: New file.
5720         * sysdeps/mach/hurd/dl-sysdep.c: Include dl-tunables.h.
5721         (_dl_sysdep_start): Call __tunables_init.
5722
5723 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5724
5725         * resolv/resolv.h (RES_BLAST): Deprecate.
5726         * resolv/res_debug.c (p_option): Remove RES_BLAST.
5727         * resolv/res_send.c (__libc_res_nsend): Remove vestigial reference
5728         to RES_BLAST.
5729
5730 2016-12-27  Florian Weimer  <fweimer@redhat.com>
5731
5732         [BZ #19582]
5733         Deprecate RES_USE_INET6.
5734         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostent_r)
5735         (_nss_nis_gethostbyname2_r, _nss_nis_gethostbyname_r)
5736         (_nss_nis_gethostbyaddr_r): Use res_use_inet6 instead of
5737         RES_USE_INET6.
5738         * nis/nss_nisplus/nisplus-hosts.c (internal_nisplus_gethostent_r)
5739         (_nss_nisplus_gethostbyname2_r, _nss_nisplus_gethostbyname_r)
5740         (_nss_nisplus_gethostbyaddr_r): Likewise.
5741         * nscd/aicache.c (addhstaiX): Use DEPRECATED_RES_USE_INET6 instead
5742         of res_use_inet6.
5743         * nscd/nscd_gethst_r.c (__nscd_gethostbyname_r): Use res_use_inet6
5744         instead of RES_USE_INET6.
5745         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
5746         * nss/nss_files/files-hosts.c (EXTRA_ARGS_VALUE)
5747         (_nss_files_gethostbyname3_r, _nss_files_gethostbyname_r):
5748         Likewise.
5749         * resolv/compat-gethnamaddr.c (getanswer, res_gethostbyname)
5750         (res_gethostbyname2, res_gethostbyaddr, _gethtent, _gethtbyname):
5751         Likewise.
5752         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r)
5753         (_nss_dns_gethostbyname_r): Likewise.
5754         (_nss_dns_gethostbyaddr2_r): Remove commented-out code for
5755         alternate RES_USE_INET6 handling.
5756         * resolv/res_debug.c (p_option): Use DEPRECATED_RES_USE_INET6
5757         instead of RES_USE_INET6.
5758         * resolv/res_init.c (res_setoptions): Likewise.
5759         * resolv/resolv.h (RES_USE_INET6): Mark as deprecated.
5760         * resolv/resolv-internal.h: New file.
5761         * resolv/Makefile (CFLAGS-tst-res_use_inet6.c): Use -Wno-error to
5762         make the deprecation warning non-fatal.
5763         * resolv/README (Using the resolver in multi-threaded code): Drop
5764         reference to RES_USE_INET6.
5765         * sysdeps/posix/getaddrinfo.c (gethosts, gaih_inet): Use
5766         DEPRECATED_RES_USE_INET6 instead of res_use_inet6.
5767
5768 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5769
5770         * resolv/Makefile (tests): Add tst-bug18665, tst-bug18665-tcp,
5771         tst-res_use_inet6, tst-resolv-basic, tst-resolv-network,
5772         tst-resolv-search.
5773         (tst-bug18665, tst-bug18665-tcp, tst-res_use_inet6)
5774         (tst-resolv-basic, tst-resolv-network, tst-resolv-search): Link
5775         with libresolv and libpthread.
5776         * resolv/tst-bug18665.c: New file.
5777         * resolv/tst-bug18665-tcp: Likewise.
5778         * resolv/tst-res_use_inet6: Likewise.
5779         * resolv/tst-resolv-basic: Likewise.
5780         * resolv/tst-resolv-network: Likewise.
5781         * resolv/tst-resolv-search: Likewise.
5782         * support/Makefile (libsupport-routines): Add check_addrinfo,
5783         check_dns_packet, check_hostent, check_netent, resolv_test,
5784         support_format_address_family, support_format_addrinfo,
5785         support_format_dns_packet, support_format_herrno,
5786         support_format_hostent, support_format_netent, support_run_diff,
5787         xaccept, xbind, xconnect, xfclose, xfopen, xgetsockname, xlisten,
5788         xmemstream, xpoll, xpthread_once, xrecvfrom, xsendto, xsetsockopt,
5789         xstrdup, xwrite.
5790         * support/check_addrinfo.c: New file.
5791         * support/check_dns_packet.c: Likewise.
5792         * support/check_hostent.c: Likewise.
5793         * support/check_netent.c: Likewise.
5794         * support/check_nss.h: Likewise.
5795         * support/format_nss.h: Likewise.
5796         * support/resolv_test.c: Likewise.
5797         * support/resolv_test.h: Likewise.
5798         * support/run_diff.h: Likewise.
5799         * support/support_format_address_family.c: Likewise.
5800         * support/support_format_addrinfo.c: Likewise.
5801         * support/support_format_dns_packet.c: Likewise.
5802         * support/support_format_herrno.c: Likewise.
5803         * support/support_format_hostent.c: Likewise.
5804         * support/support_format_netent.c: Likewise.
5805         * support/support_run_diff.c: Likewise.
5806         * support/xaccept.c: Likewise.
5807         * support/xbind.c: Likewise.
5808         * support/xconnect.c: Likewise.
5809         * support/xfclose.c: Likewise.
5810         * support/xfopen.c: Likewise.
5811         * support/xgetsockname.c: Likewise.
5812         * support/xlisten.c: Likewise.
5813         * support/xmemstream.c: Likewise.
5814         * support/xmemstream.h: Likewise.
5815         * support/xpoll.c: Likewise.
5816         * support/xpthread_once.c: Likewise.
5817         * support/xrecvfrom.c: Likewise.
5818         * support/xsendto.c: Likewise.
5819         * support/xsetsockopt.c: Likewise.
5820         * support/xstdio.h: Likewise.
5821         * support/xstrdup.c: Likewise.
5822         * support/support.h (xstrdup): Declare.
5823         * support/xsocket.h (xsetsockopt, xgetsockname, xconnect, xbind)
5824         (xlisten, xaccept, xsendto, xrecvfrom, xpoll): Likewise.
5825         * support/xthread.h (xpthread_once): Likwise.
5826         * support/xunistd.h (xwrite): Declare.
5827
5828 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5829
5830         * support/test-driver.h (TEST_DEFAULT_OPTIONS): Add --verbose.
5831         (test_verbose): Declare.
5832         * support/test-driver.c (main): Use TEST_DEFAULT_OPTIONS.
5833         * support/support_test_main.c (default_options): Likewise.
5834         (usage, support_test_main): Handle 'v'.
5835         (test_verbose): Define.
5836         * support/tst-support_record_failure.c (do_test): Use
5837         test_verbose.
5838         * support/tst-support_record_failure-2.sh (different_status): Add
5839         --verbose test.
5840
5841 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5842
5843         * support/check.h (FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Document that
5844         test failures are recorded.
5845         * support/check.c (support_print_failure_impl): Call
5846         support_record_failure.
5847         (support_exit_failure_impl): Call support_record_failure if status
5848         indicates failure.
5849         * support/delayed_exit.c (delayed_exit_thread): Use FAIL_EXIT1.
5850         * support/xasprintf.c (xasprintf): Likewise.
5851         * support/xfork.c (xfork): Likewise.
5852         * support/xpthread_check_return.c (xpthread_check_return):
5853         Likewise.
5854         * support/xsocket.c (xsocket): Likeweise.
5855         * support/xwaitpid.c (xwaitpid): Likewise.
5856         * support/support_record_failure.c (struct test_failures): Adjust
5857         to coding style.
5858         * support/support_test_verify_impl.c (support_test_verify_impl):
5859         Adjust error messages.
5860         * support/tst-support_record_failure-2.sh (different_status):
5861         Adjust error messages.
5862
5863 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5864
5865         * support/namespace.h: New file.
5866         * support/support_become_root.c: Likewise.
5867         * support/support_enter_network_namespace.c: Likewise.
5868         * support/tst-support-namespace.c: Likewise.
5869         * support/xsocket.c: Likewise.
5870         * support/xsocket.h: Likewise.
5871         * support/Makefile (libsupport-routines): Add support_become_root,
5872         support_enter_network_namespace, xsocket.
5873         (tests): Add tst-support-namespace.
5874
5875 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5876
5877         [BZ #17252]
5878         * posix/unistd.h (getentropy): Declare for __USE_MISC, not just
5879         __USE_GNU.
5880
5881 2016-12-31  Torvald Riegel  <triegel@redhat.com>
5882
5883         [BZ #13165]
5884         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): Rewrite to
5885         use new algorithm.
5886         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
5887         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
5888         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
5889         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
5890         (__pthread_cond_timedwait): Move here from pthread_cond_timedwait.c.
5891         (__condvar_confirm_wakeup, __condvar_cancel_waiting,
5892         __condvar_cleanup_waiting, __condvar_dec_grefs,
5893         __pthread_cond_wait_common): New.
5894         (__condvar_cleanup): Remove.
5895         * npt/pthread_condattr_getclock.c (pthread_condattr_getclock): Adapt.
5896         * npt/pthread_condattr_setclock.c (pthread_condattr_setclock):
5897         Likewise.
5898         * npt/pthread_condattr_getpshared.c (pthread_condattr_getpshared):
5899         Likewise.
5900         * npt/pthread_condattr_init.c (pthread_condattr_init): Likewise.
5901         * nptl/tst-cond1.c: Add comment.
5902         * nptl/tst-cond20.c (do_test): Adapt.
5903         * nptl/tst-cond22.c (do_test): Likewise.
5904         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt
5905         structure.
5906         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5907         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5908         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5909         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_cond_t):
5910         Likewise.
5911         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5912         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5913         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5914         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5915         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5916         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
5917         Likewise.
5918         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h (pthread_cond_t):
5919         Likewise.
5920         * sysdeps/x86/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5921         * sysdeps/nptl/internaltypes.h (COND_NWAITERS_SHIFT): Remove.
5922         (COND_CLOCK_BITS): Adapt.
5923         * sysdeps/nptl/pthread.h (PTHREAD_COND_INITIALIZER): Adapt.
5924         * nptl/pthreadP.h (__PTHREAD_COND_CLOCK_MONOTONIC_MASK,
5925         __PTHREAD_COND_SHARED_MASK): New.
5926         * nptl/nptl-printers.py (CLOCK_IDS): Remove.
5927         (ConditionVariablePrinter, ConditionVariableAttributesPrinter): Adapt.
5928         * nptl/nptl_lock_constants.pysym: Adapt.
5929         * nptl/test-cond-printers.py: Adapt.
5930         * sysdeps/unix/sysv/linux/hppa/internaltypes.h (cond_compat_clear,
5931         cond_compat_check_and_clear): Adapt.
5932         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: Remove file ...
5933         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
5934         (__pthread_cond_timedwait): ... and move here.
5935         * nptl/DESIGN-condvar.txt: Remove file.
5936         * nptl/lowlevelcond.sym: Likewise.
5937         * nptl/pthread_cond_timedwait.c: Likewise.
5938         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
5939         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
5940         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
5941         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
5942         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: Likewise.
5943         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: Likewise.
5944         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: Likewise.
5945         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Likewise.
5946         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: Likewise.
5947         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: Likewise.
5948         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Likewise.
5949         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Likewise.
5950         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
5951         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
5952         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
5953         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
5954
5955 2016-12-31  Joseph Myers  <joseph@codesourcery.com>
5956
5957         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
5958         (fromfp): New declaration.
5959         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
5960         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
5961         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
5962         * math/tgmath.h (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): New macro.
5963         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfp): Likewise.
5964         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
5965         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
5966         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
5967         * math/math.h: Include <bits/types.h>.
5968         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_INT_UPWARD): New enum
5969         constant and macro.
5970         (FP_INT_DOWNWARD): Likewise.
5971         (FP_INT_TOWARDZERO): Likewise.
5972         (FP_INT_TONEARESTFROMZERO): Likewise.
5973         (FP_INT_TONEAREST): Likewise.
5974         * math/Versions (fromfp): New libm symbol at version GLIBC_2.25.
5975         (fromfpf): Likewise.
5976         (fromfpl): Likewise.
5977         (ufromfp): Likewise.
5978         (ufromfpf): Likewise.
5979         (ufromfpl): Likewise.
5980         (fromfpx): Likewise.
5981         (fromfpxf): Likewise.
5982         (fromfpxl): Likewise.
5983         (ufromfpx): Likewise.
5984         (ufromfpxf): Likewise.
5985         (ufromfpxl): Likewise.
5986         * math/Makefile (libm-calls): Add s_fromfpF, s_ufromfpF,
5987         s_fromfpxF and s_ufromfpxF.
5988         * math/gen-fromfp-tests.py: New file.
5989         * math/gen-fromfp-tests-inputs: Likewise.
5990         * math/libm-test.inc: Include <stdint.h>
5991         (check_intmax_t): New function.
5992         (check_uintmax_t): Likewise.
5993         (struct test_fiu_M_data): New type.
5994         (struct test_fiu_U_data): Likewise.
5995         (RUN_TEST_fiu_M): New macro.
5996         (RUN_TEST_LOOP_fiu_M): Likewise.
5997         (RUN_TEST_fiu_U): Likewise.
5998         (RUN_TEST_LOOP_fiu_U): Likewise.
5999         (fromfp_test_data): New array.
6000         (fromfp_test): New function.
6001         (fromfpx_test_data): New array.
6002         (fromfpx_test): New function.
6003         (ufromfp_test_data): New array.
6004         (ufromfp_test): New function.
6005         (ufromfpx_test_data): New array.
6006         (ufromfpx_test): New function.
6007         (main): Call fromfp_test, fromfpx_test, ufromfp_test and
6008         ufromfpx_test.
6009         * math/gen-libm-test.pl (parse_args): Handle u, M and U descriptor
6010         characters.
6011         * math/test-tgmath-ret.c: Include <stdint.h>.
6012         (rm): New variable.
6013         (width): Likewise.
6014         (CHECK_RET_CONST_TYPE): Take extra arguments and pass them to
6015         called function.
6016         (CHECK_RET_CONST_FLOAT): Take extra arguments and pass them to
6017         CHECK_RET_CONST_TYPE.
6018         (CHECK_RET_CONST_DOUBLE): Likewise.
6019         (CHECK_RET_CONST_LDOUBLE): Likewise.
6020         (CHECK_RET_CONST): Take extra arguments and pass them to calls
6021         macros.
6022         (fromfp): New CHECK_RET_CONST call.
6023         (ufromfp): Likewise.
6024         (fromfpx): Likewise.
6025         (ufromfpx): Likewise.
6026         (do_test): Call check_return_fromfp, check_return_ufromfp,
6027         check_return_fromfpx and check_return_ufromfpx.
6028         * math/test-tgmath.c: Include <stdint.h>
6029         (NCALLS): Increase to 138.
6030         (F(compile_test)): Initialize i.  Call fromfp functions.
6031         (F(fromfp)): New function.
6032         (F(fromfpx)): Likewise.
6033         (F(ufromfp)): Likewise.
6034         (F(ufromfpx)): Likewise.
6035         * manual/arith.texi (Rounding Functions): Document FP_INT_UPWARD,
6036         FP_INT_DOWNWARD, FP_INT_TOWARDZERO, FP_INT_TONEARESTFROMZERO,
6037         FP_INT_TONEAREST, fromfp, fromfpf, fromfpl, ufromfp, ufromfpf,
6038         ufromfpl, fromfpx, fromfpxf, fromfpxl, ufromfpx, ufromfpxf and
6039         ufromfpxl.
6040         * manual/libm-err-tab.pl (@all_functions): Add fromfp, fromfpx,
6041         ufromfp and ufromfpx.
6042         * math/fromfp.h: New file.
6043         * sysdeps/ieee754/dbl-64/s_fromfp.c: Likewise.
6044         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Likewise.
6045         * sysdeps/ieee754/dbl-64/s_fromfpx.c: Likewise.
6046         * sysdeps/ieee754/dbl-64/s_ufromfp.c: Likewise.
6047         * sysdeps/ieee754/dbl-64/s_ufromfpx.c: Likewise.
6048         * sysdeps/ieee754/flt-32/s_fromfpf.c: Likewise.
6049         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Likewise.
6050         * sysdeps/ieee754/flt-32/s_fromfpxf.c: Likewise.
6051         * sysdeps/ieee754/flt-32/s_ufromfpf.c: Likewise.
6052         * sysdeps/ieee754/flt-32/s_ufromfpxf.c: Likewise.
6053         * sysdeps/ieee754/ldbl-128/s_fromfpl.c: Likewise.
6054         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Likewise.
6055         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c: Likewise.
6056         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c: Likewise.
6057         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c: Likewise.
6058         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c: Likewise.
6059         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl_main.c: Likewise.
6060         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c: Likewise.
6061         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c: Likewise.
6062         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c: Likewise.
6063         * sysdeps/ieee754/ldbl-96/s_fromfpl.c: Likewise.
6064         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Likewise.
6065         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c: Likewise.
6066         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c: Likewise.
6067         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c: Likewise.
6068         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fromfp,
6069         ufromfp, fromfpx and ufromfpx.
6070         (CFLAGS-nldbl-fromfp.c): New variable.
6071         (CFLAGS-nldbl-fromfpx.c): Likewise.
6072         (CFLAGS-nldbl-ufromfp.c): Likewise.
6073         (CFLAGS-nldbl-ufromfpx.c): Likewise.
6074         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include <stdint.h>.
6075         * sysdeps/ieee754/ldbl-opt/nldbl-fromfp.c: New file.
6076         * sysdeps/ieee754/ldbl-opt/nldbl-fromfpx.c: Likewise.
6077         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfp.c: Likewise.
6078         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfpx.c: Likewise.
6079         * sysdeps/nacl/libm.abilist: Update.
6080         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6081         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6082         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6083         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6084         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6085         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6086         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6087         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6088         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6089         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6090         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6091         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6093         Likewise.
6094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6095         Likewise.
6096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6097         Likewise.
6098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6099         Likewise.
6100         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6101         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6102         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6103         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6104         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6105         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6106         Likewise.
6107         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6108         Likewise.
6109         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6110         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6111         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6112
6113 2016-12-30  Florian Weimer  <fweimer@redhat.com>
6114
6115         * resolv/Makefile (libresolv-routines): Rename gethnamaddr to
6116         compat-gethnamaddr.
6117         (CPPFLAGS): Remove.
6118         * resolv/gethnamaddr.c: Rename ...
6119         * resolv/compat-gethnamaddr.c: ... to this file.
6120         (_endhtent): Make static.
6121         (res_gethostbyname): Renamed from gethostbyname.  Turn into compat
6122         symbol.
6123         (res_gethostbyname2): Renamed from gethostbyname2.  Turn into
6124         compat symbol.
6125         (res_gethostbyaddr): Renamed from gethostbyaddr.  Turn into compat
6126         symbol.
6127         (_sethtent, _gethtent, _gethtbyname, gethtbyname2, _gethtbyaddr):
6128         Turn into compat symbol.
6129         * include/resolv.h (_endhtent): Remove declaration.
6130
6131 2016-12-30  Joseph Myers  <joseph@codesourcery.com>
6132
6133         * bits/types.h (__intmax_t): New typedef.
6134         (__uintmax_t): Likewise.
6135         * sysdeps/generic/stdint.h: Include <bits/types.h>.
6136         (intmax_t): Define using __intmax_t.
6137         (uintmax_t): Define using __uintmax_t.
6138
6139         * support/Makefile (tests-special): Make definition conditional on
6140         [$(run-built-tests) = yes].
6141         ($(objpfx)tst-support_record_failure-2.out): Make rule conditional
6142         on [$(run-built-tests) = yes].
6143
6144 2016-12-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6145
6146         * Rules (tests): Add tests-printers-programs to tests to be
6147         built.
6148
6149 2016-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6150
6151         * sysvipc/Makefile (tests): Add test-sysvshm.
6152         * sysvipc/test-sysvshm.c: New file.
6153
6154         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmget): Remove.
6155         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmget): Likewise.
6156         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmget): Likewise.
6157         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmget): Likewise.
6158         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmget): Likewise.
6159         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmget): Likewise.
6160         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmget):
6161         Likewise.
6162         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmget):
6163         Likewise.
6164         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmget): Likewise.
6165         * sysdeps/unix/sysv/linux/shmget.c (shmget): Use shmget syscall if it
6166         is defined.
6167
6168         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmdt): Remove.
6169         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmdt): Likewise.
6170         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmdt): Likewise.
6171         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmdt): Likewise.
6172         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmdt): Likewise.
6173         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmdt): Likewise.
6174         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmdt):
6175         Likewise.
6176         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmdt):
6177         Likewise.
6178         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmdt): Likewise.
6179         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Use shmdt syscall if it is
6180         defined.
6181
6182         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6183         oldshmctl.
6184         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmctl): Remove.
6185         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmctl): Likewise.
6186         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmctl): Likewise.
6187         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmctl): Likewise.
6188         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmctl): Likewise.
6189         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmctl): Likewise.
6190         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmctl):
6191         Likewise.
6192         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmctl):
6193         Likewise.
6194         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmctl): Likewise.
6195         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Remove file.
6196         * sysdeps/unix/sysv/linux/arm/shmctl.c: Likewise.
6197         * sysdeps/unix/sysv/linux/microblaze/shmctl.c: Likewise.
6198         * sysdeps/unix/sysv/linux/mips/mips64/shmctl.c: Use default
6199         implementation.
6200         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Use shmctl syscall
6201         if it is defined.
6202
6203         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmat): Remove.
6204         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmat): Likewise.
6205         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmat): Likewise.
6206         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmat): Likewise.
6207         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmat): Likewise.
6208         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmat): Likewise.
6209         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmat):
6210         Likewise.
6211         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmat):
6212         Likewise.
6213         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmat): Likewise.
6214         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
6215         Define to __NR_osf_shmat.
6216         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use shmat syscall if it is
6217         defined.
6218
6219         * sysvipc/Makefile (tests): Add test-sysvsem.
6220         * sysvipc/test-sysvsem.c: New file.
6221
6222         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): Remove.
6223         * sysdeps/unix/sysv/linux/arm/syscalls.list (semtimedop): Likewise.
6224         * sysdeps/unix/sysv/linux/generic/syscalls.list (semtimedop):
6225         Likewise.
6226         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semtimedop): Likewise.
6227         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semtimedop): Likewise.
6228         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semtimedop):
6229         Likewise.
6230         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semtimedop):
6231         Likewise.
6232         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semtimedop): Likewise.
6233         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: Remove file.
6234         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Reorganize headers and
6235         add a comment about s390 syscall difference from default one.
6236         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use semtimedop
6237         syscall if it is defined.
6238
6239         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semop): Remove.
6240         * sysdeps/unix/sysv/linux/arm/syscalls.list (semop): Likewise.
6241         * sysdeps/unix/sysv/linux/generic/syscalls.list (semop): Likewise.
6242         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semop): Likewise.
6243         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semop): Likewise.
6244         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semop): Likewise.
6245         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semop):
6246         Likewise.
6247         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semop):
6248         Likewise.
6249         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semop): Likewise.
6250         * sysdeps/unix/sysv/linux/semop.c (semop): Use semop syscall if it is
6251         defined.
6252
6253         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semget): Remove.
6254         * sysdeps/unix/sysv/linux/arm/syscalls.list (semget): Likewise.
6255         * sysdeps/unix/sysv/linux/generic/syscalls.list (semget): Likewise.
6256         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semget): Likewise.
6257         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semget): Likewise.
6258         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semget): Likewise.
6259         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semget):
6260         Likewise.
6261         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semget):
6262         Likewise.
6263         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semget): Likewise.
6264         * sysdeps/unix/sysv/linux/semget.c (semget): Use semget syscall
6265         if it is defined.
6266
6267         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6268         oldsemctl.
6269         * sysdeps/unix/sysv/linux/alpha/semctl.c: Remove file.
6270         * sysdeps/unix/sysv/linux/arm/semctl.c: Likewise.
6271         * sysdeps/unix/sysv/linux/microblaze/semctl.c: Likewise.
6272         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
6273         * sysdeps/unix/sysv/linux/mips/mips64/semctl.c: Use defaulf
6274         implementation.
6275         * sysdeps/unix/sysv/linux/semctl.c (__new_semctl): Use semctl
6276         syscall if it is defined.
6277         * sysdeps/unix/sysv/linux/generic/syscalls.list (semctl): Remove.
6278         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semctl): Likewise.
6279         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semctl): Likewise.
6280         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semctl): Likewise.
6281         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semctl):
6282         Likewise.
6283         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semctl): Likewise.
6284
6285         * sysvipc/Makefile (tests): Add test-sysvmsg.
6286         * sysvipc/test-sysvmsg.c: New file.
6287         * support/check.h (FAIL_UNSUPPORTED): New define.
6288
6289         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgget): Remove.
6290         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgget): Likewise.
6291         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgget): Likewise.
6292         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgget): Likewise.
6293         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgget): Likewise.
6294         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgget): Likewise.
6295         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgget):
6296         Likewise.
6297         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgget):
6298         Likewise.
6299         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgget): Likewise.
6300         * sysdeps/unix/sysv/linux/msgget.c (msgget): Use msgget syscall if
6301         define.
6302
6303         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgsnd): Remove.
6304         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgsnd): Likewise.
6305         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgsnd): Likewise.
6306         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgsnd): Likewise.
6307         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgsnd): Likewise.
6308         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgsnd): Likewise.
6309         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgsnd):
6310         Likewise.
6311         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgsnd):
6312         Likewise.
6313         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgsnd): Likewise.
6314         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Use msgsnd syscall
6315         if defined.
6316
6317         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgctl): Remove.
6318         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgctl): Likewise.
6319         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6320         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6321         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6322         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgctl): Likewise.
6323         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6324         Likewise.
6325         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise,
6326         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgctl):
6327         Likewise.
6328         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Use msgrcv syscall
6329         if defined.
6330         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Remove file.
6331
6332         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6333         oldmsgctl.
6334         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Remove file.
6335         * sysdeps/unix/sysv/linux/arm/msgctl.c: Likewise.
6336         * sysdeps/unix/sysv/linux/microblaze/msgctl.c: Likewise.
6337         * sysdeps/unix/sysv/linux/alpha/syscalls.list (oldmsgctl): Remove.
6338         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6339         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6340         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6341         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6342         Likewise.
6343         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise.
6344         * sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: Use default
6345         implementation.
6346         * sysdeps/unix/sysv/linux/msgctl.c (__new_msgctl): Use msgctl syscall
6347         if defined.
6348
6349         * sysdeps/unix/sysv/linux/aarch64/ipc_priv.h: New file.
6350         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Avoid included other arch
6351         definition and define its own.
6352         * sysdeps/unix/sysv/linux/ipc_ops.h: New file.
6353         * sysdeps/unix/sysv/linux/x86_64/ipc_priv.h: Likewise.
6354         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: Remove file.
6355         * sysdeps/unix/sysv/linux/mips/mips64/ipc_priv.h: New file.
6356         * sysdeps/unix/sysv/linux/ipc_priv.h: Move ipc syscall operation
6357         definitions to common header.
6358         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: Use common syscall
6359         operation from ipc_ops.h.
6360
6361         * sysdeps/unix/sysv/linux/kernel-features.h
6362         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): New define.
6363         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6364         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Undef.
6365         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6366         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6367         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6368         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6369         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
6370         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6371         * sysdeps/unix/sysv/linux/s390/kernel-features.h
6372         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6373         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6374         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6375         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6376         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6377
6378 2016-12-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6379
6380         * sysdeps/powerpc/powerpc32/power7/memchr.S (__memchr): Avoid an
6381         overflow in pointer addition.
6382
6383 2016-12-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6384
6385         * sysdeps/powerpc/powerpc64/multiarch/Makefile
6386         (sysdep_routines): Add strchr-power8 and strchrnul_power8.
6387         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6388         (strchr): Add __strchr_power8 to list of strchr functions.
6389         (strchrnul): Add __strchrnul_power8 to list of strchr functions.
6390         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: New file.
6391         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: New file.
6392         * sysdeps/powerpc/powerpc64/multiarch/strchr.c
6393         (strchr): Add __strchr_power8 to ifunc list.
6394         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c
6395         (__strchrnul): Add __strchrnul_power8 to ifunc list.
6396         * sysdeps/powerpc/powerpc64/power8/strchr.S: New file.
6397         * sysdeps/powerpc/powerpc64/power8/strchrnul.S: New file.
6398
6399 2016-12-28  Florian Weimer  <fweimer@redhat.com>
6400
6401         * support/Makefile (libsupport-routines): Add
6402         support_test_verify_impl, support_record_failure, xfork, xwaitpid.
6403         (tests): Add tst-support_record_failure.
6404         (tests-special): tst-support_record_failure-2.
6405         (tst-support_record_failure-2.out): Depend on
6406         tst-support_record_failure-2.sh and tst-support_record_failure.
6407         * support/check.h (TEST_VERIFY, TEST_VERIFY_EXIT): Define.
6408         (support_test_verify_impl, support_record_failure)
6409         (support_report_failure, support_report_failure_reset): Declare.
6410         * support/support_test_main.c (adjust_exit_status): New function.
6411         (support_test_main): Call it to incorporate record test failures.
6412         * support/support_test_verify_impl.c: New file.
6413         * support/support_record_failure.c: Likewise.
6414         * support/tst-support_record_failure.c: Likewise.
6415         * support/tst-support_record_failure-2.sh: Likewise.
6416         * support/xunistd.h: Likewise.
6417         * support/xfork.c: Likewise.
6418         * support/xwaitpid.c: Likewise.
6419
6420 2016-12-27  Steve Ellcey  <sellcey@caviumnetworks.com>
6421
6422         * scripts/check-c++-types.sh: Add comments.
6423
6424 2016-12-27  Dmitry V. Levin  <ldv@altlinux.org>
6425
6426         [BZ #19514]
6427         * resolv/res_send.c: Fix typo in comment.
6428         * sysdeps/i386/i386-mcount.S: Likewise.
6429         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
6430         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6431         * sysdeps/sparc/sparc-mcount.S: Likewise.
6432
6433 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6434
6435         * sysdeps/powerpc/fpu/s_fmaxf.S: Remove file.
6436         * sysdeps/powerpc/fpu/s_fminf.S: Likewise.
6437         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
6438         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
6439         * sysdeps/powerpc/powerpc32/fpu/s_fmax.S: Likewise.
6440         * sysdeps/powerpc/powerpc32/fpu/s_fmin.S: Likewise.
6441         * sysdeps/powerpc/powerpc64/fpu/s_fmax.S: Likewise.
6442         * sysdeps/powerpc/powerpc64/fpu/s_fmin.S: Likewise.
6443
6444 2016-12-27  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6445
6446         * manual/arith.texi (FP Comparison Functions): Fix typo in iseqsig.
6447
6448 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6449
6450         [BZ #17252]
6451         * posix/unistd.h (getentropy): Declare.
6452
6453 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6454
6455         * resolv/res_hconf.h (HCONF_FLAG_SPOOF, HCONF_FLAG_SPOOFALERT):
6456         Remove.
6457         * resolv/res_hconf.c (ENV_SPOOF, arg_spoof): Remove.
6458         (cmd): Remove spoof, nospoof, spoofalert.
6459         (parse_line): Ignore spoof-related lines.
6460         (do_init): Do not process RESOLV_SPOOF_CHECK.
6461
6462 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6463
6464         [BZ #20964]
6465         sunrpc: Always obtain AF_INET addresses from NSS.
6466         * include/rpc/rpc.h (__libc_rpc_gethostbyname): Declare.
6467         * sunrpc/rpc_gethostbyname.c: New file.
6468         * sunrpc/Makefile (routines): Add it.
6469         * sunrpc/clnt_gen.c (clnt_create): Use __libc_rpc_gethostbyname.
6470         * sunrpc/clnt_simp.c (callrpc): Likewise.
6471         * sunrpc/getrpcport.c (getrpcport): Likewise.
6472
6473 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6474
6475         * sunrpc/rpcinfo.c: Remove.
6476         * sunrpc/Makefile: Remove comments referring to rpcinfo.
6477
6478 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6479
6480         [BZ #19387]
6481         * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer
6482         addition.
6483         * string/test-memchr.c (do_test): Remove alignment limitation.
6484         (test_main): Add test that trigger BZ #19387.
6485
6486 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6487
6488         [BZ #7065]
6489         Enable stack protectore if requested by ./configure.
6490         * Makeconfig (+stack-protector): New variable.
6491         (+cflags): Use it.
6492
6493 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6494
6495         [BZ #7065]
6496         * signal/Makefile (CFLAGS-sigreturn.c): Use $(no-stack-protector).
6497         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c:
6498         (__rt_sigreturn_stub): Use inhibit_stack_protector.
6499         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6500         (__rt_sigreturn_stub, __sigreturn_stub): Likewise.
6501
6502 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6503
6504         [BZ #7065]
6505         * login/Makefile (pt_chown-cflags): Remove.
6506         * nscd/Makefile (CFLAGS-nscd): Likewise.
6507         * resolv/Makefile (CFLAGS-libresolv): Likewise.
6508
6509 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6510
6511         [BZ #7065]
6512         * elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for
6513         non-libc-linking testcase.
6514
6515 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6516             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6517             Florian Weimer  <fweimer@redhat.com>
6518
6519         [BZ #7065]
6520         PLT avoidance for __stack_chk_fail*.
6521         * debug/Makefile (CFLAGS-stack_chk_fail.c)
6522         (CFLAGS-stack_chk_fail_local.c): Build without stack protector.
6523         * debug/stack_chk_fail.c (__stack_chk_fail): Add
6524         __stack_chk_fail_local alias.
6525         * sysdeps/generic/symbol-hacks.h [IS_IN (libc)]
6526         (__stack_chk_fail): Turn into hidden reference to
6527         __stack_chk_fail_local.
6528
6529 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6530
6531         [BZ #7065]
6532         * configure.ac: Add check for unsupported stack-protection level.
6533         (libc_cv_predef_stack_protector): Remove.
6534         (no_ssp): New variable.
6535         (STACK_PROTECTOR_LEVEL): Set to zero when --disable-stack-protector.
6536         (stack_protector): Set to -fno-stack-protector similarly.
6537         (libc_cv_ld_gnu_indirect_function): Use no_ssp.
6538         (libc_cv_asm_set_directive): Likewise.
6539         (libc_cv_protected_data): Likewise.
6540         (libc_cv_z_combreloc): Likewise.
6541         (libc_cv_hashstyle): Likewise.
6542         (libc_cv_has_glob_dat): Likewise.
6543         (libc_cv_output_format): Likewise.
6544         (libc_cv_output_format): Likewise.
6545         (libc_cv_ehdr_start): Likewise.
6546         * aclocal.m4 (LIBC_TRY_LINK_STATIC): Likewise.
6547         (LIBC_LINKER_FEATURE): Likewise.
6548         (LIBC_COMPILER_BUILTIN_INLINED): Likewise.
6549
6550 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6551
6552         [BZ #7065]
6553         * elf/Makefile (dummy-stack-chk-fail): New.
6554         (librtld.map): Use it.
6555
6556 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6557
6558         [BZ #7065]
6559         Compile the dynamic linker without stack protection.
6560         * elf/Makefile (elide-stack-protector): New.
6561         (CFLAGS-.os): Use it, eliding $(all-rtld-routines).
6562         (CFLAGS-.o, CFLAGS-.op): Likewise, but for $(elide-routines.os).
6563         * elf/rtld-Rules (rtld-CFLAGS): Add $(no-stack-protector).
6564         * sysdeps/i386/Makefile (rtld-CFLAGS): Use +=, not =.
6565
6566 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6567
6568         [BZ #7065]
6569         * config.make.in (have-ssp, no-stack-protector): New.
6570         * csu/Makefile (CFLAGS-.o, CFLAGS-.op, CFLAGS-.os): Use it.
6571         * misc/Makefile (CFLAGS-sbrk.o): Likewise.
6572         (CFLAGS-sbrk.op): Likewise.
6573         (CFLAGS-brk.o): Likewise.
6574         (CFLAGS-brk.op): Likewise.
6575         * string/Makefile (CFLAGS-memcpy.c): Likewise.
6576         (CFLAGS-wordcopy.c): Likewise.
6577
6578 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6579
6580         [BZ #7065]
6581         * configure.ac (HAVE_CC_NO_STACK_PROTECTOR): Define.
6582         * config.h.in (HAVE_CC_NO_STACK_PROTECTOR): New macro.
6583         * include/libc-symbols.h (inhibit_stack_protector): New macro.
6584         (__ifunc_resolver): Use it.
6585         * elf/ifuncdep2.c (foo1_ifunc, foo2_ifunc, foo3_ifunc): Apply
6586         inhibit_stack_protector.
6587         * elf/ifuncmain6pie.c (foo_ifunc): Likewise.
6588         * elf/ifuncmain7.c (foo_ifunc): Likewise.
6589         * elf/ifuncmod1.c (foo_ifunc, foo_hidden_ifunc)
6590         (foo_protected_ifunc): Likewise.
6591         * elf/ifuncmod5.c (foo_ifunc, foo_hidden_ifunc)
6592         (foo_protected_ifunc): Likewise.
6593         * sysdeps/generic/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
6594         * sysdeps/nacl/nacl_interface_query.c
6595         (nacl_interface_query_ifunc): Likewise.
6596         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
6597         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c (getcpu_ifunc):
6598         Likewise.
6599         * sysdeps/x86_64/ifuncmod8.c (foo_ifunc): Likewise.
6600         * sysdeps/unix/make-syscalls.sh: Apply inhibit_stack_protector to
6601         the generated vDSO syscall resolver.
6602
6603 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6604             Florian Weimer  <fweimer@redhat.com>
6605
6606         [BZ #7065]
6607         Initialize the stack guard earlier when linking statically.
6608         * sysdeps/generic/ldsodefs.h (__libc_setup_tls)
6609         (__pthread_initialize_minimal): Declare.
6610         * csu/libc-start.c (__pthread_initialize_minimal): Remove
6611         declaration.
6612         (LIBC_START_MAIN): Call __libc_setup_tls early and directly.  Move
6613         stack canary and apply_irel initialization up.  Call
6614         __pthread_initialize_minimal only if linked in.
6615         * csu/libc-tls.c (__libc_setup_tls): Replace arguments with their
6616         constant values.
6617         (__pthread_initialize_minimal): Remove.
6618         * nptl/nptl-init.c (__libc_setup_tls): Remove declaration.
6619         (__pthread_initialize_minimal_internal): Do not call
6620         __libc_setup_tls.
6621
6622 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6623
6624         [BZ #7065]
6625         * configure.ac (libc_cv_ssp): Move up.
6626         (libc_cv_ssp_strong): Likewise.
6627         (libc_cv_ssp_all): New.
6628         (stack_protector): Augment, adding -fstack-protector-all.
6629         (no_stack_protector): New.
6630         (STACK_PROTECTOR_LEVEL): New.
6631         (AC_ARG_ENABLE(stack-protector)): New configure flag.
6632         * manual/install.texi (--enable-stack-protector): Document it.
6633         * config.h.in (STACK_PROTECTOR_LEVEL): New macro.
6634
6635 2016-12-24  Carlos O'Donell  <carlos@redhat.com>
6636
6637         * README.pretty-printers: Must specify CPPFLAGS-* also.
6638         * nptl/Makefile (CPPFLAGS-test-mutexattr-printers.c): Define.
6639         (CPPFLAGS-test-mutex-printers.c): Define.
6640         (CPPFLAGS-test-condattr-printers.c): Define.
6641         (CPPFLAGS-test-cond-printers.c): Define.
6642         (CPPFLAGS-test-rwlockattr-printers.c): Define.
6643         (CPPFLAGS-test-rwlock-printers.c): Define.
6644
6645         * nss/Makefile [ifeq (yes,$(have-thread-library))]
6646         (tests): Add tst-cancel-getpwuid_r.
6647         * nss/tst-cancel-getpwuid_r.c: New file.
6648
6649         [BZ #11941]
6650         * elf/dl-close.c (_dl_close): Take dl_load_lock to examine map.
6651         Remove assert (map->l_init_called); if DF_1_NODELETE is set.
6652         * elf/Makefile [ifeq (yes,$(build-shared))] (tests): Add
6653         tst-nodelete-dlclose.
6654         (modules-names): Add tst-nodelete-dlclose-dso and
6655         tst-nodelete-dlclose-plugin.
6656         ($(objpfx)tst-nodelete-dlclose-dso.so): Define.
6657         ($(objpfx)tst-nodelete-dlclose-plugin.so): Define.
6658         ($(objpfx)tst-nodelete-dlclose): Define.
6659         ($(objpfx)tst-nodelete-dlclose.out): Define.
6660
6661 2016-12-23  Florian Weimer  <fweimer@redhat.com>
6662
6663         * scripts/test_printers_common.py: Log GDB output in case of
6664         Python detection failure.
6665
6666 2016-12-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6667
6668         * configure.ac: Check for python3 or python.
6669         * configure: Regenerated.
6670         * config.make.in (PYTHON): New variable.
6671         * benchtests/Makefile: Don't define PYTHON.
6672         (bench): Define target only if PYTHON was defined.
6673         * Rules: Don't define PYTHON.
6674         Define pretty printer targets only if PYTHON was defined.
6675         (tests-printers): Add to tests-unsupported if PYTHON is not
6676         found.
6677         (python-flags, python-invoke): Remove.
6678         (tests-printers-out): Use PYTHON instead of python-invoke.
6679
6680 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
6681
6682         [BZ #20978]
6683         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
6684         Compare name == NULL, not name != NULL.
6685
6686         * manual/texinfo.tex: Update to version 2016-09-18.18 with
6687         trailing whitespace removed.
6688         * scripts/config.guess: Update to version 2016-10-02.
6689         * scripts/config.sub: Update to version 2016-11-19.
6690         * scripts/install-sh: Update to version 2016-01-11.22.
6691         * scripts/mkinstalldirs: Update to version 2016-01-11.22.
6692         * scripts/move-if-change: Update to version 2016-01-11 22:04.
6693
6694 2015-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
6695
6696         * benchtests/bench-strsep.c (oldstrsep): Add old implementation.
6697         (do_one_test) Restore original string so iteration works.
6698         * string/string-inlines.c (do_test): Create better input strings.
6699         (test_main) Reduce number of testruns.
6700         * string/string-inlines.c (__old_strsep_1c): New function.
6701         (__old_strsep_2c): Likewise.
6702         (__old_strsep_3c): Likewise.
6703         * string/strsep.c (__strsep): Remove case of small delim string.
6704         Call strcspn directly rather than strpbrk.
6705         * string/bits/string2.h (__strsep): Remove define.
6706         (__strsep_1c): Remove.
6707         (__strsep_2c): Remove.
6708         (__strsep_3c): Remove.
6709         (strsep): Remove.
6710         * sysdeps/unix/sysv/linux/internal_statvfs.c
6711         (__statvfs_getflags): Rename to __strsep.
6712
6713 2016-12-21  Florian Weimer  <fweimer@redhat.com>
6714
6715         * csu/libc-tls.c (_dl_tls_setup): Remove.
6716         * elf/dl-tls.c (_dl_tls_setup): Likewise.
6717         * elf/Versions (GLIBC_PRIVATE): Remove _dl_tls_setup.
6718         * sysdeps/generic/ldsodefs.h (_dl_tls_setup): Remove declaration.
6719
6720 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
6721
6722         [BZ #7065]
6723         * sysdeps/x86_64/Makefile [$(subdir) = elf]
6724         (CFLAGS-tst-quad1pie.c, CFLAGS-tst-quad2pie.c): Add $(PIE-ccflag).
6725
6726 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
6727             Florian Weimer  <fweimer@redhat.com>
6728
6729         [BZ #7065]
6730         * csu/Makefile (tests): Empty assignment and document it.
6731         (tests-static): Remove.
6732         * csu/tst-empty.c: Move to...
6733         * misc/tst-empty.c: ... here.  Switch to new test driver.
6734         * csu/tst-atomic.c: Move to...
6735         * misc/tst-atomic.c: ... here.  Switch to new test driver.
6736         * csu/tst-atomic-long.c: Move to...
6737         * misc/tst-atomic-long.c: ... here.
6738         * misc/Makefile (tests): Add tst-empty, tst-atomic,
6739         tst-atomic-long.
6740         (tests-static): Add tst-empty.
6741
6742 2016-12-21  Rical Jasan  <ricaljasan@pacific.net>
6743
6744         * manual/nss.texi: Change incorrect @vtable to @table.
6745         * manual/arith.texi: Convert @tables of variables to @vtables
6746         and remove unnecessary indexing.
6747         * manual/filesys.texi: Likewise.
6748         * manual/llio.texi: Likewise.
6749         * manual/memory.texi: Likewise.
6750         * manual/process.texi: Likewise.
6751         * manual/resource.texi: Likewise.
6752         * manual/search.texi: Likewise.
6753         * manual/signal.texi: Likewise.
6754         * manual/socket.texi: Likewise.
6755         * manual/stdio.texi: Likewise.
6756         * manual/sysinfo.texi: Likewise.
6757         * manual/syslog.texi: Likewise.
6758         * manual/terminal.texi: Likewise.
6759         * manual/time.texi: Likewise.
6760         * manual/users.texi: Likewise.
6761
6762 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
6763
6764         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6765         (roundeven): New declaration.
6766         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (roundeven): New
6767         macro.
6768         * math/Versions (roundeven): New libm symbol at version
6769         GLIBC_2.25.
6770         (roundevenf): Likewise.
6771         (roundevenl): Likewise.
6772         * math/Makefile (libm-calls): Add s_roundevenF.
6773         * math/libm-test.inc (roundeven_test_data): New array.
6774         (roundeven_test): New function.
6775         (main): Call roundeven_test.
6776         * math/test-tgmath.c (NCALLS): Increase to 134.
6777         (F(compile_test)): Call roundeven.
6778         (F(roundeven)): New function.
6779         * manual/arith.texi (Rounding Functions): Document roundeven,
6780         roundevenf and roundevenl.
6781         * manual/libm-err-tab.pl (@all_functions): Add roundeven.
6782         * include/math.h (roundeven): Use libm_hidden_proto.
6783         * sysdeps/ieee754/dbl-64/s_roundeven.c: New file.
6784         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Likewise.
6785         * sysdeps/ieee754/flt-32/s_roundevenf.c: Likewise.
6786         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Likewise.
6787         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c: Likewise.
6788         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Likewise.
6789         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6790         roundeven.
6791         (CFLAGS-nldbl-roundeven.c): New variable.
6792         * sysdeps/ieee754/ldbl-opt/nldbl-roundeven.c: New file.
6793         * sysdeps/nacl/libm.abilist: Update.
6794         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6795         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6796         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6797         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6798         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6799         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6800         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6801         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6802         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6803         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6804         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6805         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6807         Likewise.
6808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6809         Likewise.
6810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6811         Likewise.
6812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6813         Likewise.
6814         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6815         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6816         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6817         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6818         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6819         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6820         Likewise.
6821         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6822         Likewise.
6823         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6824         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6825         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6826
6827 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
6828
6829         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): Add
6830         preprocessor indentation inside #if.
6831
6832 2016-12-20  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6833
6834         * math/libm-test.inc (fmt_ftostr): New function.
6835         (print_float, check_float_internal): Replace some uses of
6836         FTOSTR with uses of fmt_ftostr.
6837         (print_max_error, print_complex_max_error, print_function_ulps)
6838         (print_complex_function_ulps): Remove uses of the macros
6839         PRINTF_EXPR, PRINTF_NEXPR, and PRINTF_XEXPR.
6840         * math/test-double.h (FTOSTR): Define to strfromd.
6841         (PRINTF_EXPR): Delete.
6842         (PRINTF_XEXPR): Likewise.
6843         (PRINTF_NEXPR): Likewise.
6844         * math/test-float.h (FTOSTR): Define to strfromf.
6845         (PRINTF_EXPR): Delete.
6846         (PRINTF_XEXPR): Likewise.
6847         (PRINTF_NEXPR): Likewise.
6848         * math/test-ldouble.h (FTOSTR): Define to strfroml.
6849         (PRINTF_EXPR): Delete.
6850         (PRINTF_XEXPR): Likewise.
6851         (PRINTF_NEXPR): Likewise.
6852
6853 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6854
6855         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
6856         (__lll_unlock_elision, lll_unlock_elision): Add adapt_count argument.
6857         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
6858         (__lll_lock_elision): Decrement adapt_count while unlocking
6859         instead of before locking.
6860         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
6861         (__lll_trylock_elision): Likewise.
6862         * sysdeps/unix/sysv/linux/s390/elision-unlock.c:
6863         (__lll_unlock_elision): Likewise.
6864
6865 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6866
6867         * sysdeps/unix/sysv/linux/s390/htm.h(__libc_tbegin_retry): New macro.
6868         * sysdeps/unix/sysv/linux/s390/elision-lock.c (__lll_lock_elision):
6869         Use __libc_tbegin_retry macro.
6870
6871 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6872
6873         * sysdeps/unix/sysv/linux/s390/Makefile (elision-CFLAGS):
6874         Add -msoft-float.
6875         * sysdeps/unix/sysv/linux/s390/htm.h: New File.
6876         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
6877         Use __libc_t* transaction macros instead of __builtin_t*.
6878         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6879         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
6880
6881 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6882
6883         * sysdeps/unix/sysv/linux/s390/elision-lock.c
6884         (__lll_lock_elision): Use atomics to load / store adapt_count.
6885         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
6886         (__lll_trylock_elision): Likewise.
6887
6888 2016-12-20  Florian Weimer  <fweimer@redhat.com>
6889
6890         Do not require memset elimination in explicit_bzero test.
6891         * string/tst-xbzero-opt.c (prepare_test_buffer): Force inlining.
6892         (enum test_expectation): Add NO_EXPECTATIONS.
6893         (subtests): NO_EXPECTATIONS for ordinary clear.
6894         (check_test_buffer): Handle NO_EXPECTATIONS.
6895         * string/Makefile (CFLAGS-tst-xbzero-opt.c): Compile with -O3.
6896
6897 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
6898
6899         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6900         (fmaxmag): New declaration.
6901         (fminmag): Likewise.
6902         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (fmaxmag): New
6903         macro.
6904         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fminmag): Likewise.
6905         * math/Versions (fmaxmag): New libm symbol at version GLIBC_2.25.
6906         (fmaxmagf): Likewise.
6907         (fmaxmagl): Likewise.
6908         (fminmag): Likewise.
6909         (fminmagf): Likewise.
6910         (fminmagl): Likewise.
6911         * math/Makefile (gen-libm-calls): Add s_fmaxmagF and s_fminmagF.
6912         * math/s_fmaxmag_template.c: New file.
6913         * math/s_fminmag_template.c: Likewise.
6914         * math/libm-test.inc (fmaxmag_test_data): New array.
6915         (fmaxmag_test): New function.
6916         (fminmag_test_data): New array.
6917         (fminmag_test): New function.
6918         (main): Call fmaxmag_test and fminmag_test.
6919         * math/test-tgmath.c (NCALLS): Increase to 132.
6920         (F(compile_test)): Call fmaxmag and fminmag.
6921         (F(fminmag)): New function.
6922         (F(fmaxmag)): Likewise.
6923         * manual/arith.texi (Misc FP Arithmetic): Document fminmag,
6924         fminmagf, fminmagl, fmaxmag, fmaxmagf and fmaxmagl.
6925         * manual/libm-err-tab.pl (@all_functions): Add fmaxmag and
6926         fminmag.
6927         * sysdeps/ieee754/ldbl-opt/nldbl-fmaxmag.c: New file.
6928         * sysdeps/ieee754/ldbl-opt/nldbl-fminmag.c: Likewise.
6929         * sysdeps/ieee754/ldbl-opt/s_fmaxmagl.c: Likewise.
6930         * sysdeps/ieee754/ldbl-opt/s_fminmagl.c: Likewise.
6931         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmaxmag
6932         and fminmag.
6933         (CFLAGS-nldbl-fmaxmag.c): New variable.
6934         (CFLAGS-nldbl-fminmag.c): Likewise.
6935         * sysdeps/nacl/libm.abilist: Update.
6936         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6937         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6938         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6939         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6940         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6941         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6942         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6943         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6944         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6945         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6946         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6947         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6949         Likewise.
6950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6951         Likewise.
6952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6953         Likewise.
6954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6955         Likewise.
6956         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6957         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6958         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6959         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6960         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6962         Likewise.
6963         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6964         Likewise.
6965         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6966         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6967         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6968
6969 2016-12-19  Torvald Riegel  <triegel@redhat.com>
6970
6971         [BZ #20973]
6972         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Fix lost
6973         wake-up in robust mutexes.
6974         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
6975
6976 2016-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6977
6978         * benchtests/Makefile (bench-math): Add fminf and fmaxf.
6979         (CFLAGS-bench-fmaxf.c): New rule.
6980         (CFLAGS-bench-fminf.c): Likewise.
6981         * benchtests/fmaxf-inputs: New file.
6982         * benchtests/fminf-inputs: Likewise.
6983
6984         * benchtests/Makefile (bench-math): Add fmin and fmax.
6985         (CFLAGS-bench-fmax.c): New rule.
6986         (CFLAGS-bench-fmin.c): Likewise.
6987         * benchtests/fmax-inputs: New file.
6988         * benchtests/fmin-inputs: Likewise.
6989
6990         * benchtests/bench-string.h (TEST_FUNCTION): Use name without
6991         parenthesis.
6992         (CMDLINE_PROCESS): Define using function instead of macro.
6993         * benchtests/bench-memccpy.c: Include <support/test-driver.c> instead
6994         of test-skeleton.
6995         * benchtests/bench-memchr.c: Likewise.
6996         * benchtests/bench-memcmp.c: Likewise.
6997         * benchtests/bench-memcpy-large.c: Likewise.
6998         * benchtests/bench-memcpy.c: Likewise.
6999         * benchtests/bench-memmem.c: Likewise.
7000         * benchtests/bench-memmove-large.c: Likewise.
7001         * benchtests/bench-memmove.c: Likewise.
7002         * benchtests/bench-memset-large.c: Likewise.
7003         * benchtests/bench-memset.c: Likewise.
7004         * benchtests/bench-rawmemchr.c: Likewise.
7005         * benchtests/bench-strcasecmp.c: Likewise.
7006         * benchtests/bench-strcasestr.c: Likewise.
7007         * benchtests/bench-strcat.c: Likewise.
7008         * benchtests/bench-strchr.c: Likewise.
7009         * benchtests/bench-strcmp.c: Likewise.
7010         * benchtests/bench-strcpy.c: Likewise.
7011         * benchtests/bench-strcpy_chk.c: Likewise.
7012         * benchtests/bench-strlen.c: Likewise.
7013         * benchtests/bench-strncasecmp.c: Likewise.
7014         * benchtests/bench-strncmp.c: Likewise.
7015         * benchtests/bench-strncpy.c: Likewise.
7016         * benchtests/bench-strnlen.c: Likewise.
7017         * benchtests/bench-strpbrk.c: Likewise.
7018         * benchtests/bench-strrchr.c: Likewise.
7019         * benchtests/bench-strsep.c: Likewise.
7020         * benchtests/bench-strspn.c: Likewise.
7021         * benchtests/bench-strstr.c: Likewise.
7022         * benchtests/bench-strtok.c: Likewise.
7023
7024 2016-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
7025
7026         * sysdeps/x86/cpu-features.c (get_common_indeces): Add
7027         stepping identification.
7028         (init_cpu_features): Add handle of Haswell.
7029
7030 2016-11-25  Jim Meyering  <meyering@fb.com>
7031
7032         [BZ #20386]
7033         Let gcc detect assert(a = 1) errors.
7034         * assert/assert.h (assert): Rewrite, retaining the old definintion
7035         when required, but otherwise putting the expression as-is in an "if"
7036         expression (hence, with no added parentheses) within a statement
7037         expression.
7038
7039 2016-12-17  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7040
7041         * benchtests/Makefile (binaries-benchset): Depend on libsupport
7042         DSO.
7043
7044 2016-12-17  Martin Galvan  <martingalvan@sourceware.org>
7045
7046         * Rules (python-flags, python-invoke): New.
7047         ($(test-printers-out)): Use $(python-flags).
7048
7049 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7050
7051         * manual/arith.texi (Math Error Reporting): Document that sNaN
7052         arguments are not considered domain errors.
7053
7054 2016-12-16  Zack Weinberg <zackw@panix.com>
7055             Florian Weimer <fweimer@redhat.com>
7056             Nick Mathewson <nickm@torproject.org>
7057
7058         * string/explicit_bzero.c: New routine.
7059         * string/test-explicit_bzero.c, string/tst-xbzero-opt.c: New tests.
7060         * string/Makefile (routines, strop-tests, tests): Add them.
7061         * string/test-memset.c: Add ifdeffage for testing explicit_bzero.
7062         * string/string.h [__USE_MISC]: Declare explicit_bzero.
7063
7064         * debug/explicit_bzero_chk.c: New routine.
7065         * debug/Makefile (routines): Add it.
7066         * debug/tst-chk1.c: Test fortification of explicit_bzero.
7067         * string/bits/string3.h: Fortify explicit_bzero.
7068
7069         * manual/string.texi: Document explicit_bzero.
7070         * NEWS: Mention addition of explicit_bzero.
7071
7072         * crypt/crypt-entry.c (__crypt_r): Clear key-dependent intermediate
7073         data before returning, using explicit_bzero.
7074         * crypt/md5-crypt.c (__md5_crypt_r): Likewise.
7075         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7076         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7077
7078         * include/string.h: Redirect internal uses of explicit_bzero
7079         to __explicit_bzero_chk[_internal].
7080         * string/Versions [GLIBC_2.25]: Add explicit_bzero.
7081         * debug/Versions [GLIBC_2.25]: Add __explicit_bzero_chk.
7082         * sysdeps/arm/nacl/libc.abilist
7083         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
7084         * sysdeps/unix/sysv/linux/alpha/libc.abilist
7085         * sysdeps/unix/sysv/linux/arm/libc.abilist
7086         * sysdeps/unix/sysv/linux/hppa/libc.abilist
7087         * sysdeps/unix/sysv/linux/i386/libc.abilist
7088         * sysdeps/unix/sysv/linux/ia64/libc.abilist
7089         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
7090         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
7091         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
7092         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7093         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7094         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7095         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7096         * sysdeps/unix/sysv/linux/nios2/libc.abilist
7097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7101         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
7102         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7103         * sysdeps/unix/sysv/linux/sh/libc.abilist
7104         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
7105         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
7106         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
7107         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
7108         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
7109         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
7110         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
7111         Add entries for explicit_bzero and __explicit_bzero_chk.
7112
7113 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7114
7115         * math/fenv.h
7116         [__GLIBC_USE (IEC_60559_BFP_EXT) && FE_INVALID && __SUPPORT_SNAN__]
7117         (FE_SNANS_ALWAYS_SIGNAL): New macro.
7118         * math/test-fe-snans-always-signal.c: New file.
7119         * math/Makefile (tests): Add test-fe-snans-always-signal.
7120         (CFLAGS-test-fe-snans-always-signal.c): New variable.
7121         * manual/arith.texi (Infinity and NaN): Document
7122         FE_SNANS_ALWAYS_SIGNAL.
7123
7124 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7125
7126         * string/test-memchr.c (do_test): Typo on ‘byte’ and missing closing
7127         bracket.
7128
7129 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7130
7131         * scripts/build-many-glibcs.py (Context.exec_self): Flush stdout
7132         before calling execv.
7133
7134 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7135
7136         [BZ #20971]
7137         * sysdeps/powerpc/powerpc64/power7/memchr.S (__memchr): Avoid
7138         overflow in pointer addition.
7139         * string/test-memchr.c (do_test): Add an argument to pass as
7140         the size on memchr.
7141         (test_main): Add check for SIZE_MAX.
7142
7143 2016-12-16  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7144
7145         * math/Makefile (gen-libm-calls): Remove w_scalblnF.
7146         (libm-calls): Add w_scalblnF.
7147         * math/w_scalbln.c: Remove.
7148         * math/w_scalblnf.c: Likewise.
7149         * math/w_scalblnl.c: Likewise.
7150         * math/w_scalbln_template.c: New file with type-generic
7151         implementation based on math/w_scalbln.c.
7152         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: Remove.
7153         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Use new template.
7154
7155 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7156
7157         [BZ #20947]
7158         * sysdeps/i386/fpu/s_fmaxl.S (__fmaxl): Add the arguments when
7159         either is a signaling NaN.
7160         * sysdeps/i386/fpu/s_fminl.S (__fminl): Likewise.  Make code
7161         follow fmaxl more closely.
7162         * sysdeps/i386/i686/fpu/s_fmaxl.S (__fmaxl): Add the arguments
7163         when either is a signaling NaN.
7164         * sysdeps/i386/i686/fpu/s_fminl.S (__fminl): Likewise.
7165         * sysdeps/x86_64/fpu/s_fmax.S (__fmax): Likewise.
7166         * sysdeps/x86_64/fpu/s_fmaxf.S (__fmaxf): Likewise.
7167         * sysdeps/x86_64/fpu/s_fmaxl.S (__fmaxl): Likewise.
7168         * sysdeps/x86_64/fpu/s_fmin.S (__fmin): Likewise.
7169         * sysdeps/x86_64/fpu/s_fminf.S (__fminf): Likewise.
7170         * sysdeps/x86_64/fpu/s_fminl.S (__fminl): Likewise.
7171         * math/libm-test.inc (fmax_test_data): Add tests of sNaN inputs.
7172         (fmin_test_data): Likewise.
7173
7174 2016-12-15  Andreas Schwab  <schwab@suse.de>
7175
7176         * support/support_test_main.c (support_test_main): Don't shadow
7177         file-local variable test_pid.
7178
7179 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7180
7181         [BZ #20947]
7182         * sysdeps/powerpc/fpu/s_fmax.S (__fmax): Add the arguments when
7183         either is a signaling NaN.
7184         * sysdeps/powerpc/fpu/s_fmin.S (__fmin): Likewise.
7185
7186 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7187
7188         [BZ #20947]
7189         * math/s_fmax_template.c (M_DECL_FUNC (__fmax)): Add the arguments
7190         when either is a signaling NaN.
7191         * math/s_fmin_template.c (M_DECL_FUNC (__fmin)): Likewise.
7192
7193         * bits/long-double.h: New file.
7194         * sysdeps/ieee754/ldbl-128/bits/long-double.h: Likewise.
7195         * sysdeps/ieee754/ldbl-96/bits/long-double.h: Likewise.
7196         * sysdeps/ieee754/ldbl-opt/bits/long-double.h: Likewise.
7197         * sysdeps/mips/bits/long-double.h: Likewise.
7198         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Likewise.
7199         * math/Makefile (headers): Add bits/long-double.h.
7200         * misc/sys/cdefs.h: Include <bits/long-double.h>.
7201         * stdlib/strtold.c: Include <bits/long-double.h> instead of
7202         <bits/wordsize.h>.
7203         * bits/mathdef.h [!_COMPLEX_H]: Do not allow inclusion.
7204         [!__NO_LONG_DOUBLE_MATH]: Remove conditional code.
7205         * math/math.h: Do not include <bits/mathdef.h>.
7206         * sysdeps/aarch64/bits/mathdef.h: Remove file.
7207         * sysdeps/alpha/bits/mathdef.h [!_COMPLEX_H]: Do not allow
7208         inclusion.
7209         * sysdeps/ia64/bits/mathdef.h: Remove file.
7210         * sysdeps/m68k/m680x0/bits/mathdef.h: Likewise.
7211         * sysdeps/mips/bits/mathdef.h: Likewise.
7212         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7213         * sysdeps/s390/bits/mathdef.h: Likewise.
7214         * sysdeps/sparc/bits/mathdef.h: Likewise.
7215         * sysdeps/x86/bits/mathdef.h: Likewise.
7216         * sysdeps/s390/s390-32/bits/wordsize.h
7217         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]: Remove
7218         conditional code.
7219         * sysdeps/s390/s390-64/bits/wordsize.h
7220         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7221         Likewise.
7222         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h
7223         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7224         Likewise.
7225         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
7226         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7227         Likewise.
7228         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
7229         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7230         Likewise.
7231
7232         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
7233         <linux/falloc.h>.
7234         (FALLOC_FL_KEEP_SIZE): Remove.
7235         (FALLOC_FL_PUNCH_HOLE): Likewise.
7236         (FALLOC_FL_COLLAPSE_RANGE): Likewise.
7237         (FALLOC_FL_ZERO_RANGE): Likewise.
7238
7239 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7240
7241         * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
7242
7243 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7244
7245         * sysdeps/unix/sysv/linux/renameat.c: New file.
7246         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
7247
7248         * sysdeps/unix/sysv/linux/rename.c: New file.
7249         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
7250
7251 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7252
7253         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
7254         * string/strtok.c (strtok): Change to tailcall __strtok_r.
7255         * string/strtok_r.c (__strtok_r): Optimize for performance.
7256         * string/string-inlines.c (__old_strtok_r_1c): New function.
7257         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
7258
7259 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7260
7261         * math/Makefile (gen-libm-calls): Add w_log1pF.
7262         (libm-calls): Remove w_log1pF.
7263         * math/w_log1p.c: Remove.
7264         * math/w_log1pf.c: Likewise.
7265         * math/w_log1pl.c: Likewise.
7266         * math/w_log1p_template.c: New file with type-generic
7267         implementation based on math/w_log1p.c.
7268         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
7269         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
7270
7271 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7272
7273         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
7274
7275 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7276
7277         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7278         kernel version to 4.9.
7279
7280 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
7281
7282         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
7283         ($(inst_libdir)/libm.a): Fix rule to create the target only.
7284
7285 2016-12-13  Andreas Schwab  <schwab@suse.de>
7286
7287         * sysdeps/powerpc/dl-procinfo.c: Don't define
7288         _dl_powerpc_platforms.
7289         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
7290         constants instead of referencing _dl_powerpc_platforms.
7291         (_dl_platform_string): Remove.
7292
7293 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7294
7295         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
7296
7297 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7298
7299         * Rules (binaries-shared-tests, binaries-pie-tests)
7300         (binaries-static-tests): Link with $(link-extra-libs-tests).
7301         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
7302         Remove $(link-extra-libs-tests).
7303
7304 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7305
7306         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7307         (sysdep_routines): Add strncmp_power9.
7308         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7309         (strncmp): Add __strncmp_power9 to list of strncmp functions.
7310         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
7311         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7312         (strncmp): Add __strncmp_power9 to ifunc list.
7313         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
7314
7315 2016-12-12  Florian Weimer  <fweimer@redhat.com>
7316
7317         [BZ #17252]
7318         Add getentropy, getrandom.
7319         * stdlib/sys/random.h: New file.
7320         (headers): Add it.
7321         * stdlib/Makefile (routines): Add getentropy, getrandom.
7322         (tests): Add tst-getrandom.
7323         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
7324         * stdlib/getentropy.c: New file.
7325         * stdlib/getrandom.c: Likewise.
7326         * stdlib/tst-getrandom.c: Likewise.
7327         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
7328         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
7329         * manual/crypt.texi (Unpredictable Bytes): New section.
7330         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
7331         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
7332         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
7333         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7334         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7335         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7336         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7337         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7338         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7339         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7340         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7341         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7342         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7343         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7344         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7345         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7347         Likewise.
7348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7349         Likewise.
7350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7352         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7353         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7354         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7355         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7356         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7357         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7358         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7359         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7360         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7361         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7362
7363 2016-12-10  Florian Weimer  <fweimer@redhat.com>
7364
7365         [BZ #20956]
7366         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
7367         as additional compiler barriers.
7368         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
7369         (fn2, do_test): Declare with external linkage.
7370         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
7371         (do_test): Declare with external linkage.
7372         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
7373         (do_test): Declare with external linkage.
7374         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
7375         (do_test): Declare with external linkage.
7376
7377 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
7378
7379         * support/support_test_main.c (support_test_main): Use correct
7380         timeout.
7381
7382 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
7383             Florian Weimer  <fweimer@redhat.com>
7384
7385         [BZ #16421]
7386         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
7387         and __u6_addr32 members.
7388         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
7389         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
7390         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
7391         Use __u6_addr32.
7392         * inet/tst-checks.c: Use <support/test-driver.c>
7393         * inet/tst-checks-posix.c: New file.
7394         * inet/Makefile (tests): Add it.
7395         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
7396
7397 2016-12-09  Florian Weimer  <fweimer@redhat.com>
7398
7399         New subdirectory support for build and test infrastructure.
7400         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
7401         setting install-lib.
7402         * Makeconfig (link-extra-libs-tests): Define.
7403         (+link-pie-tests, +link-static-tests, +link-tests): Use
7404         link-extra-libs-tests.
7405         (rpath-dirs, all-subdirs): Add support.
7406         (built-modules): Add libsupport.
7407         (libsupport): Define.
7408         * support: New directory.
7409         * support/Makefile: New file.
7410         * support/check.c: Likewise.
7411         * support/check.h: Likewise.
7412         * support/delayed_exit.c: Likewise.
7413         * support/ignore_stderr.c: Likewise.
7414         * support/oom_error.c: Likewise.
7415         * support/set_fortify_handler.c: Likewise.
7416         * support/support.h: Likewise.
7417         * support/temp_file-internal.h: Likewise.
7418         * support/temp_file.c: Likewise.
7419         * support/test-driver.c: Likewise.
7420         * support/test-driver.h: Likewise.
7421         * support/test_main.c: Likewise.
7422         * support/write_message.c: Likewise.
7423         * support/xasprintf.c: Likewise.
7424         * support/xcalloc.c: Likewise.
7425         * support/xmalloc.c: Likewise.
7426         * support/xpthread_barrier_destroy.c: Likewise.
7427         * support/xpthread_barrier_init.c: Likewise.
7428         * support/xpthread_barrier_wait.c: Likewise.
7429         * support/xpthread_cancel.c: Likewise.
7430         * support/xpthread_check_return.c: Likewise.
7431         * support/xpthread_cond_wait.c: Likewise.
7432         * support/xpthread_create.c: Likewise.
7433         * support/xpthread_detach.c: Likewise.
7434         * support/xpthread_join.c: Likewise.
7435         * support/xpthread_mutex_lock.c: Likewise.
7436         * support/xpthread_mutex_unlock.c: Likewise.
7437         * support/xpthread_sigmask.c: Likewise.
7438         * support/xpthread_spin_lock.c: Likewise.
7439         * support/xpthread_spin_unlock.c: Likewise.
7440         * support/xrealloc.c: Likewise.
7441         * support/xsignal.h: Likewise.
7442         * support/xthread.h: Likewise.
7443         * support_tempfile.h: Likewise.
7444         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
7445         (TEST_DATA_LIMIT): Remove unused macro.
7446         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
7447         <support/check.h>.
7448         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
7449         (ignore_stderr, set_fortify_handler): Remove.  Now in
7450         <support/support.h>.
7451         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
7452         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
7453         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
7454         (xpthread_join): Remove.  Now in <support/xthread.h>.
7455         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
7456         Introduce legacy wrappers.
7457         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
7458         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
7459         (write_message): Remove.
7460         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
7461         test-skeleton.c.
7462         * io/test-open-tmpfile: Likewise.
7463         * io/tst-posix_fallocate-common.c: Likewise.
7464         * libio/tst-fseek.c: Likewise.
7465         * malloc/tst-malloc-backtrace.c: Likewise.
7466         * malloc/tst-malloc-fork-deadlock.c: Likewise.
7467         * malloc/tst-malloc-thread-exit.c: Likewise.
7468         * nptl/tst-cancel7.c: Likewise.
7469         * nptl/tst-cleanup0.c: Likewise.
7470         * posix/tst-posix_fadvise-common.c: Likewise.
7471         * rt/tst-shm.c: Likewise.
7472         * time/bug-getdate1.c: Likewise.
7473         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
7474         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
7475         * elf/Makefile (tst-piemod1.so): Link against libsupport.
7476
7477 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
7478
7479         * Rules [$(run-built-tests) != no] (tests-expected): Add
7480         $(tests-printers).
7481         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
7482
7483 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
7484
7485         [BZ #20539]
7486         * math/Makefile (install-lib-ldscripts): Add libm.a.
7487         (install_subdir): Remove.
7488         (install-others): Add.
7489         ($(inst_libdir)/libm.a): Add rule for installation as
7490         linker script.
7491         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
7492
7493 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
7494
7495         * INSTALL: Regenerated.
7496         * Makeconfig: Add comments and whitespace to make the control flow
7497         clearer.
7498         (+link-printers-tests, +link-pie-printers-tests,
7499         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
7500         built-rtld-LDFLAGS, link-libc-rpath,
7501         link-libc-tests-after-rpath-link,
7502         link-libc-printers-tests): New.
7503         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
7504         link-libc-tests): Use the new variables as required.
7505         * Makerules ($(py-const)): New rule.
7506         generated: Add $(py-const).
7507         * README.pretty-printers: New file.
7508         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
7509         (others): Depend on $(py-const).
7510         (tests): Depend on $(tests-printers-programs) or
7511         $(tests-printers-out),
7512         as required.  Pass $(tests-printers) to merge-test-results.sh.
7513         * manual/install.texi: Add requirements for testing the pretty
7514         printers.
7515         * nptl/Makefile (gen-py-const-headers, pretty-printers,
7516         tests-printers, CFLAGS-test-mutexattr-printers.c
7517         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
7518         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
7519         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
7520         * nptl/nptl-printers.py: New file.
7521         * nptl/nptl_lock_constants.pysym: Likewise.
7522         * nptl/test-cond-printers.c: Likewise.
7523         * nptl/test-cond-printers.py: Likewise.
7524         * nptl/test-condattr-printers.c: Likewise.
7525         * nptl/test-condattr-printers.py: Likewise.
7526         * nptl/test-mutex-printers.c: Likewise.
7527         * nptl/test-mutex-printers.py: Likewise.
7528         * nptl/test-mutexattr-printers.c: Likewise.
7529         * nptl/test-mutexattr-printers.py: Likewise.
7530         * nptl/test-rwlock-printers.c: Likewise.
7531         * nptl/test-rwlock-printers.py: Likewise.
7532         * nptl/test-rwlockattr-printers.c: Likewise.
7533         * nptl/test-rwlockattr-printers.py: Likewise.
7534         * scripts/gen-py-const.awk: Likewise.
7535         * scripts/test_printers_common.py: Likewise.
7536         * scripts/test_printers_exceptions.py: Likewise.
7537
7538 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
7539
7540         * scripts/build-many-glibcs.py (Context.__init__): Take strip
7541         argument.
7542         (Glibc.build_glibc): Strip installed shared libraries if
7543         requested.
7544         (get_parser): Add --strip option.
7545         (main): Update Context call.
7546
7547 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7548             Dominik Vogt  <vogt@linux.vnet.ibm.com>
7549
7550         [BZ #20847]
7551         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
7552         array bounds for else branch.
7553         (__execvpe): Style fixes.
7554         * posix/tst-vfork3.c (run_script): New function.
7555         (create_script): Likewise.
7556         (do_test): Use run_script internal function.
7557         (do_prepare): Use create_script internal function.
7558
7559 2016-12-07  Andreas Schwab  <schwab@suse.de>
7560
7561         * sysdeps/unix/sysv/linux/x86/elision-conf.h
7562         (__elision_available): Don't declare.
7563         * sysdeps/unix/sysv/linux/x86/elision-conf.c
7564         (__elision_available): Don't define.
7565         (elision_init): Don't set __elision_available.
7566
7567 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
7568
7569         [BZ #20940]
7570         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
7571         return Inf for arguments Inf and sNaN.
7572         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
7573         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
7574         Likewise.
7575         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
7576         Likewise.
7577         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
7578         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
7579         for arguments Inf and sNaN.  When returning a NaN, compute it by
7580         arithmetic on the arguments.
7581         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
7582         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
7583         arguments.
7584
7585 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
7586
7587         [BZ #20916]
7588         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
7589         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
7590         to compute result.
7591         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7592         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
7593
7594 2016-12-05  Torvald Riegel  <triegel@redhat.com>
7595
7596         * include/atomic.h (__atomic_check_size_ls): New.
7597         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
7598         atomic_store_release): Use it.
7599         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
7600         (elision_adapt, ELIDE_LOCK): Use atomics.
7601         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
7602         atomics and improve code comments.
7603         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
7604         (__lll_trylock_elision): Likewise.
7605
7606 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7607
7608         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
7609         programs.
7610
7611 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
7612
7613         [BZ #20916]
7614         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
7615         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
7616         arguments to compute result.
7617         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
7618         1 for arguments (sNaN, 0) or (1, sNaN).
7619         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7620         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7621
7622         [BZ #20919]
7623         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
7624         NaN first argument when raised to power 0.
7625         * math/w_pow.c (__pow): Do not check for NaN or zero results from
7626         raising to power zero.
7627         * math/w_powf.c (__powf): Likewise.
7628         * math/w_powl.c (__powl): Likewise.
7629         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
7630         pow (0, 0) or pow (NaN, 0).
7631
7632 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
7633
7634         [BZ #20918]
7635         * configure.ac: Test for static NSS cryptographic libraries and set
7636         libc_cv_static_nss_crypt.
7637         * configure: Regenerate.
7638         * config.make.in (static-nss-crypt): Define.
7639         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
7640         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
7641         (CFLAGS-tst-linkall-static.c): Define.
7642         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
7643         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
7644         ($(objpfx)tst-linkall-static): Define.
7645         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
7646         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
7647
7648 2016-12-02  Florian Weimer  <fweimer@redhat.com>
7649
7650         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
7651         (one-hundred, tst-tls-many-dynamic-modules): Define.
7652         (modules-names): Add $(tst-tls-many-dynamic-modules).
7653         (tst-tls-manydynamic%mod.os): Build with special preprocessor
7654         macros.
7655         (tst-tls-manydynamic): Link against libdl, libpthread.
7656         (tst-tls-manydynamic.out): The test needs the test modules at run
7657         time.
7658         * elf/tst-tls-manydynamic.c: New file.
7659         * elf/tst-tls-manydynamic.h: Likewise.
7660         * elf/tst-tls-manydynamicmod.c: Likewise.
7661
7662 2016-12-02  Florian Weimer  <fweimer@redhat.com>
7663
7664         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
7665         (TLS_DTV_UNALLOCATED): Add.
7666         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
7667         offsets.
7668
7669 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
7670
7671         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7672
7673 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
7674
7675         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
7676         Add -fno-optimize-sibling-calls.
7677
7678 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
7679
7680         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
7681         New declaration.
7682         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
7683         macro.
7684         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
7685         New macro.
7686         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
7687         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
7688         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
7689         (llogbf): Likewise.
7690         (llogbl): Likewise.
7691         * math/Makefile (gen-libm-calls): Add w_llogbF.
7692         (tests): Add test-fp-llogb-constants.
7693         * math/w_llogb_template.c: New file.  Based on
7694         math/w_ilogb_template.c.
7695         * math/libm-test.inc (llogb_test_data): New array.
7696         (llogb_test): New function.
7697         (main): Call llogb_test.
7698         * math/test-fp-llogb-constants.c: New file.  Based on
7699         math/test-fp-ilogb-constants.c.
7700         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
7701         (do_test): Call check_return_llogb.
7702         * math/test-tgmath.c (NCALLS): Increase to 126.
7703         (F(compile_test)): Call llogb.
7704         (F(llogb)): New function.
7705         * manual/math.texi (Exponents and Logarithms): Document llogb,
7706         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
7707         * manual/libm-err-tab.pl (@all_functions): Add llogb.
7708         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
7709         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
7710         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
7711         (CFLAGS-nldbl-llogb.c): New variable.
7712         * sysdeps/nacl/libm.abilist: Update.
7713         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7714         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7715         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7716         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7717         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7718         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7719         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7720         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7721         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7722         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7723         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7724         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7726         Likewise.
7727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7728         Likewise.
7729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7730         Likewise.
7731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7732         Likewise.
7733         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7734         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7735         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7736         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7737         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7738         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7739         Likewise.
7740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7741         Likewise.
7742         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7743         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7744         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7745
7746 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
7747
7748         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
7749         _Float128 instead of long double.
7750         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
7751
7752         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
7753         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
7754         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
7755         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
7756         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
7757         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
7758         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
7759         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
7760         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
7761         Likewise.
7762
7763 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7764
7765         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
7766         Remove redirection to __strrchr_ppc.
7767
7768 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7769
7770         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7771         (sysdep_routines): Add strcmp_power9.
7772         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7773         (strcmp): Add __strcmp_power9 to list of strcmp functions.
7774         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
7775         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7776         (strcmp): Add __strcmp_power9 to ifunc list.
7777         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
7778
7779 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
7780
7781         * bits/fp-logb.h: New file.
7782         * sysdeps/ia64/bits/fp-logb.h: Likewise.
7783         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
7784         * sysdeps/x86/bits/fp-logb.h: Likewise.
7785         * math/Makefile (headers): Add bits/fp-logb.h.
7786         * math/math.h: Include <bits/fp-logb.h>.
7787         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
7788         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
7789         * bits/mathdef.h (FP_ILOGB0): Remove.
7790         (FP_ILOGBNAN): Likewise.
7791         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
7792         (FP_ILOGBNAN): Likewise.
7793         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
7794         (FP_ILOGBNAN): Likewise.
7795         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
7796         (FP_ILOGBNAN): Likewise.
7797         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
7798         (FP_ILOGBNAN): Likewise.
7799         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
7800         (FP_ILOGBNAN): Likewise.
7801         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
7802         (FP_ILOGBNAN): Likewise.
7803         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
7804         (FP_ILOGBNAN): Likewise.
7805         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
7806         (FP_ILOGBNAN): Likewise.
7807         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
7808         (FP_ILOGBNAN): Likewise.
7809
7810         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
7811         time module.
7812         (Context.__init__): Initialize self.logsdir_old.
7813         (Context.run_builds): Handle bot action.
7814         (Context.bot_cycle): Copy logs directory before running builds.
7815         (Context.bot_run_self): Take argument for whether to check
7816         subprocess result.  Flush stdout before running subprocess.
7817         (Context.bot): New function.
7818         (get_parser): Allow bot action.
7819
7820 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
7821
7822         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
7823         Import email.mime.text, email.utils and smtplib modules.
7824         (Context.__init__): Initialize self.bot_config_json.
7825         (Context.run_builds): Handle bot-cycle action.
7826         (Context.load_bot_config_json): New function.
7827         (Context.part_build_old): Likewise.
7828         (Context.bot_cycle): Likewise.
7829         (Context.bot_build_mail): Likewise.
7830         (Context.bot_run_self): Likewise.
7831         (get_parser): Allow bot-cycle action.
7832
7833 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7834
7835         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
7836         Remove redirection to __stpcpy_ppc.
7837
7838 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7839
7840         Remove __libc_memalign from ld.so because it is unused.
7841         * elf/dl-minimal.c: Update comment on the malloc implementation.
7842         (malloc): Renamed from __libc_memalign, replacing the original
7843         malloc implementation.  Replace the align parameter with
7844         MALLOC_ALIGNMENT.
7845         * elf/Versions (ld): Update comment and remove __libc_memalign.
7846         * sysdeps/nacl/ld.abilist: Likewise.
7847         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
7848         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
7849         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
7850         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
7851         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
7852         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
7853         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
7854         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
7855         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
7856         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
7857         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
7858         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
7859         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
7860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
7861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
7862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
7863         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
7864         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
7865         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
7866         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
7867         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
7868         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
7869         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
7870         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
7871         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
7872         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
7873         * sysdeps/generic/localplt.data (ld.so): Likewise.
7874         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
7875         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
7876         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
7877         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
7878         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
7879         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
7880         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
7881         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
7882         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
7883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
7884         (ld.so): Likewise.
7885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
7886         (ld.so): Likewise.
7887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
7888         Likewise.
7889         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
7890         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
7891         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
7892         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
7893         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
7894
7895 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7896
7897         [BZ #16628]
7898         Implement _dl_catch_error, _dl_signal_error in libc.so.
7899         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
7900         (catch_hook): Define as thread-local or regular variable,
7901         depending on DL_ERROR_BOOTSTRAP.
7902         (CATCH_HOOK): Remove.
7903         (dl_signal_error, _dl_catch_error): Use
7904         catch_hook.  Add hidden definition for libc.
7905         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
7906         for DL_ERROR_BOOTSTRAP only.
7907         * elf/dl-error.c: New file.
7908         * elf/dl-error-minimal.c: Likewise.
7909         * elf/tst-latepthread.c: Likewise.
7910         * elf/tst-latepthreadmod.c: Likewise.
7911         * elf/Makefile (routines): Add dl-error.
7912         (dl-routines): Remove dl-error.
7913         (rtld-routines): Add dl-error-minimal.
7914         [build-shared] (tests): Add tst-latepthread.
7915         (module-names): Add tst-latepthreadmod.
7916         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
7917         symbol.
7918         (tst-latepthreadmod.so): Link against libpthread.
7919         (tst-latepthread): Link against libdbl.
7920         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
7921         _dl_catch_error.
7922         [ld] (GLIBC_PRIVATE): Likewise.
7923         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
7924         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
7925         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
7926         directly.
7927         * elf/dl-tsd.c: Remove file.
7928         * elf/rtld.c (_rtld_global_ro): Remove initializers for
7929         _dl_catch_error, _dl_signal_error.
7930         (_dl_initial_error_catch_tsd): Remove definition.
7931         (do_preload): Remove initialization of dl_error_catch_tsd.
7932         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
7933         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
7934         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
7935         * dlfcn/dlopen.c (dlopen_doit): Likewise.
7936         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
7937         set dl_error_catch_tsd.
7938         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7939         _dl_error_catch_tsd member.
7940         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
7941         members.
7942         (_dl_initial_error_catch_tsd): Remove declaration.
7943         (_dl_dprintf): Provide definition for use outside of ld.so.
7944         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
7945         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
7946         prototype for libc.
7947         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
7948         _dl_catch_error.
7949         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
7950         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
7951         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
7952         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
7953         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
7954         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
7955         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
7956         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
7957         Likewise.
7958         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
7959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
7960         (ld.so): Likewise.
7961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
7962         (ld.so): Likewise.
7963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
7964         Likewise.
7965         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
7966         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
7967         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
7968         Likewise.
7969         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
7970         Likewise.
7971         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
7972
7973 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7974
7975         [BZ #4099]
7976         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
7977         _IO_BUFSIZ (8192).
7978
7979 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
7980
7981         * PROJECTS: Remove file.
7982
7983 2016-11-29  Florian Weimer  <fweimer@redhat.com>
7984
7985         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
7986
7987 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
7988             Steve Ellcey  <sellcey@caviumnetworks.com>
7989
7990         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
7991         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
7992         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
7993         fxstatat.
7994         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
7995         lxstat.
7996         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
7997         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
7998         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
7999         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
8000         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
8001         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
8002         __xstat.
8003
8004 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8005
8006         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
8007         Define.
8008         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
8009         definition.
8010
8011 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8012
8013         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
8014         version and turn into strong alias.  Remove compat symbol.
8015
8016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8017         (__longjmp): Remove.
8018
8019 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
8020
8021         * bits/fp-fast.h: New file.
8022         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
8023         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
8024         * math/Makefile (headers): Add bits/fp-fast.h.
8025         * math/math.h: Include <bits/fp-fast.h>.
8026         * bits/mathdef.h (FP_FAST_FMA): Remove.
8027         (FP_FAST_FMAF): Likewise.
8028         (FP_FAST_FMAL): Likewise.
8029         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
8030         (FP_FAST_FMAF): Likewise.
8031         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
8032         (FP_FAST_FMAF): Likewise.
8033         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
8034         (FP_FAST_FMAF): Likewise.
8035         (FP_FAST_FMAL): Likewise.
8036         * sysdeps/arm/bits/mathdef.h: Remove file.
8037         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
8038         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8039         * sysdeps/tile/bits/mathdef.h: Likewise.
8040
8041 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8042
8043         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
8044         * math/w_ilogb.c: Remove.
8045         * math/w_ilogbf.c: Likewise.
8046         * math/w_ilogbl.c: Likewise.
8047         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
8048         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
8049         * math/Makefile (gen-libm-calls): Add w_ilogbF.
8050         (libm-calls): Remove w_ilogbF.
8051         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
8052         (LDOUBLE_ilogbl_libm_version): New macro.
8053
8054         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
8055
8056         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
8057         [!__STRICT_ANSI__ && !__cplusplus].
8058
8059 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
8060
8061         [BZ #20750]
8062         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
8063         of PIC.
8064
8065 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
8066             Yury Norov  <ynorov@caviumnetworks.com>
8067             Steve Ellcey  <sellcey@caviumnetworks.com>
8068
8069         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
8070         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
8071         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
8072         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
8073         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
8074         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
8075         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
8076         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
8077         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
8078         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
8079         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
8080         to get correct reg name for ILP32.
8081         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
8082         (RELA_SIZE): New Macro.
8083         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
8084         to support ILP32.
8085         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
8086         cast for ILP32 mode.
8087         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
8088         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
8089         * sysdeps/aarch64/memset.S (__memset): Ditto.
8090         * sysdeps/aarch64/strchr.S (strchr): Ditto.
8091         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
8092         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
8093         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
8094         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
8095         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
8096         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
8097         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
8098         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
8099         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
8100         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
8101         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
8102         change PTR_MANGLE call to use register numbers instead of names.
8103         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
8104         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
8105         ILP32 mode, change PTR_MANGLE calls to use register numbers.
8106         * sysdeps/aarch64/start.S (_start): Ditto.
8107         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
8108         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
8109         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
8110         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
8111         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
8112         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
8113         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
8114         Make defined values dependent on __ILP32__.
8115         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
8116         (sem_t): Change __align type.
8117         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
8118         PTR_SIZE): New Macros.
8119         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
8120         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
8121         Set when in ILP32 mode.
8122         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
8123         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
8124         Set elf flags for ILP32.
8125         (add_system_dir): Set ILP32 library directories.
8126         * sysdeps/unix/sysv/linux/aarch64/init-first.c
8127         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
8128         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
8129         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
8130         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
8131         New Macros.
8132         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
8133
8134 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
8135
8136         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
8137         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
8138         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
8139
8140 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8141
8142         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
8143         <asm/cachectl.h>.
8144
8145 2016-11-27  Zack Weinberg  <zackw@panix.com>
8146
8147         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
8148         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
8149
8150 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8151
8152         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
8153         error_t to fix usage in C++ programs.
8154
8155 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
8156
8157         * scripts/build-many-glibcs.py: Import datetime module.
8158         (Context.__init__): Load JSON build state.  Initialize list of
8159         status logs.
8160         (Context.run_builds): Update saved build state.
8161         (Context.add_makefile_cmdlist): Update list of status logs.
8162         (Context.load_build_state_json): New function.
8163         (Context.store_build_state_json): Likewise.
8164         (Context.clear_last_build_state): Likewise.
8165         (Context.update_build_state): Likewise.
8166         (CommandList.status_logs): Likewise.
8167
8168 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
8169
8170         * scripts/build-many-glibcs.py (Context.__init__): Save text of
8171         script being executed.
8172         (Context.get_script_text): New function.
8173         (Context.exec_self): Likewise.
8174         (Context.checkout): Re-exec script if changed by checkout process.
8175
8176 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8177
8178         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8179         (setpayloadsig): New declaration.
8180         * math/Versions (setpayloadsig): New libm symbol at version
8181         GLIBC_2.25.
8182         (setpayloadsigf): Likewise.
8183         (setpayloadsigl): Likewise.
8184         * math/Makefile (libm-calls): Add s_setpayloadsigF.
8185         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
8186         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
8187         (setpayloadsig_test_data): New array.
8188         (setpayloadsig_test): New function.
8189         (main): Call setpayloadsig_test.
8190         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
8191         setpayloadsigf and setpayloadsigl.
8192         * manual/libm-err-tab.pl: Update comment on interfaces without
8193         ulps tabulated.
8194         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
8195         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
8196         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
8197         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
8198         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
8199         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
8200         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8201         setpayloadsig.
8202         (CFLAGS-nldbl-setpayloadsig.c): New variable.
8203         * sysdeps/nacl/libm.abilist: Update.
8204         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8205         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8206         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8207         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8208         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8209         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8210         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8211         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8212         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8213         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8214         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8215         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8217         Likewise.
8218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8219         Likewise.
8220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8221         Likewise.
8222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8223         Likewise.
8224         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8225         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8226         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8227         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8228         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8229         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8230         Likewise.
8231         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8232         Likewise.
8233         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8234         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8235         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8236
8237         * scripts/build-many-glibcs.py: Import json module.
8238         (Context.__init__): Take replace_sources argument.  Load
8239         versions.json.
8240         (Context.load_versions_json): New function.
8241         (Context.store_json): Likewise.
8242         (Context.store_versions_json): Likewise.
8243         (Context.set_component_version): Likewise.
8244         (Context.checkout): Update versions.json.  Check for and handle
8245         changes of version.  Prefer previously explicitly specified
8246         version to default version.
8247         (Context.checkout_vcs): Return a revision identifier.
8248         (Context.git_checkout): Likewise.
8249         (Context.gcc_checkout): Likewise.
8250         (get_parser): Add --replace-sources option.
8251         (main): Pass replace_sources argument to Context call.
8252
8253 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8254
8255         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
8256         * nptl/allocatestack.c (allocate_stack): Likewise.
8257         (__reclaim_stacks): Likewise.
8258         (setxid_signal_thread): Obtain pid through syscall.
8259         * nptl/nptl-init.c (sigcancel_handler): Likewise.
8260         (sighandle_setxid): Likewise.
8261         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
8262         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
8263         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8264         Likewise.
8265         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
8266         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
8267         comment.
8268         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
8269         * nptl/descr.h (struct pthread): Change comment about pid value.
8270         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
8271         pid assert.
8272         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
8273         Do not set pid value.
8274         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
8275         pid cache check.
8276         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
8277         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
8278         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
8279         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
8280         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
8281         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
8282         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
8283         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
8284         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
8285         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
8286         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
8287         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
8288         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
8289         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
8290         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
8291         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
8292         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
8293         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
8294         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
8295         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
8296         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
8297         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
8298         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
8299         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8300         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
8301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
8302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
8303         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8304         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8305         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8306         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
8307         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
8308         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
8309         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8310         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
8311         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
8312         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
8313         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8314         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
8315         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
8316         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
8317         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
8318         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
8319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
8320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
8321         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
8322         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
8323         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8324         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
8325         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
8326         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
8327         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8328         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
8329         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
8330         struct access.
8331         (clone_test): Remove function.
8332         (do_test): Rewrite to take in consideration pid is not cached anymore.
8333
8334 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8335
8336         * bits/flt-eval-method.h: New file.
8337         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
8338         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
8339         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
8340         * math/Makefile (headers): Add bits/flt-eval-method.h.
8341         * math/math.h: Include <bits/flt-eval-method.h>.
8342         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
8343         [__USE_ISOC99] (double_t): Likewise.
8344         * bits/mathdef.h (float_t): Remove.
8345         (double_t): Likewise.
8346         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
8347         (double_t): Likewise.
8348         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
8349         (double_t): Likewise.
8350         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
8351         (double_t): Likewise.
8352         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
8353         (double_t): Likewise.
8354         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
8355         (double_t): Likewise.
8356         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
8357         (double_t): Likewise.
8358         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
8359         (double_t): Likewise.
8360         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
8361         (double_t): Likewise.
8362         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
8363         (double_t): Likewise.
8364         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
8365         (double_t): Likewise.
8366         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
8367         (double_t): Likewise.
8368         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
8369         (double_t): Likewise.
8370         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
8371         (double_t): Likewise.
8372
8373 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
8374
8375         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
8376         instead of PIC.
8377
8378 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8379
8380         [BZ #20859]
8381         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
8382         (-0x7fffffff) instead of 0x80000001.
8383         * math/test-fp-ilogb-constants.c: New file.
8384         * math/Makefile (tests): Add test-fp-ilogb-constants.
8385
8386 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
8387
8388         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
8389         (_init): Use it in place of hardcoded R_MIPS_JALR.
8390         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
8391         (_init): Use it in place of hardcoded R_MIPS_JALR.
8392         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
8393         (_init): Use it in place of hardcoded R_MIPS_JALR.
8394
8395 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8396
8397         [BZ #20787]
8398         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
8399         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
8400         (double_t): Do not define to double if [__x86_64__] when
8401         __FLT_EVAL_METHOD__ is nonzero.
8402         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
8403         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
8404         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8405         test-flt-eval-method-387 and test-flt-eval-method-sse.
8406         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
8407         variable.
8408         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
8409
8410 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
8411
8412         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
8413         use of -fno-isolate-erroneous-paths options for tilepro.
8414
8415 2016-11-23  Florian Weimer  <fweimer@redhat.com>
8416
8417         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
8418         structure initialization is no longer needed.
8419
8420 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8421
8422         [BZ #20855]
8423         * bits/mathdef.h (float_t): Define to float.
8424         * math/test-flt-eval-method.c: New file.
8425         * math/Makefile (tests): Add test-flt-eval-method.
8426         (CFLAGS-test-flt-eval-method.c): New variable.
8427
8428 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
8429
8430         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
8431         and __fstatfs.  Make them aliases of __fstatfs64 if
8432         STATFS_IS_STATFS64 is set to non-zero.
8433         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
8434         and __statfs64.
8435         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
8436         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
8437         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
8438         for __statfs and statfs.
8439         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
8440         to 0.
8441         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
8442         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
8443         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
8444         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
8445         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
8446         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
8447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
8448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
8449         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
8450         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
8451         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
8452         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
8453
8454 2016-11-22  Andreas Schwab  <schwab@suse.de>
8455
8456         * misc/mkstemp.c: Include <fcntl.h>.
8457         * misc/mkstemps.c: Likewise.
8458         * misc/mkostemp.c: Likewise.
8459         * misc/mkostemps.c: Likewise.
8460
8461 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
8462
8463         [BZ #20847]
8464         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
8465         array bounds.
8466         (__execvpe): Likewise.
8467
8468 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
8469
8470         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
8471         -fno-isolate-erroneous-paths options for tilepro.
8472
8473 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
8474
8475         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
8476         to 0 when in 32 bit mode.
8477         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
8478         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
8479         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
8480         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
8481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
8482         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
8483         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
8484         XSTAT_IS_XSTAT64 test.
8485         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
8486         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
8487         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
8488         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
8489         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
8490         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
8491         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
8492         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
8493         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
8494         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
8495         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
8496
8497 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
8498
8499         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8500         (setpayload): New declaration.
8501         * math/Versions (setpayload): New libm symbol at version
8502         GLIBC_2.25.
8503         (setpayloadf): Likewise.
8504         (setpayloadl): Likewise.
8505         * math/Makefile (libm-calls): Add s_setpayloadF.
8506         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
8507         test_Ff_b1_data.
8508         (RUN_TEST_Ff_b1): New macro.
8509         (RUN_TEST_LOOP_Ff_b1): Likewise.
8510         (canonicalize_test_data): Update type.
8511         (setpayload_test_data): New array.
8512         (setpayload_test): New function.
8513         (main): Call setpayload_test.
8514         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
8515         setpayloadf and setpayloadl.
8516         * manual/libm-err-tab.pl: Update comment on interfaces without
8517         ulps tabulated.
8518         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
8519         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
8520         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
8521         Likewise.
8522         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
8523         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
8524         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
8525         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
8526         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
8527         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
8528         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
8529         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
8530         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
8531         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8532         setpayload.
8533         (CFLAGS-nldbl-setpayload.c): New variable.
8534         * sysdeps/nacl/libm.abilist: Update.
8535         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8536         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8537         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8538         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8539         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8540         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8541         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8542         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8543         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8544         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8545         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8546         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8548         Likewise.
8549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8550         Likewise.
8551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8552         Likewise.
8553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8554         Likewise.
8555         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8556         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8557         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8558         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8559         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8560         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8561         Likewise.
8562         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8563         Likewise.
8564         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8565         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8566         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8567
8568 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8569
8570         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
8571         * include/unistd.h: Extend comment about __access_noerrno return
8572         semantics.
8573         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
8574         (access_common): Correct typo for EACCES.
8575
8576 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
8577
8578         * sysdeps/tile/math-tests.h: New file.
8579
8580         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
8581         (__old_set_dataplane): Rename from set_dataplane and make a
8582         compatibility symbol.
8583         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
8584         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
8585         sys/dataplane.h.
8586
8587 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
8588
8589         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
8590         script quote words in command output to log suitably for input to
8591         the shell.
8592
8593 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
8594             Maciej W. Rozycki  <macro@imgtec.com>
8595
8596         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
8597         `.Lno_weak_fn' label.
8598         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
8599         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
8600
8601 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8602             Yury Norov  <ynorov@caviumnetworks.com>
8603
8604         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
8605         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
8606         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8607         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
8608         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8609         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
8610         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8611         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8612         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8613         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
8614         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8615         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
8616         (sysdep_routines): Remove oldgetrlimit64.
8617         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
8618         (sysdep_routines): Likewise.
8619         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
8620         (sysdep_routines): Likewise.
8621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
8622         [$(subdir) = resource] (sysdep_routines): Likewise.
8623         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
8624         [$(subdir) = resource] (sysdep_routines): Likewise.
8625         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
8626         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
8627         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
8628         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
8629         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
8630         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
8631         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
8632         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
8633         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
8634         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
8635         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
8636         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
8637         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
8638         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
8639         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
8640         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
8641         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
8642         setrlimit and getrlimit.
8643         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8644         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
8645         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
8646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8648         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
8649         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
8650         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8651         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8652         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
8653         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
8654         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
8655         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
8656         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
8657         (__old_getrlimit64): Add compatibility symbol.
8658         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
8659
8660 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
8661
8662         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
8663         newly built gmp, mpfr and mpc.
8664
8665         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
8666
8667 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
8668
8669         * conform/Makefile (linknamespace-libs): Rename to
8670         linknamespace-libs-thr.
8671         (linknamespace-libs-posix): New variable.
8672         (linknamespace-libs-xsi): Likewise.
8673         (linknamespace-libs-XPG3): Include libcrypt.a.
8674         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
8675         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
8676         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
8677         (linknamespace-libs-XOPEN2K): Likewise.
8678         (linknamespace-libs-XOPEN2K8): Likewise.
8679         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
8680
8681         [BZ #20829]
8682         * stdio-common/Versions (__snprintf): Add to version
8683         GLIBC_PRIVATE.
8684         * include/stdio.h (__snprintf): Use libc_hidden_proto.
8685         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
8686         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
8687         of snprintf.
8688         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8689
8690 2016-11-16  Zack Weinberg  <zackw@panix.com>
8691
8692         * string/string.h: Remove obsolete comment stating that
8693         strcoll_l and strxfrm_l have not yet been standardized.
8694
8695 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8696
8697         * hurd/hurd.h (__hurd_fail_noerrno): New function.
8698         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
8699         __access_noerrno.
8700         * io/access.c (__access_noerrno): New function.
8701         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
8702         (hurd_fail_seterrno): Likewise.
8703         (access_common): Likewise.
8704         (__access_noerrno): Likewise.
8705         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
8706         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
8707         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
8708         macro.
8709
8710 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
8711
8712         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
8713         Only declare fpregs if [__SH_FPU_ANY__].
8714
8715 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
8716
8717         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
8718         Make code unconditional.
8719         [!(__SH4__ || __SH4A__)]: Remove conditional code.
8720
8721 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
8722
8723         * manual/sysinfo.texi (S_APPEND): Delete.
8724         (S_IMMUTABLE): Likewise.
8725
8726 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
8727             Magnus Granberg  <zorry@gentoo.org>
8728             Mike Frysinger  <vapier@gentoo.org>
8729
8730         [BZ #20662]
8731         * configure.ac (libc_cv_predef_stack_protector): Also check for
8732         __stack_chk_fail_local symbols.
8733         * configure: Regenerated.
8734
8735 2016-11-15  Florian Weimer  <fweimer@redhat.com>
8736
8737         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
8738         (libc_hidden_def): Remove redefinition.
8739         (__sigsetjmp): Add hidden definition.
8740         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
8741         (libc_hidden_def): Remove redefinition.
8742         (__sigsetjmp): Add hidden definition.
8743
8744 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
8745
8746         * scripts/build-many-glibcs.py (os.path): Do not import.
8747         (Context): Inherit explicitly from object.  Remove blank line
8748         between class and docstring.
8749         (Config): Likewise.
8750         (Glibc): Likewise.
8751         (Command): Likewise.
8752         (CommandList): Likewise.
8753         (Context.write_files): Store chmod mode in a variable.
8754
8755         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
8756         LIBC_SLIBDIR_RTLDDIR for tilegx32.
8757         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
8758
8759 2016-11-14  Zack Weinberg  <zackw@panix.com>
8760
8761         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
8762         creating or re-creating it.
8763
8764         * string/bits/string2.h: Fix typo in comment.
8765
8766 2016-11-14  Zack Weinberg  <zackw@panix.com>
8767
8768         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
8769         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
8770         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
8771         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
8772         of redirected function names.
8773
8774         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
8775         as well.  Document that MESSAGE must be a single string literal.
8776
8777 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
8778
8779         * scripts/build-many-glibcs.py: New file.
8780
8781         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
8782         (do_test): Disable -Wmaybe-uninitialized around uses of
8783         except_mask.
8784
8785         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
8786
8787 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
8788
8789         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
8790         (atomic_store_release): Provide tilepro-specific implementations.
8791
8792 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
8793
8794         * math/math.h (__MATH_TG): New macro.
8795         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
8796         [__USE_ISOC99] (signbit): Likewise.
8797         [__USE_ISOC99] (isfinite): Likewise.
8798         [__USE_ISOC99] (isnan): Likewise.
8799         [__USE_ISOC99] (isinf): Likewise.
8800         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
8801         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
8802         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
8803         __MATH_TG and __MATH_EVAL_FMT2.
8804         * sysdeps/generic/math_private.h (fabs_tg): Define using
8805         __MATH_TG.
8806         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
8807         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
8808         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
8809         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
8810         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
8811         macro.
8812         (__iscanonical): Likewise.
8813         (iscanonical): Define using __MATH_TG.
8814
8815 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8816
8817         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
8818         guards.
8819
8820         * sysdeps/unix/sysv/linux/access.c: New file.
8821         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
8822
8823 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
8824
8825         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
8826         and __WORDSIZE32_PTRDIFF_LONG.
8827
8828 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8829
8830         * sysdeps/aarch64/libm-test-ulps: Regenerated.
8831
8832 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8833
8834         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
8835         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
8836         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
8837         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
8838         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
8839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
8840         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
8841         * sysdeps/unix/sysv/linux/truncate.c: New file.
8842         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
8843         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
8844         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
8845         Remove.
8846         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
8847         Likewise.
8848
8849         * posix/tst-truncate-common.c: New file.
8850         * posix/tst-truncate.c: Use tst-truncate-common.c.
8851         * posix/tst-truncate64.c: Likewise and add LFS tests.
8852         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
8853         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
8854         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
8855         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
8856         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
8857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
8858         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
8859         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
8860         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
8861         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
8862         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
8863         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
8864         Remove.
8865         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
8866         Likewise.
8867
8868 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
8869
8870         [BZ #20790]
8871         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
8872         to MAXLINESIZE.
8873         * sunrpc/bug20790.x: New file.
8874         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
8875         variable.
8876         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
8877         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
8878
8879         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
8880
8881         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
8882
8883         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
8884         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
8885         calloc, realloc, free, memalign and __libc_memalign rather than
8886         making them optional.
8887
8888         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
8889         for libc.so.
8890
8891 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8892
8893         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
8894         ptw-lseek64.
8895         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
8896         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
8897         Likewise.
8898         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
8899         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
8900         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
8901         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
8902         * sysdeps/unix/sysv/linux/lseek.c: New file.
8903         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
8904         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
8905         __libc_lseek64 from auto-generation.
8906         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8907         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
8908
8909 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8910
8911         * nptl/tst-basic1.c (tf, do_test): Use write_message.
8912         * nptl/tst-cleanup1.c (do_test): Likewise.
8913         * nptl/tst-cleanup3.c (do_test): Likewise.
8914         * nptl/tst-key1.c (do_test): Likewise.
8915         * nptl/tst-key2.c (tf, do_test): Likewise.
8916         * nptl/tst-key3.c (tf, do_test): Likewise.
8917         * nptl/tst-stdio1.c (do_test): Likewise.
8918         * nptl/tst-stdio2.c (do_test): Likewise.
8919
8920         * nptl/tst-kill3.c (handler): Use write_message in place of write.
8921         * nptl/tst-kill6.c (handler): Likewise.
8922         * nptl/tst-tls2.c (CB): Likewise.
8923         * nptl/tst-tls3.c (CB): Likewise.
8924
8925 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
8926
8927         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
8928
8929 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
8930             Steve Ellcey  <sellcey@caviumnetworks.com>
8931
8932         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
8933           __ASSUME_ST_INO_64_BIT as 0
8934         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
8935         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
8936           over the code where __ASSUME_ST_INO_64_BIT is used.
8937         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
8938         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
8939         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8940
8941 2016-11-07  Florian Weimer  <fweimer@redhat.com>
8942
8943         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8944         Document ABI exposure of the __kind offset.
8945         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8946         Mention reason for the __kind offset exposure in the ABI.
8947         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8948         Likewise.
8949         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8950         Likewise.
8951         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8952         Likewise.
8953         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
8954         (struct __pthread_mutex_s): Likewise.
8955         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8956         Likewise.
8957         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8958         Likewise.
8959         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8960         Likewise.
8961         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8962         Likewise.
8963         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8964         Likewise.
8965         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8966         Likewise.
8967         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
8968         (struct __pthread_mutex_s): Likewise.
8969         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
8970         (struct __pthread_mutex_s): Likewise.
8971         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
8972         Likewise.
8973
8974 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
8975
8976         * test-skeleton.c: Document do_test usage.
8977
8978 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
8979
8980         * iconv/gconv.h (__gconv_info): Define __data element using a
8981         zero-length array.
8982
8983 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
8984
8985         * math/test-tgmath2.c: Split up test function.
8986
8987 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
8988
8989         * Rules (tests-expected): New variable, depending on
8990         $(run-built-tests).
8991         (tests): Pass $(tests-expected) to merge-test-results.sh, not
8992         $(tests).
8993
8994         * Rules [$(run-built-tests) = no] (tests): Do not depend on
8995         $(tests-unsupported).
8996
8997 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8998
8999         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
9000         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
9001
9002 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9003
9004         [BZ #20768]
9005         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
9006         __fegetenv instead of fegetenv.
9007
9008         [BZ #14139]
9009         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
9010         (find_files): Obtain platform name from libm-test-ulps-name and
9011         store in %pplatforms.
9012         (canonicalize_platform): Remove.
9013         (print_platforms): Use $pplatforms directly.
9014         (by_platforms): Do not allow for platforms missing from
9015         %pplatforms.
9016         * sysdeps/aarch64/libm-test-ulps-name: New file.
9017         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
9018         * sysdeps/arm/libm-test-ulps-name: Likewise.
9019         * sysdeps/generic/libm-test-ulps-name: Likewise.
9020         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
9021         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
9022         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
9023         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
9024         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
9025         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
9026         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
9027         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
9028         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
9029         * sysdeps/nios2/libm-test-ulps-name: Likewise.
9030         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
9031         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
9032         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
9033         * sysdeps/sh/libm-test-ulps-name: Likewise.
9034         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
9035         * sysdeps/tile/libm-test-ulps-name: Likewise.
9036         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
9037
9038         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
9039
9040         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
9041         (test-xfail-check-execstack): New variable.
9042
9043         * sysdeps/mips/localplt.data: New file.
9044
9045 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
9046             Steve Ellcey  <sellcey@caviumnetworks.com>
9047
9048         * bits/wordsize.h: Add documentation.
9049         * sysdeps/aarch64/bits/wordsize.h : New file
9050         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
9051         definitions.
9052         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
9053         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
9054         with #if instead of #ifdef.
9055         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
9056         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
9057         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
9058         Add or change defines.
9059         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
9060         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
9061         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
9062         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
9063         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
9064         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
9065         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
9066         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
9067         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
9068         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
9069         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
9070         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
9071         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
9072         * sysdeps/x86/bits/wordsize.h: Likewise.
9073
9074 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
9075             Kevin Petit  <kevin.petit@arm.com>
9076
9077         * sysdeps/aarch64/memchr.S (__memchr): New file.
9078
9079 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9080
9081         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
9082
9083 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
9084
9085         [BZ #19398]
9086         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
9087         $(linknamespace-symlists-tests).
9088
9089 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
9090
9091         * time/tst-strptime2.c: Ignore -Wformat-length warning.
9092
9093 2016-11-02  Florian Weimer  <fweimer@redhat.com>
9094             Carlos O'Donell  <carlos@redhat.com>
9095
9096         [Bug #20729]
9097         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
9098         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
9099         for -Os related change.
9100
9101 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
9102
9103         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
9104
9105 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
9106
9107         [BZ #19673]
9108         * manual/math.texi (Exponents and Logarithms): Correct description
9109         of clog10.
9110
9111 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
9112
9113         [Bz #20729]
9114         * locale/weight.h: Include libc-internal.h.
9115         * locale/weightwc.h: Likewise.
9116         * nptl/nptl_dbP.h: Likewise.
9117
9118 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
9119
9120         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
9121         when it is MACH_PORT_NULL.
9122
9123 2016-10-31  Andreas Schwab  <schwab@suse.de>
9124
9125         [BZ #20707]
9126         * posix/glob.c (glob): Initialize pglob before checking for
9127         GLOB_BRACE.  Don't call glob recursively if pattern contains no
9128         valid brace expression despite GLOB_BRACE.
9129         * posix/globtest.sh: Test it.
9130
9131 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9132
9133         [BZ #20729]
9134         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
9135         Define.
9136         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
9137         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
9138         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
9139         for seq2.back_us and seq1.back_us only for -Os compiles.
9140         * locale/weightwc.h (findix): Likewise.
9141         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
9142         DB_GET_FIELD_ADDRESS only for -Os compiles.
9143         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
9144         for slen only for -Os compiles.
9145         * string/strcoll_l.c (get_next_seq): Ignore
9146         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
9147         for -Os compiles.
9148
9149         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
9150         * include/crypt.h: New file.
9151
9152 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9153
9154         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
9155         from test-skeleton.c.
9156         (statclass): Replace calls to write with calls to write_message.
9157
9158 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9159
9160         * math/math.h
9161         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
9162         New macro.
9163         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
9164         Likewise.
9165         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
9166         Likewise.
9167         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
9168         SNANL.
9169         * math/test-double.h (snan_value_MACRO): New macro.
9170         * math/test-float.h (snan_value_MACRO): Likewise.
9171         * math/test-ldouble.h (snan_value_MACRO): Likewise.
9172         * math/libm-test.inc (issignaling_test_data): Add tests of
9173         snan_value_MACRO.
9174
9175 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9176
9177         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
9178         behavior when eliding a lock not held by the current thread.
9179         * sysdeps/powerpc/nptl/elide.h: Likewise.
9180
9181 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9182
9183         [BZ #20728]
9184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
9185         branch to _exit() by a function call.
9186
9187 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9188
9189         * malloc/malloc.c: Update chunk layout comments.
9190         (chunk_main_arena): Update comment.
9191
9192 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9193
9194         * crypt/sha256.c, crypt/sha256-block.c,
9195         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
9196         sha256_process_block to __sha256_process_block.
9197         * crypt/sha512.c, crypt/sha512-block.c,
9198         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
9199         sha512_process_block to __sha512_process_block.
9200
9201 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9202
9203         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
9204
9205         * math/test-nan-overflow.c: Include stdlib.h for malloc.
9206
9207 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
9208
9209         [BZ #20019]
9210         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
9211         definition in unrelocated shared library.
9212         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9213
9214 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9215
9216         [BZ #20729]
9217         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
9218         * sysdeps/unix/sysv/linux/i386/Makefile
9219         (uses-6-syscall-arguments): Define.
9220         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
9221         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
9222         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
9223         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
9224         Likewise.
9225         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
9226         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
9227         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
9228         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
9229         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
9230         (CFLAGS-fallocate64.os): Likewise.
9231         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
9232         (CFLAGS-pthread_rwlock_timedrdlock.os)
9233         (CFLAGS-pthread_rwlock_timedwrlock.o)
9234         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
9235         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
9236         (CFLAGS-sem_timedwait.os): Likewise.
9237
9238 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9239
9240         * elf/tst-linkall-static.c: New file.
9241         * elf/Makefile (tests-static): Add tst-linkall-static.
9242         (tst-linkall-static): Link against static libraries.
9243
9244 2016-10-27  Florian Weimer  <fweimer@redhat.com>
9245
9246         * malloc/malloc.c (sysmalloc): Initialize previous size field of
9247         mmaped chunks.
9248
9249 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9250
9251         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
9252         members to mchunk_prev_size, mchunk_size.
9253         (chunk_main_arena): Reverse sense and rename from
9254         chunk_non_main_arena.
9255         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
9256         mchunk_size instead of size.
9257         (set_non_main_arena): Define.
9258         (chunksize): Use chunksize_nomask instead of direct member access.
9259         (chunksize_nomask): Define.
9260         (next_chunk): Use chunksize instead of direct member access.
9261         (prev_size, set_prev_size): Define.
9262         (prev_chunk): Use prev_size instead of direct member access.
9263         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
9264         (inuse_bit_at_offset, set_inuse_bit_at_offset)
9265         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
9266         (mchunk_prev_size, mchunk_size): Poison tokens.
9267         (unlink): Use chunksize_nomask, prev_size accessors.
9268         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
9269         (do_check_free_chunk): Use prev_size accessor.
9270         (sysmalloc): Use set_prev_size, set_head accessors.
9271         (munmap_chunk, mremap_chunk): Use prev_size accessor.
9272         (__libc_free): Use chunksize_nomask accessor.
9273         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
9274         chunk_main_arena accessors.
9275         (_int_free): Use chunksize_nomask, prev_size accessors.
9276         (malloc_consolidate): Use chunksize, prev_size accessors.
9277         (_int_realloc): Use chunksize_nomask accessor.
9278         (_int_memalign): Use set_prev_size accessor.
9279         (__malloc_info): Use chunksize_nomask accessor.
9280         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
9281         accessors.
9282         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
9283         (heap_trim): Use chunksize_nomask, prev_size accessors.
9284
9285 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9286
9287         [BZ #19380]
9288         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
9289         for inexact results.
9290         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
9291         of inexact result where mpfr_subnormalize is the only inexact
9292         step.
9293         * stdlib/tst-strtod-round-data.h: Regenerated.
9294         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
9295         Define to 0.
9296         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
9297
9298 2016-10-27  David S. Miller  <davem@davemloft.net>
9299
9300         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
9301
9302 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9303
9304         * malloc/malloc.c (do_set_mallopt_check): New function.
9305         (do_set_mmap_threshold): Likewise.
9306         (do_set_mmaps_max): Likewise.
9307         (do_set_top_pad): Likewise.
9308         (do_set_perturb_byte): Likewise.
9309         (do_set_trim_threshold): Likewise.
9310         (do_set_arena_max): Likewise.
9311         (do_set_arena_test): Likewise.
9312         (__libc_mallopt): Use them.
9313
9314 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
9315
9316         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9317         (canonicalize): New declaration.
9318         * math/Versions (canonicalize): New libm symbol at version
9319         GLIBC_2.25.
9320         (canonicalizef): Likewise.
9321         (canonicalizel): Likewise.
9322         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
9323         * math/s_canonicalize_template.c: New file.
9324         * math/libm-test.inc: Update comment on functions tested and
9325         testing of NaN payloads.
9326         (TEST_NAN_PAYLOAD): New macro.
9327         (NO_TEST_INLINE): Update value.
9328         (XFAIL_TEST): Likewise.
9329         (ERRNO_UNCHANGED): Likewise.
9330         (ERRNO_EDOM): Likewise.
9331         (ERRNO_ERANGE): Likewise.
9332         (IGNORE_RESULT): Likewise.
9333         (NON_FINITE): Likewise.
9334         (TEST_SNAN): Likewise.
9335         (NO_TEST_MATHVEC): Likewise.
9336         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
9337         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
9338         (struct test_Ffp_b1_data): New type.
9339         (RUN_TEST_Ffp_b1): New macro.
9340         (RUN_TEST_LOOP_Ffp_b1): Likewise.
9341         (canonicalize_test_data): New array.
9342         (canonicalize_test): New function.
9343         (main): Call canonicalize_test.
9344         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
9345         canonicalizef and canonicalizel.
9346         * manual/libm-err-tab.pl: Update comment on interfaces without
9347         ulps tabulated.
9348         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
9349         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
9350         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9351         canonicalize.
9352         (CFLAGS-nldbl-canonicalize.c): New variable.
9353         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
9354         to ...
9355         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
9356         ... here.
9357         (do_test): Also test canonicalizel.
9358         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
9359         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
9360         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
9361         file.
9362         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
9363         Use libm_hidden_def.
9364         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
9365         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
9366         (do_test): Also test canonicalizel.
9367         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
9368         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
9369         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
9370         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
9371         libm_hidden_def.
9372         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
9373         macro.
9374         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
9375         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
9376         * sysdeps/nacl/libm.abilist: Update.
9377         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9378         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9379         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9380         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9381         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9382         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9383         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9384         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9385         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9386         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9387         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9388         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9390         Likewise.
9391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9392         Likewise.
9393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9394         Likewise.
9395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9396         Likewise.
9397         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9398         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9399         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9400         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9401         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9402         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9403         Likewise.
9404         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9405         Likewise.
9406         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9407         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9408         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9409
9410         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
9411         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9412         getpayload.
9413         (CFLAGS-nldbl-getpayload.c): New variable.
9414
9415 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9416
9417         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
9418         integer from the format string.
9419
9420 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9421
9422         [BZ #19473]
9423         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
9424         declarations.
9425         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
9426         weak aliases.
9427         * malloc/hooks.c (__malloc_get_state): Remove definition.
9428         (malloc_get_state): New stub implementation as
9429         compatibility symbol.
9430         (malloc_set_state): Rename from __malloc_set_state.  Turn into
9431         compat symbol.
9432         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
9433         malloc_set_state.
9434         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
9435
9436 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9437
9438         * iconvdata/iso646.c (enum variant): Drop illegal_var.
9439         (names): Turn into concatenation of strings.
9440         (gconv_init): Adapt iteration over names.
9441
9442 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9443
9444         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
9445         make const.
9446         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
9447         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
9448         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
9449         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
9450         character in sbconv.
9451         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
9452         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
9453         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
9454
9455 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9456
9457         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
9458
9459         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
9460         (M_TRIM_THRESHOLD): Likewise.
9461
9462         * manual/memory.texi (M_ARENA_TEST): Add documentation.
9463         (M_ARENA_MAX): Likewise.
9464         * malloc/malloc.c: Remove obsolete comment.
9465
9466         * manual/memory.texi: Add environment variable alternatives to
9467         setting mallopt parameters.
9468
9469 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
9470
9471         * include/atomic.h
9472         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
9473         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
9474
9475 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9476
9477         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
9478         * stdlib/tst-strfrom.h: New file.
9479         * stdlib/tst-strfrom.c: New file.
9480         * stdlib/tst-strfrom-locale.c: New file.
9481
9482         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
9483         * stdlib/bug-strtod2.c: Likewise.
9484         * stdlib/tst-strtod-round-skeleton.c: Likewise.
9485         * stdlib/tst-strtod6.c: Likewise.
9486         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
9487
9488 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9489
9490         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
9491         * manual/arith.texi: Document strfromd, strfromf, strfroml.
9492         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
9493         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
9494         * stdlib/stdlib.h (strfromd): New declaration.
9495         (strfromf): Likewise.
9496         (strfroml): Likewise.
9497         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
9498         strfrom.
9499         * stdlib/strfromd.c: New file.
9500         * stdlib/strfromf.c: Likewise.
9501         * stdlib/strfroml.c: Likewise.
9502         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
9503         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
9504         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
9505         * sysdeps/arm/nacl/libc.abilist: Update.
9506         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
9507         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9508         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9509         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9510         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9511         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9512         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9513         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9514         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9515         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9516         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9517         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9518         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9519         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
9521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
9522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9524         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9525         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9526         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9527         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9528         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9529         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
9530         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
9531         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
9532         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9533         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9534
9535 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
9536
9537         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
9538         instead of cmpli.
9539         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
9540         instead of cmpli.
9541
9542 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
9543
9544         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
9545         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
9546         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
9547         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
9548         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
9549         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
9550
9551 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9552
9553         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
9554         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
9555         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
9556         SYSCALL_LL64_PRW.
9557         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
9558         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
9559         __ASSUME_PRW_DUMMY_ARG.
9560         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
9561         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
9562         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
9563         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
9564         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
9565         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
9566
9567 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
9568
9569         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
9570
9571 2016-10-22  Florian Weimer  <fweimer@redhat.com>
9572
9573         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
9574         "C++", to override a potential extern "C" directive around the
9575         header file inclusion.
9576
9577 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
9578
9579         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
9580
9581 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9582
9583         * sysdeps/powerpc/fpu/fenv_private.h:
9584         (_FPU_MASK_ALL): Rename to...
9585         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
9586         XE FPSCR bits.
9587
9588         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
9589
9590         (_FPU_MASK_ROUNDING): Rename to...
9591         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
9592         NI bits.
9593
9594         (_FPU_MASK_EXCEPT_ROUND): Rename to...
9595         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
9596         bits and rounding bits.
9597
9598         (__libc_feholdbits_ppc): New inline function to mask, set,
9599         and pontentially clear FSPCR bits, and change MSR[FE] bits.
9600         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
9601         (libc_feholdexcept_setround_ppc): Likewise.
9602
9603         (__libc_femergeenv_ppc): New function to dynamically mask both
9604         old and new FP environments and merge.
9605         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
9606         (libc_feresetround_ppc): Likewise.
9607         (libc_feupdateenv_test_ppc): Likewise.
9608         (libc_feupdateenv_ppc): Likewise.
9609
9610         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
9611         of ISA RN bits, and update macro names.
9612         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
9613         effectively the same as the previously mentioned function.
9614
9615         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
9616         usage with fe_resetround_ppc.
9617
9618         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
9619         to be used.
9620         (libc_feholdexcept_setround_ctxf): Likewise.
9621         (libc_feholdexcept_setround_ctxl): Likewise.
9622
9623 2016-10-21  Florian Weimer  <fweimer@redhat.com>
9624
9625         [BZ #20715]
9626         * math/math.h [__cplusplus] (iszero): Define as function template.
9627         * math/Makefile [CXX] (tests): Add test-math-iszero.
9628         (CFLAGS-test-math-iszero.cc): Set.
9629         * math/test-math-iszero.cc: New file.
9630
9631 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
9632
9633         [BZ #20660]
9634         * sysdeps/arm/e_sqrt.c: New file.
9635         * sysdeps/arm/e_sqrtf.c: Likewise.
9636
9637 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
9638
9639         [BZ #20718]
9640         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
9641         not use floating-point comparisons to test sign.
9642         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
9643         Likewise.
9644
9645         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9646         (getpayload): New declaration.
9647         * math/Versions (getpayload): New libm symbol at version
9648         GLIBC_2.25.
9649         (getpayloadf): Likewise.
9650         (getpayloadl): Likewise.
9651         * math/Makefile (libm-calls): Add s_getpayloadF.
9652         * math/libm-test.inc: Include <nan-high-order-bit.h>.
9653         (struct test_f_f_data): Add comment.
9654         (RUN_TEST_fp_f): New macro.
9655         (RUN_TEST_LOOP_fp_f): Likewise.
9656         (getpayload_test_data): New array.
9657         (getpayload_test): New function.
9658         (main): Call getpayload_test.
9659         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
9660         descriptor.
9661         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
9662         getpayloadf and getpayloadl.
9663         * manual/libm-err-tab.pl: Update comment on interfaces without
9664         ulps tabulated.
9665         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
9666         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
9667         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
9668         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
9669         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
9670         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
9671         * sysdeps/nacl/libm.abilist: Update.
9672         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9673         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9674         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9675         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9676         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9677         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9678         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9679         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9680         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9681         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9682         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9683         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9685         Likewise.
9686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9687         Likewise.
9688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9689         Likewise.
9690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9691         Likewise.
9692         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9693         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9694         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9695         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9696         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9697         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9698         Likewise.
9699         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9700         Likewise.
9701         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9702         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9703         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9704
9705 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9706
9707         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
9708         tst-fallocate{64}.
9709         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
9710         on syscall return.
9711
9712 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
9713
9714         [BZ #20689]
9715         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
9716         usable.
9717
9718 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
9719
9720         * sysdeps/generic/nan-high-order-bit.h: New file.
9721         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
9722         * sysdeps/mips/nan-high-order-bit.h: Likewise.
9723         * sysdeps/hppa/math_private.h: Remove file.
9724         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
9725         not define here.
9726         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
9727         <nan-high-order-bit.h>.
9728         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9729         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
9730         <nan-high-order-bit.h>.
9731         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9732         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
9733         <nan-high-order-bit.h>.
9734         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9735         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
9736         <nan-high-order-bit.h>.
9737         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9738         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
9739         <nan-high-order-bit.h>.
9740         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9741         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
9742         <nan-high-order-bit.h>.
9743         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9744         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
9745         <nan-high-order-bit.h>.
9746         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9747         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
9748         <nan-high-order-bit.h>.
9749         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9750         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
9751         <nan-high-order-bit.h>.
9752         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9753         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
9754         <nan-high-order-bit.h>.
9755         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9756         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
9757         <nan-high-order-bit.h>.
9758         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9759         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
9760         <nan-high-order-bit.h>.
9761         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9762         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
9763         <nan-high-order-bit.h>.
9764         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9765         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
9766         <nan-high-order-bit.h>.
9767         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9768         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
9769         <nan-high-order-bit.h>.
9770         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9771         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
9772         <nan-high-order-bit.h>.
9773         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9774         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
9775         <nan-high-order-bit.h>.
9776         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9777         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
9778         <nan-high-order-bit.h>.
9779         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9780
9781 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
9782
9783         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
9784
9785 2016-09-22  John David Anglin  <dave.anglin@bell.net>
9786
9787         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
9788         abort-instr.h.
9789         (EFAULT): Remove conditional define.
9790         (ENOSYS): Likewise.
9791         (atomic_compare_and_exchange_val_acq): Use instruction nullification
9792         instead of conditional branch instructions.
9793
9794 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
9795
9796         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9797         (totalordermag): New declaration.
9798         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
9799         New macro.
9800         * math/Versions (totalordermag): New libm symbol at version
9801         GLIBC_2.25.
9802         (totalordermagf): Likewise.
9803         (totalordermagl): Likewise.
9804         * math/Makefile (libm-calls): Add s_totalordermagF.
9805         * math/libm-test.inc (totalordermag_test_data): New array.
9806         (totalordermag_test): New function.
9807         (main): Call totalordermag_test.
9808         * math/test-tgmath.c (NCALLS): Increase to 125.
9809         (F(compile_test)): Call totalordermag.
9810         (F(totalordermag)): New function.
9811         * manual/arith.texi (FP Comparison Functions): Document
9812         totalordermag, totalordermagf and totalordermagl.
9813         * manual/libm-err-tab.pl: Update comment on interfaces without
9814         ulps tabulated.
9815         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
9816         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
9817         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
9818         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
9819         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
9820         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
9821         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
9822         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9823         totalordermag.
9824         (CFLAGS-nldbl-totalordermag.c): New variable.
9825         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
9826         (do_test): Also test totalordermagl.
9827         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
9828         Likewise.
9829         * sysdeps/nacl/libm.abilist: Update.
9830         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9831         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9832         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9833         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9834         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9835         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9836         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9837         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9838         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9839         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9840         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9841         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9843         Likewise.
9844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9845         Likewise.
9846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9847         Likewise.
9848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9849         Likewise.
9850         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9851         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9852         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9853         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9854         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9855         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9856         Likewise.
9857         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9858         Likewise.
9859         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9860         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9861         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9862
9863 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
9864
9865         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
9866         boolean.
9867
9868 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
9869
9870         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
9871         raising FE_INVALID with feraisexcept in case where part of
9872         argument is infinite, subtract that part of argument from itself.
9873         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
9874         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
9875         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
9876
9877 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
9878
9879         * math/libm-test.inc (totalorder_test_data): Add more tests.
9880
9881 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
9882
9883         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
9884         Undefine weak_alias and add a comment why mips64 require
9885         versioning.
9886
9887 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9888
9889         [BZ #20647]
9890         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
9891         maximum CPUID level is less than 2.
9892
9893 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
9894
9895         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9896         (totalorder): New declaration.
9897         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
9898         New macro.
9899         * math/Versions (totalorder): New libm symbol at version
9900         GLIBC_2.25.
9901         (totalorderf): Likewise.
9902         (totalorderl): Likewise.
9903         * math/Makefile (libm-calls): Add s_totalorderF.
9904         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
9905         string.
9906         * math/libm-test.inc (PAYLOAD_DIG): New macro.
9907         (qnan_value_pl): Likewise.
9908         (snan_value_pl): Likewise.
9909         (qnan_value): Define using qnan_value_pl.
9910         (snan_value): Define using snan_value_pl.
9911         (struct test_ff_i_data): Add comment about which tests use this
9912         structure.
9913         (RUN_TEST_ff_b): New macro.
9914         (RUN_TEST_LOOP_ff_b): Likewise.
9915         (totalorder_test_data): New array.
9916         (totalorder_test): New function.
9917         (main): Call totalorder_test.
9918         * math/test-tgmath.c (NCALLS): Increase to 122.
9919         (F(compile_test)): Call totalorder.
9920         (F(totalorder)): New function.
9921         * manual/arith.texi (FP Comparison Functions): Document
9922         totalorder, totalorderf and totalorderl.
9923         * manual/libm-err-tab.pl: Update comment on interfaces without
9924         ulps tabulated.
9925         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
9926         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
9927         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
9928         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
9929         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
9930         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
9931         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
9932         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9933         totalorder.
9934         (CFLAGS-nldbl-totalorder.c): New variable.
9935         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
9936         file.
9937         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
9938         Add test-totalorderl-ldbl-128ibm.
9939         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
9940         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
9941         test-totalorderl-ldbl-96.
9942         * sysdeps/nacl/libm.abilist: Update.
9943         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9944         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9945         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9946         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9947         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9948         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9949         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9950         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9951         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9952         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9953         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9954         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9956         Likewise.
9957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9958         Likewise.
9959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9960         Likewise.
9961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9962         Likewise.
9963         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9964         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9965         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9966         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9967         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9968         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9969         Likewise.
9970         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9971         Likewise.
9972         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9973         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9974         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9975
9976 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9977
9978         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
9979         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
9980         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
9981         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
9982         remove ENOSYS implementation.
9983         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
9984         Consolidate all Linux implementations.
9985
9986 2016-10-11  Florian Weimer  <fweimer@redhat.com>
9987
9988         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
9989         * resolv/herror.c (herror): Cast away const-ness.
9990         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
9991         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
9992
9993 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
9994
9995         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
9996         instead of M_NAN + M_NAN.
9997         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
9998
9999 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10000
10001         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
10002         unused variable 'p'.
10003
10004 2016-10-09  Alan Modra  <amodra@gmail.com>
10005             Andreas Schwab  <schwab@linux-m68k.org>
10006
10007         [BZ #20554]
10008         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
10009         [PIC && !SHARED]: Set up PIC register for PLT call.
10010
10011 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
10012
10013         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
10014         conditional on value of [__FLT_EVAL_METHOD__].
10015         * math/test-iseqsig-excess-precision.c: New file.
10016         * math/Makefile (tests): Add test-iseqsig-excess-precision.
10017
10018 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10019
10020         * math/s_iseqsig_template.c: Include math-private.h.
10021
10022         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
10023         * posix/tst-posix_fadvise.c: New file.
10024         * posix/tst-posix_fadvise64.c: Likewise.
10025         * posix/tst-posix_fadvise-common.c: Likewise.
10026         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10027         (__ASSUME_FADVISE64_64_6ARG): Define.
10028         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10029         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
10030         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10031         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
10032         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
10033         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
10034         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
10035         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
10036         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
10037         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
10038         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
10039         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
10040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
10041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
10042         Likewise.
10043         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
10044         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
10045         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
10046         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
10047         Alias to __posix_fadvise64_l32.
10048         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
10049         Add compat definition to posix_fadvise64.
10050         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
10051         Add versioned definition to posix_fadvise64.
10052         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
10053         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
10054         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
10055         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
10056         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
10057
10058         * io/Makefile (tests): Add tst-posix_fallocate and
10059         tst-posix_fallocate64.
10060         * io/tst-posix_fallocate-common.c: New file.
10061         * io/tst-posix_fallocate.c: Likewise.
10062         * io/tst-posix_fallocate64.c: Likewise.
10063         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
10064         file.
10065         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
10066         Likewise.
10067         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
10068         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
10069         Likewise.
10070         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
10071         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
10072         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
10073         SYSCALL_LL to pass both offset and len arguments.
10074         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
10075         Likewise.
10076         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
10077         __libc_pwrite64 alias used by posix_fallocate64.
10078
10079         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
10080         tst-fallocate64.
10081         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
10082         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
10083         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
10084         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
10085         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10086         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
10087         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
10088         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10089         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
10090         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
10091         macro on offset argument.
10092         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
10093         SYSCALL_LL64 on offset argument.
10094
10095         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
10096         tst-fallocate64.
10097         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
10098         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
10099         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
10100         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
10101         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10102         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
10103         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
10104         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10105         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
10106         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
10107         macro on offset argument.
10108         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
10109         SYSCALL_LL64 on offset argument.
10110         * test-skeleton.c (FAIL_RET): Add macro.
10111         (FAIL_EXIT): Likewise.
10112         (FAIL_EXIT1): Likewise.
10113         (_FAIL): Likewise.
10114
10115 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10116
10117         [BZ #20629]
10118         resolv: Remove RES_USEBSTRING and its implementation.
10119         * resolv/resolv.h (RES_USEBSTRING): Remove.
10120         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
10121         (digitvalue, encode_bitstring, decode_bitstring): Remove.
10122         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
10123         (labellen): Remove extended label types support.
10124         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
10125         * resolv/res_init.c (res_setoptions): Likewise.
10126         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10127
10128 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10129
10130         resolv: Remove RES_NOIP6DOTINT and its implementation.
10131         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
10132         (RES_NOIP6DOTINT): Remove.
10133         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
10134         handling.
10135         * resolv/res_debug.c (p_option): Likewise.
10136         * resolv/res_init.c (res_setoptions): Likewise.
10137         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10138
10139 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10140
10141         resolv: Deprecate unimplemented flags.
10142         * misc/sys/cdefs.h (__glibc_macro_warning1)
10143         (__glibc_macro_warning): Define.
10144         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
10145         (RES_KEEPTSIG): Mark as deprecated.
10146         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
10147         RES_NOCHECKNAME, RES_KEEPTSIG.
10148         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
10149
10150 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10151
10152         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
10153         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
10154         Use strong_alias to create symbols for glibc verison 2.19.
10155
10156 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10157
10158         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
10159
10160 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10161
10162         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
10163
10164 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10165
10166         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
10167
10168 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10169
10170         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10171         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
10172         in header for using it as type for ifunc function because __GI_* symbols
10173         for ppc32 do not target the ifunc symbols.
10174         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
10175
10176 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10177
10178         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
10179         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
10180         libc_ifunc_hidden_def.
10181         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
10182         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
10183         Redirect ifunced function in header for using it as type of ifunc'ed
10184         function. Redefine libc_hidden_def to use fallback non ifunc'ed
10185         function for __GI_* symbol.
10186         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
10187         * include/libc-symbols.h
10188         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
10189
10190 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10191
10192         [BZ #20478]
10193         * sysdeps/s390/multiarch/ifunc-resolve.h
10194         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
10195         to create ifunc symbols.
10196         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
10197         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
10198         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
10199         for using it as type for ifunc function.
10200         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
10201         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
10202         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
10203         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
10204         * sysdeps/s390/multiarch/strcat.c: Likewise.
10205         * sysdeps/s390/multiarch/strchr.c: Likewise.
10206         * sysdeps/s390/multiarch/strcmp.c: Likewise.
10207         * sysdeps/s390/multiarch/strcpy.c: Likewise.
10208         * sysdeps/s390/multiarch/strcspn.c: Likewise.
10209         * sysdeps/s390/multiarch/strlen.c: Likewise.
10210         * sysdeps/s390/multiarch/strncmp.c: Likewise.
10211         * sysdeps/s390/multiarch/strncpy.c: Likewise.
10212         * sysdeps/s390/multiarch/strnlen.c: Likewise.
10213         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
10214         * sysdeps/s390/multiarch/strrchr.c: Likewise.
10215         * sysdeps/s390/multiarch/strspn.c: Likewise.
10216         * sysdeps/s390/multiarch/wcschr.c: Likewise.
10217         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
10218         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
10219         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
10220         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
10221         * sysdeps/s390/multiarch/wmemset.c: Likewise.
10222         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
10223         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
10224         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
10225         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
10226         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
10227         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
10228
10229 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10230
10231         * include/libc-symbols.h (__ifunc_resolver):
10232         New macro is used by __ifunc* macros.
10233         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
10234         depending on HAVE_GCC_IFUNC.
10235         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
10236         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
10237         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
10238         Redirect ifunced function in header for using as type for ifunc function.
10239         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
10240         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
10241         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
10242         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
10243         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
10244         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
10245         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
10246         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
10247         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
10248         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
10249         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
10250         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
10251         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
10252         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
10253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
10254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
10255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
10256         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
10257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
10258         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
10259         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
10260         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
10261         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
10262         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
10263         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
10264         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
10265         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
10266         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
10267         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
10268         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
10269         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
10270         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
10271         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
10272         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
10273         Add libc_hidden_def() and use libc_ifunc_hidden() macro
10274         instead of libc_ifunc() macro.
10275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
10276         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
10277
10278 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10279
10280         * config.h.in (HAVE_GCC_IFUNC): New undef.
10281         * configure.ac: Add check if gcc supports attribute ifunc feature.
10282         * configure: Regenerated.
10283         * manual/install.texi: Add recommendation for gcc with
10284         indirect-function support.
10285         * INSTALL: Regenerated.
10286
10287 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
10288
10289         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
10290         macro.
10291         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10292         (__iseqsig): New declaration.
10293         * math/s_iseqsig_template.c: New file.
10294         * math/Versions (__iseqsigf): New libm symbol at version
10295         GLIBC_2.25.
10296         (__iseqsig): Likewise.
10297         (__iseqsigl): Likewise.
10298         * math/libm-test.inc (iseqsig_test_data): New array.
10299         (iseqsig_test): New function.
10300         (main): Call iseqsig_test.
10301         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
10302         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
10303         * manual/libm-err-tab.pl: Update comment on interfaces without
10304         ulps tabulated.
10305         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
10306         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
10307         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
10308         * sysdeps/nacl/libm.abilist: Update.
10309         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10310         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10311         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10312         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10313         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10314         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10315         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10316         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10317         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10318         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10319         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10320         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10322         Likewise.
10323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10324         Likewise.
10325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10326         Likewise.
10327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10328         Likewise.
10329         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10330         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10331         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10332         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10333         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10334         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10335         Likewise.
10336         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10337         Likewise.
10338         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10339         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10340         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10341
10342 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10343
10344         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
10345         do_sincos_2, sloww, sloww1): Update comments.
10346
10347         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
10348         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
10349
10350         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
10351         K boolean and rename it.
10352         (__sin): Adjust.
10353         (__cos): Adjust.
10354
10355 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10356             Siddhesh Poyarekar  <siddhesh@sourceware.org>
10357
10358         * manual/nss.texi: Fix typos in the manual.
10359
10360 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10361
10362         * manual/contrib.texi: Fix typos in the manual.
10363
10364         * manual/maint.texi: Fix typos in the manual.
10365
10366         * manual/install.texi: Fix typos in the manual.
10367         * INSTALL: Regenerated.
10368
10369         * manual/lang.texi: Fix typos in the manual.
10370
10371         * manual/probes.texi: Fix typos in the manual.
10372
10373         * manual/threads.texi: Fix typos in the manual.
10374
10375         * manual/debug.texi: Fix typos in the manual.
10376
10377         * manual/crypt.texi: Fix typos in the manual.
10378
10379         * manual/conf.texi: Fix typos in the manual.
10380
10381         * manual/sysinfo.texi: Fix typos in the manual.
10382
10383         * manual/users.texi: Fix typos in the manual.
10384
10385         * manual/job.texi: Fix typos in the manual.
10386
10387         * manual/process.texi: Fix typos in the manual.
10388
10389         * manual/argp.texi: Fix typos in the manual.
10390         * manual/getopt.texi: Likewise.
10391         * manual/startup.texi: Likewise.
10392
10393         * manual/signal.texi: Fix typos in the manual.
10394
10395         * manual/setjmp.texi: Fix typos in the manual.
10396
10397         * manual/resource.texi: Fix typos in the manual.
10398
10399         * manual/time.texi: Fix typos in the manual.
10400
10401         * manual/arith.texi: Fix typos in the manual.
10402
10403         * manual/math.texi: Fix typos in the manual.
10404
10405         * manual/syslog.texi: Fix typos in the manual.
10406
10407         * manual/terminal.texi: Fix typos in the manual.
10408
10409         * manual/socket.texi: Fix typos in the manual.
10410
10411         * manual/filesys.texi: Fix typos in the manual.
10412
10413         * manual/llio.texi: Fix typos in the manual.
10414
10415         * manual/stdio.text: Fix typos in the manual.
10416
10417 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10418
10419         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
10420         instead of K1.
10421
10422         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
10423         SHIFT_QUADRANT and make it bool.
10424         (do_sincos_2): Likewise.
10425         (sloww): Likewise.
10426         (sloww1): Likewise.
10427         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
10428         (__cos): Likewise.
10429
10430 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10431
10432         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
10433
10434 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
10435
10436         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
10437         Define to __WORDSIZE, not conditional on [LONG_MAX ==
10438         0x7fffffffL].
10439         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
10440
10441 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10442
10443         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
10444         inline by __inline__.
10445         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
10446         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
10447         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
10448         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
10449         sigset_t from signal.h.
10450         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
10451         which is already required.
10452
10453 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
10454
10455         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10456
10457 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
10458
10459         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
10460         (struct tcp_repair_window): New type.
10461
10462 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10463
10464         * libio/tst-memstream3.c: Include string.h.
10465
10466 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10467
10468         [BZ #18241]
10469         [BZ #20181]
10470         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
10471         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
10472         write position is at the end the buffer.
10473         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
10474         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
10475         (_IO_str_seekoff): Set correct offset from negative displacement and
10476         set EINVAL for invalid ones.
10477         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
10478         buffer length.
10479         (_IO_wstr_switch_to_get_mode): New function.
10480         (_IO_wstr_seekoff): Set correct offset from negative displacement and
10481         set EINVAL for invalid ones.
10482         * libio/tst-memstream3.c: New file.
10483         * libio/tst-wmemstream3.c: Likewise.
10484         * manual/examples/memstrm.c: Remove warning when priting size_t.
10485
10486 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
10487
10488         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
10489         macro to use __builtin_fma.
10490         * sysdeps/x86_64/fpu/dla.h: Remove file.
10491
10492         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
10493         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
10494         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
10495
10496 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
10497
10498         [BZ #20292]
10499         * elf/Makefile (routines): Add dl-addr-obj.
10500         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
10501         tst-_dl_addr_inside_object.
10502         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
10503         [ifeq (yesyes,$(have-fpie)$(build-shared))]
10504         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
10505         [ifeq (yesyes,$(have-fpie)$(build-shared))]
10506         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
10507         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
10508         * elf/dl-open.c: Likewise.
10509         * elf/dl-addr-obj.c: New file.
10510         * elf/tst-_dl_addr_inside_object.c: New file.
10511
10512 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
10513
10514         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
10515         <bits/iscanonical.h>.
10516         * bits/iscanonical.h: New file.
10517         * math/s_iscanonicall.c: Likewise.
10518         * math/Versions (__iscanonicall): New libm symbol at version
10519         GLIBC_2.25.
10520         * math/libm-test.inc (iscanonical_test_data): New array.
10521         (iscanonical_test): New function.
10522         (main): Call iscanonical_test.
10523         * math/Makefile (headers): Add bits/iscanonical.h.
10524         (type-ldouble-routines): Add s_iscanonicall.
10525         * manual/arith.texi (Floating Point Classes): Document
10526         iscanonical.
10527         * manual/libm-err-tab.pl: Update comment on interfaces without
10528         ulps tabulated.
10529         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
10530         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
10531         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
10532         Likewise.
10533         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
10534         test-iscanonical-ldbl-128ibm.
10535         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
10536         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
10537         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
10538         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
10539         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10540         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10541         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10543         Likewise.
10544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10545         Likewise.
10546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10547         Likewise.
10548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10549         Likewise.
10550         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10551         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10552
10553 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10554
10555         * string/bits/string3.h: Remove C++ style comments.
10556
10557 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10558
10559         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
10560         instead of ternary condition.
10561         (do_sincos_2): Likewise.
10562         (__sin): Likewise.
10563         (__cos): Likewise.
10564         (slow): Likewise.
10565         (sloww): Likewise.
10566         (sloww1): Likewise.
10567         (bsloww): Likewise.
10568         (bsloww1): Likewise.
10569
10570         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
10571         instead of ternary condition.
10572         (do_sin_slow): Likewise.
10573         (do_sincos_1): Likewise.
10574         (do_sincos_2): Likewise.
10575         (__cos): Likewise.
10576         (sloww): Likewise.
10577         (sloww1): Likewise.
10578         (sloww2): Likewise.
10579         (bsloww): Likewise.
10580         (bsloww1): Likewise.
10581         (bsloww2): Likewise.
10582
10583         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
10584         check from here...
10585         (slow2): ... and here...
10586         (__sin): ... to here.
10587
10588 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
10589
10590         * math/math.h
10591         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
10592         Cast argument to its own type.
10593         * math/test-iszero-excess-precision.c: New file.
10594         * math/Makefile (tests): Add test-iszero-excess-precision.
10595         (CFLAGS-test-iszero-excess-precision.c): New variable.
10596
10597 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
10598
10599         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
10600         field, add err field.
10601         (__spawni_child): Report error through err member instead of pipe.
10602         (__spawnix): Likewise.
10603
10604 2016-09-28  Zack Weinberg  <zackw@panix.com>
10605
10606         * scripts/check-installed-headers.sh: Generalize treatment of
10607         sys/elf.h to all target architectures.
10608
10609         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
10610         deleted typedef ucontext_t.
10611
10612 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10613
10614         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
10615         (__INTERNAL_SYSCALL1): Likewise.
10616         (__INTERNAL_SYSCALL2): Likewise.
10617         (__INTERNAL_SYSCALL3): Likewise.
10618         (__INTERNAL_SYSCALL4): Likewise.
10619         (__INTERNAL_SYSCALL5): Likewise.
10620         (__INTERNAL_SYSCALL6): Likewise.
10621         (__INTERNAL_SYSCALL7): Likewise.
10622         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
10623         (__INTERNAL_SYSCALL_NARGS): Likewise.
10624         (__INTERNAL_SYSCALL_DISP): Likewise.
10625         (INTERNAL_SYSCALL_CALL): Likewise.
10626         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
10627         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
10628         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
10629         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
10630         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
10631         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
10632         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
10633         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
10634         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
10635         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
10636         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
10637         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
10638         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
10639
10640 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
10641
10642         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
10643         macro.
10644         * math/libm-test.inc (iszero_test_data): New array.
10645         (iszero_test): New function.
10646         (main): Call iszero_test.
10647         * manual/arith.texi (Floating Point Classes): Document iszero.
10648         * manual/libm-err-tab.pl: Update comment on interfaces without
10649         ulps tabulated.
10650
10651 2016-09-23  Zack Weinberg  <zackw@panix.com>
10652
10653         * scripts/check-installed-headers.sh: New script.
10654         * Rules: In each directory that defines header files to be installed,
10655         run check-installed-headers.sh on them as a special test.
10656         * Makefile: Likewise for the headers installed at top level.
10657
10658         * include/aliases.h, include/alloca.h, include/argz.h
10659         * include/arpa/nameser.h, include/arpa/nameser_compat.h
10660         * include/elf.h, include/envz.h, include/err.h
10661         * include/execinfo.h, include/fpu_control.h, include/getopt.h
10662         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
10663         * include/link.h, include/malloc.h, include/mcheck.h
10664         * include/mntent.h, include/netinet/ether.h
10665         * include/nss.h, include/obstack.h, include/printf.h
10666         * include/pty.h, include/resolv.h, include/rpc/auth.h
10667         * include/rpc/auth_des.h, include/rpc/auth_unix.h
10668         * include/rpc/clnt.h, include/rpc/des_crypt.h
10669         * include/rpc/key_prot.h, include/rpc/netdb.h
10670         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
10671         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
10672         * include/rpc/rpc_msg.h, include/rpc/svc.h
10673         * include/rpc/svc_auth.h, include/rpc/xdr.h
10674         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
10675         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
10676         * include/rpcsvc/ypupd.h, include/shadow.h
10677         * include/stdio_ext.h, include/sys/epoll.h
10678         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
10679         * include/sys/prctl.h, include/sys/profil.h
10680         * include/sys/statfs.h, include/sys/sysctl.h
10681         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
10682         * sysdeps/arm/nacl/include/bits/setjmp.h
10683         * sysdeps/mips/include/sys/asm.h
10684         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
10685         * sysdeps/unix/sysv/linux/include/sys/timex.h
10686         * sysdeps/x86/fpu/include/bits/fenv.h:
10687         Add #ifndef _ISOMAC guard around internal declarations.
10688         Add multiple-inclusion guard if not already present.
10689
10690 2016-09-23  Zack Weinberg  <zackw@panix.com>
10691
10692         * sysdeps/generic/sys/ucontext.h
10693         * sysdeps/arm/sys/ucontext.h
10694         * sysdeps/i386/sys/ucontext.h
10695         * sysdeps/m68k/sys/ucontext.h
10696         * sysdeps/mips/sys/ucontext.h
10697         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
10698         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
10699         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
10700         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
10701         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
10702         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
10703         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
10704         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
10705         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
10706         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
10707         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
10708         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
10709         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
10710         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
10711         Include both bits/sigcontext.h and bits/sigstack.h.
10712         Fix grammar error in comment, if present.
10713
10714         * bits/sigstack.h
10715         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
10716         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
10717         * sysdeps/unix/sysv/linux/bits/sigstack.h
10718         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
10719         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
10720         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
10721         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
10722         * bits/sigcontext.h
10723         * sysdeps/mach/hurd/i386/bits/sigcontext.h
10724         * sysdeps/unix/sysv/linux/bits/sigcontext.h
10725         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
10726         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
10727         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
10728         as well as signal.h, if this was not already allowed.  Request
10729         definition of size_t if necessary.  Minimize semantically-null
10730         differences across files.
10731
10732 2016-09-23  Zack Weinberg  <zackw@panix.com>
10733
10734         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
10735         Remove all logic conditional on __need macros.  Move all the
10736         conditionally defined types to their own headers...
10737         * time/bits/types/clock_t.h: Define clock_t here.
10738         * time/bits/types/clockid_t.h: Define clockid_t here.
10739         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
10740         * time/bits/types/struct_timespec.h: Define struct timespec here.
10741         * time/bits/types/struct_timeval.h: Define struct timeval here.
10742         * time/bits/types/struct_tm.h: Define struct tm here.
10743         * time/bits/types/time_t.h: Define time_t here.
10744         * time/bits/types/timer_t.h: Define timer_t here.
10745         * time/Makefile: Install the new headers.
10746
10747         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
10748         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
10749         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
10750         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
10751         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
10752         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
10753         * sysdeps/unix/sysv/linux/bits/resource.h
10754         * sysdeps/unix/sysv/linux/bits/timex.h
10755         * sysdeps/unix/sysv/linux/mips/bits/resource.h
10756         * sysdeps/unix/sysv/linux/net/ppp_defs.h
10757         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
10758         * sysdeps/unix/sysv/linux/sys/acct.h
10759         * sysdeps/unix/sysv/linux/sys/timerfd.h
10760         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
10761         * time/sys/time.h, time/sys/timeb.h
10762         Use the new bits/types headers.
10763
10764         * include/time.h: Remove __need logic.
10765         * include/bits/time.h
10766         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
10767         * include/bits/types/time_t.h, include/bits/types/timer_t.h
10768         * include/bits/types/struct_itimerspec.h
10769         * include/bits/types/struct_timespec.h
10770         * include/bits/types/struct_timeval.h
10771         * include/bits/types/struct_tm.h:
10772         New wrapper headers.
10773
10774 2016-09-23  Zack Weinberg  <zackw@panix.com>
10775
10776         * sysdeps/mach/hurd/net/if_ppp.h
10777         * sysdeps/unix/sysv/linux/net/if_ppp.h:
10778         Only define struct ifpppstatsreq and struct ifpppcstatsreq
10779         if __USE_MISC is defined, to ensure struct ifreq is declared.
10780
10781         * inet/netinet/ether.h: Condition all function prototypes
10782         on __USE_MISC, to ensure struct ether_addr is declared.
10783
10784         * socket/bits/types/struct_osockaddr.h: New header.
10785         * include/bits/types/struct_osockaddr.h: New wrapper.
10786         * socket/Makefile: Install the new header.
10787         * socket/sys/socket.h, inet/protocols/talkd.h:
10788         Refer to bits/types/struct_osockaddr.h for the definition of
10789         struct osockaddr.
10790
10791 2016-09-23  Zack Weinberg  <zackw@panix.com>
10792
10793         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
10794         * inet/protocols/routed.h, inet/protocols/talkd.h
10795         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
10796         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
10797         * sysdeps/generic/netinet/if_ether.h
10798         * sysdeps/generic/netinet/in_systm.h
10799         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
10800         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
10801         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
10802         * sysdeps/mach/hurd/net/if_arp.h
10803         * sysdeps/mach/hurd/net/if_ppp.h
10804         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
10805         * sysdeps/unix/sysv/linux/bits/in.h
10806         * sysdeps/unix/sysv/linux/net/ethernet.h
10807         * sysdeps/unix/sysv/linux/net/if_arp.h
10808         * sysdeps/unix/sysv/linux/net/if_ppp.h
10809         * sysdeps/unix/sysv/linux/net/if_shaper.h
10810         * sysdeps/unix/sysv/linux/net/route.h
10811         * sysdeps/unix/sysv/linux/netinet/if_ether.h
10812         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
10813         * sysdeps/unix/sysv/linux/netinet/if_tr.h
10814         * sysdeps/unix/sysv/linux/netipx/ipx.h
10815         * sysdeps/unix/sysv/linux/sys/acct.h
10816         * include/arpa/nameser.h, include/resolv.h:
10817         Change all uses of u_char to unsigned char,
10818         u_short and ushort to unsigned short, u_int and uint to unsigned int,
10819         u_long and ulong to unsigned long, u_int8_t to uint8_t,
10820         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
10821         and u_int64_t and u_quad_t to uint64_t.
10822
10823         * mach/sys/reboot.h: Remove two casts of integer literals
10824         to the types they already have.
10825
10826         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
10827         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
10828         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
10829         from referring to 'unsigned char' to 'uint8_t' for consistency with
10830         the macro definition below.
10831
10832         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
10833         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
10834         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
10835         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
10836         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
10837         * sysdeps/unix/sysv/linux/sys/acct.h
10838         * include/arpa/nameser.h, include/resolv.h:
10839         Fix indentation disrupted by mechanical edits.
10840
10841         * inet/protocols/talkd.h, resolv/arpa/nameser.h
10842         * sysdeps/generic/netinet/in_systm.h
10843         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
10844         * sysdeps/gnu/netinet/udp.h
10845         * sysdeps/unix/sysv/linux/net/ethernet.h
10846         * sysdeps/unix/sysv/linux/net/if_arp.h
10847         * sysdeps/unix/sysv/linux/net/if_ppp.h
10848         * sysdeps/unix/sysv/linux/net/if_shaper.h
10849         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
10850         * sysdeps/unix/sysv/linux/netinet/if_tr.h
10851         * sysdeps/unix/sysv/linux/netipx/ipx.h
10852         * sysdeps/unix/sysv/linux/sys/acct.h
10853         Include stdint.h for uintNN_t definitions.
10854         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
10855
10856 2016-09-23  Zack Weinberg  <zackw@panix.com>
10857
10858         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
10859         * sysdeps/unix/sysv/linux/netrose/rose.h:
10860         Include sys/socket.h and netax25/ax25.h.
10861
10862         * inet/netinet/icmp6.h, inet/netinet/ip6.h
10863         * resolv/arpa/nameser_compat.h:
10864         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
10865
10866         * sysdeps/unix/sysv/linux/sys/quota.h:
10867         Use __caddr_t instead of caddr_t.
10868         * sysdeps/unix/sysv/linux/sys/timerfd.h:
10869         Use __clockid_t instead of clockid_t.
10870
10871         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
10872
10873         * argp/argp.h: Check whether _LIBC is defined before expanding it.
10874         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
10875         expanding it.
10876
10877         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
10878         Define __glibc_c99_flexarr_available to 1 when the compiler
10879         supports C99-compatible flexible array members, 0 otherwise.
10880         * sysdeps/unix/sysv/linux/bits/socket.h
10881         * sysdeps/mach/hurd/bits/socket.h
10882         * bits/socket.h: Use __glibc_c99_flexarr_available in
10883         definitions of struct cmsghdr and CMSG_DATA.
10884
10885 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10886
10887         * manual/nss.texi (NSS Modules Interface): Adjust function return
10888         type to enum nss_status.  Document errnop argument.  Clarify
10889         h_errnop semantics.  Fix cross-reference formatting.
10890         (NSS Module Function Internals): Mention that *errnop needs to be
10891         set on failure, but not to zero.
10892
10893 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10894
10895         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
10896         (get_random_name): New functions.
10897         (check_wrapper_flags_mode): Use linkat to give the new file a name
10898         determined by get_random_name.
10899         (do_test): Add calls to test open64 and openat64.
10900
10901 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10902
10903         * test-skeleton.c: Remove #include <stdarg.h>.
10904
10905 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
10906
10907         [BZ #19826]
10908         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
10909         initialization of static TLS entries.
10910         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
10911         * nptl/allocatestack.c (init_one_static_tls): Likewise.
10912
10913 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10914
10915         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
10916         _hurd_malloc_fork_prepare.
10917         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
10918         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
10919         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
10920         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
10921         (_hurd_fork_child_hook): Drop malloc_fork_child.
10922         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
10923         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
10924         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
10925         after locking locks (notably hurd_dtable_lock). Call
10926         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
10927         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
10928         __malloc_fork_unlock_child.
10929         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
10930
10931 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
10932
10933         * soft-fp/extendhftf2.c: New.
10934         * soft-fp/fixhfti.c: Likewise.
10935         * soft-fp/fixunshfti.c: Likewise.
10936         * soft-fp/floattihf.c: Likewise.
10937         * soft-fp/floatuntihf.c: Likewise.
10938         * soft-fp/half.h: Likewise.
10939         * soft-fp/trunctfhf2.c: Likewise.
10940
10941 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
10942
10943         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
10944         macro.
10945         * math/libm-test.inc (issubnormal_test_data): New array.
10946         (issubnormal_test): New function.
10947         * manual/arith.texi (Floating Point Classes): Document
10948         issubnormal.
10949         * manual/libm-err-tab.pl: Update comment on interfaces without
10950         ulps tabulated.
10951
10952         * sysdeps/generic/stdint.h: Define
10953         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
10954         <bits/libc-header-start.h> instead of including <features.h>.
10955         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
10956         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
10957         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
10958         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
10959         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
10960         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
10961         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
10962         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
10963         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
10964         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
10965         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
10966         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
10967         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
10968         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
10969         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
10970         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
10971         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
10972         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
10973         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
10974         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
10975         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
10976         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
10977         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
10978         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
10979         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
10980         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
10981         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
10982         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
10983         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
10984         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
10985         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
10986         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
10987         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
10988         * manual/arith.texi (Integers): Document these macros for types
10989         specified by width properties.
10990         * manual/lang.texi (Width of Type): Document these macros for
10991         other standard typedefs.
10992         * stdlib/tst-width-stdint.c: New file.
10993         * stdlib/Makefile (tests): Add tst-width-stdint.
10994
10995 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10996
10997         [BZ #20016]
10998         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
10999         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
11000         Move ...
11001         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
11002         ... here, as compatibility symbols in a new file.
11003         * resolv/Makefile (libresolv-routines): Add compat-hooks.
11004         * resolv/res_init.c (__res_vinit): Adjust member names.
11005         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
11006         * resolv/resolv.h (res_sendhookact, res_send_qhook)
11007         (res_send_rhook): Remove.
11008         (struct __res_state): Rename qhook, rhook members.
11009
11010 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11011
11012         malloc: Use __libc_lock wrappers.
11013         * malloc/arena.c (list_lock, free_list_lock): Define using
11014         __libc_lock_define_initialized.
11015         (arena_lock): Adjust formatting.
11016         * malloc/malloc.c (struct malloc_state): Define mutex using
11017         __libc_lock_define.
11018         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
11019         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
11020         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
11021         (mutex_unlock, mutex_trylock): Remove.
11022         (__pthread_initialize): Remove unused macro.
11023         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
11024         (mutex_unlock, mutex_trylock): Remove.
11025
11026 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11027
11028         [BZ #20592]
11029         Remove RR type classification macros.
11030         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
11031         (ns_t_udp_p, ns_t_xfr_p): Remove.
11032
11033 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11034
11035         Remove misleading version information.
11036         * resolv/arpa/nameser.h (__NAMESER): Remove.
11037         * resolv/arpa/nameser_compat.h (__BIND): Remove.
11038
11039 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11040
11041         Remove the always-defined BIND_4_COMPAT macro.
11042         * resolv/arpa/nameser.h: Unconditionally include
11043         <arpa/nameser_compat.h>.
11044         (BIND_4_COMPAT): Remove.
11045         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
11046
11047 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11048
11049         [BZ #20591]
11050         Remove obsolete DNSSEC support.
11051         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
11052         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
11053         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
11054         (ns_verify_tcp, ns_verify_tcp_init): Remove.
11055         (ns_cert_types): Add comment.
11056         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
11057         separately.
11058         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
11059         (dst_s_dns_key_id): Remove.
11060         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
11061         variables.
11062
11063 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11064
11065         [BZ #20524]
11066         * manual/string.texi (String/Array Comparison): Clarify the
11067         strverscmp behavior.
11068
11069 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11070
11071         * test-skeleton.c (xasprintf): Add function.
11072         * io/tst-open-tmpfile.c: New test.
11073         * io/Makefile (tests): Add it.
11074
11075 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11076
11077         Avoid running $(CXX) during build to obtain header file paths.
11078         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
11079         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
11080         * Makerules (cstdlib, cmath): Remove variables.  Use
11081         $(c++-cstdlib-header), $(c++-cmath-header) instead.
11082         * configure: Regenerate.
11083
11084 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11085
11086         * Makeconfig (all-object-suffixes): Include .op only if
11087         $(build-profile).
11088
11089 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11090
11091         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
11092         conditionals.  Do not define PATH_MAX.
11093
11094 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11095
11096         * posix/Makefile (tests): Add tst-spawn3.
11097         * posix/tst-spawn3.c: New file.
11098         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
11099         if it is already opened for open action.
11100
11101         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
11102         all signals when executing the clone vfork child.
11103         (SIGALL_SET): Remove macro.
11104
11105         * nptl/Makefile (tests): Add tst-exec5.
11106         * nptl/tst-exec5.c: New file.
11107         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
11108         asynchronous cancellation.
11109
11110 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11111
11112         * hurd/exc2signal.c: #include <hurd/signal.h>
11113         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
11114         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
11115         accordingly.
11116         * mach/mach_error.c (mach_error): Fix old-style function definition.
11117         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
11118
11119 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11120
11121         * math/Makefile (libm-calls): Remove s_nanF.
11122         (gen-libm-calls): Add s_nanF.
11123
11124         * math/s_nan.c: Refactor into ...
11125         * math/s_nan_template.c: New file.
11126
11127         * math/s_nanf.c: Removed.
11128         * math/s_nanl.c: Removed.
11129         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
11130         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
11131
11132         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11133         (LDOUBLE_nanl_libm_version): New macro.
11134
11135         * sysdeps/generic/math-type-macros-double.h:
11136         (M_STRTO_NAN): New macro.
11137         * sysdeps/generic/math-type-macros-float.h: Likewise.
11138         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
11139
11140         * sysdeps/generic/math-type-macros.h: Document
11141         M_STRTO_NAN.
11142
11143 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11144
11145         * math/s_nanf.c: Remove __nanf undef.
11146         * math/s_nan.c: Remove __nan undef.
11147         * math/s_nanl.c: Remove __nanl undef.
11148
11149         * sysdeps/generic/math_private.h (__nan): Remove macro
11150         override.
11151         (__nanf): Likewise.
11152         (__nanl): Likewise.
11153
11154 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11155
11156         * math/Makefile (gen-all-calls): New variable.
11157         (generated): Replace gen-libm-calls with gen-all-calls.
11158         (gen-libm-templates.stmp): Likewise.  Also, ensure
11159         the output directory exists or is created and add
11160         dependency on the Makefile.
11161         (calls): Move s_ldexpF into gen-calls.
11162         (gen-calls): New variable.
11163
11164         * math/s_ldexpf.c: Removed.
11165         * math/s_ldexpl.c: Removed.
11166         * math/s_ldexp.c: Refactored into ...
11167         * math/s_ldexp_template.c: New file.
11168
11169         * sysdeps/generic/math-type-macros-double.h: Remove
11170         redundant fall-through definition of declare_mgen_alias.
11171         (declare_mgen_alias_2): New macro.
11172
11173         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
11174         New macro for function aliased to two exported symbols.
11175
11176         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
11177         new template file.
11178         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
11179
11180 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11181
11182         * Makeconfig (all-object-suffixes): Remove .og.
11183         * Makerules (elide-routines.og): Remove.
11184         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
11185         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
11186         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
11187
11188 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11189
11190         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
11191         .os objects.
11192
11193 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11194
11195         [BZ #20615]
11196         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
11197         fpu directory by non-fpu.
11198         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
11199         on non-fpu directory from a fpu directory.
11200
11201 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
11202
11203         * include/limits.h: Define
11204         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11205         <bits/libc-header-start.h> instead of including <features.h>.
11206         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
11207         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
11208         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
11209         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
11210         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
11211         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
11212         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
11213         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
11214         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
11215         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
11216         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
11217         * manual/lang.texi (Width of Type): Document these macros.
11218         * stdlib/tst-width.c: New file.
11219         * stdlib/Makefile (tests): Add tst-width.
11220
11221 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11222
11223         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
11224         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
11225
11226 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11227
11228         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
11229         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11230         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11231
11232 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11233
11234         [BZ #18243]
11235         * rt/Makefile (test): Add tst-shm-cancel.
11236         * rt/tst-shm-cancel.c: New file.
11237         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
11238
11239         [BZ #18243]
11240         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
11241         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
11242         definition.
11243         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
11244         uncontended case.
11245         * nptl/sem_wait.c (__new_sem_wait): Likewise.
11246         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
11247         (tf): Fix check for uncontended case.
11248         (do_test): Likewise.
11249         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
11250         (tf): Fix check for uncontended case.
11251         (do_test): Likewise.
11252         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
11253         (tf): Fix check for uncontended case.
11254         (do_test): Likewise.
11255         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
11256         (tf): Fix check for uncontended case.
11257         (do_test): Likewise.
11258
11259         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
11260         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
11261
11262         [BZ #15765]
11263         * nptl/Makefile (tests): Add tst-sem16.
11264         * nptl/tst-sem16.c: New file.
11265         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
11266
11267         * nptl/sem_open.c (sem_open): Init pad value to 0.
11268         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11269         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11270
11271 2016-09-15  Florian Weimer  <fweimer@redhat.com>
11272
11273         [BZ #20611]
11274         * inet/Makefile (routines): Add inet6_scopeid_pton.
11275         (tests): Add tst-inet6_scopeid_pton.
11276         * inet/inet6_scopeid_pton.c: New file.
11277         * inet/net-internal.h: Likewise.
11278         * inet/tst-inet6_scopeid_pton.c: New test.
11279         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
11280         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
11281         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11282
11283 2016-09-14  Florian Weimer  <fweimer@redhat.com>
11284
11285         Remove support for compiling wrappers with PTW.
11286         * sysdeps/nptl/Makeconfig: Drop ptw- support.
11287         * nptl/Makefile (pthread-compat-wrappers): Define.
11288         (libpthread-routines): Use pthread-compat-wrappers.
11289         * sysdeps/unix/sysv/linux/alpha/Makefile
11290         (libpthread-routines, libpthread-shared-only-routines): Remove
11291         ptw- prefix.
11292         * sysdeps/s390/nptl/Makefile
11293         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11294         * sysdeps/ia64/nptl/Makefile
11295         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11296         * sysdeps/nacl/Makefile (libpthread-routines): Use
11297         pthread-compat-wrappers to filter the routines list instead of the
11298         ptw- prefix.
11299
11300 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11301
11302         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
11303         with L() and remove explicit suffix, convert real literals
11304         which can be equivalentally substituted with integers, and
11305         transform -L(x) to L(-x).
11306
11307         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11308         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11309         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11310         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11311         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11312         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11313         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11314         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11315         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11316         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11317         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11318         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11319         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11320         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11321         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11322         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11323         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11324         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11325         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11326         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11327         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11328         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11329         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11330         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11331         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11332         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11333         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11334         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11335         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11336         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11337         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11338         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11339         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11340         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11341         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11342         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11343         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11344         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11345         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11346         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11347         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11348         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11349         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11350         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11351         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11352         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11353         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11354         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11355         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11356         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11357
11358 2016-09-13  Florian Weimer  <fweimer@redhat.com>
11359
11360         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
11361
11362 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11363
11364         * malloc/Makefile (tests): Remove individual static test names
11365         and just add all of tests-static.
11366
11367         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
11368
11369 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
11370
11371         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
11372         file.
11373
11374         * sysdeps/sparc/fpu/fegetmode.c: New file.
11375         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
11376
11377         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
11378         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
11379
11380         * sysdeps/s390/fpu/fegetmode.c: New file.
11381         * sysdeps/s390/fpu/fesetmode.c: Likewise.
11382
11383         * sysdeps/powerpc/fpu/fegetmode.c: New file.
11384         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
11385         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
11386         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
11387         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
11388         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
11389
11390         * sysdeps/mips/fpu/fegetmode.c: New file.
11391         * sysdeps/mips/fpu/fesetmode.c: Likewise.
11392
11393         * sysdeps/m68k/fpu/fegetmode.c: New file.
11394         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
11395
11396         * sysdeps/ia64/fpu/fegetmode.c: New file.
11397         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
11398
11399         * sysdeps/hppa/fpu/fegetmode.c: New file.
11400         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
11401
11402         * sysdeps/arm/fegetmode.c: New file.
11403         * sysdeps/arm/fesetmode.c: Likewise.
11404
11405         * sysdeps/alpha/fpu/fegetmode.c: New file.
11406         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
11407
11408         * sysdeps/aarch64/fpu/fegetmode.c: New file.
11409         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
11410
11411         * math/fegetmode.c: New file.
11412         * math/fesetmode.c: Likewise.
11413         * sysdeps/i386/fpu/fegetmode.c: Likewise.
11414         * sysdeps/i386/fpu/fesetmode.c: Likewise.
11415         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
11416         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
11417         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
11418         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
11419         declaration.
11420         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
11421         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
11422         typedef.
11423         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11424         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11425         (femode_t): New typedef.
11426         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11427         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11428         (femode_t): New typedef.
11429         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11430         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11431         (femode_t): New typedef.
11432         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11433         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11434         (femode_t): New typedef.
11435         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11436         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11437         (femode_t): New typedef.
11438         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11439         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11440         (femode_t): New typedef.
11441         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11442         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11443         (femode_t): New typedef.
11444         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11445         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11446         (femode_t): New typedef.
11447         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11448         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11449         (femode_t): New typedef.
11450         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11451         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11452         (femode_t): New typedef.
11453         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
11454         declaration.
11455         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11456         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11457         (femode_t): New typedef.
11458         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11459         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11460         (femode_t): New typedef.
11461         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11462         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11463         (femode_t): New typedef.
11464         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11465         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11466         (femode_t): New typedef.
11467         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11468         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11469         (femode_t): New typedef.
11470         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11471         * manual/arith.texi (FE_DFL_MODE): Document macro.
11472         (fegetmode): Document function.
11473         (fesetmode): Likewise.
11474         * math/Versions (fegetmode): New libm symbol at version
11475         GLIBC_2.25.
11476         (fesetmode): Likewise.
11477         * math/Makefile (libm-support): Add fegetmode and fesetmode.
11478         (tests): Add test-femode and test-femode-traps.
11479         * math/test-femode-traps.c: New file.
11480         * math/test-femode.c: Likewise.
11481         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
11482         alias for __fe_dfl_env.
11483         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
11484         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
11485         (__fe_dfl_mode): Likewise.
11486         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
11487         version GLIBC_2.25.
11488         * sysdeps/nacl/libm.abilist: Update.
11489         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11490         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11491         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11492         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11493         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11494         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11495         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11496         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11497         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11498         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11499         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11500         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11502         Likewise.
11503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11504         Likewise.
11505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11506         Likewise.
11507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11508         Likewise.
11509         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11510         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11511         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11512         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11513         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11514         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11515         Likewise.
11516         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11517         Likewise.
11518         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11519         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11520         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11521
11522 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11523
11524         [BZ #20495]
11525         [BZ #20508]
11526         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
11527         processors, set Use_dl_runtime_resolve_slow and set
11528         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
11529         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
11530         New.
11531         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
11532         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
11533         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
11534         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
11535         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
11536         if Use_dl_runtime_resolve_opt is set.  Use
11537         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
11538         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
11539         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
11540         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
11541         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
11542         New.
11543         (_dl_runtime_resolve_opt): Likewise.
11544         (_dl_runtime_profile): Define only if _dl_runtime_profile is
11545         defined.
11546
11547 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
11548
11549         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
11550         __libc_memalign with "+ RELA R_390_GLOB_DAT".
11551
11552 2016-09-06  Florian Weimer  <fweimer@redhat.com>
11553
11554         Convert malloc to __libc_lock.  Automated part, using this Perl
11555         s/// command:
11556           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
11557             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
11558         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
11559         conversion.
11560
11561 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
11562
11563         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
11564         (linknamespace-symlists-tests): Likewise.
11565         (linknamespace-header-tests): Likewise.
11566
11567 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
11568
11569         [BZ #19810]
11570         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
11571         * elf/tst-noload.c: New test case.
11572         * elf/Makefile (tests): Add tst-noload.
11573
11574 2016-09-02  Roland McGrath  <roland@hack.frob.com>
11575
11576         * sysdeps/nacl/dup.c: Add libc_hidden_def.
11577
11578         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
11579         not any more.
11580
11581         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
11582
11583 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11584
11585         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
11586         (do_cos_slow): Likewise.
11587         (do_sin): Likewise.
11588         (do_sin_slow): Likewise.
11589         (slow): Likewise.
11590         (slow1): Likewise.
11591         (slow2): Likewise.
11592         (sloww): Likewise.
11593         (sloww1): Likewise.
11594         (sloww2): Likewise.
11595         (bsloww): Likewise.
11596         (bsloww1): Likewise.
11597         (bsloww2): Likewise.
11598         (cslow2): Likewise.
11599
11600         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
11601
11602         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
11603         arguments.  Consolidate input partitioning from callers here.
11604         (do_cos_slow): Likewise.
11605         (do_sin): Likewise.
11606         (do_sin_slow): Likewise.
11607         (do_sincos_1): Remove the no longer necessary input partitioning.
11608         (do_sincos_2): Likewise.
11609         (__sin): Likewise.
11610         (__cos): Likewise.
11611         (slow1): Likewise.
11612         (slow2): Likewise.
11613         (sloww1): Likewise.
11614         (sloww2): Likewise.
11615         (bsloww1): Likewise.
11616         (bsloww2): Likewise.
11617         (cslow2): Likewise.
11618
11619 2016-09-02  Florian Weimer  <fweimer@redhat.com>
11620
11621         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
11622         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
11623         outside of allocated array.
11624
11625 2016-09-02  Florian Weimer  <fweimer@redhat.com>
11626
11627         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
11628         instead of MB_CUR_MAX to avoid variable-length array.
11629
11630 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11631
11632         * math/Makefile (libm-calls): Remove k_rem_pio2F.
11633         (type-double-routines): Add k_rem_pio2.
11634         (type-float-routines): Add k_rem_pio2f.
11635
11636         * sysdeps/generic/math_private.h:
11637         (__kernel_rem_pio2l): Removed.
11638
11639         * math/k_rem_pio2l.c: Removed.
11640         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
11641         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
11642         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
11643         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
11644
11645 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11646
11647         * math/Makefile (gen-libm-calls): Add s_fmin
11648         (libm-calls): Remove above.
11649
11650         * math/s_fmin.c: Refactor into ...
11651         * math/s_fmin_template.c: New file.
11652
11653         * math/s_fminf.c: Removed.
11654         * math/s_fminl.c: Removed.
11655         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11656         (LDOUBLE_fmin_libm_version): New macro.
11657
11658         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
11659         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
11660
11661 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11662
11663         * math/Makefile: (gen-libm-calls): Add s_fmax.
11664         (libm-calls): Remove above.
11665
11666         * math/s_fmax.c: Refactor into ...
11667         * math/s_fmax_template.c: New file.
11668         * math/s_fmaxf.c: Removed.
11669         * math/s_fmaxl.c: Removed.
11670
11671         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11672         (LDOUBLE_fmaxl_libm_version): New macro.
11673
11674         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
11675         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
11676
11677         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
11678         s_fmin.c to pick the aarch64 version of the file.
11679         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
11680         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
11681
11682 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11683
11684         * math/Makefile: (gen-libm-calls): Add s_nextdown.
11685         (libm-calls): Remove above.
11686
11687         * math/s_nextdown.c: Refactor into ...
11688         * math/s_nextdown_template.c: New file.
11689         * math/s_nextdownf.c: Removed.
11690         * math/s_nextdownl.c: Removed.
11691
11692         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
11693
11694 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11695
11696         * math/Makefile (gen-libm-calls): Add s_fdim.
11697         (libm-calls): Move to above.
11698
11699         * math/s_fdim.c: Renamed and refactored into to ...
11700         * math/s_fdim_template.c: New file.
11701         * math/s_fdiml.c: Removed.
11702         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
11703         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
11704
11705         * sysdeps/generic/math-type-macros-double.h:
11706         (declare_mgen_alias): Don't declare if already declared.
11707         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
11708         Likewise.
11709
11710         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11711         (declare_mgen_alias): Don't declare if already declared.
11712         (M_LIBM_NEED_COMPAT): Likewise.
11713         (declare_mgen_libm_compat): Likewise.
11714         (LDOUBLE_fdiml_libm_version): New macro.
11715
11716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
11717         Include math/s_fdim.c now that ldbl-opt version is not needed.
11718         (declare_mgen_alias): New macro to disable aliasing.
11719
11720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
11721         (declare_mgen_alias): Likewise.
11722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
11723         (declare_mgen_alias): Likewise.
11724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
11725         (declare_mgen_alias): Likewise.
11726         (M_LIBM_NEED_COMPAT): Likewise.
11727
11728 2016-09-01  Florian Weimer  <fweimer@redhat.com>
11729
11730         [BZ #20525]
11731         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
11732         Include <linux/quota.h>.
11733         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
11734         and btodb.
11735         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
11736         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
11737         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
11738         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
11739         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
11740         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
11741         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
11742         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
11743         types.
11744         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
11745         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
11746
11747 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11748
11749         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
11750         (gammal_positive): Fix spacing.
11751         (__ieee754_gammal_r): Likewise.
11752
11753 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11754
11755         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
11756         (_Float128): Define as long double, always.
11757         (L): Apply long double type suffix, always.
11758
11759         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
11760         _Float128, excepting comments.
11761
11762         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11763         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11764         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11765         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11766         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11767         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11768         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11769         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11770         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11771         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
11772         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11773         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11774         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11775         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11776         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11777         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11778         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11779         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11780         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11781         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11782         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11783         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
11784         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11785         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11786         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11787         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11788         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11789         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11790         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11791         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11792         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11793         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11794         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11795         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11796         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11797         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11798         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11799         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11800         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11801         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11802         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11803         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11804         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11805         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11806         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11807         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11808         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11809         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11810         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11811         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11812         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11813         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11814         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11815         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11816         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11817         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11818         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11819         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11820         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11821         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11822         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11823         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11824         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11825         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11826         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11827         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11828         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11829         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11830
11831         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
11832         _Float128, and include math_private.h.
11833         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11834
11835         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
11836         long double semantics.
11837         (_Float128): Likewise.
11838         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
11839         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11840         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
11841         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
11842
11843 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
11844
11845         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
11846         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
11847         * sysdeps/s390/configure: Regenerated.
11848         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
11849         instruction for raising over-/underflow if z196 zarch is supported
11850         by default.
11851         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
11852
11853 2016-08-30  Svante Signell  <svante.signell@gmail.com>
11854
11855         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
11856         it point to a dumb buffer for RPC to fill it.
11857
11858 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11859
11860         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
11861         instead of if/else.
11862         (do_sin_slow): Likewise.
11863         (do_sincos_1): Use fabs instead of if/else.
11864         (do_sincos_2): Likewise.
11865         (__sin): Likewise.
11866         (__cos): Likewise.
11867         (slow2): Likewise.
11868         (sloww): Likewise.
11869         (sloww1): Likewise.  Drop argument M.
11870         (sloww2): Use fabs instead of if/else.
11871         (bsloww): Likewise.
11872         (bsloww1): Likewise.
11873         (bsloww2): Likewise.
11874
11875         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
11876         fall through comment.
11877         (do_sincos_1): Likewise.
11878
11879         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
11880         Consolidate switch cases 0 and 2.
11881
11882 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11883
11884         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
11885         (libm-calls): Remove the above.
11886
11887         * math/s_cexp_template.c: Update using type-generic macros.
11888         * math/s_clog10_template.c: Likewise.
11889         * math/s_cpow_template.c: Likewise.
11890         * math/s_clog_template.c: Likewise.
11891         * math/s_cproj_template.c: Likewise.
11892         * math/s_csqrt_template.c: Likewise.
11893
11894         * math/s_cexp.c: Removed.
11895         * math/s_cexpf.c: Removed.
11896         * math/s_cexpl.c: Removed.
11897         * math/s_clog10.c: Removed.
11898         * math/s_clog10f.c: Removed.
11899         * math/s_clog10l.c: Removed.
11900         * math/s_cpow.c: Removed.
11901         * math/s_cpowf.c: Removed.
11902         * math/s_cpowl.c: Removed.
11903         * math/s_clog.c: Removed.
11904         * math/s_clogf.c: Removed.
11905         * math/s_clogl.c: Removed.
11906         * math/s_cproj.c: Removed.
11907         * math/s_cprojf.c: Removed.
11908         * math/s_cprojl.c: Removed.
11909         * math/s_csqrt.c: Removed.
11910         * math/s_csqrtf.c: Removed.
11911         * math/s_csqrtl.c: Removed.
11912
11913         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
11914         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
11915         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
11916         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
11917         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
11918         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
11919
11920         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
11921         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
11922         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
11923         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
11924         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
11925         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
11926         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
11927         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
11928         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
11929         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
11930         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
11931
11932         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
11933         version.
11934
11935         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
11936         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
11937         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
11938         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
11939
11940 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11941
11942         * s_cexp_template.c: Copy of s_cexp.c.
11943         * s_clog_template.c: Copy of s_clog.c.
11944         * s_clog10_template.c: Copy of s_clog10.c.
11945         * s_cpow_template.c: Copy of s_cpow.c.
11946         * s_cproj_template.c: Copy of s_cproj.c.
11947         * s_csqrt_template.c: Copy of s_csqrt.c.
11948
11949 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11950
11951         [BZ #20517]
11952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
11953         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
11954         exported.
11955
11956 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
11957
11958         * math/fetestexceptflag.c: New file.
11959         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
11960         Stefan Liebler.
11961         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11962         (fetestexceptflag): New function declaration.
11963         * manual/arith.texi (fetestexceptflag): Document function.
11964         * math/Versions (fetestexceptflag): New libm symbol at version
11965         GLIBC_2.25.
11966         * math/Makefile (libm-support): Add fetestexceptflag.
11967         (tests): Add test-fetestexceptflag.
11968         * math/test-fetestexceptflag.c: New file.
11969         * sysdeps/nacl/libm.abilist: Update.
11970         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11971         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11972         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11973         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11974         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11975         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11976         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11977         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11978         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11979         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11980         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11981         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11983         Likewise.
11984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11985         Likewise.
11986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11987         Likewise.
11988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11989         Likewise.
11990         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11991         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11992         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11993         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11994         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11995         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11996         Likewise.
11997         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11998         Likewise.
11999         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12000         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12001         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12002
12003 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12004
12005         [BZ #20432]
12006         Avoid strong references to malloc-internal symbols when linking
12007         statically, to support statically interposed mallocs.
12008         * include/libc-symbols.h (call_function_static_weak): New macro.
12009         * malloc/Makefile (tests): Add tst-interpose-nothread,
12010         tst-interpose-thread, tst-interpose-static-nothread,
12011         tst-interpose-static-thread.
12012         (tests-static): Add tst-interpose-static-nothread,
12013         tst-interpose-static-thread.
12014         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
12015         tst-interpose-aux-thread.o.
12016         (test-extras): Add tst-interpose-aux-nothread,
12017         tst-interpose-aux-thread.
12018         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
12019         tst-interpose-aux-nothread.o.
12020         (tst-interpose-thread, tst-interpose-static-thread): Link with
12021         tst-interpose-aux-thread.o and libthread.
12022         * malloc/tst-interpose-aux-nothread.c: New file.
12023         * malloc/tst-interpose-aux-thread.c: Likewise.
12024         * malloc/tst-interpose-aux.c: Likewise.
12025         * malloc/tst-interpose-aux.h: Likewise.
12026         * malloc/tst-interpose-nothread.c: Likewise.
12027         * malloc/tst-interpose-skeleton.c: Likewise.
12028         * malloc/tst-interpose-static-nothread.c: Likewise.
12029         * malloc/tst-interpose-static-thread.c: Likewise.
12030         * malloc/tst-interpose-thread.c: Likewise.
12031         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
12032         * sysdeps/mach/hurd/fork.c (__fork): Only call
12033         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
12034         __malloc_fork_unlock_child if defined.
12035         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
12036
12037 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12038
12039         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
12040         timespec C99 designated initialization.
12041
12042 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12043
12044         [BZ #19946]
12045         Avoid expected SIGALRM signals.
12046         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
12047         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
12048         (xpthread_create, xpthread_detach, xpthread_join)
12049         (delayed_exit_thread, delayed_exit): New functions.
12050         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
12051         (tf): Use xpthread_cond_wait.
12052         (do_test): Likewise.  Replace alarm with delayed_exit.
12053         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12054         (do_test): Call delayed_exit.  Report failure.
12055         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12056         (do_test): Call delayed_exit.
12057         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12058         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
12059         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12060         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
12061         error.
12062         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12063         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
12064         error.
12065         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
12066         (do_test): Call delayed_exit.
12067         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
12068         (do_test): Call delayed_exit.
12069         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
12070         (do_test): Call delayed_exit instead of alarm.  Use
12071         xpthread_mutex_lock.
12072         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
12073         (do_test): Call delayed_exit instead of alarm.  Use
12074         xpthread_mutex_lock.
12075         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
12076         (do_test): Call delayed_exit instead of alarm.
12077         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
12078         (do_test): Call delayed_exit instead of alarm.  Use
12079         xpthread_spin_lock.
12080         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
12081         (do_test): Call delayed_exit instead of alarm.  Use
12082         xpthread_join.
12083
12084 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12085
12086         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
12087         adjust CFA when allocating register save area on re-aligned
12088         stack.
12089
12090 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12091
12092         * string/tst-cmp.c: New test.
12093         * string/Makefile (tests): Add it.
12094
12095 2016-08-25  Mark Wielaard  <mark@klomp.org>
12096
12097         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
12098         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
12099         (check_tree_recurse): Use newly defined accessors.
12100         (check_tree): Likewise.
12101         (maybe_split_for_insert): Likewise.
12102         (__tfind): Likewise.
12103         (__tdelete): Likewise.
12104         (trecurse): Likewise.
12105         (tdestroy_recurse): Likewise.
12106         (__tsearch): Likewise. And add asserts for malloc alignment.
12107         (__twalk): Cast root to node in case CHECK_TREE is defined.
12108
12109 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12110
12111         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
12112
12113 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12114
12115         * math/Makefile (libm-gen-calls): Add
12116         catan, catanh, ctan, ctanh.
12117         (libm-calls): Remove the above.
12118
12119         * math/s_catan_template.c: Update using type-generic macros.
12120         * math/s_catanh_template.c: Likewise.
12121         * math/s_ctan_template.c: Likewise.
12122         * math/s_ctanh_template.c: Likewise.
12123
12124         * math/s_catanf.c: Removed.
12125         * math/s_catan.c: Removed.
12126         * math/s_catanl.c: Removed.
12127         * math/s_catanhf.c: Removed.
12128         * math/s_catanh.c: Removed.
12129         * math/s_catanhl.c: Removed.
12130         * math/s_ctanf.c: Removed.
12131         * math/s_ctan.c: Removed.
12132         * math/s_ctanl.c: Removed.
12133         * math/s_ctanhf.c: Removed.
12134         * math/s_ctanh.c: Removed.
12135         * math/s_ctanhl.c: Removed.
12136
12137         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
12138         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
12139         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
12140         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
12141         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
12142         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
12143
12144         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
12145         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
12146         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
12147         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
12148
12149 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12150
12151         * s_catan_template.c: Copy of s_catan.c.
12152         * s_catanh_template.c: Copy of s_catanh.c.
12153         * s_ctan_template.c: Copy of s_ctan.c.
12154         * s_ctanh_template.c: Copy of s_ctanh.c.
12155
12156 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12157
12158         * math/Makefile (gen-libm-calls): Move
12159         casin, casinh, csin, csinh here.
12160         (libm-calls): Remove the above.
12161
12162         * math/s_casin_template.c: Update using type-generic macros.
12163         * math/s_casinh_template.c: Likewise.
12164         * math/s_csin_template.c: Likewise.
12165         * math/s_csinh_template.c: Likewise.
12166         * math/k_casinh_template.c: Likewise.
12167
12168         * math/s_casinf.c: Removed.
12169         * math/s_casin.c: Removed.
12170         * math/s_casinl.c: Removed.
12171         * math/s_casinh.c: Removed.
12172         * math/s_casinhf.c: Removed.
12173         * math/s_casinhl.c: Removed.
12174         * math/s_csin.c: Removed.
12175         * math/s_csinf.c: Removed.
12176         * math/s_csinl.c: Removed.
12177         * math/s_csinh.c: Removed.
12178         * math/s_csinhf.c: Removed.
12179         * math/s_csinhl.c: Removed.
12180         * math/k_casinh.c: Removed.
12181         * math/k_casinhf.c: Removed.
12182         * math/k_casinhl.c: Removed.
12183
12184         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
12185         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
12186         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
12187         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
12188
12189         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
12190         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
12191         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
12192         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
12193         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
12194         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
12195         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
12196         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
12197
12198         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
12199         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
12200         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
12201         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
12202
12203         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
12204         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
12205         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
12206         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
12207
12208 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12209
12210         * s_casin_template.c: Copy of s_casin.c.
12211         * s_casinh_template.c: Copy of s_casinh.c.
12212         * s_csin_template.c: Copy of s_csin.c.
12213         * s_csinh_template.c: Copy of s_csinh.c.
12214         * k_casinh_template.c: Copy of k_casinh.c.
12215
12216 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12217
12218         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
12219
12220 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12221
12222         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
12223         (mul_split) Remove, rename as mul_splitl, remove
12224         redundant float.h include, and include via mul_splitl.h
12225
12226         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12228         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12229         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12230         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
12231
12232         * math/mul_splitl.h: New file.
12233
12234         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
12235         Move into mul_split.h, and remove redundant float.h include.
12236
12237         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12238         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12239         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12240         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
12241
12242         * math/mul_split.h: New file.
12243
12244 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12245
12246         * math/Makefile (libm-gen-calls): Move
12247         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
12248         (libm-calls): Remove above.
12249
12250         * math/s_cacos_template.c: Update using type-generic macros.
12251         * math/s_cacosh_template.c: Likewise.
12252         * math/s_ccos_template.c: Likewise.
12253         * math/s_ccosh_template.c: Likewise.
12254
12255         * math/s_cacosf.c: Removed.
12256         * math/s_cacos.c: Removed.
12257         * math/s_cacosl.c: Removed.
12258         * math/s_cacoshf.c: Removed.
12259         * math/s_cacosh.c: Removed.
12260         * math/s_cacoshl.c: Removed.
12261         * math/s_ccosf.c: Removed.
12262         * math/s_ccos.c: Removed.
12263         * math/s_ccosl.c: Removed.
12264         * math/s_ccoshf.c: Removed.
12265         * math/s_ccosh.c: Removed.
12266         * math/s_ccoshl.c: Removed.
12267
12268         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
12269         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
12270         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
12271         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
12272         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
12273         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
12274
12275         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
12276         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
12277         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
12278         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
12279
12280         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
12281         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
12282         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
12283         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
12284
12285 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12286
12287         * s_cacos_template.c: Copy of s_cacos.c.
12288         * s_cacosh_template.c: Copy of s_cacosh.c.
12289         * s_ccos_template.c: Copy of s_ccos.c.
12290         * s_ccosh_template.c: Copy of s_ccosh.c.
12291
12292 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12293
12294         * stdlib/tst-strtod-round-skeleton.c:
12295         Refactored from tst-strtod-round.c.
12296
12297         (L_): New macro to apply literal modifier.
12298         (FNPFX): New macro to select str or wcs prefix.
12299         (CHAR): New macro to choose wchar_t or char.
12300         (STRM): New macro to choose printf for tested character type.
12301
12302         (STRTO): New macro to choose appropriate string -> real function.
12303         (FNPFXS): Stringitized version of FNPFX.
12304         (STR): Support for above macro.
12305         (STRX): Likewise.
12306
12307         (TEST): Update with above macros.
12308         (test): Likewise.
12309         (GEN_ONE_TEST): Likewise.
12310         (test_in_one_mode): Likewise.
12311
12312         * stdlib/tst-strtod-round.c: New file.
12313         * wcsmbs/tst-wcstod-round.c: New file.
12314
12315         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
12316         (tst-wcstod-round): Add libm depencency for fesetround.
12317
12318 2016-08-19  Zack Weinberg  <zackw@panix.com>
12319
12320         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
12321
12322 2016-08-18  Torvald Riegel  <triegel@redhat.com>
12323
12324         [BZ #20477]
12325         * resolv/res_hconf.c (do_init): Use atomic access.
12326         * resolv/res_hconf.h: Add comments.
12327         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
12328         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
12329         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12330
12331 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
12332
12333         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12334         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
12335         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12336         Likewise.
12337
12338 2016-08-18  Florian Weimer  <fweimer@redhat.com>
12339
12340         [BZ #16907]
12341         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
12342         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
12343         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
12344         (__attribute__): Remove definition.
12345
12346 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12347
12348         * sysdeps/ieee754/ldbl-128/e_asinl.c:
12349         Remove unused sqrtl declaration.
12350
12351 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12352
12353         * math/Makefile: (gen-libm-templates.stmp): New rule.
12354         (libm-calls): Move carg conj cimag and cabs into ...
12355         (gen-libm-calls): New variable.
12356         (generated): Inform Make objects from gen-libm-calls
12357         may be generated.
12358
12359         * sysdeps/generic/math-type-macros.h: New file.
12360         * sysdeps/generic/math-type-macros-float.h: Likewise.
12361         * sysdeps/generic/math-type-macros-double.h: Likewise.
12362         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
12363         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
12364         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
12365
12366         * math/cabs.c: Refactor into
12367         * math/cabs_template.c: new file.
12368         * math/cabsf.c: Removed.
12369         * math/cabsl.c: Removed.
12370         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
12371         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
12372
12373         * math/carg.c: Refactor into
12374         * math/carg_template.c: new file.
12375         * math/cargf.c: Removed.
12376         * math/cargl.c: Removed.
12377         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
12378         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
12379
12380         * math/conj.c: Refactor into
12381         * math/conj_template.c: new file.
12382         * math/conjf.c: Removed.
12383         * math/conjl.c: Removed.
12384         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
12385         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
12386
12387         * math/cimag.c: Refactor into
12388         * math/cimag_template.c: new file.
12389         * math/cimagf.c: Removed.
12390         * math/cimagl.c: Removed.
12391         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12392         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12393
12394         * math/cimag.c: Refactor into
12395         * math/cimag_template.c: new file.
12396         * math/cimagf.c: Removed.
12397         * math/cimagl.c: Removed.
12398         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12399         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12400
12401 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12402
12403         Reduce time to expected nptl/tst-once5 failure.
12404         * nptl/tst-once5.cc (TIMEOUT): Define.
12405
12406 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12407
12408         [BZ #20452]
12409         Avoid additional copies of objects in libc.a in static libraries.
12410         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
12411         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
12412         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
12413         rt-sysdep.
12414         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
12415         Add nptl-sysdep.
12416         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
12417         Add ptw-sysdep.
12418         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
12419         rt-sysdep.
12420         * sysdeps/unix/sysv/linux/alpha/Makefile
12421         (libpthread-shared-only-routines): Add ptw-sysdep,
12422         ptw-sigprocmask, ptw-rt_sigaction.
12423         * sysdeps/unix/sysv/linux/ia64/Makefile
12424         (librt-shared-only-routines): Add rt-sysdep.
12425         * sysdeps/unix/sysv/linux/i386/Makefile
12426         (libpthread-shared-only-routines): Add libc-do-syscall.
12427         * sysdeps/unix/sysv/linux/microblaze/Makefile
12428         (libpthread-shared-only-routines): Add sysdep.
12429         * sysdeps/unix/sysv/linux/powerpc/Makefile
12430         (librt-shared-only-routines): Add rt-sysdep.
12431         (libpthread-shared-only-routines): Add sysdep.
12432         * sysdeps/unix/sysv/linux/s390/Makefile
12433         (librt-shared-only-routines): Add rt-sysdep.
12434         * sysdeps/unix/sysv/linux/sparc/Makefile
12435         (librt-shared-only-routines): Add rt-sysdep.
12436         (libpthread-shared-only-routines): Add sysdep.
12437         * sysdeps/unix/sysv/linux/tile/Makefile
12438         (libpthread-shared-only-routines): Likewise.
12439
12440 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
12441
12442         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
12443         Mask implicit bit out of unpacked value.
12444         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
12445         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
12446         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
12447
12448         * sysdeps/sparc/fpu/fesetexcept.c: New file.
12449
12450         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
12451
12452         * sysdeps/s390/fpu/fesetexcept.c: New file.
12453
12454         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
12455         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
12456         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
12457
12458         * sysdeps/mips/fpu/fesetexcept.c: New file.
12459
12460         * sysdeps/m68k/fpu/fesetexcept.c: New file.
12461
12462         * sysdeps/ia64/fpu/fesetexcept.c: New file.
12463
12464         * sysdeps/hppa/fpu/fesetexcept.c: New file.
12465
12466         * sysdeps/arm/fesetexcept.c: New file.
12467
12468         * sysdeps/alpha/fpu/fesetexcept.c: New file.
12469
12470         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
12471
12472         * math/fesetexcept.c: New file.
12473         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
12474         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
12475         * math/fenv.h: Define
12476         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12477         <bits/libc-header-start.h> instead of including <features.h>.
12478         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
12479         declaration.
12480         * manual/arith.texi (fesetexcept): Document function.
12481         * math/Versions (fesetexcept): New libm symbol at version
12482         GLIBC_2.25.
12483         * math/Makefile (libm-support): Add fesetexcept.
12484         (tests): Add test-fesetexcept and test-fesetexcept-traps.
12485         * math/test-fesetexcept.c: New file.
12486         * math/test-fesetexcept-traps.c: Likewise.
12487         * sysdeps/nacl/libm.abilist: Update.
12488         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12489         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12490         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12491         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12492         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12493         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12494         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12495         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12496         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12497         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12498         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12499         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12501         Likewise.
12502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12503         Likewise.
12504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12505         Likewise.
12506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12507         Likewise.
12508         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12509         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12510         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12511         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12512         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12513         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12514         Likewise.
12515         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12516         Likewise.
12517         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12518         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12519         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12520
12521 2016-08-16  Florian Weimer  <fweimer@redhat.com>
12522
12523         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
12524         New.
12525         (do_test): Apply default_stack_size_in_mb if not set.
12526         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
12527
12528 2016-08-15  Andreas Schwab  <schwab@suse.de>
12529
12530         [BZ #20435]
12531         CVE-2016-6323
12532         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
12533         as .cantunwind.
12534
12535 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
12536
12537         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
12538         comment from fraiseexcpt.c.
12539
12540         * math/test-fexcept.c (feraiseexcept_exact): New function.
12541         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
12542         (test_except): Likewise.
12543
12544 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
12545
12546         [BZ #20455]
12547         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
12548         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
12549         to be restored.
12550
12551         * math/test-fexcept-traps.c: New file.
12552         * math/test-fexcept.c: Likewise.
12553         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
12554         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
12555         macro.
12556         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
12557         (EXCEPTION_SET_FORCES_TRAP): Likewise.
12558
12559 2016-08-09  Torvald Riegel  <triegel@redhat.com>
12560
12561         * include/atomic.h (atomic_fetch_and_relaxed,
12562         atomic_fetch_and_release, atomic_fetch_or_release,
12563         atomic_fetch_xor_release): New.
12564
12565 2016-08-06  Christian Seiler  <christian@iwakd.de>
12566
12567         [BZ #20444]
12568         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
12569         MACH_PORT_NULL.
12570
12571 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12572
12573         * math/s_fdim.c: Avoid alias renamed.
12574         * math/s_fdimf.c: Likewise.
12575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12576         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12577         Add s_fdimf-vis3, s_fdim-vis3.
12578         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
12579         (CFLAGS-s_fdim-vis3.c): Likewise.
12580         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
12581         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
12582
12583 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12584
12585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12586         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12587         Remove s_fdimf-vis3, s_fdim-vis3.
12588         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
12589         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
12590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
12591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
12592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
12593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
12594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
12595         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
12596         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
12597         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
12598
12599 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12600
12601         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
12602         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
12603         -Wa,-Av9a -mvis.
12604
12605 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12606
12607         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
12608         LIT() to individual constants in simple expressions
12609         after splitting on spaces.
12610         (_apply_lit): Rename replaced version, and use it to
12611         apply to what appears to be a token.
12612
12613         * math/libm-test.inc: Fix many, many issues with
12614         spacing.
12615
12616 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
12617
12618         * math/math.h: Move comment about <bits/mathdef.h> definitions
12619         above inclusion of <bits/mathdef.h>.  Do not mention
12620         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
12621
12622 2016-08-05  Torvald Riegel  <triegel@redhat.com>
12623
12624         * include/atomic.h (atomic_exchange_relaxed): New.
12625
12626 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
12627
12628         * math/e_scalb.c: Do not include <fenv.h>.
12629         (invalid_fn): Do calculation resulting in NaN instead of raising
12630         FE_INVALID and returning a NaN explicitly.
12631         * math/e_scalbf.c: Do not include <fenv.h>.
12632         (invalid_fn): Do calculation resulting in NaN instead of raising
12633         FE_INVALID and returning a NaN explicitly.
12634         * math/e_scalbl.c: Do not include <fenv.h>.
12635         (invalid_fn): Do calculation resulting in NaN instead of raising
12636         FE_INVALID and returning a NaN explicitly.
12637
12638 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
12639
12640         * po/de.po: Updated from Translation Project.
12641         * po/fi.po: Likewise.
12642         * po/sv.po: Likewise.
12643
12644 2016-08-04  Florian Weimer  <fweimer@redhat.com>
12645
12646         [BZ #20452]
12647         Use sysdep.o from libc.a in static libraries.
12648         * sysdeps/unix/sysv/linux/i386/Makefile
12649         (libpthread-shared-only-routines): Add sysdep.
12650         (librt-shared-only-routines): Likewise.
12651
12652 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12653
12654         * math/tgmath.h (nextdown): Define if
12655         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
12656         (nextup): Likewise.
12657
12658         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
12659         macro.
12660         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
12661         Document.
12662         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
12663         Document macro.
12664         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
12665         (exp10f): Likewise.
12666         (exp10l): Likewise.
12667         * math/bits/mathcalls.h (exp10): Declare if
12668         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
12669
12670         * manual/arith.texi (nextup): Fix typo in last change.
12671
12672 2016-08-03  Zack Weinberg  <zackw@panix.com>
12673
12674         [BZ #19239]
12675         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
12676         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
12677         define major, minor, and makedev to issue deprecation warnings on use.
12678         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
12679         previously-activated deprecation warnings for these macros and prevent
12680         subsequent inclusions of this header from having any effect.
12681         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
12682         including <sys/sysmacros.h>, and undefine it again afterward.
12683
12684 2016-08-03  Zack Weinberg  <zackw@panix.com>
12685
12686         * sysdeps/generic/sys/sysmacros.h: Delete file.
12687         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
12688         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
12689         * bits/sysmacros.h: ... here; this encoding is now the generic
12690         encoding.  Now defines only the following macros:
12691         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
12692         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
12693         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
12694
12695         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
12696         bits/sysmacros.h and the above new macros to generate the
12697         public implementations of major, minor, and makedev.
12698         * misc/tst-makedev.c: New test.
12699         * include/sys/sysmacros.h: New wrapper.
12700
12701         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
12702         (routines): Add makedev.
12703         (tests): Add tst-makedev.
12704         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
12705         gnu_dev_makedev.
12706         * posix/Makefile (headers): Remove sys/sysmacros.h.
12707         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
12708
12709         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
12710         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
12711         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
12712         * sysdeps/unix/sysv/linux/alpha/libc.abilist
12713         * sysdeps/unix/sysv/linux/arm/libc.abilist
12714         * sysdeps/unix/sysv/linux/hppa/libc.abilist
12715         * sysdeps/unix/sysv/linux/i386/libc.abilist
12716         * sysdeps/unix/sysv/linux/ia64/libc.abilist
12717         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
12718         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
12719         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
12720         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
12721         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
12722         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
12723         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
12724         * sysdeps/unix/sysv/linux/nios2/libc.abilist
12725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
12726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
12727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
12728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
12729         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
12730         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
12731         * sysdeps/unix/sysv/linux/sh/libc.abilist
12732         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
12733         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
12734         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
12735         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
12736         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
12737         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
12738         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
12739         Add GLIBC_2.25.
12740
12741         * include/features.h (__glibc_clang_prereq): New macro.
12742         * misc/sys/cdefs.h (__glibc_clang_has_extension)
12743         (__attribute_deprecated_msg__): New macros.
12744
12745 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12746
12747         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
12748         macro.
12749         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
12750         * manual/arith.texi (issignaling): Document as ISO from TS
12751         18661-1:2014.
12752         (nextup): Likewise.
12753         (nextupf): Likewise.
12754         (nextupl): Likewise.
12755         (nextdown): Likewise.
12756         (nextdownf): Likewise.
12757         (nextdownl): Likewise.
12758         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
12759         macro.
12760         * math/math.h: Define
12761         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12762         <bits/libc-header-start.h> instead of including <features.h>.
12763         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
12764         [__USE_GNU].
12765         * math/bits/mathcalls.h (nextdown): Declare if
12766         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
12767         (nextup): Likewise.
12768         (__issignaling): Likewise.
12769
12770 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12771
12772         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
12773         check, and remove __glibc_likely hint
12774         from FP_INFINITE check.
12775         * s_csinhf.c (__csinhf): Likewise.
12776
12777         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
12778         hint from FP_INFINITE check.
12779         * s_csinhl.c (__csinhl): Likewise.
12780
12781 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12782
12783         * math/Makefile (libm-calls): Insert F placeholder into
12784         object names.  Move w_lgamma_compat* routines into
12785         (libm-compat-calls): New variable.
12786         (libm-compat-calls-ldouble-yes): New variable.
12787         (calls): Insert F placeholder.
12788         (generated): Redefine using new type-foreach macro call.
12789         (routines): Likewise.
12790
12791         (types): New variable to hold a list of symbolic names
12792         for each type supported by the target machine.
12793         (libm-routines): Redefine using new types variable.
12794         (type-foreach): macro to replace fooF with the
12795         appropriately suffixed foo for each types.
12796
12797         (type-ldouble-suffix): New variable.
12798         (type-ldouble-routines): Likewise.
12799         (type-ldouble-yes): Likewise.
12800         (type-double-suffix): Likewise.
12801         (type-double-routines): Likewise.
12802         (type-float-suffix): Likewise.
12803         (type-float-routines): Likewise.
12804
12805         (dbl-only-routines): Remove.
12806         (long-c-yes): Likewise.
12807         (long-m-routines): Likewise.
12808         (long-m-support): Likewise.
12809         (long-m-yes): Likewise.
12810         (test-longdouble-yes): Likewise.
12811
12812         (test-float.o): Simplify by increasing the scope of the
12813         recipe which adds libm-test.stmp to the vector types.
12814         (test-ifloat.o): Likewise.
12815         (test-float-finite.o): Likewise.
12816         (test-double.o): Likewise
12817         (test-idouble.o): Likewise.
12818         (test-double-finite.o): Likewise.
12819         (test-ldouble.o): Likewise
12820         (test-ildoubl.o): Likewise.
12821         (test-ldouble-finite.o): Likewise.
12822
12823         (libm-tests): Redefine type tests using foreach and the
12824         list of types in types.
12825
12826         (CPPFLAGS-test-ildoubl.c): Rename to
12827         (CPPFLAGS-test-ildouble.c): New variable
12828
12829         * math/test-ildoubl.c: Rename to
12830         * math/test-ildouble.c: New file.
12831
12832 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12833
12834         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
12835         Use fabsl instead of fabs.
12836         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
12837         Likewise.
12838         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
12839         Add long double suffix to constant to ensure proper
12840         promotion to long double.
12841
12842 2016-08-03  Tom Tromey  <tom@tromey.com>
12843
12844         [BZ #20311]
12845         * nptl_db/Makefile (headers): Add proc_service.h.
12846         * nptl_db/proc_service.h: Add include guard.  Use
12847         __BEGIN/__END_DECLS.
12848         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
12849         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
12850         arguments.
12851
12852
12853 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12854
12855         [BZ #17730]
12856         Avoid using memalign for TCB allocations.
12857         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
12858         (_dl_allocate_tls_storage): Use malloc and manual alignment.
12859         Avoid alignment gap in the TLS_DTV_AT_TP case.
12860         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
12861         determine the pointer to free.
12862         * nptl/tst-tls3-malloc.c: New test.
12863         * nptl/Makefile (tests): Add it.
12864         (tst-tls3-malloc): Link with libdl, libpthread.
12865         (LDFLAGS-tst-tls3-malloc): Set.
12866         (tst-tls3-malloc.out): Depend on DSO used in test.
12867
12868 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12869
12870         [BZ #17730]
12871         Avoid using memalign for TLS allocations.
12872         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
12873         is_static member with to_free member.
12874         (union dtv): Use struct dtv_pointer.
12875         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
12876         dtv_pointer instead of is_static.
12877         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
12878         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
12879         instead of val.
12880         (allocate_dtv_entry): New function.
12881         (allocate_and_init): Return struct dtv_pointer.  Call
12882         allocate_dtv_entry instead of __libc_memalign.
12883         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
12884         instead of val.
12885         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
12886         instead of is_static.  Adjust call to allocate_and_init.
12887         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
12888         struct dtv_pointer instead of val.
12889
12890 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12891
12892         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
12893         (MALLOC_ALIGN_MASK): Move ...
12894         * malloc/malloc-internal.h: ... to here.
12895         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
12896
12897 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12898
12899         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
12900         (UDP_ENCAP_GTP1U): Likewise.
12901
12902         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
12903         (PF_MAX): Update value.
12904         (AF_QIPCRTR): New macro.
12905
12906 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
12907
12908         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
12909         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12910         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12911         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
12912         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12913         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
12914         s_truncf-vis3, s_trunc-vis3.
12915         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
12916         (CFLAGS-s_ceil-vis3.c): Likewise.
12917         (CFLAGS-s_floorf-vis3.c): Likewise.
12918         (CFLAGS-s_floor-vis3.c): Likewise.
12919         (CFLAGS-s_truncf-vis3.c): Likewise.
12920         (CFLAGS-s_trunc-vis3.c): Likewise.
12921         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
12922         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12923         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
12924         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12925         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
12926         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12927         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
12928         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12929         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
12930         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12931         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
12932         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12933
12934 2016-08-02  David S. Miller  <davem@davemloft.net>
12935
12936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
12937         (__nearbyint_vis3): Don't check for sNaN before float register is
12938         loaded with the incoming argument.
12939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
12940         (__nearbyintf_vis3): Likewise.
12941         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
12942         Likewise.
12943         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
12944         Likewise.
12945
12946         * string/test-strncmp.c (do_test_limit): Make sure the test data
12947         stream is aligned as required for the type "CHAR".
12948         (do_test): Likewise.
12949
12950 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
12951
12952         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
12953         by beq instructions jumping to the end of the function.
12954         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
12955         clobber list. Use "i" constraint instead of "X".
12956         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
12957         of "X".
12958
12959 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
12960
12961         * bits/libc-header-start.h: New file.
12962         * Makefile (headers): Add bits/libc-header-start.h.
12963         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
12964         (__GLIBC_USE): New macro.
12965         * libio/stdio.h: Define
12966         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12967         <bits/libc-header-start.h> instead of including <features.h>.
12968         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
12969         (open_memstream): Likewise.
12970         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
12971         (__asprintf): Likewise.
12972         (asprintf): Likewise.
12973         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
12974         (getdelim): Likewise.
12975         (getline): Likewise.
12976         * string/string.h: Define
12977         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12978         <bits/libc-header-start.h> instead of including <features.h>.
12979         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
12980         (strndup): Likewise.
12981         * wcsmbs/wchar.h: Define
12982         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12983         <bits/libc-header-start.h> instead of including <features.h>.
12984         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
12985         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
12986
12987 2016-08-02  Florian Weimer  <fweimer@redhat.com>
12988
12989         Support linking against compatibility symbols, for use in tests.
12990         * include/libc-symbols.h (symbol_version_reference): New macro.
12991         (symbol_version): Use it.
12992         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
12993         (compat_symbol): Use compat_symbol_reference.
12994         (compat_symbol_1, compat_symbol_2): Remove.
12995         (compat_symbol_reference, compat_symbol_reference_1)
12996         (compat_symbol_reference_2): New macro.  Use
12997         symbol_version_reference.
12998
12999 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13000
13001         [BZ #19469]
13002         * malloc/Makefile (CPPFLAGS): Compile tests with
13003         -DTEST_NO_MALLOPT.
13004         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
13005
13006 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
13007
13008         [BZ #20033]
13009         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
13010         finite version.
13011         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
13012         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
13013         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
13014         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
13015         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
13016         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
13017         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
13018         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
13019         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
13020         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
13021         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
13022         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
13023         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
13024         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
13025         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
13026         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
13027         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
13028         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
13029         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
13030         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
13031         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
13032         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
13033         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
13034         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
13035         in zero power.
13036
13037 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13038
13039         [BZ #20370]
13040         * malloc/arena.c (get_free_list): Update comment.  Assert that
13041         arenas on the free list have no attached threads.
13042         (remove_from_free_list): New function.
13043         (reused_arena): Call it.
13044
13045 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
13046
13047         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
13048         when it is a NaN.
13049         [_IEEE_FP_INEXACT] Remove.
13050         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
13051         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
13052         when it is a NaN.
13053         [_IEEE_FP_INEXACT] Remove.
13054         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
13055         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
13056         when it is a NaN.
13057         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
13058         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
13059         when its absolute value is greater than 0x1.0p52.
13060         [_IEEE_FP_INEXACT] Remove.
13061         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
13062         when its absolute value is greater than 0x1.0p23.
13063         [_IEEE_FP_INEXACT] Remove.
13064
13065 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
13066
13067         * version.h (RELEASE): Set to "development"
13068         (VERSION): Set to 2.24.90.
13069         * NEWS: Add 2.25 section.
13070
13071         * version.h (RELEASE): Set to "stable"
13072         (VERSION): Set to 2.24.
13073         * include/features.h (__GLIBC_MINOR__): Set to 24.
13074
13075         * NEWS: Add 2.24 fixed bugs.
13076         * po/libc.pot: Regenerate.
13077
13078 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
13079
13080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13081         [$(subdir) = math] (libm-sysdep_routines): Remove.
13082         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
13083         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
13084         s_truncf-vis3, s_trunc-vis3.
13085         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
13087         file.
13088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
13089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
13090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
13091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
13094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
13095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
13097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
13098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
13099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
13100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
13101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
13102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
13103         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
13104         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13105         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
13106         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
13107         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
13108         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
13109         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
13110         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
13111         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13112         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
13113         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13114         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13115         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
13116         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
13117         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13118         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
13119         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
13120         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13121         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
13122         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
13123         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
13124         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
13125         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13126         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13127         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
13128         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
13129         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
13130         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
13131
13132 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
13133
13134         [BZ #20384]
13135         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
13136         test-double-libmvec-sincos-avx-main.o,
13137         test-double-libmvec-sincos-avx2-main.o,
13138         test-double-libmvec-sincos-main.o,
13139         test-float-libmvec-sincosf-avx-main.o,
13140         test-float-libmvec-sincosf-avx2-main.o and
13141         test-float-libmvec-sincosf-main.o.
13142         test-float-libmvec-sincosf-avx512-main.o.
13143         ($(objpfx)test-double-libmvec-sincos): Also link with
13144         $(objpfx)test-double-libmvec-sincos-main.o.
13145         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
13146         $(objpfx)test-double-libmvec-sincos-avx-main.o.
13147         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
13148         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
13149         ($(objpfx)test-float-libmvec-sincosf): Also link with
13150         $(objpfx)test-float-libmvec-sincosf-main.o.
13151         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
13152         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
13153         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
13154         test-double-libmvec-sincos-avx512-main.o and
13155         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
13156         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
13157         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
13158         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
13159         (CFLAGS-test-double-libmvec-sincos.c): Removed.
13160         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
13161         (CFLAGS-test-double-libmvec-sincos-main.c): New.
13162         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
13163         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
13164         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
13165         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
13166         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
13167         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
13168         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
13169         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
13170         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
13171         -DREQUIRE_AVX2.
13172         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
13173         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
13174         -DREQUIRE_AVX512F.
13175         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
13176         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
13177         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13178         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
13179         file.
13180         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
13181         Likewise.
13182         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
13183         Likewise.
13184         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
13185         Likewise.
13186         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
13187         Likewise.
13188         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
13189         Likewise.
13190         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
13191         Likewise.
13192         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
13193         Likewise.
13194
13195 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
13196
13197         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
13198
13199 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
13200
13201         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
13202         and typo in a comment about AT_HWCAP entry.
13203
13204 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13205
13206         * sysdeps/aarch64/libm-test-ulps: Updated.
13207
13208 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13209
13210         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
13211         of r13 as it is not restored in mvcle case.
13212
13213 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
13214
13215         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
13216         Rename "ret" to "__ret".
13217         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
13218         inline_syscall5, inline_syscall6): Likewise.
13219
13220 2016-07-19   Will Newton  <will.newton@gmail.com>
13221
13222         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
13223         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
13224         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
13225         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
13226         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
13227
13228 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13229
13230         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
13231         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
13232         -mfpmath=387 with $(rtld-CFLAGS).
13233         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
13234         $(rtld-CFLAGS).
13235
13236 2016-07-18   Ross Burton  <ross.burton@intel.com>
13237              Khem Raj  <raj.khem@gmail.com>
13238
13239         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
13240         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
13241         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
13242         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
13243         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
13244         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
13245         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
13246         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
13247         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
13248         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
13249         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
13250         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
13251         R_METAG_TLS_DTPOFF): New.
13252
13253 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13254             Matt Clay  <mclay@lycos.com>
13255
13256         [BZ #20357]
13257         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
13258         to call __mpsin/__mpcos and to negate values.
13259         * math/auto-libm-test-in: Add test.
13260         * math/auto-libm-test-out: Regenerate.
13261
13262 2016-07-18  Zack Weinberg  <zackw@panix.com>
13263
13264         * grp/Makefile: Don't install the internal header grp-merge.h.
13265
13266 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13267
13268         * sysdeps/aarch64/libm-test-ulps: Regenerated.
13269
13270 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13271
13272         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
13273
13274 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13275
13276         [BZ #15368]
13277         * sysdeps/unix/sysv/linux/nptl-signals.h
13278         (__nptl_clear_internal_signals): New function.
13279         (__libc_signal_block_all): Likewise.
13280         (__libc_signal_block_app): Likewise.
13281         (__libc_signal_restore_set): Likewise.
13282         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
13283         implementation.
13284         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
13285         the cached pid/tid value in pthread structure.
13286
13287 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
13288
13289         [BZ #20347]
13290         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13291
13292 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13293
13294         [BZ #20348]
13295         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
13296         preadv64, pwrite64 and pwritev64.
13297
13298 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13299
13300         [BZ #20350]
13301         * posix/tst-preadwrite.c: Renamed to ...
13302         * posix/tst-preadwrite-common.c: This.
13303         (PREAD): Removed.
13304         (PWRITE): Likewise.
13305         (STRINGIFY): Likewise.
13306         (STRINGIFY2): Likewise.
13307         (do_prepare): Make it static and remove function arguments.
13308         (do_test): Likewise.
13309         (PREPARE): Updated.
13310         (TEST_FUNCTION): New.
13311         (name): Make it static.
13312         (fd): Likewise.
13313         (do_prepare): Use create_temp_file.
13314         (do_test): Renamed to ...
13315         (do_test_with_offset): This.  Make it static and accept offset.
13316         Properly check return value of PWRITE and PREAD.  Return bytes
13317         read.  Don't close fd nor unlink name.
13318         * posix/tst-preadwrite.c: Rewrite.
13319         * posix/tst-preadwrite64.c: Likewise.
13320
13321 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13322
13323         [BZ #20309]
13324         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
13325         -mtls-dialect=gnu2 works.
13326         * configure: Regenerated.
13327         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
13328         (tests): Add tst-gnu2-tls1.
13329         (modules-names): Add tst-gnu2-tls1mod.
13330         ($(objpfx)tst-gnu2-tls1): New.
13331         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
13332         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
13333         * elf/tst-gnu2-tls1.c: New file.
13334         * elf/tst-gnu2-tls1mod.c: Likewise.
13335         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
13336         bytes for push in the PLT entry to align the stack.
13337
13338 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
13339
13340         [BZ #20349]
13341         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
13342
13343 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13344
13345         [BZ #18707]
13346         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
13347         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
13348
13349 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13350
13351         * sysdeps/unix/sysv/linux/sysdep.h
13352         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
13353         guards.
13354         * misc/tst-preadvwritev-common.c: New file.
13355         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
13356         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
13357         a check for files larger than 2GB.
13358
13359         * sysdeps/unix/sysv/linux/mips/kernel-features.h
13360         (__ASSUME_OFF_DIFF_OFF64): Remove define.
13361         * sysdeps/unix/sysv/linux/pread.c
13362         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
13363         __OFF_T_MATCHES_OFF64_T.
13364         * sysdeps/unix/sysv/linux/pread64.c
13365         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
13366         * sysdeps/unix/sysv/linux/preadv.c
13367         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
13368         * sysdeps/unix/sysv/linux/preadv64.c
13369         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
13370         * sysdeps/unix/sysv/linux/pwrite.c
13371         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
13372         * sysdeps/unix/sysv/linux/pwrite64.c
13373         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
13374         * sysdeps/unix/sysv/linux/pwritev.c
13375         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
13376         * sysdeps/unix/sysv/linux/pwritev64.c
13377         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
13378
13379 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
13380
13381         * sysdeps/unix/sysv/linux/tile/kernel-features.h
13382         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
13383
13384 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13385
13386         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
13387
13388 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13389
13390         [BZ #20240]
13391         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
13392         (CFLAGS-s_modf-ppc32.c): New variable.
13393         (CFLAGS-s_modff-ppc32.c): Likewise.
13394         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13395         (CFLAGS-s_modf-ppc64.c): Likewise.
13396         (CFLAGS-s_modff-ppc64.c): Likewise.
13397
13398 2016-07-07  Andreas Schwab  <schwab@suse.de>
13399
13400         [BZ #20263]
13401         * nptl/tst-robust10.c: New test.
13402         * nptl/Makefile (tests): Add tst-robust10.
13403
13404 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
13405
13406         [BZ #20263]
13407         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
13408
13409 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
13410
13411         * sysdeps/s390/linkmap.h (struct link_map_machine):
13412         Remove member gotplt and add member jmprel.
13413         * sysdeps/s390/s390-32/dl-machine.h
13414         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
13415         instead of gotplt with &got[3].
13416         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
13417         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13418
13419 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
13420
13421         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
13422
13423 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13424
13425         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
13426         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
13427         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13428         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
13429         * libio/vtables.c (_IO_vtable_check)
13430         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13431         * libio/libioP.h (IO_set_accept_foreign_vtables)
13432         [!PTR_MANGLE]: Do not call PTR_MANGLE.
13433
13434 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
13435
13436         [BZ #20314]
13437         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
13438         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
13439         $(common-objpfx)cmath.
13440         ($(common-objpfx)cstdlib): New target.
13441         ($(common-objpfx)cmath): Likewise.
13442
13443 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
13444
13445         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
13446
13447 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13448
13449         [BZ #20327]
13450         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
13451         are not part of the string.
13452
13453 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13454
13455         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
13456         * nptl/tst-cancel4-common.h (fifoname): New variable.
13457         (fifofd): Likewise.
13458         (cl_fifo): New function.
13459         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
13460         SIGINT.
13461         (tf_open): Add early cancel test.
13462
13463 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
13464
13465         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
13466
13467 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
13468
13469         * sysdeps/generic/ldsodefs.h
13470         (dl_symbol_visibility_binds_local_p): New inline function.
13471         * elf/dl-addr.c (determine_info): Treat hidden and internal
13472         symbols as local.
13473         * elf/dl-lookup.c (do_lookup_x): Likewise.
13474         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
13475
13476 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
13477
13478         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
13479         invalid exception for a sNaN input.
13480         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13481         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
13482         (__nearbyint_vis3): Likewise
13483         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
13484         (__nearbyintf_vis3): Likewise
13485         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
13486         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13487         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
13488         Likewise.
13489         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
13490         Likewise.
13491
13492 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
13493
13494         [BZ #20139]
13495         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
13496         (HAVE_AVX512DQ_ASM_SUPPORT): This.
13497         * sysdeps/x86_64/configure.ac: Require assembler from binutils
13498         2.24 or above.
13499         (HAVE_AVX512_ASM_SUPPORT): Removed.
13500         (HAVE_AVX512DQ_ASM_SUPPORT): New.
13501         * sysdeps/x86_64/configure: Regenerated.
13502         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
13503         check unconditional.
13504         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13505         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13506         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13507         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
13508         Likewise.
13509         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
13510         Likewise.
13511         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
13512         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
13513         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13514         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13515         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
13516         Likewise.
13517         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
13518         Likewise.
13519         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13520         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13521         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
13522         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
13523         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
13524         Likewise.
13525         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
13526         Likewise.
13527         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
13528         Likewise.
13529         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
13530         Likewise.
13531         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
13532         Likewise.
13533         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
13534         Likewise.
13535         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
13536         Likewise.
13537         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
13538         Likewise.
13539         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
13540         Likewise.
13541         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
13542         Likewise.
13543         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
13544         Likewise.
13545
13546 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
13547
13548         [BZ #20024]
13549         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
13550         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
13551         of this implementation of vector function.
13552         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
13553         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
13554         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
13555         Likewise.
13556         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
13557         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
13558         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
13559         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
13560         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
13561         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
13562         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
13563         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
13564         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
13565         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
13566         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
13567         for testing vector sincos with fixed ABI.
13568         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
13569         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
13570         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
13571         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
13572         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
13573         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
13574         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
13575         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
13576         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
13577         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
13578         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
13579         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
13580         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
13581         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
13582         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13583         * sysdeps/x86_64/fpu/Makefile: Added new tests.
13584
13585 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13586
13587         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
13588
13589 2016-06-30  Anton Blanchard  <anton@samba.org>
13590
13591         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13592         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
13593         s_sinf-ppc64.
13594         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
13595         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13596         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13597         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13598
13599 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13600
13601         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13602         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13603         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
13604         e_expf-ppc64.
13605         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
13606         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
13607         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
13608         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
13609
13610 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
13611
13612         [BZ #20277]
13613         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
13614         when SHARED is defined.
13615
13616 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13617
13618         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
13619         (index_arch_Prefer_ERMS): Likewise.
13620         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
13621         __memcpy_erms for Prefer_ERMS.
13622         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13623         (__memmove_erms): Enabled for libc.a.
13624         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
13625         __memmove_erms or Prefer_ERMS.
13626         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
13627         __mempcpy_erms for Prefer_ERMS.
13628         * sysdeps/x86_64/multiarch/memset.S (memset): Return
13629         __memset_erms for Prefer_ERMS.
13630
13631 2016-06-30  Andreas Schwab  <schwab@suse.de>
13632
13633         [BZ #20262]
13634         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
13635         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
13636         of memory.
13637
13638 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13639
13640         [BZ #18645]
13641         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
13642         (test-extras): Add tst-cleanupx4aux.
13643         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
13644         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
13645         tst-cleanupx4aux.o.
13646         * nptl/tst-cleanupx4aux.c: New file.
13647
13648 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13649
13650         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13651
13652 2016-06-29  Andreas Schwab  <schwab@suse.de>
13653
13654         [BZ #20260]
13655         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
13656         address before the beginning of the string as an integer to avoid
13657         array-bounds warning.
13658
13659 2016-06-28  Richard Henderson  <rth@redhat.com>
13660
13661         * elf/elf.h (EM_BPF): New.
13662         (EM_NUM): Update.
13663         (R_BPF_NONE, R_BPF_MAP_FD): New.
13664
13665         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
13666         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
13667         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
13668         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
13669         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
13670         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
13671         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
13672         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
13673         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
13674         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
13675         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
13676         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
13677         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
13678         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
13679         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
13680         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
13681         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
13682         (EM_NUM): Update.
13683
13684 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
13685
13686         [BZ #18960]
13687         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
13688         Set _nl_current_LC_CATEGORY_used to two instead of one.
13689
13690 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
13691
13692         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
13693         (do_test): ... this.
13694         (TEST_FUNCTION): New macro.
13695          Include test-skeleton.c.
13696         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
13697         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
13698
13699 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
13700
13701         [BZ #15479]
13702         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
13703         floating-point environment rather than just control word.
13704         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
13705         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
13706         floating-point environment, with "invalid" exceptions merged in,
13707         rather than just control word.
13708         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
13709         * math/libm-test.inc (trunc_test_data): Do not allow spurious
13710         "inexact" exceptions.
13711
13712         [BZ #15479]
13713         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
13714         floating-point environment rather than just control word.
13715         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
13716         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
13717         floating-point environment, with "invalid" exceptions merged in,
13718         rather than just control word.
13719         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
13720         * math/libm-test.inc (floor_test_data): Do not allow spurious
13721         "inexact" exceptions.
13722
13723         [BZ #15479]
13724         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
13725         floating-point environment rather than just control word.
13726         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
13727         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
13728         floating-point environment, with "invalid" exceptions merged in,
13729         rather than just control word.
13730         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
13731         * math/libm-test.inc (ceil_test_data): Do not allow spurious
13732         "inexact" exceptions.
13733
13734 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
13735
13736         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
13737         __libc_vfork.
13738         (__vfork) [IS_IN (libc)]: Remove alias.
13739         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
13740         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
13741         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
13742
13743 2016-06-24  Torvald Riegel  <triegel@redhat.com>
13744
13745         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
13746         of atomic_compare_and_exchange_bool_rel.
13747         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
13748         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
13749         catomic_compare_and_exchange_bool_rel): Remove.
13750         * sysdeps/aarch64/atomic-machine.h
13751         (atomic_compare_and_exchange_bool_rel): Likewise.
13752         * sysdeps/alpha/atomic-machine.h
13753         (atomic_compare_and_exchange_bool_rel): Likewise.
13754         * sysdeps/arm/atomic-machine.h
13755         (atomic_compare_and_exchange_bool_rel): Likewise.
13756         * sysdeps/mips/atomic-machine.h
13757         (atomic_compare_and_exchange_bool_rel): Likewise.
13758         * sysdeps/microblaze/atomic-machine.h
13759         ( __arch_compare_and_exchange_bool_8_rel,
13760         __arch_compare_and_exchange_bool_16_rel): Likewise.
13761         * sysdeps/powerpc/atomic-machine.h
13762         ( __arch_compare_and_exchange_bool_8_rel,
13763         __arch_compare_and_exchange_bool_16_rel): Likewise.
13764         * sysdeps/powerpc/powerpc32/atomic-machine.h
13765         ( __arch_compare_and_exchange_bool_32_rel,
13766         __arch_compare_and_exchange_bool_64_rel): Likewise.
13767         * sysdeps/powerpc/powerpc64/atomic-machine.h
13768         ( __arch_compare_and_exchange_bool_32_rel,
13769         __arch_compare_and_exchange_bool_64_rel): Likewise.
13770         * sysdeps/tile/atomic-machine.h
13771         (atomic_compare_and_exchange_bool_rel): Likewise.
13772
13773 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
13774
13775         [BZ #20296]
13776         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
13777         when either argument is a NaN.
13778         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
13779         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
13780
13781         * math/libm-test.inc (snan_value_ld): New macro.
13782         (isgreater_test_data): Add sNaN tests.
13783         (isgreaterequal_test_data): Likewise.
13784         (isless_test_data): Likewise.
13785         (islessequal_test_data): Likewise.
13786         (islessgreater_test_data): Likewise.
13787         (isunordered_test_data): Likewise.
13788         (nextafter_test_data): Likewise.
13789         (nexttoward_test_data): Likewise.
13790         (remainder_test_data): Likewise.
13791         (remquo_test_data): Likewise.
13792         (significand_test_data): Likewise.
13793         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
13794
13795 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13796
13797         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
13798         environment macros are defined.
13799         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
13800
13801 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13802
13803         [BZ #20191]
13804         Implement vtable verification in libio.
13805         * Makerules (shlib.lds): Place __libc_IO_vtables section.
13806         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
13807         * debug/vdprintf_chk.c (__vdprintf_chk): Call
13808         _IO_new_file_init_internal instead of _IO_file_init.
13809         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
13810         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
13811         * libio/Makefile (routines): Add vtables.
13812         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
13813         (_IO_init): Remove, not for internal use.
13814         (_IO_init_internal): Declare, internal replacement for _IO_init.
13815         (_IO_file_init): Remove, not for internal use.
13816         (_IO_new_file_init): Remove, not for internal use.
13817         (_IO_new_file_init_internal): Declare, internal replacement for
13818         _IO_new_file_init.
13819         (_IO_old_file_init): Remove, not for internal use.
13820         (_IO_old_file_init_internal): Declare, internal replacement for
13821         _IO_old_file_init.
13822         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
13823         internal use.
13824         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
13825         Declare.
13826         (libio_vtable): New macro.
13827         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
13828         functions.
13829         * libio/fileops.c (_IO_new_file_init_internal): Rename from
13830         _IO_new_file_init.
13831         (_IO_new_file_init): New externally visible wrapper which disables
13832         vtable verification.
13833         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
13834         Define as vtables.
13835         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
13836         (_IO_init): New externally visible wrapper which disables
13837         vtable verification.
13838         * libio/iofdopen.c (_IO_new_fdopen): Call
13839         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
13840         comment.
13841         * libio/iofopen.c (__fopen_internal): Call
13842         _IO_new_file_init_internal instead of _IO_file_init.
13843         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
13844         Define as vtables.
13845         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
13846         _IO_new_file_init_internal instead of _IO_file_init.
13847         * libio/iopopen.c (_IO_new_popen): Likewise.
13848         (_IO_proc_jumps): Define as vtable.
13849         * libio/iovdprintf.c (_IO_vdprintf): Call
13850         _IO_new_file_init_internal instead of _IO_file_init.
13851         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
13852         (__open_memstream): Call _IO_init_internal instead of _IO_init.
13853         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
13854         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
13855         _IO_old_file_init.
13856         (_IO_old_file_init): New externally visible wrapper which disables
13857         vtable verification.
13858         (_IO_old_file_jumps): Define as vtable.
13859         * libio/oldiofdopen.c (_IO_old_fdopen): Call
13860         _IO_old_file_init_internal instead of _IO_old_file_init.
13861         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
13862         * libio/oldiopopen.c (_IO_old_popen): Likewise.
13863         (_IO_old_proc_jumps): Define as vtable.
13864         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
13865         Define as vtables.
13866         * libio/vtables.c: New file.
13867         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
13868         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
13869         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
13870         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
13871         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
13872         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
13873         instead of _IO_init.
13874
13875 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13876
13877         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
13878
13879 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13880
13881         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
13882         potentially unused.
13883
13884 2016-06-22  Florian Weimer  <fweimer@redhat.com>
13885
13886         * test-skeleton.c (write_message): New function.
13887         * malloc/tst-mallocfork2.c (write_message): Remove.
13888         * debug/tst-longjmp_chk2.c (write_indented): New function.
13889         (write_message): Remove.
13890         (stackoverflow_handler): Call write_indented.
13891
13892 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
13893
13894         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
13895         "inexact" exceptions after fnstenv.
13896         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13897         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
13898         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
13899
13900 2015-06-22  Zack Weinberg  <zackw@panix.com>
13901
13902         * sysdeps/generic/bits/hwcap.h: Moved to ...
13903         * bits/hwcap.h: Here.
13904
13905 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
13906
13907         * sysdeps/aarch64/memcpy.S (memcpy):
13908         Further tuning for performance.
13909
13910 2016-06-21  Florian Weimer  <fweimer@redhat.com>
13911
13912         [BZ #20284]
13913         * malloc/arena.c (reused_arena): Do not return NULL if we start
13914         out with a non-corrupted arena.
13915
13916 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13917
13918         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
13919         * misc/tst-preadvwritev.c: New file.
13920         * misc/tst-preadvwritev64.c: Likewise.
13921         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
13922         usage.
13923         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
13924         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
13925         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
13926         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
13927
13928 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
13929
13930         [BZ #19654]
13931         * sysdeps/x86_64/fpu/Makefile: Added new tests.
13932         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
13933         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
13934         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
13935         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
13936         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
13937         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
13938         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
13939         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
13940         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
13941         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
13942         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
13943         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
13944         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
13945         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
13946         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
13947         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
13948         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
13949         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
13950         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
13951         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
13952         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
13953         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
13954         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
13955         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
13956         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
13957
13958 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
13959
13960         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
13961         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
13962
13963 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
13964
13965         * sysdeps/aarch64/memcpy.S (memcpy):
13966         Rewrite of optimized memcpy and memmove.
13967         * sysdeps/aarch64/memmove.S (memmove): Remove
13968         memmove code (merged into memcpy.S).
13969
13970 2016-06-20  Florian Weimer  <fweimer@redhat.com>
13971
13972         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
13973         * sysdeps/generic/dl-dtv.h: New file.
13974         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13975         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
13976         (dtv_t): Remove.
13977         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13978         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
13979         (dtv_t): Remove.
13980         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13981         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
13982         (dtv_t): Remove.
13983         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13984         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
13985         (dtv_t): Remove.
13986         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13987         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
13988         (dtv_t): Remove.
13989         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13990         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
13991         (dtv_t): Remove.
13992         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13993         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
13994         (dtv_t): Remove.
13995         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
13996         (dtv_t): Remove.
13997         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13998         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
13999         (dtv_t): Remove.
14000         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14001         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
14002         (dtv_t): Remove.
14003         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14004         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
14005         (dtv_t): Remove.
14006         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14007         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
14008         (dtv_t): Remove.
14009         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14010         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
14011         (dtv_t): Remove.
14012         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14013         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
14014         (dtv_t): Remove.
14015         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14016         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
14017         (dtv_t): Remove.
14018         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14019         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
14020         (dtv_t): Remove.
14021
14022 2016-06-20  Florian Weimer  <fweimer@redhat.com>
14023
14024         Revert symbol poisoning of  __malloc_initialize_hook.
14025         * include/stdc-predef.h (__malloc_initialize_hook): Remove
14026         poisoning.
14027         * malloc/Makefile: Remove un-poisoning.
14028         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
14029         instead of old__malloc_initialize_hook.
14030         * malloc/malloc-hooks.h: Likewise.
14031         * malloc/malloc.c: Likewise.
14032         * malloc/mcheck-init.c: Likewise.
14033
14034 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
14035
14036         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
14037
14038 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
14039
14040         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
14041         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
14042         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
14043         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
14044
14045 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14046
14047         * NEWS: Mention addition of nextup and nextdown.
14048         * manual/arith.texi: Document nextup and nextdown.
14049         * manual/libm-err-tab.pl: Add nextup and nextdown.
14050         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
14051         * math/Versions (libm): Add GLIBC_2.24.
14052         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
14053         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
14054         Add new test.
14055         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
14056         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
14057         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
14058         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
14059         (nextup_test_data): Likewise.
14060         (nextdown_test_data): Likewise.
14061         * math/s_nextdown.c: New file.
14062         * math/s_nextdownf.c: Likewise.
14063         * math/s_nextdownl.c: Likewise.
14064         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
14065         F(nextup): New function.
14066         F(nextdown): Likewise.
14067         * math/tgmath.h: Add nextup and nextdown.
14068         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
14069         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
14070         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14071         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14072         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14073         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
14074         Add nextup and nextdown.
14075         (CFLAGS-nldbl-nextup.c): New variable.
14076         (CFLAGS-nldbl-nextdown.c): Likewise.
14077         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
14078         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
14079         * sysdeps/nacl/libm.abilist: Update.
14080         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14081         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14082         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14083         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14084         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14085         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14086         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14087         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14088         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14089         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14090         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14091         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14094         Likewise.
14095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14097         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14098         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14099         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14100         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14101         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14102         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
14103         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
14104         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14105         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14106         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14107         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14108
14109 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14110
14111         * manual/pattern.texi: Fix typos & grammar errors.
14112
14113 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14114
14115         * manual/search.texi: Fix typos & grammar errors.
14116
14117 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14118
14119         * manual/message.texi: Fix typos & grammar errors.
14120
14121 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
14122
14123         * manual/contrib.texi: Fix spelling typos.
14124         * manual/crypt.texi: Likewise.
14125         * manual/filesys.texi: Likewise.
14126         * manual/locale.texi: Likewise.
14127         * manual/message.texi: Likewise.
14128         * manual/nss.texi: Likewise.
14129         * manual/string.texi: Likewise.
14130
14131 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14132
14133         * manual/locale.texi: Fix typos & grammar errors.
14134
14135 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14136
14137         * manual/charset.texi: Fix typos & grammar errors.
14138
14139 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14140
14141         * manual/string.texi: Fix typos.
14142
14143 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14144
14145         * manual/ctype.texi: Fix typos.
14146
14147 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14148
14149         * manual/memory.texi: Fix various typos & grammar errors.
14150
14151 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
14152
14153         [BZ #20255]
14154         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
14155         * math/libm-test.inc (fdim_test_data): Add another test.
14156
14157         [BZ #6796]
14158         [BZ #20255]
14159         [BZ #20256]
14160         * math/s_fdim.c: Include <math_private.h>.
14161         (__fdim): Use math_narrow_eval on result.
14162         * math/s_fdimf.c: Include <math_private.h>.
14163         (__fdimf): Use math_narrow_eval on result.
14164         * sysdeps/i386/fpu/s_fdim.S: Remove file.
14165         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
14166         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
14167         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
14168         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
14169         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
14170         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
14171         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
14172         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
14173         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
14174         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
14175         * math/libm-test.inc (fdim_test_data): Expect errno setting on
14176         overflow.  Add sNaN tests.
14177
14178         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
14179         fpclassify.
14180         * math/s_fdimf.c (__fdimf): Likewise.
14181         * math/s_fdiml.c (__fdiml): Likewise.
14182
14183 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14184
14185         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
14186         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
14187         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
14188         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
14189         ifunc'ed strcasecmp/strncasecmp.
14190         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
14191         [EALIGN]: Removed.
14192         [END]: Likewise.
14193         [__strcasecmp]: Define instead of the above to control symbol name.
14194         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
14195         for __strcasecmp_power8.
14196         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
14197         for __strncasecmp_power8.
14198         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
14199         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
14200         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
14201         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
14202         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
14203         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
14204
14205 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
14206
14207         [BZ #20252]
14208         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
14209         arguments when second argument is a NaN.
14210         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
14211         qNaN tests.
14212
14213         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
14214         (conj_test_data): Likewise.
14215         (copysign_test_data): Likewise.
14216         (creal_test_data): Likewise.
14217         (fma_test_data): Likewise.
14218         (fmod_test_data): Likewise.
14219
14220         [BZ #20250]
14221         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
14222         itself.
14223         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
14224         zero input to itself.
14225         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
14226         Likewise.
14227         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
14228         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
14229         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
14230         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
14231         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
14232
14233 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14234
14235         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
14236         * nptl/tst-cancel4-common.c: New file.
14237         * nptl/tst-cancel4-common.h: Likewise.
14238         * nptl/tst-cancel4.c: Move common definitions to
14239         tst-cancel4-common.{c,h} file.
14240         * nptl/tst-cancel4_1.c: New test.
14241         * nptl/tst-cancel4_2.c: New test.
14242
14243 2016-06-13  Florian Weimer  <fweimer@redhat.com>
14244
14245         [BZ #20248]
14246         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
14247         (write_message): New function.
14248         (stackoverflow_handler): Call it instead of printf, to avoid
14249         excessive stack usage by printf.
14250         (do_test): Restore SIGSEGV, SIGBUS default handlers.
14251
14252 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14253
14254         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
14255         (prio_inherit_missing): Remove define.
14256         * sysdeps/unix/sysv/linux/arm/kernel-features.h
14257         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14258         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
14259         Likewise.
14260         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
14261         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14262         * sysdeps/unix/sysv/linux/mips/kernel-features.h
14263         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14264         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14265         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14266
14267 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14268
14269         [BZ #19670]
14270         [BZ #19672]
14271
14272         * io/test-lfs.c (do_prepare): Use xmalloc.
14273         * io/tst-fcntl.c (do_prepare): Likewise.
14274         * libio/tst-fopenloc.c (do_bz17916): Likewise.
14275         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
14276         * login/tst-utmp.c (do_prepare): Likewise.
14277         * posix/tst-exec.c (do_prepare): Likewise.
14278         * posix/tst-pathconf.c (prepare): Likewise.
14279         * posix/tst-spawn.c (do_prepare): Likewise.
14280         * posix/tst-truncate.c (do_prepare): Likewise.
14281         * rt/tst-aio.c (do_prepare): Likewise.
14282         * rt/tst-aio64.c (do_prepare): Likewise.
14283
14284 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14285
14286         [BZ #20237]
14287         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
14288         (get*ent): Set entidx to NULL during initialization.  If entidx is
14289         NULL, start iteration from the beginning.
14290
14291 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14292
14293         * malloc/malloc.c (musable): Return correct size for dumped fake
14294         mmapped chunk.
14295
14296 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14297
14298         [BZ #20222]
14299         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
14300         (_IO_cookie_write): Likewise.
14301         (_IO_cookie_seek): Likewise.
14302         (_IO_cookie_close): Likewise.
14303         (_IO_old_cookie_seek): Likewise.
14304         (set_callbacks): New function.
14305         (_IO_cookie_init): Call set_callbacks to copy callbacks.
14306
14307 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
14308
14309         * locale/programs/localedef.c (oldstyle_tables): Remove.
14310         * locale/programs/localedef.h (oldstyle_tables): Likewise.
14311
14312 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
14313
14314         [BZ #20240]
14315         * math/Makefile (CFLAGS-s_modf.c): New variable.
14316         (CFLAGS-s_modff.c): Likewise.
14317         (CFLAGS-s_modfl.c): Likewise.
14318         * math/libm-test.inc (modf_test_data): Add sNaN tests.
14319
14320 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
14321
14322         [BZ #20215]
14323         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
14324         [!__GNUC_PREREQ (3,2)]: Likewise.
14325
14326 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
14327
14328         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
14329         (msghdr.msg_controllen): Likewise.
14330         (cmsghdr.cmsg_len): Likewise.
14331         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
14332         ptw-oldsendmsg.
14333         (CFLAGS-oldrecvmsg.c): Remove rule.
14334         (CFLAGS-oldsendmsg.c): Likewise.
14335         (CFLAGS-recvmsg.c): Add rule.
14336         (CFLAGS-sendmsg.c): Likewise.
14337         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
14338         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
14339         (CFLAGS-recvmsg.c): Remove rule.
14340         (CFLAGS-sendmsg.c): Likewise.
14341         (CFLAGS-oldrecvmsg.c): Likewise.
14342         (CFLAGS-oldsendmsg.c): Likewise.
14343         (CFLAGS-recvmmsg.c): Likewise.
14344         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
14345         to kernel defined interfaces.
14346         (msghdr.msg_controllen): Likewise.
14347         (cmsghdr.cmsg_len): Likewise.
14348         (msghdr.__glibc_reserved1): Remove member.
14349         (msghdr.__glibc_reserved2): Likewise.
14350         (cmsghdr.__glibc_reserved1): Likewise.
14351         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
14352         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
14353         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
14354         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
14355         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
14356         version.
14357         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
14358         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
14359         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
14360         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
14361         Remove recvmsg and sendmsg.
14362         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
14363         Likewise.
14364         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
14365         Likewise.
14366         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
14367         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
14368         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
14369         Likewise.
14370         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
14371         Likewise.
14372         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
14373         [libc] (GLIBC_2.24): Likewise.
14374         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
14375         Likewise.
14376         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
14377         Likewise.
14378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
14379         [libc] (GLIBC_2.24): Likewise.
14380         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
14381         Likewise.
14382         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
14383         Likewise.
14384         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
14385         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
14386         Likewise.
14387         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
14388         Likewise.
14389         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
14390         Likewise.
14391         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
14392         Likewise.
14393         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
14394         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
14395         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
14396         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
14397         version for {recv,send,recm,sendm}msg.
14398         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14399         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14400         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14401         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14402         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14403         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14404         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14405         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14406         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14407         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14408         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14409         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14411         Likewise.
14412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14413         Likewise.
14414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14416         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14417         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14418         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14419         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14420         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14421         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14422         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
14423         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
14424         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14425         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14426         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14427
14428 2016-06-10  Florian Weimer  <fweimer@redhat.com>
14429
14430         [BZ #19564]
14431         Remove __malloc_initialize_hook from the API.
14432         * malloc/malloc.h (__malloc_initialize_hook): Remove.
14433         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
14434         #pragma GCC poison.
14435         * malloc/malloc-hooks.h: New file.
14436         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
14437         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
14438         (old__malloc_initialize_hook): Rename from
14439         __malloc_initialize_hook to evade poisoning.  Turn into compat
14440         symbol.
14441         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
14442         __malloc_initialize_hook.
14443         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
14444         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
14445         * manual/memory.texi (Hooks for Malloc): Remove
14446         __malloc_initialize_hook.  Adjust hook example.
14447
14448 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
14449
14450         [BZ #20235]
14451         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
14452         itself.
14453         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
14454         * math/libm-test.inc (log2_test_data): Add sNaN tests.
14455
14456         [BZ #20234]
14457         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
14458         infinity or NaN input to itself.
14459
14460         [BZ #20233]
14461         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
14462         to itself.
14463
14464         [BZ #20232]
14465         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
14466         itself.
14467
14468 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
14469
14470         * sysdeps/x86_64/start.S (_start): Always indirect branch to
14471         __libc_start_main via GOT.
14472
14473 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
14474
14475         * sysdeps/x86_64/memcopy.h: New file.
14476         * sysdeps/x86_64/wordcopy.c: Likewise.
14477
14478 2016-06-09  Florian Weimer  <fweimer@redhat.com>
14479
14480         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
14481         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
14482         <cstdlib>.
14483         (optimization_barrier): New.
14484         (do_test): Use it.  Call quick_exit in the global namespace.
14485         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
14486         instead of <cstdlib>, <thread>.
14487         (optimization_barrier): New.
14488         (non_main_thread): Adjust declaration.  Call optimization_barrier.
14489         Call quick_exit in the global namespace.
14490         (do_test): Call optimization_barrier.  Use pthread_create,
14491         pthread_join instead of std::thread.
14492
14493 2016-06-09  Andreas Schwab  <schwab@suse.de>
14494
14495         [BZ #19755]
14496         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
14497         new entries in auto-propagate mode.
14498         * nscd/grpcache.c (cache_addgr): Likewise.
14499
14500 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
14501
14502         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
14503         New functions.
14504         (add_temp_file): Use them.
14505
14506 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
14507
14508         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
14509
14510 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
14511
14512         [BZ #20229]
14513         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
14514         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
14515         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
14516
14517         [BZ #20228]
14518         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
14519         itself.
14520         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
14521         * math/libm-test.inc (log10_test_data): Add sNaN tests.
14522
14523         [BZ #20227]
14524         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
14525         itself.
14526         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
14527         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
14528         * math/libm-test.inc (log_test_data): Add sNaN tests.
14529
14530         [BZ #20226]
14531         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
14532         itself.
14533         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
14534         * math/libm-test.inc (exp_test_data): Add sNaN tests.
14535         (exp10_test_data): Likewise.
14536         (expm1_test_data): Likewise.
14537
14538         [BZ #20225]
14539         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
14540         itself.
14541         * math/s_ldexpf.c (__ldexpf): Likewise.
14542         * math/s_ldexpl.c (__ldexpl): Likewise.
14543         * math/w_scalbln.c (__w_scalbln): Likewise.
14544         * math/w_scalblnf.c (__w_scalblnf): Likewise.
14545         * math/w_scalblnl.c (__w_scalblnl): Likewise.
14546         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
14547         (scalbln_test_data): Likewise.
14548
14549         [BZ #20224]
14550         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
14551         argument to itself.
14552         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
14553
14554 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14555
14556         [BZ #19776]
14557         * sysdeps/x86_64/memcpy.S: Make it dummy.
14558         * sysdeps/x86_64/mempcpy.S: Likewise.
14559         * sysdeps/x86_64/memmove.S: New file.
14560         * sysdeps/x86_64/memmove_chk.S: Likewise.
14561         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
14562         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
14563         * sysdeps/x86_64/memmove.c: Removed.
14564         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
14565         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
14566         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
14567         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
14568         Likewise.
14569         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14570         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14571         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
14572         memcpy-sse2-unaligned, memmove-avx-unaligned,
14573         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
14574         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14575         (__libc_ifunc_impl_list): Replace
14576         __memmove_chk_avx512_unaligned_2 with
14577         __memmove_chk_avx512_unaligned.  Remove
14578         __memmove_chk_avx_unaligned_2.  Replace
14579         __memmove_chk_sse2_unaligned_2 with
14580         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
14581         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
14582         with __memmove_avx512_unaligned.  Replace
14583         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
14584         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
14585         with __memcpy_chk_avx512_unaligned.  Remove
14586         __memcpy_chk_avx_unaligned_2.  Replace
14587         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
14588         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
14589         Replace __memcpy_avx512_unaligned_2 with
14590         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
14591         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
14592         with __mempcpy_chk_avx512_unaligned.  Remove
14593         __mempcpy_chk_avx_unaligned_2.  Replace
14594         __mempcpy_chk_sse2_unaligned_2 with
14595         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
14596         Replace __mempcpy_avx512_unaligned_2 with
14597         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
14598         Replace __mempcpy_sse2_unaligned_2 with
14599         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
14600         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
14601         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
14602         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
14603         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
14604         (ENTRY): Removed.
14605         (END): Likewise.
14606         (ENTRY_CHK): Likewise.
14607         (libc_hidden_builtin_def): Likewise.
14608         Don't include ../memcpy.S.
14609         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
14610         __memcpy_chk_avx512_unaligned_erms and
14611         __memcpy_chk_avx512_unaligned.  Use
14612         __memcpy_chk_avx_unaligned_erms and
14613         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
14614         Default to __memcpy_chk_sse2_unaligned.
14615         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14616         Change function suffix from unaligned_2 to unaligned.
14617         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
14618         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
14619         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
14620         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
14621         (ENTRY): Removed.
14622         (END): Likewise.
14623         (ENTRY_CHK): Likewise.
14624         (libc_hidden_builtin_def): Likewise.
14625         Don't include ../mempcpy.S.
14626         (mempcpy): New.  Add a weak alias.
14627         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
14628         __mempcpy_chk_avx512_unaligned_erms and
14629         __mempcpy_chk_avx512_unaligned.  Use
14630         __mempcpy_chk_avx_unaligned_erms and
14631         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
14632         Default to __mempcpy_chk_sse2_unaligned.
14633
14634 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14635
14636         [BZ #19881]
14637         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
14638         into ...
14639         * sysdeps/x86_64/memset.S: This.
14640         (__bzero): Removed.
14641         (__memset_tail): Likewise.
14642         (__memset_chk): Likewise.
14643         (memset): Likewise.
14644         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
14645         defined.
14646         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
14647         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
14648         (__memset_zero_constant_len_parameter): Check SHARED instead of
14649         PIC.
14650         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
14651         memset-avx2 and memset-sse2-unaligned-erms.
14652         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14653         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
14654         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
14655         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14656         (__bzero): Enabled.
14657         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
14658         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
14659         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
14660         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
14661         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
14662         (memset): Removed.
14663         (__memset_chk): Likewise.
14664         (MEMSET_SYMBOL): New.
14665         (libc_hidden_builtin_def): Replace __memset_sse2 with
14666         __memset_sse2_unaligned.
14667         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
14668         __memset_chk_sse2 and __memset_chk_avx2 with
14669         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
14670         Use __memset_chk_sse2_unaligned_erms or
14671         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
14672         __memset_chk_avx512_unaligned_erms and
14673         __memset_chk_avx512_unaligned.
14674
14675 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14676
14677         * math/gen-auto-libm-test.c (fp_format_desc): remove
14678         suffix member.
14679         (output_generic_value): Remove usage of suffix member,
14680         and the resulting unuse of the fp_format argument.
14681         (output_for_one_input_case): Remove unused fp_format
14682         parameter.
14683
14684         * math/auto-libm-test-out: Regenerate.
14685
14686         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
14687         usage with TEST_COND_ibm128.
14688         (TEST_COND_flt_32): Remove.
14689         (TEST_COND_dbl_64): Remove.
14690         (TEST_COND_ldbl_96_intel): Remove.
14691         (TEST_COND_ldbl_96_m68k): Remove.
14692         (TEST_COND_ldbl_128): Remove.
14693
14694 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14695
14696         * auto-libm-test-in:
14697         Replace flt-32 usage with binary32.
14698         Replace dbl-64 usage with binary64.
14699         Replace ldbl-intel-96 usage with intel96.
14700         Replace ldbl-m68k-96 usage with m68k96.
14701         Replace ldbl-128ibm usage with ibm128.
14702         Replace ldbl-128 usage with binary128.
14703
14704         * auto-libm-test-out: Regenerate.
14705
14706 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14707
14708         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
14709         (parse_ulps): Dynamically generate type name matching
14710         string from all_floats.
14711         (get_ulps): Generate the ulps as an array instead.
14712         (output_ulps): Dynamically compose the type based
14713         on the number of supported formats, and print
14714         the indices as type specific helper macros.
14715
14716         * math/libm-test.inc: Remove comment about CHOOSE.
14717         (ulp_data): Generate the type in libm-test-ulps.h.
14718         (ULP_IDX): New macro.
14719         (find_ulps): Update usage of max_ulp.
14720
14721         * math/test-double-vlen2.h (CHOOSE): Remove.
14722         * math/test-double-vlen4.h (CHOOSE): Likewise.
14723         * math/test-double-vlen8.h (CHOOSE): Likewise.
14724         * math/test-float.c (CHOOSE): Likewise.
14725         * math/test-float-finite.c (CHOOSE): Likewise.
14726         * math/test-double.c (CHOOSE): Likewise.
14727         * math/test-double-finite.c (CHOOSE): Likewise.
14728         * math/test-idouble.c (CHOOSE): Likewise.
14729         * math/test-ifloat.c (CHOOSE): Likewise.
14730         * math/test-ildoubl.c (CHOOSE): Likewise.
14731         * math/test-ldouble-finite.c (CHOOSE): Likewise.
14732         * math/test-ldouble.c (CHOOSE): Likewise.
14733
14734         * math/test-float.h (TEST_FLOAT): Remove.
14735         * math/test-double.h (TEST_DOUBLE): Likewise.
14736         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
14737
14738 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14739
14740         * math/gen-libm-test.pl: (apply_lit): New subroutine.
14741         (parse_args): Strip C suffix from floating point literals
14742         typed with 'f' and wrap them with LIT().
14743
14744         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
14745         (test_ff_f_data_nexttoward): Rename to
14746         (test_fj_f_data): New struct.
14747         (nexttoward_test_data): Relabel tests as
14748         TEST_fj_f instead of TEST_ff_f.
14749
14750 2016-06-08  Florian Weimer  <fweimer@redhat.com>
14751
14752         Emacs bug 23726.
14753         * malloc/malloc.c (dumped_main_arena_start): Update comment.
14754         (__libc_realloc): Correct size computation for dumped fake mmapped
14755         chunks.
14756
14757 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
14758
14759         [BZ #20219]
14760         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
14761         to itself.
14762         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
14763
14764         [BZ #20218]
14765         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
14766         to itself.
14767         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
14768
14769 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
14770
14771         [BZ #20195]
14772         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
14773         check to ...
14774         (init_cpu_features): Here.
14775
14776 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
14777
14778         [BZ #20214]
14779         * sysdeps/unix/sysv/linux/bits/in.h
14780         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
14781          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
14782         Define to 1.
14783         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
14784          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
14785         Define to 0.
14786         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
14787         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
14788
14789 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
14790
14791         [BZ #20198]
14792         * stdlib/Makefile (tests): Add tst-quick_exit, and
14793         tst-thread-quick_exit.
14794         [ifeq ($(have-cxx-thread_local),yes)]
14795         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
14796         (CFLAGS-tst-thread-quick_exit.o): Likewise.
14797         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
14798         (LDLIBS-tst-thread-quick_exit): Likewise.
14799         [ifneq ($(have-cxx-thread_local),yes)]
14800         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
14801         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
14802         If run_dtors is true call __call_tls_dtors.
14803         (exit): Call __run_exit_handlers with run_dtors set to true.
14804         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
14805         definition.
14806         * stdlib/quick_exit.c (quick_exit): Remove function.
14807         (__new_quick_exit): New function.
14808         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
14809         function.
14810         * stdlib/tst-quick_exit.cc: New file.
14811         * stdlib/tst-thread-quick_exit.cc: New file.
14812         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
14813         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
14814         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
14815         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
14816         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
14817         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
14818         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
14819         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
14820         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
14821         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
14822         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
14823         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
14824         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
14825         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
14826         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
14827         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
14828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
14829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
14830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
14831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
14832         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
14833         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
14834         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
14835         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
14836         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
14837         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
14838         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
14839         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
14840         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
14841         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
14842
14843 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
14844
14845         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
14846         a typo in comments.
14847
14848 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
14849
14850         [BZ #20213]
14851         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
14852         argument to itself.
14853         * math/libm-test.inc (asin_test_data): Add sNaN tests.
14854
14855 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14856
14857         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
14858         required flags.
14859         (CFLAGS-pwritev64.c): Likewise.
14860         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
14861         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
14862         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
14863         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14864         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likewise.
14865         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
14866         syscall from auto-generation.
14867         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
14868         [WORDSIZE == 64] (pwritev64): Remove macro.
14869         [!PWRITEV] (PWRITEV): Likewise.
14870         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
14871         [!PWRITEV] (PWRITE): Likewise.
14872         [!PWRITEV] (OFF_T): Likewise.
14873         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
14874         (LO_HI_LONG): Remove macro.
14875         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
14876         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
14877         (PWRITEV): Remove macro.
14878         (PWRITEV_REPLACEMENTE): Likewise.
14879         (PWRITE): Likewise.
14880         (OFF_T): Likewise.
14881         (pwritev64): New function.
14882         * nptl/tst-cancel4.c (tf_writev): Add test.
14883
14884         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
14885         required flags.
14886         (CFLAGS-preadv64.c): Likewise.
14887         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
14888         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
14889         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
14890         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
14891         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likewise.
14892         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
14893         syscall from auto-generation.
14894         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
14895         [WORDSIZE == 64] (preadv64): Remove macro.
14896         [!PREADV] (PREADV): Likewise.
14897         [!PREADV] (PREADV_REPLACEMENT): Likewise.
14898         [!PREADV] (PREAD): Likewise.
14899         [!PREADV] (OFF_T): Likewise.
14900         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
14901         (LO_HI_LONG): Remove macro.
14902         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
14903         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
14904         (PREADV): Remove macro.
14905         (PREADV_REPLACEMENTE): Likewise.
14906         (PREAD): Likewise.
14907         (OFF_T): Likewise.
14908         (preadv64): New function.
14909         * nptl/tst-cancel4.c (tf_preadv): Add test.
14910
14911 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
14912
14913         [BZ #20212]
14914         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
14915         argument to itself.
14916         * math/libm-test.inc (acos_test_data): Add sNaN tests.
14917
14918 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14919
14920         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
14921         New symbol defined as libc_hidden_def.
14922         (strcasestr): Became a weak alias to __strcasestr.
14923         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
14924         according to multi-arch support.  Move __stpncpy hidden
14925         definition from here to...
14926         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
14927         symbol stpncpy.
14928         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
14929         libc_hidden_builtin_def.
14930         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
14931         memset symbol to use when multi-arch support is available.
14932
14933 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
14934
14935         * dlfcn/tst-rec-dlopen.c: Include string.h.
14936
14937 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14938
14939         * manual/install.texi: Remove mention of --without-tls
14940         * INSTALL: Regenerate.
14941
14942 2016-06-05  Florian Weimer  <fweimer@redhat.com>
14943
14944         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
14945         Remove.
14946         (call_function, interposed_malloc_called): New variables.
14947         (malloc): New function.
14948         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
14949         and clear call_function as needed.
14950
14951 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
14952
14953         * include/wchar.h (__wmemset): Use __typeof.
14954
14955 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
14956
14957         * include/wchar.h (__wmemset): Declare function without typeof.
14958
14959 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
14960
14961         [BZ #20205]
14962         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
14963         exponent when incrementing negative subnormal with low mantissa
14964         word zero.
14965         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
14966         Add another test.
14967
14968 2016-06-03  Florian Weimer  <fweimer@redhat.com>
14969
14970         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
14971         __wmemset instead of wmemset.
14972
14973 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
14974
14975         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
14976         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
14977         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
14978         __USE_KERNEL_IPV6_DEFS to 0.
14979         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
14980         Update comment.
14981
14982 2016-06-01  Florian Weimer  <fweimer@redhat.com>
14983
14984         [BZ #19861]
14985         Do not use IFUNC resolver with potentially unrelocated symbol.
14986         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
14987         (DEFINE_FORK): Remove macro and inline definition.
14988         (fork_alias): Renamed from fork_ifunc.
14989         (__fork_alias): Renamed from __fork_ifunc.
14990
14991 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
14992
14993         [BZ 19653]
14994         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
14995         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
14996
14997 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14998
14999         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
15000         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
15001         i386-linux-gnu).
15002         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
15003         Set to no.
15004         * sysdeps/mach/hurd/configure: Refresh.
15005
15006 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15007
15008         [BZ #20178]
15009         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
15010         on failure instead of exit.
15011
15012 2016-05-30  Roland McGrath  <roland@hack.frob.com>
15013
15014         [BZ #3629]
15015         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
15016         of POSIX.1-2008.
15017
15018 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15019
15020         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
15021           Use PLT entry for calling _hurd_self_sigstate.
15022
15023 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15024
15025         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
15026         available logical processors with SMT level type sharing L2
15027         cache for Intel processors.
15028
15029 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15030
15031         [BZ #20160]
15032         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
15033         argument to itself before returning the result.
15034         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
15035         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
15036         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
15037         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
15038         Likewise.
15039         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
15040         Likewise.
15041         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
15042         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
15043         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
15044         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
15045         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
15046         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
15047
15048         [BZ #20160]
15049         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
15050         argument to itself before returning the result.
15051         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
15052         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
15053         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
15054         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
15055         Likewise.
15056         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
15057         Likewise.
15058         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
15059         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
15060         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
15061         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
15062         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
15063         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
15064
15065 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15066
15067         * libm-test.inc: Replace usage of M_El with
15068         (lit_e): New macro.
15069
15070 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15071
15072         * libm-test.inc: Replace usage of M_PI_4l with
15073         (lit_pi_4_d): New macro.
15074
15075 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15076
15077         * libm-test.inc: Replace usage of M_PIl with
15078         (lit_pi): New macro.
15079
15080 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15081
15082         * libm-test.inc: Replace usage of M_PI2l with
15083         (lit_pi_2_d): New macro.
15084
15085         * math/test-double.h (LITM): New macro.
15086         * math/test-float.h (LITM): Likewise.
15087         * math/test-ldouble.h (LITM): Likewise.
15088
15089 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15090
15091         * libm-test.inc (M_PI_34l): Rename to
15092         (lit_pi_3_m_4_d): New Macro.
15093         (M_PI_34_LOG10El): Rename to
15094         (lit_pi_3_m_4_ln10_m_d): New Macro.
15095         (M_PI2_LOG10El): Rename to
15096         (lit_pi_2_ln10_m_d):  New Macro.
15097         (M_PI4_LOG10El): Rename to
15098         (lit_pi_4_ln10_m_d):  New Macro.
15099         (M_PI_LOG10El): Rename to
15100         (lit_pi_ln10_d):  New Macro.
15101
15102 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15103
15104         [BZ #20157]
15105         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
15106         determine whether to negate low half if [_ARCH_PPCGR], and integer
15107         comparison otherwise.
15108         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
15109         determine whether to negate low half.
15110
15111         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
15112         (NO_TEST_INLINE_DOUBLE): Likewise.
15113         (TEST_COND_x86_64): Likewise.
15114         (TEST_COND_x86): Likewise.
15115         (M_PI_6l): Likewise.
15116
15117 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15118
15119         * math/libm-test.inc:
15120         (TEST_FLOAT): Change usage to TEST_COND_binary32.
15121         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
15122         (TEST_LDOUBLE): Update usage to evaluate as true if
15123         the guarded tests match the property being tested.
15124         (LDBL_MAX_EXP): Change to MAX_EXP.
15125         (LDBL_MIN_EXP): Change to MIN_EXP.
15126         (LDBL_MANT_DIG): Change to MANT_DIG, except for
15127         nexttoward tests.
15128
15129 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15130
15131         * math/libm-test.inc:
15132         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
15133         (TYPE_MIN): Likewise.
15134         (TYPE_TRUE_MIN): Likewise.
15135         (TYPE_MAX): Likewise.
15136         (MIN_EXP): Likewise.
15137         (MAX_EXP): Likewise.
15138         (MANT_DIG): Likewise.
15139
15140         (FSTR_MAX): New macro.
15141         (__CONCATX): Likewise.
15142         (QTYPE_STR): Likewise.
15143         (TEST_COND_binary32): Likewise.
15144         (TEST_COND_binary64): Likewise.
15145         (TEST_COND_binary128): Likewise.
15146         (TEST_COND_ibm128): Likewise.
15147         (TEST_COND_intel96): Likewise.
15148         (TEST_COND_m68k96): Likewise.
15149
15150         (TEST_COND_flt_32): Redefine as equivalent format test macro.
15151         (TEST_COND_dbl_64): Likewise.
15152         (TEST_COND_ldbl_96_intel): Likewise.
15153         (TEST_COND_ldbl_96_m68k): Likewise.
15154         (TEST_COND_ldbl_128): Likewise.
15155         (TEST_COND_ldbl_128ibm): Likewise.
15156
15157         (plus_zero): Redefine using LIT macro.
15158         (minus_zero): Likewise.
15159         (plus_infty): Redefine as (INF).
15160         (minux_infty): Redefine as (-INF).
15161         (max_value): Redefine as TYPE_MAX.
15162         (min_value): Redefine as TYPE_MIN.
15163         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
15164
15165         (print_float): Refactor to use snprintf to convert FLOAT values
15166         to string. This brings it closer to dropin replacement of strtof
15167         for the TS 18661 defined types.
15168         (update_stats): Likewise.
15169         (print_complex_function_ulps): Likewise.
15170         (print_max_error): Likewise.
15171         (print_complex_max_error): Likewise.
15172         (check_float_internal): Likewise.
15173
15174         * math/test-float.h (PREFIX): New macro.
15175         (LIT): Likewise.
15176         (TYPE_STR): Likewise.
15177         (FTOSTR): Likewise.
15178
15179         * math/test-double.h (PREFIX): New macro.
15180         (LIT): Likewise.
15181         (TYPE_STR): Likewise.
15182         (FTOSTR): Likewise.
15183
15184         * math/test-ldouble.h (PREFIX): New macro.
15185         (LIT): Likewise.
15186         (TYPE_STR): Likewise.
15187         (FTOSTR): Likewise.
15188
15189 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15190
15191         [BZ #20156]
15192         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
15193         to itself when zero or not finite.
15194         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
15195         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
15196         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
15197         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
15198
15199 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
15200
15201         [BZ #20153]
15202         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
15203         x * x + x for infinities and NaNs.
15204
15205         [BZ #20151]
15206         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
15207         argument to itself before returning result.
15208         (__ieee754_y0l): Likewise.
15209         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
15210         (__ieee754_y1l).
15211
15212         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
15213         (atan_test_data): Likewise.
15214         (ceil_test_data): Likewise.
15215         (cos_test_data): Likewise.
15216         (cosh_test_data): Likewise.
15217         (erf_test_data): Likewise.
15218         (exp2_test_data): Likewise.
15219         (fabs_test_data): Likewise.
15220         (floor_test_data): Likewise.
15221         (ilogb_test_data): Likewise.
15222         (j0_test_data): Likewise.
15223         (j1_test_data): Likewise.
15224         (jn_test_data): Likewise.
15225         (lgamma_test_data): Likewise.
15226         (lrint_test_data): Likewise.
15227         (llrint_test_data): Likewise.
15228         (logb_test_data): Likewise.
15229         (lround_test_data): Likewise.
15230         (llround_test_data): Likewise.
15231         (nearbyint_test_data): Likewise.
15232         (rint_test_data): Likewise.
15233         (round_test_data): Likewise.
15234         (sin_test_data): Likewise.
15235         (sincos_test_data): Likewise.
15236         (sinh_test_data): Likewise.
15237         (sqrt_test_data): Likewise.
15238         (tan_test_data): Likewise.
15239         (tanh_test_data): Likewise.
15240         (tgamma_test_data): Likewise.
15241         (trunc_test_data): Likewise.
15242         (y0_test_data): Likewise.
15243         (y1_test_data): Likewise.
15244         (yn_test_data): Likewise.
15245
15246         * math/libm-test.inc: Update comment about NaN testing.
15247         (TEST_SNAN): New macro.
15248         (snan_value): Likewise.
15249         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
15250         (fpclassify_test_data): Add sNaN tests.
15251         (isfinite_test_data): Likewise.
15252         (isinf_test_data): Likewise.
15253         (isnan_test_data): Likewise.
15254         (isnormal_test_data): Likewise.
15255         (issignaling_test_data): Likewise.
15256         (signbit_test_data): Likewise.
15257         * math/gen-libm-test.pl (%beautify): Add snan_value.
15258         (show_exceptions): Add argument $test_snan.
15259         (parse_args): Handle snan_value as non-finite.  Update call to
15260         show_exceptions.
15261         * math/Makefile (libm-test-no-inline-cflags): Add
15262         -fsignaling-nans.
15263
15264 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15265
15266         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
15267         (CFLAGS-oldsendmsg.c): Add rule.
15268         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
15269         Correct recvmsg symbol name.
15270         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
15271         Likewise.
15272
15273 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15274
15275         * sysdeps/unix/sysv/linux/Makefile
15276         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
15277         oldsendmmsg.
15278         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
15279         sendmmsg.
15280         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15281         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15282         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15283         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15285         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15286         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15287         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15288         Likewise.
15289         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15290         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
15291         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
15292         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
15293         iovlen and controllen fields to adjust to POSIX specification.
15294         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
15295
15296         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
15297         and change to correct expected type.
15298         (msghdr.msg_controllen): Likewise.
15299         (cmsghdr.cmsg_len): Likewise.
15300         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
15301         expected POSIX assumption about the size.
15302         (msghdr.msg_controllen): Likewise.
15303         (msghdr.__glibc_reserved1): Likewise.
15304         (msghdr.__glibc_reserved2): Likewise.
15305         (cmsghdr.cmsg_len): Likewise.
15306         (cmsghdr.__glibc_reserved1): Likewise.
15307         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
15308         Add ptw-oldrecvmsg and ptw-oldsendmsg.
15309         (CFLAGS-sendmsg.c): Remove rule.
15310         (CFLAGS-recvmsg.c): Likewise.
15311         (CFLAGS-oldsendmsg.c): Add rule.
15312         (CFLAGS-oldrecvmsg.c): Likewise.
15313         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
15314         recvmsg and sendmsg.
15315         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
15316         Likewise.
15317         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
15318         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
15319         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
15320         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
15321         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
15322         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
15323         Likewise.
15324         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
15325         Likewise.
15326         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
15327         Likewise.
15328         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
15329         Likewise.
15330         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
15331         Likewise.
15332         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
15333         Likewise.
15334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
15335         (GLIBC_2.24): Likewise.
15336         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
15337         Likewise.
15338         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
15339         Likewise.
15340         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
15341         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
15342         Likewise.
15343         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
15344         Likewise.
15345         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
15346         Likewise.
15347         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
15348         (GLIBC_2.24): Likewise.
15349         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
15350         Likewise.
15351         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
15352         Likewise.
15353         * sysdeps/unix/sysv/linux/Makefile
15354         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
15355         (CFLAGS-sendmsg.c): Add rule.
15356         (CFLAGS-recvmsg.c): Likewise.
15357         (CFLAGS-oldsendmsg.c): Likewise.
15358         (CFLAGS-oldrecvmsg.c): Likewise.
15359         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
15360         initialization.
15361         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
15362         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
15363         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
15364         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
15365         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
15366         iovlen and controllen fields to adjust to POSIX specification.
15367         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
15368         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
15369         added recvmsg and sendmsg.
15370         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15371         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15372         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15373         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15374         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15375         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15376         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15377         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15378         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15379         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15380         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15381         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
15382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15383         Likewise.
15384         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
15385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15386         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15387         Likewise.
15388         Likewise.
15389         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15390         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15391         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15392         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15393         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15394         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15395         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
15396         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15397         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
15398         Likewise.
15399         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15400         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15401
15402         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
15403         from auto-generation.
15404         (sendmsg): Likewise.
15405         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
15406         (sendmsg): Likewise.
15407         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
15408         (sendmsg): Likewise.
15409         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
15410         (sendmsg): Likewise.
15411         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
15412         (sendmsg): Likewise.
15413         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
15414         (sendmsg): Likewise.
15415         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
15416         Likewise.
15417         (sendmsg): Likewise.
15418         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
15419         (sendmsg): Likewise.
15420         * sysdeps/unix/sysv/linux/i386/kernel-features.h
15421         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15422         Remove.
15423         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15424         Likewise.
15425         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15426         Undefine.
15427         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15428         Likewise.
15429         * sysdeps/unix/sysv/linux/kernel-features.h
15430         (__ASSUME_SENDMSG_SYSCALL): Define.
15431         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15432         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
15433         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15434         Remove.
15435         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15436         Likewise.
15437         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15438         Undefine.
15439         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15440         Likewise.
15441         * sysdeps/unix/sysv/linux/s390/kernel-features.h
15442         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15443         Remove.
15444         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15445         Likewise.
15446         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15447         Undefine.
15448         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15449         Likewise.
15450         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15451         (__ASSUME_SENDMSG_SYSCALL): Undefine.
15452         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15453         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15454         (__ASSUME_SENDMSG_SYSCALL): Likewise.
15455         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15456         * sysdeps/unix/sysv/linux/sh/kernel-features.h
15457         (__ASSUME_SENDMSG_SYSCALL): Likewise.
15458         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15459
15460 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15461
15462         * stdlib/gen-tst-strtod-round.c: Add backslash to
15463         compile command in comment.
15464         (printfp): Remove the literal suffix, and define an infinite
15465         value as INF to avoid expansion clash with INFINITY.
15466         (round_str): Remove the literal suffix.
15467         (round_for_all): Likewise, remove the now duplicate ldbl-64
15468         entry, and remove some magic constants.
15469
15470         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
15471         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
15472         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
15473         (_CONCAT): New macro.
15474         (CONCAT): Likewise.
15475         (CHOOSE_ld): Likewise.
15476         (CHOOSE_f): Likewise.
15477         (CHOOSE_d): Likewise.
15478         (FTYPE_MEMBER): Likewise.
15479         (BOOL_MEMBER): Likewise.
15480         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
15481         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
15482         (_XNTRY): Likewise.
15483         (XNTRY): Likewise.
15484         (_ENTRY): Likewise.
15485         (ENTRY): Likewise.
15486         (test_exactness): Generate members via macro.
15487         (test_results): Likewise.
15488         (test): Update members.
15489         (TEST): Redefine using new macros.
15490         (INF): New macro.
15491         (fetestmodes): New structure.
15492         (do_test): Refactor to be type generic.
15493         (test_in_one_mode): Refactor duplicate code into
15494         (GEN_ONE_TEST): New macro.
15495
15496         * stdlib/tst-strtod-round-data.h: Regenerate.
15497
15498         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
15499         Extend to pass additional arbitrary parameters to
15500         generators.
15501
15502 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
15503
15504         [BZ #15479]
15505         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
15506         floating-point state after first floating-point operation on
15507         input.  Restore full floating-point state instead of just rounding
15508         mode.
15509         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
15510         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
15511         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
15512         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
15513         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
15514
15515         [BZ #15479]
15516         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
15517         floating-point state after first floating-point operation on
15518         input.  Restore full floating-point state instead of just rounding
15519         mode.
15520         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
15521         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
15522         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
15523         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
15524         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
15525
15526 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15527
15528         [BZ #19727]
15529         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
15530         valid high surrogate.
15531         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
15532         of an utf16 surrogate.
15533         * iconv/gconv_simple.c (BODY): Likewise.
15534         * iconvdata/bug-iconv12.c: New file.
15535         * iconvdata/Makefile (tests): Add bug-iconv12.
15536
15537 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15538
15539         [BZ #19726]
15540         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
15541         outptrp in case of an illegal input.
15542         * iconv/tst-iconv6.c: New file.
15543         * iconv/Makefile (tests): Add tst-iconv6.
15544
15545 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15546
15547         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
15548         an error in case of a value in range of an utf16 low surrogate.
15549
15550 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15551
15552         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
15553         an error in case of a value in range of an utf16 low surrogate.
15554
15555 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15556
15557         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
15558         Move to ...
15559         * sysdeps/s390/Makefile: ... here.
15560         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
15561         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
15562         (BRANCH_ON_COUNT): New define.
15563         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
15564         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
15565         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
15566         run on s390-32, too.
15567         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
15568         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
15569         run on s390-32, too.
15570         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
15571         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
15572         run on s390-32, too.
15573
15574 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15575
15576         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
15577         etf3eh or new vector loop-variant.
15578
15579 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15580
15581         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
15582         etf3eh or new vector loop-variant.
15583
15584 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15585
15586         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
15587         or new vector loop-variant.
15588
15589 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15590
15591         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
15592         Rename to TR_LOOP and usage of tr instead of troo instruction.
15593
15594 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15595
15596         * sysdeps/s390/multiarch/gconv_simple.c: New File.
15597         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
15598
15599 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15600
15601         * sysdeps/s390/multiarch/8bit-generic.c: New File.
15602         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
15603         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
15604         New override define.
15605         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
15606
15607 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15608
15609         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
15610         * sysdeps/s390/configure.ac: Add test for S390 vector register
15611         support in gcc.
15612         * sysdeps/s390/configure: Regenerated.
15613
15614 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15615
15616         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
15617         Install file from $(objpfx)gconv-modules.
15618         ($(objpfx)gconv-modules): Concatenate architecture specific file
15619         in variable sysdeps-gconv-modules and gconv-modules in src dir.
15620         * sysdeps/s390/gconv-modules: New file.
15621         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
15622         Deleted.
15623         ($(objpfx)gconv-modules-s390): Deleted.
15624         (sysdeps-gconv-modules): New variable.
15625
15626 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
15627
15628         [BZ #15479]
15629         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
15630         of immediate operand to rounding instruction.
15631         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
15632         Likewise.
15633         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
15634         Likewise.
15635         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
15636         Likewise.
15637
15638 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15639
15640         * math/libm-test.inc (MIN_EXP): Directly define as
15641         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
15642
15643 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15644
15645         * math/libm-test.inc (MANT_DIG): Directly define as
15646         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
15647
15648 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15649
15650         * stdlib/gen-tst-strtod-round.c (main):
15651           Change usage to more closely match the generated
15652           output.  Add usage and compilation instructions.
15653           (string_to_fp): Add and use FILE* parameter as
15654           output target.
15655           (print_fp): Likewise.
15656           (round_str): Likewise.
15657           (round_for_all): Likewise.
15658         * stdlib/tst-strtod-round.c (tests): Move into
15659         * stdlib/tst-strtod-round-data.h: New file.
15660
15661 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
15662
15663         [BZ #15479]
15664         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
15665         (__round): Do not force "inexact" exception.
15666         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
15667         variable.
15668         (__round): Do not force "inexact" exception.
15669         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
15670         (__roundf): Do not force "inexact" exception.
15671         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
15672         (__roundl): Do not force "inexact" exception.
15673         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
15674         (__roundl): Do not force "inexact" exception.
15675         * math/libm-test.inc (round_test_data): Do not allow spurious
15676         "inexact" exceptions.
15677
15678         [BZ #15479]
15679         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
15680         exception in comment.
15681         (huge): Remove variable.
15682         (__floor): Do not force "inexact" exception.
15683         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
15684         "inexact" exception in comment.
15685         (huge): Remove variable.
15686         (__floor): Do not force "inexact" exception.
15687         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
15688         exception in comment.
15689         (huge): Remove variable.
15690         (__floorf): Do not force "inexact" exception.
15691         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
15692         exception in comment.
15693         (huge): Remove variable.
15694         (__floorl): Do not force "inexact" exception.
15695
15696         [BZ #15479]
15697         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
15698         exception in comment.
15699         (huge): Remove variable.
15700         (__ceil): Do not force "inexact" exception.
15701         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
15702         "inexact" exception in comment.
15703         (huge): Remove variable.
15704         (__ceil): Do not force "inexact" exception.
15705         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
15706         (__ceilf): Do not force "inexact" exception.
15707         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
15708         exception in comment.
15709         (huge): Remove variable.
15710         (__ceill): Do not force "inexact" exception.
15711
15712 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15713
15714         * config.h.in (BIND_NOW): New.
15715         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
15716         * configure: Regenerated.
15717         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
15718         indirect branch via the GOT slot.
15719
15720 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15721
15722         [BZ #19765]
15723         * sysdeps/s390/mempcpy.S: New File.
15724         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
15725         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
15726         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
15727         Add mempcpy variants.
15728         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
15729         (memcpy): Adjust to be usable from mempcpy entry point.
15730         (__memcpy_mvcle): Likewise.
15731         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15732         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
15733         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
15734         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
15735         (__memcpy_z10): Likewise.
15736         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
15737
15738 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15739
15740         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
15741         Remove __GI_ symbol.
15742         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
15743         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
15744         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
15745         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
15746         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
15747         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
15748
15749 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15750
15751         * sysdeps/s390/s390-64/memcpy.S (memcpy):
15752         Use cghi instead of chi to compare 64bit value.
15753
15754 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15755
15756         * sysdeps/s390/s390-32/memcpy.S (memcpy):
15757         Jump to 1MB check before executing mvc-loop.
15758
15759 2016-05-24  Florian Weimer  <fweimer@redhat.com>
15760
15761         [BZ #6527]
15762         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
15763         unconditionally.
15764         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
15765
15766 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15767
15768         * stdlib/tst-strtod6.c (do_test): Use new type generic
15769         invocation of the test function.
15770         (test): Refactor into ...
15771         (TEST_STRTOD): New macro base function.
15772
15773 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15774
15775         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
15776         (TEST_STRTOD): New macro.
15777         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
15778
15779 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15780
15781         * stdlib/tst-strtod6.c (do_test): Use new type generic
15782         invocation of the test function.
15783         (test): Refactor into ...
15784         (TEST_STRTOD): New macro base function.
15785
15786 2016-05-23  Florian Weimer  <fweimer@redhat.com>
15787
15788         CVE-2016-4429
15789         [BZ #20112]
15790         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
15791         payload.
15792
15793 2016-05-23  Florian Weimer  <fweimer@redhat.com>
15794
15795         [BZ #20111]
15796         * bits/sockaddr.h (_SS_SIZE): Define.
15797         * bits/socket.h (_SS_SIZE): Remove.
15798         (_SS_PADSIZE): Adjust to account for all padding.
15799         (struct sockaddr_storage): Update comment.  Avoid implicit
15800         padding.
15801         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
15802         (_SS_PADSIZE): Adjust to account for all padding.
15803         (struct sockaddr_storage): Update comment.  Avoid implicit
15804         padding.
15805         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
15806         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
15807         (_SS_PADSIZE): Adjust to account for all padding.
15808         (struct sockaddr_storage): Update comment.  Avoid implicit
15809         padding.
15810         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
15811         __SS_SIZE is 126 in this version.
15812         * inet/tst-sockaddr.c: New file.
15813         * inet/Makefile (tests): Add tst-sockaddr.c
15814         (tst-sockaddr.c): Compile with non-strict aliasing.
15815
15816 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
15817
15818         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
15819         [XPG3 || XPG4].
15820         (NL_ARGMAX): Also expect for [XPG3].
15821         (NL_LANGMAX): Likewise.
15822         (NL_MSGMAX): Likewise.
15823         (NL_NMAX): Likewise.
15824         (NL_SETMAX): Likewise.
15825         (NL_TEXTMAX): Likewise.
15826         (NZERO): Likewise.
15827         (TMP_MAX): Likewise.
15828         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
15829         variable.
15830
15831         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
15832         (PF_MAX): Update value.
15833         (AF_KCM): New macro.
15834         (SOL_NETBEUI): Likewise.
15835         (SOL_LLC): Likewise.
15836         (SOL_DCCP): Likewise.
15837         (SOL_NETLINK): Likewise.
15838         (SOL_TIPC): Likewise.
15839         (SOL_RXRPC): Likewise.
15840         (SOL_PPPOL2TP): Likewise.
15841         (SOL_BLUETOOTH): Likewise.
15842         (SOL_PNPIPE): Likewise.
15843         (SOL_RDS): Likewise.
15844         (SOL_IUCV): Likewise.
15845         (SOL_CAIF): Likewise.
15846         (SOL_ALG): Likewise.
15847         (SOL_NFC): Likewise.
15848         (SOL_KCM): Likewise.
15849         (MSG_BATCH): New enum value and macro.
15850
15851 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
15852
15853         [BZ #18185]
15854         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
15855         sharing L2 cache to 2 for Knights Landing.
15856
15857 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
15858
15859         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
15860         (FTW_DP): Do not expect for [XPG3 || XPG4].
15861         (FTW_SL): Do not expect for [XPG3].
15862         (FTW_SLN): Likewise.
15863         (FTW_PHYS): Likewise.
15864         (FTW_MOUNT): Likewise.
15865         (FTW_DEPTH): Likewise.
15866         (FTW_CHDIR): Likewise.
15867         (nftw): Likewise.
15868         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
15869         variable.
15870
15871 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
15872
15873         * manual/errno.texi: Fix various typos & grammar errors.
15874
15875 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
15876
15877         * manual/intro.texi: Fix duplicated typo.
15878
15879 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
15880
15881         [BZ #13304]
15882         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
15883         <float.h>, <math_private.h> and <stdlib.h>.
15884         (add_split): New function.
15885         (mul_split): Likewise.
15886         (ext_val): New typedef.
15887         (store_ext_val): New function.
15888         (mul_ext_val): New function.
15889         (compare): New function.
15890         (add_split_ext): New function.
15891         (__fmal): After checking for Inf, NaN and zero, compute result as
15892         an exact sum of scaled double values in round-to-nearest before
15893         adding those up and adjusting for other rounding modes.
15894         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
15895         tests of fma.
15896         * math/auto-libm-test-out: Regenerated.
15897
15898 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15899
15900         [BZ #20119]
15901         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
15902         processor level type mask for CPUID with EAX == 11.
15903
15904 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15905
15906         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
15907         logical threads if the HTT bit is 0.
15908         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
15909         (index_cpu_HTT): Likewise.
15910         (reg_HTT): Likewise.
15911
15912 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15913
15914         [BZ #20115]
15915         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
15916         Remove alignments on jump targets.
15917
15918 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
15919
15920         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
15921         (getpwent): Likewise.
15922         (setpwent): Likewise.
15923         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
15924         variable.
15925
15926         * conform/data/search.h-data (insque): Do not expect for [XPG3].
15927         (remque): Likewise.
15928         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
15929         variable.
15930
15931 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
15932
15933         * math/libm-test.inc: Update comment not to refer to signs of NaNs
15934         not being tested.
15935
15936 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15937
15938         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
15939         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
15940         call.
15941         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
15942         (__condvar_cleanup1): Likewise.
15943
15944 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15945
15946         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
15947         New
15948         (__pthread_unwind): Renamed to ...
15949         (PTHREAD_UNWIND): This.
15950         (__pthread_enable_asynccancel): Replace
15951         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
15952
15953 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
15954
15955         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
15956         (CLONE_NEWCGROUP): New macro.
15957
15958         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
15959         (Q_GETNEXTQUOTA): New macro.
15960
15961 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15962
15963         [BZ #19907]
15964         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
15965         buffer updated by the previous run.
15966         * string/test-memcpy.c (do_one_test): Likewise.
15967         * benchtests/bench-memmove.c (do_one_test): Add a comment.
15968         * string/test-memmove.c (do_one_test): Likewise.
15969
15970 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
15971
15972         [BZ #20094]
15973         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
15974         not [__USE_XOPEN].
15975         (unlockpt): Likewise.
15976         (ptsname): Likewise.
15977         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
15978         variable.
15979
15980         [BZ #20076]
15981         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
15982         instead of [__USE_UNIX98].
15983         (S_ISSOCK): Likewise.
15984         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
15985         variable.
15986
15987         [BZ #20074]
15988         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
15989         [__USE_POSIX].
15990         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
15991         variable.
15992
15993         [BZ #20051]
15994         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
15995         (ttyslot): Do not declare.
15996         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
15997         (ttyslot): New prototype.
15998         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
15999         variable.
16000         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
16001
16002 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
16003
16004         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
16005
16006 2016-05-13  Florian Weimer  <fweimer@redhat.com>
16007
16008         Fix race condition in tst-mallocfork2, use fewer resources.
16009         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
16010         to current process group.
16011         (signal_sender): Yield in the non-sleeping case.
16012
16013 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
16014
16015         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
16016         (ecvt): Likewise.
16017         (fcvt): Likewise.
16018         (gcvt): Likewise.
16019         (getsubopt): Likewise.
16020         (grantpt): Likewise.
16021         (initstate): Likewise.
16022         (l64a): Likewise.
16023         (mktemp): Likewise.
16024         (mkstemp): Likewise.
16025         (ptsname): Likewise.
16026         (random): Likewise.
16027         (realpath): Likewise.
16028         (setstate): Likewise.
16029         (srandom): Likewise.
16030         (ttyslot): Likewise.
16031         (unlockpt): Likewise.
16032         (valloc): Likewise.
16033
16034         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
16035         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
16036         variable.
16037
16038 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16039
16040         [BZ #20072]
16041         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
16042         init_cpu_features only if SHARED is defined.
16043         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
16044
16045 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16046
16047         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
16048         non-inclusive caches on Intel processors.
16049
16050 2016-05-13  Florian Weimer  <fweimer@redhat.com>
16051
16052         * malloc/malloc.c (dumped_main_arena_start)
16053         (dumped_main_arena_end): New variables.
16054         (DUMPED_MAIN_ARENA_CHUNK): New macro.
16055         (do_check_chunk): Skip dumped fake mmapped chunks.
16056         (munmap_chunk): Likewise.
16057         (__libc_free): Do not adjust statistics for fake mmapped chunks.
16058         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
16059         mmapped chunks.
16060         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
16061         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
16062         and dumped_main_arena_end to cover the dumped heap.
16063
16064 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
16065
16066         * conform/data/time.h-data (getdate_err): Do not expect for
16067         [XPG3].
16068         (getdate): Likewise.
16069         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
16070         variable.
16071
16072         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
16073         (F_ULOCK): Likewise.
16074         (F_TEST): Likewise.
16075         (F_TLOCK): Likewise.
16076         (useconds_t): Likewise.
16077         (intptr_t): Do not expect for [XPG3] or [XPG4].
16078         (brk): Do not expect for [XPG3]
16079         (fchown): Likewise.
16080         (fchdir): Likewise.
16081         (ftruncate): Likewise.
16082         (getdtablesize): Likewise.
16083         (gethostid): Likewise.
16084         (getpagesize): Likewise.
16085         (getpgid): Likewise.
16086         (getsid): Likewise.
16087         (getwd): Likewise.
16088         (lchown): Likewise.
16089         (lockf): Likewise.
16090         (readlink): Likewise.
16091         (sbrk): Likewise.
16092         (setpgrp): Likewise.
16093         (setregid): Likewise.
16094         (setreuid): Likewise.
16095         (symlink): Likewise.
16096         (sync): Likewise.
16097         (truncate): Likewise.
16098         (ualarm): Likewise.
16099         (usleep): Likewise.
16100         (vfork): Likewise.
16101         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
16102         variable.
16103
16104         [BZ #20054]
16105         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
16106         not [__USE_UNIX98].
16107         * conform/data/unistd.h-data (gethostname): Do not expect for
16108         [XPG3].
16109
16110         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
16111         [!POSIX] (S_IFBLK): Likewise.
16112         [!POSIX] (S_IFCHR): Likewise.
16113         [!POSIX] (S_IFIFO): Likewise.
16114         [!POSIX] (S_IFREG): Likewise.
16115         [!POSIX] (S_IFDIR): Likewise.
16116         [!POSIX] (S_IFLNK): Likewise.
16117         [!POSIX] (S_IFSOCK): Likewise.
16118         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
16119         variable.
16120         (test-xfail-XPG4/fcntl.h/conform): Likewise.
16121
16122 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
16123
16124         * sysdeps/aarch64/memset.S (__memset):
16125         Rewrite of optimized memset.
16126
16127 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16128
16129         [BZ #19703]
16130         Partially async-signal-safe fork for single-threaded processes.
16131         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
16132         variable.  Do not acquire and reset/release malloc and libio locks
16133         in single-threaded processes.
16134         * malloc/tst-mallocfork2.c: New file.
16135         * malloc/Makefile (tests): Add it.
16136
16137 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16138
16139         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
16140         argument.  Use scratch buffer instead of extend_alloca.
16141         (gethosts): Use scratch buffer instead of extend_alloca.
16142         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
16143         extend_alloca.
16144         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
16145
16146 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
16147
16148         [BZ #20055]
16149         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
16150         instead of [__USE_UNIX98].
16151         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
16152         [__USE_UNIX98].
16153         * conform/data/termios.h-data (tcgetsid): Do not expect for
16154         [XPG3].
16155         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
16156         variable.
16157         (test-xfail-XPG4/termios.h/conform): Likewise.
16158
16159 2016-05-11  Florian Weimer  <fweimer@redhat.com>
16160
16161         Do not use mcheck in localedef.
16162         * locale/programs/localedef.c (turn_on_mcheck)
16163         (__malloc_initialize_hook): Remove.
16164
16165 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
16166
16167         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
16168         * sysdeps/s390/s390-64/Makefile: Likewise.
16169
16170 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16171
16172         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
16173         Remove ifunc-defines.sym.
16174         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
16175         Likewise.
16176         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
16177         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
16178         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
16179         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
16180         rtld-global-offsets.sym.
16181         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
16182         * sysdeps/x86/cpu-features-offsets.sym: This.
16183         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
16184         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
16185
16186 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
16187
16188         [BZ #20073]
16189         * io/sys/stat.h (fchmod): Declare for
16190         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
16191         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
16192         variable.
16193
16194         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
16195         [XPG3] (S_IFSOCK): Likewise.
16196         [XPG3] (S_ISVTX): Likewise.
16197         [XPG3] (S_ISLNK): Likewise.
16198         [XPG3] (S_ISSOCK): Likewise.
16199         [XPG3] (fchmod): Likewise.
16200         [XPG3] (lstat): Likewise.
16201         [XPG3] (mknod): Likewise.
16202
16203         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
16204         [XPG3].  Expect type long and XFAIL for [XPG4].
16205         (st_blocks): Likewise.
16206
16207         [BZ #20044]
16208         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
16209         (pthread_atfork): New prototype.
16210         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
16211         variable.
16212
16213         [BZ #20043]
16214         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
16215         prototype.
16216
16217 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16218
16219         [BZ #20017]
16220         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
16221         gmtime.
16222
16223 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16224
16225         [BZ #19994]
16226         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
16227         flag in _res.options.
16228
16229 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
16230
16231         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
16232         [XPG3 || XPG4].
16233         (blksize_t): Likewise.
16234         (clockid_t): Likewise.
16235         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
16236         variable.
16237         (test-xfail-XPG4/sys/types.h/conform): Likewise.
16238
16239 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
16240
16241         * sysdeps/unix/sysv/linux/s390/init-first.c:
16242         Add VDSO_SYMBOL(getcpu).
16243         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
16244         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
16245         Add VDSO_SYMBOL(getcpu).
16246         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
16247         New define HAVE_GETCPU_VSYSCALL.
16248         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16249
16250 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16251
16252         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
16253         instead of <sysdeps/x86_64/cacheinfo.c>.
16254         * sysdeps/x86_64/cacheinfo.c: Moved to ...
16255         * sysdeps/x86/cacheinfo.c: Here.
16256
16257 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16258
16259         * malloc/malloc-internal.h: Adjust header file guard.
16260
16261 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16262
16263         [BZ #19787]
16264         * inet/getnameinfo.c (check_sprintf_result): New function.
16265         (CHECKED_SNPRINTF): New macro.
16266         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
16267         to the host buffer.
16268         (gni_host_local): Use checked_copy to copy the host name.
16269         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
16270         (gni_serv_local): Use checked_copy to copy the service name.
16271         (getnameinfo): Remove unnecessary truncation of result buffers.
16272
16273 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16274
16275         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
16276         in case of inet_ntop failure.
16277
16278 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16279
16280         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
16281         avoid long lines.
16282         (gni_host_inet_numeric): Likewise.  Reduce scope of local
16283         variables.
16284         (gni_host_inet, gni_host_local): Add comment.
16285         (gni_host): Add comment.  Use temporary to avoid long lines.
16286
16287 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16288
16289         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
16290         registers specifiers where general purpose registers specifiers should
16291         have been used.
16292
16293 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16294
16295         [BZ #19779]
16296         CVE-2016-1234
16297         Avoid copying names of directory entries.
16298         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
16299         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
16300         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
16301         (struct readdir_result): New type.
16302         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
16303         (GL_READDIR): New macros.
16304         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
16305         (convert_dirent, convert_dirent64): New functions.
16306         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
16307         convert_dirent64.  Adjust references to the readdir result.
16308         * sysdeps/unix/sysv/linux/i386/glob64.c:
16309         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
16310         * posix/bug-glob2.c (LONG_NAME): Define.
16311         (filesystem): Add LONG_NAME.
16312         (my_DIR): Increase the size of room_for_dirent.
16313
16314 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
16315
16316         [BZ #20041]
16317         * misc/sys/select.h (__need_timespec): Only define if
16318         [__USE_XOPEN2K].
16319         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
16320         variable.
16321         (test-xfail-XPG4/utmpx.h/conform): Likewise.
16322         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
16323         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
16324
16325 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16326             Segher Boessenkool  <segher@gcc.gnu.org>
16327
16328         [BZ #20004]
16329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
16330         (__novec_swapcontext): Add missing load.
16331
16332 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
16333
16334         [BZ #20023]
16335         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
16336         <time.h>.
16337         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
16338         variable.
16339         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
16340
16341 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16342
16343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
16344         flags CLONE_VM compare.
16345
16346 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16347
16348         [BZ #20031]
16349         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
16350         completely empty.
16351
16352 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16353
16354         [BZ #19573]
16355         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
16356         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
16357         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
16358         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
16359         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
16360         (hesiod_free_list): Mark as hidden.
16361         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
16362         res_set, res_get.
16363         * hesiod/hesiod.c: Remove unnecessary forward declarations.
16364         (init, __hesiod_res_get, __hesiod_res_set): Remove.
16365         (hesiod_init): Remove obsolete res_ninit call.
16366         (hesiod_end): Do not free resolver state.  Do not invoke callback.
16367         (hesiod_bind): Do not call init.
16368         (get_txt_records): Use res_mkquery, res_send instead of
16369         res_nmkquery, res_nsend.
16370         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
16371         instead of _nss_hesiod_init.
16372         (_nss_hesiod_initgroups_dyn): Likewise.
16373         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
16374         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
16375         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
16376
16377 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16378
16379         * hesiod/hesiod_p.h (DEF_RHS): Remove.
16380         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
16381
16382 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16383
16384         * hesiod/hesiod.h: Remove RCS keyword.
16385         * hesiod/hesiod_p.h: Likewise.
16386
16387         * hesiod/hesiod.c: Likewise.
16388
16389 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
16390
16391         [BZ #12450]
16392         * locale/iso-639.def: Add Samogitian/sgs.
16393
16394 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
16395
16396         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
16397
16398         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
16399
16400 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
16401             Carlos O'Donell  <carlos@redhat.com>
16402
16403         [BZ #19072]
16404         * grp/Makefile (headers): Add grp-merge.h
16405         (routines): Add grp-merge.
16406         * grp/getgrgid_r.c: Include grp-merge.h.
16407         (DEEPCOPY_FN): Define.
16408         (MERGE_FN): Define.
16409         * grp/getgrname_r.c: Include grp-merge.h.
16410         (DEEPCOPY_FN): Define.
16411         (MERGE_FN): Define.
16412         * grp/grp-merge.c: New file.
16413         * grp/grp-merge.h: New file.
16414         * include/grp-merge.h: New file.
16415         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
16416         __copy_grp@GLIBC_PRIVATE.
16417         * manual/nss.texi (Actions in the NSS configuration): Describe
16418         return, continue, and merge.
16419         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
16420         (DEEPCOPY_FN): Define.
16421         (MERGE_FN): Define.
16422         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
16423         (DEEPCOPY_FN): Define.
16424         (MERGE_FN): Define.
16425         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
16426         [!MERGE_FN]: Define __merge_einval.
16427         (CHECK_MERGE): Define.
16428         (REENTRANT_NAME): Process merge if do_merge is true.
16429         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
16430         (__nss_getent_r): Likewise.
16431         * nss/nsswitch.c (nss_parse_service_list): Likewise.
16432         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
16433
16434 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16435
16436         [BZ #20012]
16437         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
16438         length to calculate the buffer to read.
16439         (fmemopen_write): Set the buffer position based on bytes written.
16440         (fmemopen_seek): Return EINVAL for invalid whence modes.
16441
16442         [BZ #19957]
16443         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
16444         tst-getpid2.
16445         (test): Add tst-clone2.
16446         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
16447         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
16448         pid/tid fields for CLONE_VM.
16449         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
16450         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
16451         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
16452         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
16453         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
16454         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
16455         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
16456         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
16457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
16458         Likewise.
16459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
16460         Likewise.
16461         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
16462         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
16463         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
16464         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
16465         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
16466         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
16467         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
16468         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
16469
16470 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16471
16472         [BZ #19642]
16473         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
16474         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
16475         (gni_serv_local, gni_serv): New functions extracted from
16476         getnameinfo.
16477         (getnameinfo): Call gni_host and gni_serv to perform the
16478         processing.  Always free scratch buffer.
16479
16480 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16481
16482         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
16483         remaining bytes in the dest string, with zeros.
16484
16485 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16486
16487         [BZ #20010]
16488         CVE-2016-3706
16489         * sysdeps/posix/getaddrinfo.c
16490         (convert_hostent_to_gaih_addrtuple): New function.
16491         (gethosts): Call convert_hostent_to_gaih_addrtuple.
16492         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
16493         AF_INET data.
16494
16495 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16496
16497         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
16498         callback function gl_readdir.
16499         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
16500         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
16501         (glob_in_dir): Remove len.  Use strdup instead of malloc and
16502         memcpy to copy the name.
16503         * manual/pattern.texi (Calling Glob): Document requirements for
16504         implementations of the gl_readdir callback function.
16505         * manual/examples/mkdirent.c: New example.
16506         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
16507         per the manual guidance.
16508         * posix/tst-gnuglob.c (my_readdir): Likewise.
16509
16510 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
16511
16512         [BZ #20014]
16513         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
16514         not [__USE_POSIX].
16515         (getchar_unlocked): Likewise.
16516         (putc_unlocked): Likewise.
16517         (putchar_unlocked): Likewise.
16518         (flockfile): Likewise.
16519         (ftrylockfile): Likewise.
16520         (funlockfile): Likewise.
16521         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
16522         variable.
16523         (test-xfail-XPG4/stdio.h/conform): Likewise.
16524
16525         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
16526         Expect constant.
16527         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
16528         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
16529         variable.
16530         (test-xfail-XPG4/langinfo.h/conform): Likewise.
16531         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
16532
16533         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
16534         [__USE_LARGEFILE64] (off64_t): Likewise.
16535         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
16536         variable.
16537
16538 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16539
16540         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
16541
16542 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16543
16544         * resolv/inet_addr.c: Reindent preprocessor conditionals.
16545         * resolv/res_init.c: Likewise.
16546         * resolv/res_mkquery.c: Likewise.
16547
16548 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16549
16550         * resolv/res_init.c (isascii): Do not define.  Use definition in
16551         <ctype.h>.
16552         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
16553         (LOG_AUTH): Remove.
16554         (SPRINTF): Remove, adjust caller.
16555         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
16556
16557 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16558
16559         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
16560         SUNSECURITY conditional.
16561         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
16562
16563 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16564
16565         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
16566         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
16567         Remove BSD-related preprocessor conditionals.
16568         * conf/portability.h: Remove.
16569
16570 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16571
16572         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
16573         * resolv/res_data.c: Likewise.
16574
16575 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16576
16577         * resolv/res_comp.c: Remove code conditional on __ultrix__.
16578         * resolv/res_data.c: Remove code conditional on ultrix.
16579
16580 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16581
16582         * resolv/res_init.c (RFC1535): Do not define.  Remove
16583         RFC1535 preprocessor conditionals.
16584         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
16585         because there configuration options which make the resolver
16586         behavior different.
16587
16588 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16589
16590         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
16591         RESOLVSORT preprocessor conditionals.
16592         * resolv/nss_dns/dns-host.c: Likewise.
16593         * resolv/res_init.c: Likewise.
16594
16595 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16596
16597         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
16598         is never defined.
16599
16600 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16601
16602         * inet/inet_lnaof.c: Remove SCSS keyword.
16603         * inet/inet_mkadr.c: Likewise.
16604         * inet/inet_net.c: Likewise.
16605         * inet/inet_netof.c: Likewise.
16606         * inet/rcmd.c: Likewise.
16607         * inet/rexec.c: Likewise.
16608         * inet/ruserpass.c: Likewise.
16609
16610 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16611
16612         * resolv/inet_addr.c: Remove _LIBC conditionals.
16613         * resolv/res_data.c: Likewise.
16614         * resolv/res_init.c: Likewise.
16615         * resolv/res_mkquery.c: Likewise.
16616         * resolv/res_libc.c: Update comment.
16617         * resolv/README: Update.
16618
16619 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16620
16621         * resolv/gethnamaddr.c: Remove SCSS keyword.
16622         * resolv/herror.c: Likewise.
16623         * resolv/inet_addr.c: Likewise.
16624         * resolv/inet_net_ntop.c: Likewise.
16625         * resolv/inet_net_pton.c: Likewise.
16626         * resolv/inet_neta.c: Likewise.
16627         * resolv/inet_ntop.c: Likewise.
16628         * resolv/inet_pton.c: Likewise.
16629         * resolv/ns_date.c: Remove RCS keyword.
16630         * resolv/ns_name.c: Likewise.
16631         * resolv/ns_netint.c: Likewise.
16632         * resolv/ns_parse.c: Likewise.
16633         * resolv/ns_print.c: Likewise.
16634         * resolv/ns_samedomain.c: Likewise.
16635         * resolv/ns_ttl.c: Likewise.
16636         * resolv/nsap_addr.c: Likewise.
16637         * resolv/res_comp.c: Remove SCSS and RCS keyword.
16638         * resolv/res_data.c: Remove RCS keyword.
16639         * resolv/res_debug.c: Remove SCSS and RCS keyword.
16640         * resolv/res_init.c: Likewise.
16641         * resolv/res_mkquery.c: Likewise.
16642         * resolv/res_query.c: Likewise.
16643         * resolv/res_send.c: Likewise.
16644
16645 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
16646
16647         * conform/data/stdio.h-data (fdopen): Expect also for
16648         [XPG3 || XPG4].
16649
16650         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
16651         (fseeko): Likewise.
16652         (ftello): Likewise.
16653         (ftrylockfile): Likewise.
16654         (funlockfile): Likewise.
16655         (getc_unlocked): Likewise.
16656         (getchar_unlocked): Likewise.
16657         (putc_unlocked): Likewise.
16658         (putchar_unlocked): Likewise.
16659
16660 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16661
16662         [BZ #19868]
16663         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
16664         DNS packet syntax checks (which were not needed before).  Skip
16665         over non-PTR records.
16666
16667 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16668
16669         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
16670         definition.  Include <stddef.h> instead.
16671
16672 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16673
16674         [BZ #19831]
16675         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
16676         function.
16677         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
16678         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
16679
16680 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16681
16682         [BZ #19862]
16683         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
16684         (getanswer_r): Do not call syslog.
16685         (gaih_getanswer_slice): Likewise.
16686         * resolv/gethnamaddr.c (AskedForGot): Remove.
16687         (getanswer): Do not call syslog.
16688         (gethostbyaddr): Likewise.
16689
16690 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
16691
16692         * conform/data/signal.h-data (union sigval): Expect also if
16693         [XOPEN2K].
16694         (struct sigevent): Likewise.
16695         (SIGEV_NONE): Likewise.
16696         (SIGEV_SIGNAL): Likewise.
16697         (SIGEV_THREAD): Likewise.
16698         (SIGRTMIN): Likewise.
16699         (SIGRTMAX): Likewise.
16700         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
16701         variable.
16702         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
16703
16704 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16705
16706         [BZ #19830]
16707         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
16708         (gaih_getanswer_slice): Likewise.
16709         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
16710         Also check for availability of RR metadata.
16711
16712 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16713
16714         [BZ #19825]
16715         * resolv/res_send.c (send_vc): Remove early *resplen2
16716         initialization.  Set *resplen2 on socket error.  Call
16717         close_and_return_error for other errors.
16718
16719 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
16720
16721         * sysdeps/unix/sysv/linux/netiucv/iucv.h
16722         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
16723         (SCM_IUCV_TRGCLS): New define.
16724
16725 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16726
16727         [BZ #20005]
16728         * libio/fmemopen.c (fmemopen_write): Update internal position after
16729         write.
16730         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
16731         * stdio-common/tst-fmemopen4.c: New file..
16732
16733 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
16734
16735         [BZ #19996]
16736         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
16737         not [__USE_XOPEN2K].
16738         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
16739         variable.
16740
16741         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
16742         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
16743         variable.
16744
16745         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
16746         [__USE_XOPEN2K8].
16747         [__USE_LARGEFILE64] (off64_t): Likewise.
16748         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
16749         variable.
16750
16751 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
16752
16753         [BZ #19989]
16754         * libio/stdio.h (cuserid): Do not declare if
16755         [__USE_XOPEN2K && !__USE_GNU].
16756         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
16757         variable.
16758
16759 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16760
16761         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16762         (sysdep_routines): Add P8 and PPC64 strcspn targets.
16763         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
16764         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
16765         ifunc'ed strcspn.
16766         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
16767         [EALIGN]: Removed.
16768         [END]: Likewise
16769         [STRSPN]: Define instead of the above to control symbol name.
16770         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
16771         New file.
16772         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
16773         Likewise.
16774         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
16775         Likewise.
16776         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
16777         Likewise.
16778         * sysdeps/powerpc/powerpc64/power8/strspn.S:
16779         [INITIAL_MASK]: New macro.
16780         [STRCSPN]: Likewise.
16781         [UPDATE_MASK]: Likewise.
16782         [USE_AS_STRCSPN]: Likewise.
16783
16784 2016-04-25  Florian Weimer  <fweimer@redhat.com>
16785
16786         [BZ #19931]
16787         * stdio-common/tst-vfprintf-width-prec.c: New file.
16788         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
16789         (tests-special): Add tst-vfprintf-width-prec-mem.out.
16790         (generated): Add mtrace-related files.
16791         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
16792         (tst-%-mem.out): New pattern rule, replaces
16793         tst-printf-bz18872-mem.out.
16794         * stdio-common/vfprintf.c (vfprintf): When handling a precision
16795         specifier, deallocate any previously allocated work buffer.
16796
16797 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
16798
16799         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
16800         Add nop before __startcontext, add explaining comments.
16801
16802 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
16803
16804         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
16805         any more. Notably since IPV6_PKTINFO has been reintroduced with a
16806         completely different API.
16807
16808         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
16809         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
16810         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
16811         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
16812         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
16813         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
16814         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
16815         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
16816         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
16817         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
16818
16819 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
16820
16821         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
16822
16823 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
16824
16825         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
16826         when it is the default of 0.
16827
16828 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16829
16830         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
16831         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16832         (sysdep_routines): Add new strcasestr targets.
16833         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
16834         (__libc_ifunc_impl_list): Likewise.
16835         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
16836         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
16837         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
16838         * sysdeps/powerpc/powerpc64/power8/Makefile:
16839         New file to add strcasestr-ppc64 to sysdep_routines.
16840         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
16841         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
16842
16843 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
16844
16845         * benchtests/Makefile (wcsmbs-benchset): Include only for
16846         native builds and runs.
16847         (LOCALES): Likewise.
16848         (bench-build): Build timing-type here instead of the bench
16849         target.  Generate locale only for native builds.
16850         * benchtests/README: Add note for cross-building.
16851
16852         * benchtests/Makefile (bench-clean): Clean up extra-objs.
16853
16854         * benchtests/README: Update README to include instructions on
16855         using bench-build.
16856
16857         * Makefile.in (bench-build): New target.
16858         * Rules (PHONY): Add bench-build target.
16859         * benchtests/Makefile (bench): Depend on bench-build.
16860         (bench-build): New target.
16861
16862 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16863
16864         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
16865         profil_reply_port.
16866         (profile_waiter): Do not initialize profil_reply_port.
16867         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
16868         frequency instead of tick length in us.
16869
16870 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
16871
16872         [BZ #18712]
16873         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
16874         (__old_mempcpy_small): Likewise.
16875         (__old_strcpy_small): Likewise.
16876         (__old_stpcpy_small): Likewise.
16877         (__old_strpbrk_c2): Fix compat symbol name.
16878         (__old_strpbrk_c3): Likewise.
16879         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
16880         (__mempcpy_small): Remove.
16881         (__strcpy_small): Remove.
16882         (__stpcpy_small): Remove.
16883
16884 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
16885
16886         [BZ #19400]
16887         * locale/iso-639.def: Add the Talossan/tzl language.
16888
16889 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
16890
16891         [BZ #16983]
16892         * locale/programs/ld-address.c (address_finish): Update postal_fmt
16893         comment.  Add "ln" to strchr check on postal_fmt.
16894
16895 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
16896
16897         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
16898         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
16899         tel_dom_fmt.
16900
16901 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16902
16903         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16904         (sysdep_routines): Added __strlen_power8.
16905         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
16906         __strlen_power8 entry.
16907         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
16908         Implementation for POWER8.
16909         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
16910         for __strlen_power8.
16911         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
16912         Implementation for POWER8.
16913
16914 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
16915
16916         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
16917
16918 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
16919
16920         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
16921         Goldmont and Airmont processors.
16922
16923 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
16924
16925         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
16926         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
16927         (__STRING2_SMALL_GET32): Remove.
16928         (memset): Remove.
16929         (__memset_1): Remove.
16930         (__memset_gc): Remove.
16931         (__mempcpy): Remove.
16932         (mempcpy): Remove.
16933         (__mempcpy_args): Remove.
16934         (strchr): Remove.
16935         (strcpy): Remove.
16936         (strcpy_args): Remove.
16937         (__stpcpy_args): Remove.
16938         (__strcmp_cc): Remove.
16939         (__strcmp_gc): Remove.
16940         (strstr): Remove.
16941
16942 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
16943
16944         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
16945         * nis/nis_call.c (nis_server_cache_add): Likewise.
16946
16947 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16948
16949         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
16950
16951 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16952
16953         * malloc/arena.c (__malloc_fork_lock_parent)
16954         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
16955         internal_function attribute.
16956
16957 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
16958
16959         * stdio-common/printf_fp.c (__printf_fp_l):
16960         Rename ___printf_fp_l to __printf_fp_l and
16961         remove strong alias. Use libc_hidden_def instead
16962         of ldbl_hidden_def macro.
16963
16964 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16965
16966         Remove malloc hooks from fork handler.  They are no longer needed
16967         because malloc runs right before fork, and no malloc calls from
16968         other fork handlers are not possible anymore.
16969         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
16970         declarations.
16971         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
16972         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
16973         (atfork_recursive_cntr): Remove.
16974         (__malloc_fork_lock_parent): Do not override malloc hooks and
16975         thread_arena.
16976         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
16977         thread_arena.
16978         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
16979         thread_arena instead of save_arena.
16980
16981 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16982
16983         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
16984         (thread_atfork, thread_atfork_static): Remove.
16985         * sysdeps/mach/hurd/malloc-machine.h:
16986         (thread_atfork, thread_atfork_static): Remove.
16987
16988 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16989
16990         [BZ #19431]
16991         Run the malloc fork handler as late as possible to avoid deadlocks.
16992         * malloc/malloc-internal.h: New file.
16993         * malloc/malloc.c: Include it.
16994         * malloc/arena.c (ATFORK_MEM): Remove.
16995         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
16996         Update comment.
16997         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
16998         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
16999         Remove outdated comment.
17000         (ptmalloc_init): Do not call thread_atfork.  Remove
17001         thread_atfork_static.
17002         * malloc/tst-malloc-fork-deadlock.c: New file.
17003         * Makefile (tests): Add tst-malloc-fork-deadlock.
17004         (tst-malloc-fork-deadlock): Link against libpthread.
17005         * manual/memory.texi (Aligned Memory Blocks): Update safety
17006         annotation comments.
17007         * sysdeps/nptl/fork.c (__libc_fork): Call
17008         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
17009         __malloc_fork_unlock_child.
17010         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
17011
17012 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17013
17014         [BZ #19613]
17015         Remove union wait.
17016         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
17017         (w_stopsig, w_stopval): Remove.
17018         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
17019         stat_loc argument.
17020         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
17021         (__WAIT_STATUS_DEFN): Remove.
17022         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
17023         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
17024         (wait, wait3, wait4): Use int * for the stat_loc argument.
17025         * posix/wait.c (__wait): Likewise.
17026         * posix/wait3.c (__wait3): Likewise.
17027         * posix/wait4.c (__wait4): Likewise.
17028         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
17029         (__WAIT_STATUS_DEFN): Remove.
17030         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
17031         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
17032         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
17033         argument.
17034         * sysdeps/posix/wait.c (__libc_wait): Likewise.
17035         * sysdeps/posix/wait3.c (__wait3): Likewise.
17036         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
17037         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
17038         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
17039         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
17040         stat_loc argument.
17041         * manual/process.texi (BSD Wait Functions): Remove union wait.
17042
17043 2016-04-13  Andreas Schwab  <schwab@suse.de>
17044
17045         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
17046         (test-extras): Add tst-tlsalign-vars.
17047         * math/Makefile: Wrap long lines.
17048         (libm-vec-test-wrappers): Define.
17049         (test-extras): Add $(libm-vec-test-wrappers).
17050         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
17051         * nss/Makefile (extra-test-objs): Add nss_test1.os.
17052         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
17053         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
17054         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
17055         (extra-test-objs): Add corresponding objects.
17056
17057 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
17058
17059         [BZ #19928]
17060         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
17061         New.
17062         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
17063         times of shared cache size.
17064         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
17065         (VMOVNT): New.
17066         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
17067         (VMOVNT): Likewise.
17068         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
17069         (VMOVNT): Likewise.
17070         (VMOVU): Changed to movups for smaller code sizes.
17071         (VMOVA): Changed to movaps for smaller code sizes.
17072         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
17073         comments.
17074         (PREFETCH): New.
17075         (PREFETCH_SIZE): Likewise.
17076         (PREFETCHED_LOAD_SIZE): Likewise.
17077         (PREFETCH_ONE_SET): Likewise.
17078         Rewrite to use forward and backward loops, which move 4 vector
17079         registers at a time, to support overlapping addresses and use
17080         non temporal store if size is above the threshold and there is
17081         no overlap between destination and source.
17082
17083 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
17084
17085         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
17086         Include dl-vdso.
17087         * sysdeps/unix/sysv/linux/mips/Versions: Add
17088         __vdso_clock_gettime.
17089         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
17090         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
17091         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
17092         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
17093         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
17094         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
17095         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17096         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
17097         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
17098
17099 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17100
17101         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
17102         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
17103         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
17104         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
17105         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
17106         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
17107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
17108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
17109         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
17110         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
17111         syscalls generation.
17112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17113         [__NR_pwrite64] (__NR_write): Remove define.
17114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17115         [__NR_pwrite64] (__NR_write): Remove define.
17116         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
17117         Remove define.
17118         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
17119         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
17120         Remove define.
17121         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
17122         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
17123         Linux implementation as base.
17124         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
17125
17126         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
17127         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
17128         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
17129         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
17130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
17131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
17132         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
17133         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
17134         syscall generation.
17135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17136         [__NR_pread64] (__NR_pread): Remove define.
17137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17138         [__NR_pread64] (__NR_pread): Likewise.
17139         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
17140         define.
17141         (__libc_pread): Use SYSCALL_LL macro on offset argument.
17142         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
17143         Remove define.
17144         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
17145         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
17146         Linux implementation as base.
17147         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
17148         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
17149         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
17150
17151         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
17152         definition.
17153         (__ALIGNMENT_COUNT): Likewise.
17154         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
17155         (__ALIGNMENT_COUNT): Likewise.
17156         (SYSCALL_LL): New define.
17157         (SYSCALL_LL64): Likewise.
17158         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
17159         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
17160         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
17161         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
17162
17163         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17164         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
17165         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17166         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17167         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17168         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17169
17170 2016-04-11  Florian Weimer  <fweimer@redhat.com>
17171
17172         [BZ #19865]
17173         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
17174         original buffer before retry.
17175
17176 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17177
17178         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
17179         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
17180         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
17181         GLRO(dl_auxv) list.
17182         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
17183         including <ldsodefs.h>.
17184         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
17185
17186 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
17187
17188         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
17189         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
17190         $(CPPFLAGS).
17191
17192 2016-04-09  Khem Raj  <raj.khem@gmail.com>
17193
17194         [BZ #17950]
17195         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
17196         Add -mfpmath=387.
17197
17198 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
17199
17200         * sysdeps/i386/configure.ac: Change == to = when calling test.
17201         * sysdeps/x86_64/configure.ac: Likewise.
17202         * sysdeps/i386/configure: Regenerated.
17203         * sysdeps/x86_64/configure: Likewise.
17204
17205 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
17206
17207         [BZ #16137]
17208         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
17209         * benchtests/bench-strcoll.c (input_files): Likewise.
17210         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
17211         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
17212         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
17213
17214 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
17215
17216         [BZ #19929]
17217         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
17218         [__USE_XOPEN2K8 && !__USE_GNU].
17219         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
17220         variable.
17221
17222         [BZ #19925]
17223         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
17224         define if [!__USE_MISC && __USE_XOPEN2K].
17225         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
17226         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
17227         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
17228         Likewise.
17229         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
17230         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
17231         variable.
17232         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
17233
17234 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17235
17236         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17237         (sysdep_routines): Add new strspn targets.
17238         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17239         (__libc_ifunc_impl_list): Add strspn.
17240         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
17241         New file.
17242         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
17243         Likewise.
17244         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
17245         Likewise.
17246         * sysdeps/powerpc/powerpc64/power8/strspn.S:
17247         Likewise.
17248
17249 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17250
17251         * misc/hsearch_r.c: Include <limits.h>.
17252
17253 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17254
17255         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
17256
17257 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17258
17259         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17260         (MEMCPY_SYMBOL): New.
17261         (MEMPCPY_SYMBOL): Likewise.
17262         (MEMMOVE_CHK_SYMBOL): Likewise.
17263         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
17264         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
17265         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
17266         Provide alias for memcpy in libc.a and ld.so.
17267
17268 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17269
17270         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17271         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
17272         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
17273         Disabled fro now.
17274         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
17275         symbols.  Properly check USE_MULTIARCH on __memset symbols.
17276
17277 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17278
17279         * benchtests/Makefile (string-benchset): Add memcpy-large,
17280         memmove-large and memset-large.
17281         * benchtests/bench-memcpy-large.c: New file.
17282         * benchtests/bench-memmove-large.c: Likewise.
17283         * benchtests/bench-memmove-large.c: Likewise.
17284         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
17285
17286 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17287
17288         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
17289         32-bit displacement to avoid long nop between instructions.
17290
17291 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17292
17293         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
17294         a comment on VMOVU and VMOVA.
17295
17296 2016-04-04  Florian Weimer  <fweimer@redhat.com>
17297
17298         [BZ #19633]
17299         Use specified locale for number formatting in strfmon_l.
17300         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
17301         (__nl_lookup_word): New inline functions.
17302         * include/printf.h (__print_fp_l): Declare.
17303         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
17304         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
17305         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
17306         (___printf_fp): New function.
17307         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
17308         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
17309         * stdlib/tst-strfmon_l.c (do_test): New test.
17310         * stdlib/Makefile (tests): Add kt.
17311         (LOCALES): Build additional locales.
17312         (tst-strfmon_l.out): Require locales.
17313
17314 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17315
17316         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
17317         if not in libc.
17318         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17319         Likewise.
17320         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
17321         Likewise.
17322         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17323         Likewise.
17324
17325 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17326
17327         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17328         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
17329         with unaligned_erms.
17330         (__memmove_erms): Skip if source == destination.
17331         (__memmove_unaligned_erms): Don't check source == destination
17332         first.
17333
17334 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17335
17336         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
17337         bit_arch_Fast_Copy_Backward for Intel Core proessors.
17338
17339 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17340
17341         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
17342         * string/strspn.c (strspn): Likewise.
17343
17344 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17345
17346         * benchtests/bench-memset.c (do_test): Support 64-byte
17347         alignment.
17348         (test_main): Test 64-byte alignment.
17349
17350 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17351
17352         * benchtests/bench-memmove.c (test_main): Test 64-byte
17353         alignment.
17354
17355 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17356
17357         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
17358
17359 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17360
17361         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
17362         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
17363         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
17364
17365         * string/strpbrk.c (strpbrk): Rewrite function.
17366         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
17367         (__strpbrk_c2): Likewise.
17368         (__strpbrk_c3): Likewise.
17369         * string/string-inlines.c
17370         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
17371         Likewise.
17372         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
17373         Likewise.
17374
17375         * string/strspn.c (strcspn): Rewrite function.
17376         * string/bits/string2.h (strspn): Use __builtin_strcspn.
17377         (__strspn_c1): Remove inline function.
17378         (__strspn_c2): Likewise.
17379         (__strspn_c3): Likewise.
17380         * string/string-inlines.c
17381         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
17382         compatibility symbol.
17383         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
17384         Likewise.
17385         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
17386         Likewise.
17387         * string/string-inlines.c: Include generic version.
17388
17389 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
17390             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17391
17392         * string/Version (libc): Add GLIBC_2.24.
17393         * string/strcspn.c (strcspn): Rewrite function.
17394         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
17395         (__strcspn_c1): Remove inline function.
17396         (__strcspn_c2): Likewise.
17397         (__strcspn_c3): Likewise.
17398         * string/string-inline.c
17399         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
17400         compatibility symbol.
17401         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
17402         Likewise.
17403         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
17404         Likewise.
17405         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
17406
17407 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
17408
17409         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
17410         Use ahi instead of aghi to adjust stack pointer.
17411
17412 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17413
17414         [BZ #19853]
17415         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
17416         TEST to take significant digits as second parameter.
17417         [TEST]: Redefine in terms of TEST_N taking 30
17418         significant digits.
17419         (do_test): Add test case to demonstrate precision
17420         failure in the ldbl-128ibm printf.
17421         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
17422         (__mpn_extract_long_double): Carry 7 extra intermediate
17423         bits of precision to aide computing difference when
17424         signs differ.
17425
17426 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17427
17428         [BZ #19881]
17429         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17430         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
17431         memset-avx512-unaligned-erms.
17432         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17433         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
17434         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
17435         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
17436         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
17437         __memset_sse2_unaligned_erms, __memset_erms,
17438         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
17439         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
17440         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
17441         file.
17442         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17443         Likewise.
17444         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
17445         Likewise.
17446         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
17447         Likewise.
17448
17449 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17450
17451         [BZ #19776]
17452         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17453         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
17454         memmove-avx512-unaligned-erms.
17455         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17456         (__libc_ifunc_impl_list): Test
17457         __memmove_chk_avx512_unaligned_2,
17458         __memmove_chk_avx512_unaligned_erms,
17459         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
17460         __memmove_chk_sse2_unaligned_2,
17461         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
17462         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
17463         __memmove_avx512_unaligned_erms, __memmove_erms,
17464         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
17465         __memcpy_chk_avx512_unaligned_2,
17466         __memcpy_chk_avx512_unaligned_erms,
17467         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
17468         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
17469         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
17470         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
17471         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
17472         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
17473         __mempcpy_chk_avx512_unaligned_erms,
17474         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
17475         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
17476         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
17477         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
17478         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
17479         __mempcpy_erms.
17480         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
17481         file.
17482         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17483         Likewise.
17484         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
17485         Likewise.
17486         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17487         Likewise.
17488
17489 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
17490
17491         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
17492         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
17493         (La_s390_64_regs): Likewise.
17494         (La_s390_32_retval): Append vector register lrv_v24.
17495         (La_s390_64_retval): Likeweise.
17496         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
17497         Handle extended structs La_s390_32_regs and La_s390_32_retval.
17498         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
17499         Handle extended structs La_s390_64_regs and La_s390_64_retval.
17500
17501 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
17502
17503         [BZ #19916]
17504         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
17505         to create a non-vector/vector version for _dl_runtime_resolve and
17506         _dl_runtime_profile. Move implementation to ...
17507         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
17508         (_dl_runtime_resolve) Save and restore fpr/vrs.
17509         (_dl_runtime_profile) Save and restore vrs and fix some issues
17510         if _dl_call_pltexit is called.
17511         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
17512         Choose the correct resolver function if running on a machine with vx.
17513         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
17514         to create a non-vector/vector version for _dl_runtime_resolve and
17515         _dl_runtime_profile. Move implementation to ...
17516         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
17517         (_dl_runtime_resolve) Save and restore fpr/vrs.
17518         (_dl_runtime_profile) Save and restore vrs and fix some issues
17519         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
17520         Choose the correct resolver function if running on a machine with vx.
17521
17522 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17523
17524         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
17525
17526 2016-03-31  Florian Weimer  <fweimer@redhat.com>
17527
17528         [BZ #19509]
17529         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
17530         skip_map != NULL.
17531         * elf/tst-dlsym-error.c: New file.
17532         * elf/Makefile (tests): Add tst-dlsym-error.
17533         (tst-dlsym-error): Link against libdl.
17534
17535 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
17536
17537         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17538         (__ASSUME_FUTIMESAT): Remove macro.
17539         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
17540
17541 2016-03-29  Florian Weimer  <fweimer@redhat.com>
17542
17543         [BZ #19879]
17544         CVE-2016-3075
17545         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
17546         copy name.
17547
17548 2016-03-29  Florian Weimer  <fweimer@redhat.com>
17549
17550         [BZ #19837]
17551         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
17552         error if parse_line fails.
17553
17554 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17555
17556         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
17557         (index_cpu_ERMS): Likewise.
17558         (reg_ERMS): Likewise.
17559
17560 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
17561
17562         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
17563         PER_LINUX_FDPIC): Add.
17564
17565 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17566
17567         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17568         memcpy-avx512-no-vzeroupper.
17569         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
17570         to ...
17571         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
17572         (MEMCPY): Don't define.
17573         (MEMCPY_CHK): Likewise.
17574         (MEMPCPY): Likewise.
17575         (MEMPCPY_CHK): Likewise.
17576         (MEMPCPY_CHK): Renamed to ...
17577         (__mempcpy_chk_avx512_no_vzeroupper): This.
17578         (MEMPCPY_CHK): Renamed to ...
17579         (__mempcpy_chk_avx512_no_vzeroupper): This.
17580         (MEMCPY_CHK): Renamed to ...
17581         (__memmove_chk_avx512_no_vzeroupper): This.
17582         (MEMCPY): Renamed to ...
17583         (__memmove_avx512_no_vzeroupper): This.
17584         (__memcpy_avx512_no_vzeroupper): New alias.
17585         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
17586
17587 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17588
17589         [BZ #18858]
17590         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17591         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
17592         and mempcpy-avx512-no-vzeroupper.
17593         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
17594         New.
17595         (MEMPCPY): Likewise.
17596         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
17597         (MEMPCPY_CHK): New.
17598         (MEMPCPY): Likewise.
17599         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
17600         (MEMPCPY): Likewise.
17601         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
17602         (MEMPCPY): Likewise.
17603         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
17604         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
17605         Likewise.
17606         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
17607         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
17608
17609 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17610              Amit Pawar  <Amit.Pawar@amd.com>
17611
17612         [BZ #19583]
17613         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
17614         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
17615         processors.  Set Fast_Copy_Backward for AMD Excavator
17616         processors.
17617         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
17618         New.
17619         (index_arch_Fast_Unaligned_Copy): Likewise.
17620         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
17621         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
17622
17623 2016-03-25  Florian Weimer  <fweimer@redhat.com>
17624
17625         [BZ #19791]
17626         * resolv/res_send.c (close_and_return_error): New function.
17627         (send_dg): Initialize *resplen2 after reopen failure.  Call
17628         close_and_return_error for error returns.  On error paths without
17629         __res_iclose, initialze *resplen2 explicitly.  Update comment for
17630         successful return.
17631
17632 2016-03-25  Florian Weimer  <fweimer@redhat.com>
17633
17634         [BZ #19860]
17635         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
17636         zero if the compiler does not provide the AVX512F bit.
17637
17638 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
17639
17640         [BZ #19848]
17641         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
17642         from 8 to 4.
17643         (__ieee754_powl): Compare integer exponent against 4 not 8.
17644         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
17645         from 8 to 4.
17646         (__ieee754_powl): Compare integer exponent against 4 not 8.
17647         * math/auto-libm-test-in: Add more tests of pow.
17648         * math/auto-libm-test-out: Regenerated.
17649         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
17650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17651
17652 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
17653
17654         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
17655         Make code unconditional.
17656         [!__NR_utimensat]: Remove conditional code.
17657         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
17658         Make code unconditional.
17659         [!__NR_utimensat]: Remove conditional code.
17660         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
17661         Make code unconditional.
17662         [!__NR_utimensat]: Remove conditional code.
17663
17664 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
17665
17666         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
17667         Make code unconditional.
17668
17669 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
17670
17671         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
17672         call-clobbered %eax on retry path.
17673         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
17674
17675 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17676
17677         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
17678         Don't set %rcx twice before "rep movsb".
17679
17680 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17681
17682         [BZ #19583]
17683         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
17684         inline.  Check family before setting family, model and
17685         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
17686         bits here.
17687         (init_cpu_features): Replace HAS_CPU_FEATURE and
17688         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
17689         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
17690         for Intel processors with usable AVX2.  Call get_common_indeces
17691         for other processors with family == NULL.
17692         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
17693         (CPU_FEATURES_ARCH_P): Likewise.
17694         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
17695         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
17696
17697 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17698
17699         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
17700         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
17701         $(shared-thread-library) instead of hardcoding the path to libpthread.
17702
17703 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
17704
17705         * sysdeps/unix/sysv/linux/kernel-features.h
17706         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
17707         * sysdeps/unix/sysv/linux/getdents.c
17708         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
17709         [!have_no_getdents64_defined]: Likewise.
17710         (__GETDENTS): Remove __have_no_getdents64 conditional.
17711
17712 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
17713
17714         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
17715         Remove macro.
17716         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
17717         <kernel-features.h>.
17718         (signalfd) [__NR_signalfd4]: Make code unconditional.
17719         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
17720
17721 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17722
17723         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
17724         style.
17725
17726 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17727
17728         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
17729         (__pthread_enable_asynccancel): Use JUMPTARGET to call
17730         __pthread_unwind.
17731         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
17732         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
17733         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
17734         (__condvar_cleanup1): Likewise.
17735
17736 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
17737
17738         [BZ #19822]
17739         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
17740         move it to the final $@ location.
17741
17742 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17743
17744         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
17745         access where posix_spawn success and pid argument is null.
17746         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
17747         success case.
17748
17749 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
17750
17751         * sysdeps/mach/hurd/i386/c++-types.data: New file.
17752
17753         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
17754
17755         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
17756         and __fcntl.
17757         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
17758         __fcntl only.
17759         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
17760         adding attribute_hidden to __open and __fcntl.
17761
17762         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
17763         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
17764         depend on libc-modules.h,
17765         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
17766
17767 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
17768
17769         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
17770         Remove macro.
17771         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
17772         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
17773         entry.
17774
17775         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
17776         Remove macro.
17777         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
17778         include <kernel-features.h>.
17779         [!__ASSUME_FALLOCATE]: Remove conditional code.
17780         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
17781
17782 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17783
17784         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
17785         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
17786         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
17787         (_ZGVdN4v_cos_avx2): Likewise.
17788         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
17789         (_ZGVdN4v_cos): Likewise.
17790         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
17791         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
17792         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
17793         (_ZGVdN4v_exp_avx2): Likewise.
17794         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
17795         (_ZGVdN4v_exp): Likewise.
17796         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
17797         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
17798         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
17799         (_ZGVdN4v_log_avx2): Likewise.
17800         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
17801         (_ZGVdN4v_log): Likewise.
17802         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
17803         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
17804         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
17805         (_ZGVdN4vv_pow_avx2): Likewise.
17806         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
17807         (_ZGVdN4vv_pow): Likewise.
17808         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
17809         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
17810         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
17811         (_ZGVdN4v_sin_avx2): Likewise.
17812         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
17813         (_ZGVdN4v_sin): Likewise.
17814         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
17815         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
17816         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
17817         (_ZGVdN4vvv_sincos_avx2): Likewise.
17818         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
17819         (_ZGVdN4vvv_sincos): Likewise.
17820         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
17821         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
17822         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
17823         (_ZGVbN4v_cosf_sse4): Likewise.
17824         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
17825         (_ZGVdN8v_cosf_avx2): Likewise.
17826         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
17827         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
17828         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
17829         (_ZGVbN4v_expf_sse4): Likewise.
17830         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
17831         (_ZGVdN8v_expf_avx2): Likewise.
17832         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
17833         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
17834         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
17835         (_ZGVbN4v_logf_sse4): Likewise.
17836         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
17837         (_ZGVdN8v_logf_avx2): Likewise.
17838         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
17839         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
17840         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
17841         (_ZGVbN4vv_powf_sse4): Likewise.
17842         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
17843         (_ZGVdN8vv_powf_avx2): Likewise.
17844         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
17845         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
17846         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
17847         (_ZGVbN4vvv_sincosf_sse4): Likewise.
17848         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
17849         (_ZGVdN8vvv_sincosf_avx2): Likewise.
17850         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
17851         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
17852         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
17853         (_ZGVbN4v_sinf_sse4): Likewise.
17854         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
17855         (_ZGVdN8v_sinf_avx2): Likewise.
17856         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
17857         Use JUMPTARGET to call callee.
17858         (WRAPPER_IMPL_SSE2_ff): Likewise.
17859         (WRAPPER_IMPL_SSE2_fFF): Likewise.
17860         (WRAPPER_IMPL_AVX): Likewise.
17861         (WRAPPER_IMPL_AVX_ff): Likewise.
17862         (WRAPPER_IMPL_AVX_fFF): Likewise.
17863         (WRAPPER_IMPL_AVX512): Likewise.
17864         (WRAPPER_IMPL_AVX512_ff): Likewise.
17865         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
17866         Likewise.
17867         (WRAPPER_IMPL_SSE2_ff): Likewise.
17868         (WRAPPER_IMPL_SSE2_fFF): Likewise.
17869         (WRAPPER_IMPL_AVX): Likewise.
17870         (WRAPPER_IMPL_AVX_ff): Likewise.
17871         (WRAPPER_IMPL_AVX_fFF): Likewise.
17872         (WRAPPER_IMPL_AVX512): Likewise.
17873         (WRAPPER_IMPL_AVX512_ff): Likewise.
17874         (WRAPPER_IMPL_AVX512_fFF): Likewise.
17875
17876 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17877
17878         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
17879         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
17880         qualifier.
17881         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
17882         internal_function qualifiers.
17883
17884 2016-03-15  Carlos O'Donell <carlos@redhat.com>
17885
17886         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
17887         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
17888         * math/atest-exp.c (exp_mpn): Mark chk unused.
17889         * math/atest-exp2.c (exp_mpn): Likewise.
17890         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
17891         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
17892
17893 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
17894
17895         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
17896         Remove macro.
17897         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
17898         <kernel-features.h>.
17899         [__NR_ppoll]: Make code unconditional.
17900         [!__ASSUME_PPOLL]: Remove conditional code.
17901
17902         * sysdeps/unix/sysv/linux/kernel-features.h
17903         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
17904         (__ASSUME_ACCEPT4): Likewise.
17905         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
17906         Define.
17907         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
17908         Likewise.
17909         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
17910         Likewise.
17911         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
17912         Likewise.
17913         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
17914         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
17915         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
17916         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
17917         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17918         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17919         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17920         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17921         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17922         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17923         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17924         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17925         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17926         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17927         * sysdeps/unix/sysv/linux/i386/kernel-features.h
17928         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
17929         Likewise.
17930         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
17931         Likewise.
17932         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17933         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
17934         0x040300].
17935         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17936         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
17937         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17938         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17939         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
17940         0x030300].
17941         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
17942         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
17943         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17944         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
17945         0x040300].
17946         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17947         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17948         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17949         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
17950         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17951         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17952         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
17953         0x030300].
17954         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17955         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
17956         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17957         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17958         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17959         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17960         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17961         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17962         * sysdeps/unix/sysv/linux/s390/kernel-features.h
17963         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17964         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
17965         0x040300].
17966         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17967         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17968         * sysdeps/unix/sysv/linux/sh/kernel-features.h
17969         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
17970         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17971         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17972         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
17973         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17974         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17975         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17976         * sysdeps/unix/sysv/linux/tile/kernel-features.h
17977         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17978         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17979         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17980         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
17981         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17982         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
17983         Likewise.
17984         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
17985         Likewise.
17986
17987 2016-03-15  Andreas Schwab  <schwab@suse.de>
17988
17989         [BZ #19257]
17990         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
17991         statp->_u._ext.nscount as loop count.
17992
17993 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
17994
17995         * math/test-signgam-finite-c99.c: Also #undef
17996         __LIBC_INTERNAL_MATH_INLINES.
17997         * math/test-signgam-main.c: Likewise.
17998
17999 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
18000
18001         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
18002         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18003         (MADV_FREE): Likewise.
18004         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
18005         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
18006         EPOLLEXCLUSIVE.
18007
18008 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
18009
18010         * timezone/README: Remove mention of checktab.awk. Mention wiki
18011         SharedSourceFiles.
18012
18013 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
18014
18015         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
18016         WUNTRACED.
18017
18018 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18019
18020         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
18021         order to match the type of p when calling atomic_exchange_acq().
18022
18023 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18024
18025         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
18026         cfi_offset calls.
18027         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
18028         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
18029         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
18030         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
18031         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
18032
18033 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
18034
18035         * timezone/checktab.awk: Removed.
18036
18037 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
18038
18039         * manual/math.texi (Errors in Math Functions): Document relaxed
18040         accuracy goals for IBM long double.
18041         * math/libm-test.inc (test_exceptions): Always allow spurious
18042         "underflow" and "inexact" exceptions for IBM long double.
18043
18044 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18045
18046         [BZ #19762]
18047         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18048         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
18049         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
18050         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
18051         (bit_arch_*): This for feature array.
18052         (bit_*): Renamed to ...
18053         (bit_cpu_*): This for cpu array.
18054         (index_*): Renamed to ...
18055         (index_arch_*): This for feature array.
18056         (index_*): Renamed to ...
18057         (index_cpu_*): This for cpu array.
18058         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
18059         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
18060         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
18061         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
18062         bit_##name with index_cpu_##name and bit_cpu_##name.
18063         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
18064         bit_##name with index_arch_##name and bit_arch_##name.
18065
18066 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
18067
18068         [BZ #19792]
18069         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
18070         Terminate FDE before return label.
18071
18072 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
18073
18074         [BZ #19790]
18075         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
18076         (rintl): Define as macro.
18077         [USE_AS_NEARBYINTL] (__rintl): Likewise.
18078         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
18079         of fesetround.  Ensure results are evaluated before end of scope.
18080         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
18081         USE_AS_NEARBYINTL and include s_rintl.c.
18082         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
18083         Disable exception traps in new environment.
18084         (libc_feholdsetround_ppc_ctx): Likewise.
18085
18086 2016-03-08  Roland McGrath  <roland@hack.frob.com>
18087
18088         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
18089         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
18090         (tst_audit10_aux) [__AVX512F__]: ... here.
18091
18092 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
18093
18094         * include/sys/auxv.h: New file.
18095
18096 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
18097
18098         [BZ #19759]
18099         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
18100
18101 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
18102
18103         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
18104         operand modifier.
18105         (feclearexcept): Likewise.
18106
18107 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18108
18109         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
18110         to reflect the entire 32-bit HWCAP.
18111         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
18112         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
18113
18114 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
18115
18116         [BZ #19783]
18117         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
18118         $(test-via-rtld-prefix).
18119         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
18120
18121 2016-03-08  Florian Weimer  <fweimer@redhat.com>
18122
18123         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
18124         union wait.  Report any non-zero exit status as error.
18125
18126 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18127
18128         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
18129         configured with --enable-hardcoded-path-in-tests.
18130
18131 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
18132
18133         [BZ #19677]
18134         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18135         (__ieee754_remainderl): Put zero low parts in canonical form.
18136         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
18137         file.  Based on
18138         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
18139         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
18140         with wrapper round test-fmodrem-ldbl-128ibm.c.
18141         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
18142         file.
18143         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
18144         Likewise.
18145         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
18146         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
18147
18148 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18149
18150         [BZ #19610]
18151         * elf/ldconfig.c (opt_link): Update comment.
18152         (options): Update help string for option -X.
18153         (search_dir): Unlink stale symbolic link only if updating symbolic
18154         links.
18155         * elf/tst-ldconfig-X.sh: New file.
18156         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
18157         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
18158
18159 2016-03-07  Andreas Schwab  <schwab@suse.de>
18160
18161         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
18162         needed arguments.
18163
18164 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
18165
18166         [BZ #15333]
18167         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
18168         to lstat64.
18169
18170 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18171
18172         * libio/filedoalloc.c (isatty): Remove.
18173         (local_isatty): Add comment.  Call __isatty directly.
18174         (_IO_file_doallocate): Update comment.  Assume _LIBC.
18175         * libio/wfiledoalloc.c (isatty): Remove.
18176         (_IO_wfile_doallocate): Update comment.
18177
18178 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18179
18180         [BZ #19269]
18181         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
18182         tst-audit4-aux.o.
18183         (tst-audit10): Depend on tst-audit10-aux.o.
18184         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
18185         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
18186         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
18187         instead of inline AVX code.
18188         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
18189         instead of inline AVX512 code.
18190         * sysdeps/x86_64/tst-audit4-aux.c: New file
18191         * sysdeps/x86_64/tst-audit10-aux.c: New file
18192
18193         [BZ #19648]
18194         * test-skeleton.c (main): Do not set RLIMIT_DATA.
18195
18196 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18197
18198         [BZ #14750]
18199         [BZ #10354]
18200         [BZ #18433]
18201         * include/sched.h (__clone): Add hidden prototype.
18202         (__clone2): Likewise.
18203         * include/unistd.h (__dup): Likewise.
18204         * posix/Makefile (tests): Add tst-spawn2.
18205         * posix/tst-spawn2.c: New file.
18206         * sysdeps/posix/dup.c (__dup): Add hidden definition.
18207         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
18208         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
18209         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
18210         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
18211         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
18212         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
18213         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
18214         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
18215         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
18216         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
18217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
18218         Likewise.
18219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18220         Likewise.
18221         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
18222         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
18223         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
18224         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
18225         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
18226         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
18227         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
18228         * sysdeps/unix/sysv/linux/nptl-signals.h
18229         (____nptl_is_internal_signal): New function.
18230         * sysdeps/unix/sysv/linux/spawni.c: New file.
18231
18232         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
18233         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
18234         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
18235         * posix/tst-execvp2.c (do_test): Likewise.
18236         * posix/tst-execvp3.c (do_test): Likewise.
18237         * posix/tst-execvp4.c (do_test): Likewise.
18238         * posix/tst-execvpe1.c: New file.
18239         * posix/tst-execvpe2.c: Likewise.
18240         * posix/tst-execvpe3.c: Likewise.
18241         * posix/tst-execvpe4.c: Likewise.
18242         * posix/tst-execvpe5.c: Likewise.
18243         * posix/tst-execvpe6.c: Likewise.
18244
18245         [BZ #19534]
18246         * posix/execl.c (execl): Remove dynamic memory allocation.
18247         * posix/execle.c (execle): Likewise.
18248         * posix/execlp.c (execlp): Likewise.
18249
18250 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18251
18252         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
18253         Replace .text with .text.avx512.
18254         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
18255         Likewise.
18256
18257 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
18258
18259         * sysdeps/generic/libnsl.abilist: New file.
18260         * sysdeps/generic/libutil.abilist: New file.
18261
18262 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18263
18264         [BZ #19762]
18265         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
18266         HAS_ARCH_FEATURE with Fast_Rep_String.
18267         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
18268         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
18269         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
18270         Likewise.
18271         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
18272         Likewise.
18273         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
18274         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
18275         Likewise.
18276         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
18277         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
18278         Likewise.
18279
18280 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18281
18282         [BZ #19745]
18283         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
18284         with *%rax in call.
18285
18286 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18287
18288         [BZ #19745]
18289         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
18290         with *__libc_start_main@GOTPCREL(%rip) in call.
18291
18292 2016-03-04  Roland McGrath  <roland@hack.frob.com>
18293
18294         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
18295         inside conditional for nonempty $(CXX).
18296
18297         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
18298         nonempty.
18299
18300         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
18301         to test for empty $(CXX) rather than $(CXX) of "no".
18302
18303 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18304
18305         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
18306
18307 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
18308             H.J. Lu  <hongjiu.lu@intel.com>
18309
18310         [BZ #18880]
18311         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
18312         instead of Slow_BSF, and also check for Fast_Copy_Backward to
18313         enable __memcpy_ssse3_back.
18314
18315 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18316
18317         [BZ #19758]
18318         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18319         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
18320
18321 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
18322
18323         [BZ #19490]
18324         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
18325         (__fentry__): Likewise.
18326
18327 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18328
18329         * gmon/Makefile (noprof): Add $(sysdep_noprof).
18330         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
18331
18332 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18333
18334         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
18335         __mcount_internal directly.
18336         (C_LABEL(__fentry__)): Likewise.
18337         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
18338         directly.
18339
18340 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18341
18342         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
18343         (__start_context): Call __setcontext directly.
18344
18345 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
18346
18347         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18348         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18349         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
18350         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18351         * sysdeps/unix/sysv/linux/arm/kernel-features.h
18352         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18353         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
18354         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18355         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
18356         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
18357         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18358         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18359         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18360         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18361         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18362         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
18363         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
18364         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18365         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18366         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18367         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
18368         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18369         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18370         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18371         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
18372         Remove conditional code.
18373         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18374         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
18375         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18376         * sysdeps/unix/sysv/linux/sh/kernel-features.h
18377         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
18378         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18379         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18380         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18381         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18382         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18383         * sysdeps/unix/sysv/linux/tile/kernel-features.h
18384         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18385
18386 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
18387
18388         * NEWS (2.23): Fix typo in bug 19048 text.
18389
18390 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
18391
18392         [BZ #14259]
18393         * Makeconfig: Rename msgcatdir to localedir.
18394         Rename inst_msgcatdir to inst_localedir.
18395         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
18396         * config.make.in: Add localedir.
18397         * elf/Makefile ($(objpfx)sotruss): Use localedir.
18398         (ldd-rewrite): Likewise.
18399         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
18400         (install-others): Use inst_localedir.
18401         (CPPFLAGS): Use localedir.
18402         * locale/Makefile (locale-CPPFLAGS): Likewise.
18403         * po/Makefile (mo-installed): Use inst_localedir.
18404
18405         [BZ #19575]
18406         * localedata/charmaps/GB18030: Update comments regarding PAU to
18407         non-PUA mappings.
18408
18409 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
18410
18411         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
18412         test for header.
18413         * sysdeps/unix/sysv/linux/configure: Regenerated.
18414         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
18415         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
18416         Remove conditional code.
18417         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
18418
18419         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
18420         Define to 3.2.0.
18421         (arch_minimum_kernel): Likewise.
18422         * sysdeps/unix/sysv/linux/configure: Regenerated.
18423         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
18424         Define to 2.6.32.
18425         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
18426         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
18427         (arch_minimum_kernel): Define to 2.6.32.
18428         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
18429         * README: Document Linux 3.2 requirement.
18430         * manual/install.texi (Linux): Document Linux 3.2 headers
18431         requirement.
18432         * INSTALL: Regenerated.
18433
18434 2016-02-24  Andreas Schwab  <schwab@suse.de>
18435
18436         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
18437         if !NO_LONG_DOUBLE.
18438
18439 2016-02-22  Roland McGrath  <roland@hack.frob.com>
18440
18441         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
18442         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
18443
18444 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
18445
18446         [BZ #19512]
18447         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
18448
18449 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18450
18451         * posix/tst-dir.c: Include libc-internal.h.
18452
18453 2016-02-20  Florian Weimer  <fweimer@redhat.com>
18454
18455         [BZ #19056]
18456         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
18457         * manual/filesys.texi (Reading/Closing Directory): Mention
18458         deprecaion.
18459         * posix/tst-dir.c (main): Disable deprecation warning in test.
18460
18461 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
18462
18463         [BZ #19679]
18464         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
18465         Renamed to ...
18466         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
18467         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18468         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
18469         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18470         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
18471         * sysdeps/x86_64/dl-trampoline.h
18472         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18473         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
18474
18475 2016-02-19  Mark Wielaard  <mjw@redhat.com>
18476
18477         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
18478
18479 2016-02-19  Mark Wielaard  <mjw@redhat.com>
18480
18481         * elf/elf.h (R_386_GOT32X): New.
18482         (R_386_NUM): Update.
18483         (R_X86_64_GOTPCRELX: New.
18484         (R_X86_64_REX_GOTPCRELX): New.
18485         (R_X86_64_NUM): Update.
18486
18487 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
18488
18489         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
18490
18491 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
18492
18493         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
18494         assign attr->stackaddr to it, and adjust it down when
18495         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
18496         [_STACK_GROWS_UP]: Delete assert.
18497         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
18498         Implement stack grows up logic.
18499         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
18500         stack grows up logic.
18501
18502 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18503
18504         * NEWS: Update with 2.24 template.
18505
18506 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
18507
18508         [BZ #19678]
18509         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
18510         Ensure +0.0 is returned when taking the next value below the least
18511         positive value.
18512
18513 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18514
18515         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
18516         available.  Do not define NO_THREADS.
18517         * malloc/malloc.c: Do not check NO_THREADS.
18518         * malloc/arena.c: Likewise.
18519
18520 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18521
18522         * malloc/malloc.c (__libc_mallinfo): Update comment.
18523         (struct malloc_par): Remove max_total_mem member, it was always 0.
18524         (int_mallinfo): Store 0 into usmblks (no functional change).
18525         * malloc/hooks.c (struct malloc_state): Document that
18526         max_total_mem is always 0.
18527         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
18528         always 0.
18529         * manual/memory.texi (Statistics of Malloc): Likewise.
18530
18531 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18532
18533         * malloc/malloc.c (sysmalloc): Do not update arena_max.
18534         * malloc/arena.c (arena_max): Remove.
18535         (heap_trim, _int_new_arena): Do not update arena_max.
18536
18537 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18538
18539         * resolv/res_init.c (res_ninit): Update comment.
18540
18541 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18542
18543         [BZ #19505]
18544         * posix/spawn_int.h: Add headers and include guard.
18545         (__spawn_valid_fd): New function.
18546         * posix/spawn_faction_addopen.c
18547         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
18548         * posix/spawn_faction_addclose.c
18549         (posix_spawn_file_actions_addclose): Likewise.
18550         * posix/spawn_faction_adddup2.c
18551         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
18552         second file descriptor.
18553         * posix/spawn_valid_fd.c: New file.
18554         * posix/tst-posix_spawn-fd.c: New file.
18555         * posix/Makefile (routines): Add spawn_valid_fd.
18556         (tests): Add tst-posix_spawn-fd.
18557
18558 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18559
18560         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
18561         (do_test): Limit the number of arenas, so that we can use fewer
18562         outer threads.  Limit timeout to 3 seconds, in preparation for a
18563         larger TIMEOUT value.
18564
18565 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
18566
18567         [BZ #19674]
18568         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
18569         sign in overflowing and underflowing results when overflow or
18570         underflow is detected early.  Include sign in result before rather
18571         than after scaling.
18572
18573         [BZ #19603]
18574         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18575         (__ieee754_remainderl): Adjust sign of integer version of low part
18576         when taking absolute value of high part.
18577         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
18578         * math/libm-test.inc (remainder_test_data): Add another test.
18579         (remquo_test_data): Likewise.
18580
18581 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
18582
18583         [BZ #19602]
18584         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
18585         equal high parts and both low parts zero specially.
18586         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
18587         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
18588         Add test-fmodl-ldbl-128ibm.
18589
18590         [BZ #19595]
18591         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
18592         common logic for all cases of shifting subnormal results.  Do not
18593         insert sign bit in shifted mantissa.  Always pass -1023 as biased
18594         exponent to ldbl_insert_mantissa in subnormal case.
18595
18596         [BZ #19594]
18597         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
18598         on high and low parts then adjust result and use
18599         ldbl_canonicalize_int if needed.
18600
18601         [BZ #19593]
18602         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
18603         on high part and __floor or __ceil on low part then use
18604         ldbl_canonicalize_int if needed.
18605
18606         [BZ #19592]
18607         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
18608         high and low parts then use ldbl_canonicalize_int if needed.
18609
18610         [BZ #17899]
18611         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
18612         New function.
18613         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
18614         on high and low parts then use ldbl_canonicalize_int if needed.
18615
18616 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18617
18618         * configure: Regenerated.
18619
18620         * po/libc.pot: Regenerated.
18621
18622         * po/be.po: Updated translation.
18623         * po/bg.po: Likewise.
18624         * po/ca.po: Likewise.
18625         * po/cs.po: Likewise.
18626         * po/da.po: Likewise.
18627         * po/el.po: Likewise.
18628         * po/eo.po: Likewise.
18629         * po/es.po: Likewise.
18630         * po/fi.po: Likewise.
18631         * po/fr.po: Likewise.
18632         * po/gl.po: Likewise.
18633         * po/hr.po: Likewise.
18634         * po/hu.po: Likewise.
18635         * po/ia.po: Likewise.
18636         * po/id.po: Likewise.
18637         * po/it.po: Likewise.
18638         * po/ja.po: Likewise.
18639         * po/lt.po: Likewise.
18640         * po/nb.po: Likewise.
18641         * po/nl.po: Likewise.
18642         * po/pt_BR.po: Likewise.
18643         * po/rw.po: Likewise.
18644         * po/sk.po: Likewise.
18645         * po/sl.po: Likewise.
18646         * po/sv.po: Likewise.
18647         * po/tr.po: Likewise.
18648         * po/zh_CN.po: Likewise.
18649         * po/zh_TW.po: Likewise.
18650
18651         * version.h (RELEAES): Set to "development".
18652         (VERSION): Set to 2.23.90.
18653
18654         * version.h (RELEASE): Set to "stable".
18655         (VERSION): Set to 2.23.
18656         * include/feature.h (__GLIBC_MINOR__): Set to 23.
18657
18658         * NEWS: Updated fixed bugs.
18659
18660 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
18661             Wilco Dijkstra  <wdijkstr@arm.com>
18662
18663         [BZ #19462]
18664         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
18665         (_STRING_INLINE_unaligned): This.
18666         * include/string.h: Include <string_private.h>.
18667         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
18668         _STRING_INLINE_unaligned.
18669         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
18670         (_STRING_INLINE_unaligned): New.
18671         * sysdeps/aarch64/string_private.h: New file.
18672         * sysdeps/generic/string_private.h: Likewise.
18673         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
18674         * sysdeps/s390/string_private.h: Likewise.
18675         * sysdeps/x86/string_private.h: Likewise.
18676         * sysdeps/m68k/m680x0/m68020/bits/string.h
18677         (_STRING_ARCH_unaligned): Renamed to ...
18678         (_STRING_INLINE_unaligned): This.
18679         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
18680         to ...
18681         (_STRING_INLINE_unaligned): This.
18682         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
18683         to ...
18684         (_STRING_INLINE_unaligned): This.
18685         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
18686         to ...
18687         (_STRING_INLINE_unaligned): This.
18688
18689 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
18690             H.J. Lu  <hongjiu.lu@intel.com>
18691
18692         [BZ #19590]
18693         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
18694         relocation.
18695
18696 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
18697
18698         [BZ #18665]
18699         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
18700         *herrno_p.
18701         (gaih_getanswer): Document functional behviour. Return tryagain
18702         if any result is tryagain.
18703         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
18704         when freed.
18705         * resolv/res_send.c: Add copyright text.
18706         (__libc_res_nsend): Document that MAXPACKET is expected.
18707         (send_vc): Document. Remove buffer reuse.
18708         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
18709         size of the buffer. Add Dprint for truncated UDP buffer.
18710
18711 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
18712
18713         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
18714         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
18715         * INSTALL: Regenerate.
18716
18717 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
18718             Jonathan Wakely  <jwakely@redhat.com>
18719             Carlos O'Donell  <carlos@redhat.com>
18720
18721         [BZ 19439]
18722         * math/Makefile (tests): Add test-math-isinff.
18723         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
18724         * math/bits/mathcalls.h [__USE_MISC]: Use
18725         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
18726         functions not in C++11 and which don't conflict e.g. isinff,
18727         isinfl etc.
18728         * math/test-math-isinff.cc: New file.
18729
18730 2016-02-12  Florian Weimer  <fweimer@redhat.com>
18731
18732         * misc/bug18240.c (do_test): Set RLIMIT_AS.
18733
18734 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18735
18736         [BZ #19529]
18737         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
18738
18739 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18740
18741         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
18742
18743 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
18744
18745         [BZ #19550]
18746         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
18747         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
18748         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
18749         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
18750         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
18751         New syscall entry.
18752         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
18753         New syscall entry.
18754         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
18755         syscall entry.
18756
18757 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
18758
18759         [BZ #18240]
18760         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
18761         unsigned int wraparound.
18762
18763 2016-01-27  Florian Weimer  <fweimer@redhat.com>
18764
18765         [BZ #18240]
18766         * misc/bug18240.c: New test.
18767         * misc/Makefile (tests): Add it.
18768
18769 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
18770             Joseph Myers  <joseph@codesourcery.com>
18771
18772         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
18773         load in branch delay slot when less than a word of input left.
18774
18775 2016-01-27  Andreas Schwab  <schwab@suse.de>
18776
18777         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
18778         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
18779         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
18780         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
18781
18782 2016-01-26  David S. Miller  <davem@davemloft.net>
18783
18784         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
18785
18786 2016-01-25  David S. Miller  <davem@davemloft.net>
18787
18788         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
18789         __sqrtl_finite.
18790         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
18791         instead using versioned_symbol.
18792         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
18793         of entries.
18794
18795         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
18796         __sqrtl_finite to GLIBC_2.23
18797
18798 2016-01-25  Ricchard Henderson  <rth@redhat.com>
18799
18800         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18801
18802 2016-01-25  Andreas Schwab  <schwab@suse.de>
18803
18804         [BZ #17514]
18805         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
18806         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
18807         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
18808         * nptl/tst-mutex-errorcheck.c: New file.
18809
18810 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18811
18812         [BZ #18560]
18813         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
18814         (IPCOP_semop): Likewise.
18815         (IPCOP_semget): Likewise.
18816         (IPCOP_semctl): Likewise.
18817         (IPCOP_msgsnd): Likewise.
18818         (IPCOP_msgrcv): Likewise.
18819         (IPCOP_msgget): Likewise.
18820         (IPCOP_msgctl): Likewise.
18821         (IPCOP_shmat): Likewise.
18822         (IPCOP_shmdt): Likewise.
18823         (IPCOP_shmget): Likewise.
18824         (IPCOP_shmctl): Likewise.
18825
18826 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18827
18828         * string/tst-endian.c: Include <libc-internal.h>.
18829         (do_test): Ignore tautological-compare warnings around
18830         "htobeXX (beXXtoh (i)) != i" and
18831         "htoleXX (leXXtoh (i)) != i" if-statements.
18832
18833 2016-01-24  David S. Miller  <davem@davemloft.net>
18834
18835         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
18836         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
18837         alias.
18838         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
18839         __sqrtl_finite.
18840
18841         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18842
18843 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
18844
18845         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
18846         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
18847         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18848
18849 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18850
18851         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
18852         (thread_func): Use new function to simplify barrier check.
18853         (do_test): Use new function to simplify checking barrier exit
18854         code, and actually join the child thread.
18855
18856 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18857
18858         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
18859         semicolon.
18860         (__libc_tend): Likewise.
18861         (__libc_tabort): Likewise.
18862
18863 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
18864
18865         * sysdeps/nios2/libm-test-ulps: Update.
18866         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
18867         (__gtsf2): Likewise.
18868         (__unorddf2): Likewise.
18869         (__unordsf2): Likewise.
18870         (__ledf2): Likewise.
18871
18872 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
18873
18874         * nis/nis_table.c (__follow_path): Disable diagnostic for
18875         uninitialized variable that is a false positive for gcc 4.7.
18876         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
18877
18878 2016-01-20  Roland McGrath  <roland@hack.frob.com>
18879
18880         * sysdeps/nacl/lowlevellock-futex.h
18881         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
18882         Always evaluate PRIVATE argument.
18883
18884 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
18885
18886         [BZ #19490]
18887         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
18888         (pthread_cond_broadcast): Use ENTRY/END
18889         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
18890         (pthread_cond_signal): Likewise.
18891         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
18892         Likewise.
18893         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
18894         Likewise.
18895         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
18896         Likewise.
18897
18898 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
18899
18900         * sysdeps/ieee754/dbl-64/s_finite.c
18901         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
18902         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
18903         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
18904         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
18905         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
18906
18907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
18908         (__gtsf2): Add as optional for libc.so.
18909         (__unordsf2): Likewise.
18910         (__signbit): Remove for libc.so.
18911         (__signbitl): Likewise.
18912
18913 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
18914
18915         * iconvdata/bug-iconv11.c (test_ibm93x):
18916         Use %zu printf format specifier for size_t argument.
18917
18918 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
18919
18920         * math/gen-libm-test.pl (parse_ulps): Do not reduce
18921         already-recorded ulps.
18922         * sysdeps/arm/libm-test-ulps: Regenerated.
18923         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18924         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18925         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
18926
18927 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
18928             Paul Pluzhnikov  <ppluzhnikov@google.com>
18929
18930         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
18931         assembler not supporting AVX-512.
18932
18933 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
18934
18935         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18936
18937 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
18938
18939         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
18940         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18941
18942         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
18943
18944         * sysdeps/arm/libm-test-ulps: Regenerated.
18945
18946 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18947
18948         [BZ #19451]
18949         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
18950
18951 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18952
18953         [BZ #19486]
18954         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
18955         * sysdeps/generic/fix-fp-int-convert-overflow.h
18956         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
18957         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
18958         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
18959         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
18960         Likewise.
18961         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
18962         Avoid conversions to long int where inexact exceptions
18963         could be raised.
18964         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
18965         Likewise.
18966         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
18967         Avoid conversions to long long int where inexact exceptions
18968         could be raised.
18969         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
18970         Likewise.
18971
18972 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
18973
18974         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
18975         * configure: Regenerated.
18976
18977 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
18978
18979         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
18980
18981 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
18982
18983         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
18984         outside of comment.
18985
18986 2016-01-15  Torvald Riegel  <triegel@redhat.com>
18987
18988         * nptl/tst-barrier1.c: Add description on first line.
18989         * nptl/tst-barrier2.c: Likewise.
18990         * nptl/tst-barrier3.c: Likewise.
18991         * nptl/tst-barrier4.c: Likewise.
18992         * nptl/tst-barrier5.c: Likewise.
18993
18994 2016-01-15  Torvald Riegel  <triegel@redhat.com>
18995
18996         [BZ #18868]
18997         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
18998
18999 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
19000
19001         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
19002         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
19003         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
19004         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
19005         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
19006         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
19007         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
19008         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
19009         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19010         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
19011         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
19012
19013 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19014
19015         [BZ #13065]
19016         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
19017         new implementation.
19018         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
19019         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
19020         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
19021         (BARRIER_IN_THRESHOLD): New macro.
19022         * nptl/pthread_barrierattr_setpshared.c
19023         (pthread_barrierattr_setpshared): Clean up.
19024         * nptl/tst-barrier4.c: Correct comment.
19025         * nptl/tst-barrier5.c: New file.
19026         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
19027         (gen-as-const-headers): Remove lowlevelbarrier.sym.
19028         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
19029         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
19030         * nptl/lowlevelbarrier.sym: Remove.
19031         * nptl/DESIGN-barrier.txt: Remove.
19032         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
19033         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
19034         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
19035         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
19036         error.
19037         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
19038         implementation.
19039
19040 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19041
19042         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
19043         (do_child): Mask SIGRTMIN while thr is running.
19044
19045 2016-01-15  Martin Sebor  <msebor@redhat.com>
19046
19047         [BZ #19432]
19048         * iconvdata/Makefile: Add bug-iconv11.
19049         * iconvdata/bug-iconv11.c: New test.
19050         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
19051         * iconvdata/ibm933.c: Same.
19052         * iconvdata/ibm935.c: Same.
19053         * iconvdata/ibm937.c: Same.
19054         * iconvdata/ibm939.c: Same.
19055
19056 2016-01-15  Martin Sebor  <msebor@redhat.com>
19057
19058         [BZ #19443]
19059         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
19060         [DEBUG] (_ufc_set_bits): Declare used.
19061         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
19062         [DEBUG] (print_all): Declare used.
19063         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
19064         operands of the ternary ?: expression to target type.
19065         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
19066         calling the undeclared abort.
19067         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
19068
19069 2016-01-15  Martin Sebor  <msebor@redhat.com>
19070
19071         [BZ #18755]
19072         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
19073         warnings.
19074         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
19075         (__gai_create_helper_thread): Same.
19076         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
19077         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
19078         to suppress -Wmaybe-uninitialized warnings.
19079
19080 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
19081
19082         [BZ #19465]
19083         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
19084         inside if.
19085         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19086         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
19087         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19088
19089 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
19090
19091         [BZ #19466]
19092         * time/tst-mktime2.c (time_t_max): Removed.
19093         (time_t_min): Likewise.
19094         (TYPE_SIGNED): New.
19095         (TYPE_MINIMUM): Likewise.
19096         (TYPE_MAXIMUM): Likewise.
19097         (TIME_T_MIN): Likewise.
19098         (TIME_T_MAX): Likewise.
19099         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
19100         and TIME_T_MIN.
19101         (do_test): Likewise.
19102
19103 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
19104
19105         [BZ #19467]
19106         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
19107         index_Fast_Unaligned_Load flag for Excavator family CPUs.
19108
19109 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
19110
19111         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
19112
19113 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
19114
19115         * benchtests/Makefile (PYTHON): Define.
19116         (bench-func): Use $(PYTHON) to run python scripts.
19117         ($(objpfx)bench-%.c): Likewise.
19118
19119 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
19120
19121         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
19122         leading slash when `file_name' is "/".
19123
19124 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
19125
19126         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
19127         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
19128         Likewise.
19129         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
19130         Likewise.
19131         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
19132         Likewise.
19133         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
19134         enum constant and macro.
19135         (PTRACE_SETSIGMASK): Likewise.
19136         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19137         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
19138         (PTRACE_GETSIGMASK): Likewise.
19139         (PTRACE_SETSIGMASK): Likewise.
19140         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19141         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
19142         Likewise.
19143         (PTRACE_SETSIGMASK): Likewise.
19144         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19145         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
19146         (PTRACE_GETSIGMASK): Likewise.
19147         (PTRACE_SETSIGMASK): Likewise.
19148         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19149         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
19150         Likewise.
19151         (PTRACE_SETSIGMASK): Likewise.
19152         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19153         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
19154         Likewise.
19155         (PTRACE_SETSIGMASK): Likewise.
19156         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19157         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
19158         Likewise.
19159         (PTRACE_SETSIGMASK): Likewise.
19160         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19161
19162 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
19163             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19164
19165         [BZ #19439]
19166         * math/bits/mathcalls.h
19167         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
19168         prototype.
19169         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
19170
19171 2016-01-11  Andreas Schwab  <schwab@suse.de>
19172
19173         [BZ #19253]
19174         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
19175         cache when TZDEFRULES was used.
19176         * time/tst-tzname.c: New file.
19177         * time/Makefile (test): Add tst-tzname.
19178         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
19179         * timezone/Makefile (test-zones): Add $(posixrules-file).
19180         ($(testdata)/$(posixrules-file)): New rule.
19181
19182 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19183
19184         Fix doc quoting problems with Texinfo 5
19185         Without this change, in the info file output, Texinfo 5 quotes code
19186         in text with undirected single quotes 'like this' and generates
19187         code examples that with many PDF readers cannot be cut out of PDFs
19188         and pasted into code.
19189         * manual/libc.texinfo: Configure the libc manual like the GNU
19190         Emacs manual, by using @documentencoding and setting
19191         txicodequoteundirected and txicodequotebacktick.  This way,
19192         Texinfo 5 quotes code in text with directed single quotes ‘like
19193         this’ and produces examples that can be cut out of PDFs.  This
19194         change causes Texinfo 5 to generate info files that contain UTF-8
19195         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
19196         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
19197
19198 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19199
19200         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
19201         __libc_tabort, __libc_tend): New wrappers that enforce compiler
19202         barriers to their respective compiler built-ins.
19203         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
19204         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
19205         * sysdeps/powerpc/sysdep.h: Likewise.
19206         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
19207         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
19208         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
19209
19210 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
19211
19212         * scripts/config.guess: Revert previous shebang change.
19213         * scripts/config.sub: Likewise.
19214         * scripts/mkinstalldirs: Likewise.
19215
19216 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19217
19218         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
19219         PPC_FEATURE2_HAS_IEEE128.
19220         * sysdeps/powerpc/dl-procinfo.c:
19221         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
19222
19223 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
19224
19225         [BZ #19415]
19226         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
19227         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
19228         (_dl_lookup_address): Rewrite using function resolver trampoline.
19229         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
19230         two bits in address.
19231
19232 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19233
19234         * longlong.h: Change !__SHMEDIA__ to
19235         (!defined (__SHMEDIA__) || !__SHMEDIA__).
19236         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
19237
19238 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
19239             Joseph Myers  <joseph@codesourcery.com>
19240             Mark Shinwell  <shinwell@codesourcery.com>
19241             Andrew Stubbs  <ams@codesourcery.com>
19242             Rich Felker <dalias@libc.org>
19243
19244         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
19245
19246 2016-01-07  Richard Henderson  <rth@redhat.com>
19247
19248         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
19249
19250 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19251
19252         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
19253         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
19254         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
19255         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
19256         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
19257
19258 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
19259             Joseph Myers  <joseph@codesourcery.com>
19260
19261         * timezone/private.h: Update from tzcode 2015g.
19262         * timezone/tzfile.h: Likewise.
19263         * timezone/tzselect.ksh: Likewise.
19264         * timezone/zdump.c: Likewise.
19265         * timezone/zic.c: Likewise.
19266         * timezone/ialloc.c: Remove file.
19267         * timezone/scheck.c: Likewise.
19268         * timezone/Makefile (extra-objs): Remove variable.
19269         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
19270         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
19271         -Wno-maybe-uninitialized.
19272         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
19273         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
19274         (CFLAGS-ialloc.c): Remove variable.
19275         (CFLAGS-scheck.c): Likewise.
19276         * timezone/README: Update list of files from tzcode.
19277
19278 2016-01-07  Khem Raj  <raj.khem@gmail.com>
19279
19280         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
19281         instead of __fxprintf when _LIBC is undefined.
19282
19283 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
19284
19285         * catgets/test-gencat.sh: Remove space after shebang.
19286         * conform/GlibcConform.pm: Likewise.
19287         * conform/check-header-lists.sh: Likewise.
19288         * conform/conformtest.pl: Likewise.
19289         * conform/linknamespace.pl: Likewise.
19290         * conform/list-header-symbols.pl: Likewise.
19291         * debug/catchsegv.sh: Likewise.
19292         * elf/genrtldtbl.awk: Likewise.
19293         * elf/tst-pathopt.sh: Likewise.
19294         * elf/tst-rtld-load-self.sh: Likewise.
19295         * grp/tst_fgetgrent.sh: Likewise.
19296         * iconvdata/gen-8bit-gap-1.sh: Likewise.
19297         * iconvdata/gen-8bit-gap.sh: Likewise.
19298         * iconvdata/gen-8bit.sh: Likewise.
19299         * iconvdata/run-iconv-test.sh: Likewise.
19300         * intl/tst-gettext.sh: Likewise.
19301         * intl/tst-gettext2.sh: Likewise.
19302         * intl/tst-gettext4.sh: Likewise.
19303         * intl/tst-gettext6.sh: Likewise.
19304         * intl/tst-translit.sh: Likewise.
19305         * io/ftwtest-sh: Likewise.
19306         * libio/test-freopen.sh: Likewise.
19307         * locale/gen-translit.pl: Likewise.
19308         * malloc/tst-mtrace.sh: Likewise.
19309         * manual/check-safety.sh: Likewise.
19310         * manual/libc-texinfo.sh: Likewise.
19311         * manual/tsort.awk: Likewise.
19312         * manual/xtract-typefun.awk: Likewise.
19313         * nptl/tst-cancel-wrappers.sh: Likewise.
19314         * nptl/tst-tls6.sh: Likewise.
19315         * posix/globtest.sh: Likewise.
19316         * posix/tst-getconf.sh: Likewise.
19317         * posix/wordexp-tst.sh: Likewise.
19318         * scripts/check-c++-types.sh: Likewise.
19319         * scripts/check-local-headers.sh: Likewise.
19320         * scripts/config.guess: Likewise.
19321         * scripts/config.sub: Likewise.
19322         * scripts/cpp: Likewise.
19323         * scripts/cross-test-ssh.sh: Likewise.
19324         * scripts/documented.sh: Likewise.
19325         * scripts/evaluate-test.sh: Likewise.
19326         * scripts/gen-libc-abis: Likewise.
19327         * scripts/gen-sorted.awk: Likewise.
19328         * scripts/list-fixed-bugs.py: Likewise.
19329         * scripts/merge-test-results.sh: Likewise.
19330         * scripts/mkinstalldirs: Likewise.
19331         * scripts/rellns-sh: Likewise.
19332         * scripts/test-installation.pl: Likewise.
19333         * scripts/update-copyrights: Likewise.
19334         * stdio-common/tst-printf.sh: Likewise.
19335         * stdio-common/tst-unbputc.sh: Likewise.
19336         * stdlib/tst-fmtmsg.sh: Likewise.
19337         * stdlib/tst-setcontext3.sh: Likewise.
19338         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
19339         * sysdeps/unix/make-syscalls.sh: Likewise.
19340
19341 2016-01-06  John David Anglin  <dave.anglin@bell.net>
19342
19343         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
19344         asm stw with atomic_exchange_rel.  Add explanatory comment.
19345         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19346         Likewise.
19347
19348 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19349
19350         [BZ #19122]
19351         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
19352         * sysdeps/generic/dl-unistd.h: New file.
19353         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
19354
19355 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19356
19357          [BZ #19122]
19358          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
19359          * sysdeps/generic/dl-mman.h: New file.
19360          * sysdeps/mach/hurd/dl-mman.h: Likewise.
19361
19362 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
19363
19364         * manual/texinfo.tex: Update to version 2016-01-04.21 with
19365         trailing whitespace removed.
19366         * scripts/config.guess: Update to version 2016-01-01.
19367         * scripts/config.sub: Update to version 2016-01-01.
19368         * scripts/move-if-change: Update from gnulib.
19369
19370 2016-01-04  Anton Blanchard  <anton@samba.org>
19371
19372         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
19373         for array indices.
19374         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
19375
19376 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
19377
19378         * NEWS: Update copyright dates.
19379         * catgets/gencat.c (print_version): Likewise.
19380         * csu/version.c (banner): Likewise.
19381         * debug/catchsegv.sh: Likewise.
19382         * debug/pcprofiledump.c (print_version): Likewise.
19383         * debug/xtrace.sh (do_version): Likewise.
19384         * elf/ldconfig.c (print_version): Likewise.
19385         * elf/ldd.bash.in: Likewise.
19386         * elf/pldd.c (print_version): Likewise.
19387         * elf/sotruss.sh: Likewise.
19388         * elf/sprof.c (print_version): Likewise.
19389         * iconv/iconv_prog.c (print_version): Likewise.
19390         * iconv/iconvconfig.c (print_version): Likewise.
19391         * locale/programs/locale.c (print_version): Likewise.
19392         * locale/programs/localedef.c (print_version): Likewise.
19393         * login/programs/pt_chown.c (print_version): Likewise.
19394         * malloc/memusage.sh (do_version): Likewise.
19395         * malloc/memusagestat.c (print_version): Likewise.
19396         * malloc/mtrace.pl: Likewise.
19397         * manual/libc.texinfo: Likewise.
19398         * nptl/version.c (banner): Likewise.
19399         * nscd/nscd.c (print_version): Likewise.
19400         * nss/getent.c (print_version): Likewise.
19401         * nss/makedb.c (print_version): Likewise.
19402         * posix/getconf.c (main): Likewise.
19403         * scripts/test-installation.pl: Likewise.
19404         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19405
19406         * All files with FSF copyright notices: Update copyright dates
19407         using scripts/update-copyrights.
19408         * intl/plural.c: Regenerated.
19409         * locale/programs/charmap-kw.h: Likewise.
19410         * locale/programs/locfile-kw.h: Likewise.
19411
19412 2016-01-02  Helge Deller  <deller@gmx.de>
19413
19414         [BZ #19285]
19415         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
19416         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
19417         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
19418         (MADV_xxK_PAGES): Remove.
19419
19420 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
19421
19422         [BZ #15421]
19423         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
19424         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
19425         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
19426         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
19427
19428 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
19429
19430         [BZ #19408]
19431         * sysdeps/unix/sysv/linux/personality.c: New file.
19432         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
19433         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
19434         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
19435         (sysdep_routines): Add personality.
19436         (tests): Add tst-personality.
19437         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
19438         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
19439         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
19440         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
19441         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
19442         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
19443         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
19444         Likewise.
19445         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
19446         Likewise.
19447         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
19448         Likewise.
19449         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
19450         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
19451         Likewise.
19452
19453 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
19454
19455         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
19456         (PATH_ARM_SYSTYPE): Remove.
19457         (PATH_CPUINFO): Likewise.
19458         (IO_BASE_FOOTBRIDGE): Likewise.
19459         (IO_SHIFT_FOOTBRIDGE): Likewise.
19460         (struct platform): Likewise.
19461         (init_iosys): Remove compatibility code for 2.4 kernels.
19462         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
19463
19464 2015-12-29  Florian Weimer  <fweimer@redhat.com>
19465
19466         * malloc/tst-malloc-thread-fail.c: New file.
19467         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
19468         (tst-malloc-thread-fail): Link against libpthread.
19469
19470 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
19471
19472         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
19473         (get_parser): New function.
19474         (main): New function.
19475
19476 2015-12-29  Rob Wu  <rob@robwu.nl>
19477
19478         [BZ #19369]
19479         * resolv/res_init.c (__res_vinit): Reset defdname before use.
19480
19481 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
19482
19483         [BZ #19270]
19484         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
19485
19486 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
19487
19488         [BZ #15421]
19489         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
19490
19491 2015-12-23  Torvald Riegel  <triegel@redhat.com>
19492
19493         [BZ #13690]
19494         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
19495         after releasing it.
19496         (__lll_robust_unlock): Likewise.
19497         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
19498         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
19499         (lll_robust_unlock): Likewise.
19500         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
19501         Prevent warnings in callers.
19502
19503 2015-12-23  Florian Weimer  <fweimer@redhat.com>
19504
19505         * malloc/arena.c (list_lock): Update comment.
19506
19507 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19508
19509         * sysdeps/powerpc/hwcapinfo.c: Export symbol
19510         __parse_hwcap_and_convert_at_platform to libc.a.
19511
19512 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19513
19514         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
19515         platform and feature support for POWER9.
19516         * sysdeps/powerpc/dl-procinfo.h: Likewise.
19517         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
19518         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
19519         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
19520         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
19521         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
19522         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
19523         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
19524
19525 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19526
19527         Harmonize generic stdio-lock support with nptl
19528
19529         This fixes build when _IO_funlockfile is a macro, fixes build where
19530         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
19531         stack unwind.
19532
19533         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
19534         _IO_release_lock ): Use cleanup attribute on new
19535         _IO_acquire_lock_file variable instead of assuming that
19536         _IO_release_lock will be called.
19537         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
19538         _IO_acquire_lock_needs_exceptions_enabled.
19539         (_IO_acquire_lock_clear_flags2): New macro.
19540
19541 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19542
19543         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
19544
19545 2015-12-21  Florian Weimer  <fweimer@redhat.com>
19546
19547         [BZ #19182]
19548         * malloc/arena.c (list_lock): Document lock ordering requirements.
19549         (free_list_lock): New lock.
19550         (ptmalloc_lock_all): Comment on free_list_lock.
19551         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
19552         (detach_arena): Update comment.  free_list_lock is now needed.
19553         (_int_new_arena): Use free_list_lock around detach_arena call.
19554         Acquire arena lock after list_lock.  Add comment, including FIXME
19555         about incorrect synchronization.
19556         (get_free_list): Switch to free_list_lock.
19557         (reused_arena): Acquire free_list_lock around detach_arena call
19558         and attached threads counter update.  Add two FIXMEs about
19559         incorrect synchronization.
19560         (arena_thread_freeres): Switch to free_list_lock.
19561         * malloc/malloc.c (struct malloc_state): Update comments to
19562         mention free_list_lock.
19563
19564 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
19565
19566         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
19567         Remove functions.
19568         (sloww, sloww1): Accept argument to offset quadrant.
19569         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
19570         quadrant.
19571         (__sin, __cos): Consolidate common code into new functions.
19572         (reduce_sincos_1, do_sincos_1): New functions.
19573         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
19574
19575         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
19576         code to new functions.
19577         (reduce_sincos_2, do_sincos_2): New functions.
19578         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
19579
19580         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
19581         common code for sincos.
19582         (__cos) [!IN_SINCOS]: Likewise.
19583         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
19584         New function.
19585         (__sincos): Use it.
19586
19587 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
19588
19589         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
19590         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
19591         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19592
19593 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19594
19595         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
19596         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
19597         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
19598         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
19599         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19600         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
19601         index_Prefer_No_VZEROUPPER): New feature.
19602         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
19603         Prefer_No_VZEROUPPER for Knights Landing.
19604
19605 015-12-18  Torvald Riegel  <triegel@redhat.com>
19606
19607         * math/atest-exp2.c (mp_exp_m1): Remove.
19608
19609 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19610
19611         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
19612         syscalls.
19613         (__SYSCALL0): New macro.
19614         (__SYSCALL1): Likewise.
19615         (__SYSCALL2): Likewise.
19616         (__SYSCALL3): Likewise.
19617         (__SYSCALL4): Likewise.
19618         (__SYSCALL5): Likewise.
19619         (__SYSCALL6): Likewise.
19620         (__SYSCALL_CONCAT_X): Likewise.
19621         (__SYSCALL_CONCAT): Likewise.
19622         (__SYSCALL_DIST): Likewise.
19623         (__SYSCALL_CALL): Likewise.
19624
19625 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
19626
19627         [BZ #19363]
19628         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
19629
19630 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19631
19632         [BZ #19375]
19633         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
19634         negative subnormals.
19635
19636 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
19637
19638         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
19639         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
19640         (INTERNAL_SYSCALL_NCS): Use it.
19641         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
19642
19643 2015-12-16  Florian Weimer  <fweimer@redhat.com>
19644
19645         [BZ #19243]
19646         * malloc/arena.c (get_free_list): Remove assert and adjust
19647         reference count handling.  Add comment about reused_arena
19648         interaction.
19649         (reused_arena): Add comments abount get_free_list interaction.
19650         * malloc/tst-malloc-thread-exit.c: New file.
19651         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
19652         (tst-malloc-thread-exit): Link against libpthread.
19653
19654 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19655
19656         [BZ #19367]
19657         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
19658         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
19659         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
19660         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
19661         (index_Prefer_MAP_32BIT_EXEC): Likewise.
19662
19663 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19664
19665         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
19666         Silvermont optimizations for Knights Landing.
19667
19668 2015-12-15  Andreas Schwab  <schwab@suse.de>
19669
19670         [BZ #17197]
19671         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
19672         immediately after emitting SI.
19673         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
19674         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
19675         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
19676         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
19677         * iconvdata/bug-iconv10.c: New file.
19678         * iconvdata/Makefile (tests): Add bug-iconv10.
19679         ($(objpfx)bug-iconv10.out): New rule.
19680
19681 2015-12-15  Florian Weimer  <fweimer@redhat.com>
19682
19683         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
19684         aliasing violation.
19685
19686 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
19687
19688         [BZ #18472]
19689         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
19690         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
19691         conditionals for them.
19692         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
19693         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
19694         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
19695         sys/kdaemon.h.
19696         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
19697         compat-only syscall, obsoleted in glibc 2.23.
19698         (create_module): Likewise.
19699         (get_kernel_syms): Likewise.
19700         (query_module): Likewise.
19701         (uselib): Likewise.
19702         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
19703
19704 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
19705
19706         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
19707         <linux/version.h>.
19708         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
19709         conditional code.
19710         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
19711         and ioshift_name initialization.
19712
19713 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19714
19715         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
19716         Fix indentation.
19717
19718 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19719
19720         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
19721
19722 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19723
19724         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
19725
19726 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
19727             Jakub Wilk  <jwilk@debian.org>
19728
19729         [BZ #19347]
19730         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
19731         to change the group of the device to the tty group.
19732
19733 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
19734
19735         Split large string section; add truncation advice
19736         * manual/examples/strncat.c: Remove.
19737         This example was misleading, as the code would have undefined
19738         behavior if "hello" was longer than SIZE.  Anyway, the manual
19739         shouldn't encourage strncpy+strncat for this sort of thing.
19740         * manual/string.texi (Copying Strings and Arrays): Split into
19741         three sections Copying Strings and Arrays, Concatenating Strings,
19742         and Truncating Strings, as this section was way too long.  All
19743         cross-referenced changed.  Add advice about string-truncation
19744         functions.  Remove misleading strncat example.
19745
19746 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
19747
19748         * manual/nss.texi (NSS Modules Interface): Document
19749         NSS_STATUS_NOTFOUND and SUCCESS.
19750
19751 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
19752
19753         [BZ 18568]
19754         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19755         201505L, for Unicode 8.
19756
19757 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
19758
19759         * locale/C-translit.h: Regenerate.
19760
19761 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
19762
19763         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
19764         and U+0153.
19765
19766 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
19767
19768         [BZ #19351]
19769         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
19770         expanding log(1+z), compare z rather than its square with epsilon
19771         to determine when to avoid evaluating the expansion.
19772
19773         [BZ #19350]
19774         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
19775         Increase overflow threshold.
19776
19777         [BZ #19349]
19778         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
19779         when small.
19780
19781         * sysdeps/unix/sysv/linux/i386/kernel-features.h
19782         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
19783         New macro.
19784         [__LINUX_KERNEL_VERSION >= 0x040300]
19785         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19786         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
19787         Likewise.
19788         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
19789         Likewise.
19790         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
19791         Likewise.
19792         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
19793         Likewise.
19794         [__LINUX_KERNEL_VERSION >= 0x040300]
19795         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
19796         [__LINUX_KERNEL_VERSION >= 0x040300]
19797         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19798         [__LINUX_KERNEL_VERSION >= 0x040300]
19799         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19800         [__LINUX_KERNEL_VERSION >= 0x040300]
19801         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19802         [__LINUX_KERNEL_VERSION >= 0x040300]
19803         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19804         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
19805         Likewise.
19806         [__LINUX_KERNEL_VERSION >= 0x040300]
19807         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
19808         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19809         Likewise.
19810         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
19811         Likewise.
19812         [__LINUX_KERNEL_VERSION >= 0x040300]
19813         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
19814         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19815         Likewise.
19816         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
19817         Likewise.
19818         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
19819         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
19820         Likewise.
19821         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
19822         Likewise.
19823         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
19824         Likewise.
19825         [__LINUX_KERNEL_VERSION >= 0x040300]
19826         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19827         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
19828         Likewise.
19829         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
19830         Likewise.
19831         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
19832         Likewise.
19833         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
19834         Likewise.
19835         [__LINUX_KERNEL_VERSION >= 0x040300]
19836         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
19837         [__LINUX_KERNEL_VERSION >= 0x040300]
19838         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19839         [__LINUX_KERNEL_VERSION >= 0x040300]
19840         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19841         [__LINUX_KERNEL_VERSION >= 0x040300]
19842         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19843         [__LINUX_KERNEL_VERSION >= 0x040300]
19844         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19845         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
19846         Likewise.
19847         [__LINUX_KERNEL_VERSION >= 0x040300]
19848         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
19849         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19850         Likewise.
19851         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
19852         Likewise.
19853         [__LINUX_KERNEL_VERSION >= 0x040300]
19854         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
19855         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19856         Likewise.
19857         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
19858         Likewise.
19859         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19860         (__ASSUME_SOCKET_SYSCALL): Likewise.
19861         (__ASSUME_BIND_SYSCALL): Likewise.
19862         (__ASSUME_CONNECT_SYSCALL): Likewise.
19863         (__ASSUME_LISTEN_SYSCALL): Likewise.
19864         (__ASSUME_ACCEPT_SYSCALL): Likewise.
19865         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19866         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19867         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19868         (__ASSUME_SEND_SYSCALL): Likewise.
19869         (__ASSUME_SENDTO_SYSCALL): Likewise.
19870         (__ASSUME_RECV_SYSCALL): Likewise.
19871         (__ASSUME_RECVFROM_SYSCALL): Likewise.
19872         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
19873         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19874         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19875         (__ASSUME_SENDMSG_SYSCALL): Likewise.
19876         (__ASSUME_RECVMSG_SYSCALL): Likewise.
19877         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19878         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
19879         Likewise.
19880         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
19881         Likewise.
19882         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
19883         Likewise.
19884         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
19885         Likewise.
19886         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
19887         Likewise.
19888         [__LINUX_KERNEL_VERSION >= 0x020625]
19889         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19890         [__LINUX_KERNEL_VERSION >= 0x020625]
19891         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19892         [__LINUX_KERNEL_VERSION >= 0x020625]
19893         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19894         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
19895         Likewise.
19896         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
19897         Likewise.
19898         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
19899         Likewise.
19900         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
19901         Likewise.
19902         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
19903         Likewise.
19904         [__LINUX_KERNEL_VERSION >= 0x020625]
19905         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19906         [__LINUX_KERNEL_VERSION >= 0x020625]
19907         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19908         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
19909         Likewise.
19910         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
19911         Likewise.
19912
19913 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
19914
19915         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
19916         record the current if the current ABI and CPU support the FP64
19917         extension.
19918         (has-modd-spreg): Define to record the current if the current ABI and
19919         CPU support 32-bit floating point values in odd FPU registers.
19920         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19921         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
19922         $(has-modd-spreg) equals yes.
19923         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
19924         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
19925         $(has-modd-spreg) equal yes.
19926
19927 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
19928
19929         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
19930         basename.
19931
19932 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
19933
19934         * benchtests/Makefile (bench-math): Move ffs and ffsll...
19935         (bench-string): ... here.
19936         (bench): Add bench-string.
19937         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
19938         to *-benchset to reflect what they are.
19939         (benchset): Adjust.
19940
19941         * benchtests/sincos-inputs: Add inputs from sin-inputs and
19942         cos-inputs.
19943
19944 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
19945
19946         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
19947         __attribute__ ((__simd__)) for vector math function declarations.
19948
19949 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
19950
19951         Fix typo in strncat, wcsncat manual entries
19952         * manual/string.texi (Copying and Concatenation): Fix typos in
19953         sample implementations of strncat and wcsncat, by having them use
19954         the old value of the destination length, not the new one.
19955
19956 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
19957
19958         [BZ #16961]
19959         [BZ #16962]
19960         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
19961         string on the stack for strtod.
19962         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
19963         a string on the stack for strtof.
19964         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
19965         constructing a string on the stack for strtold.
19966         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
19967         __strtold_nan to GLIBC_PRIVATE.
19968         * math/test-nan-overflow.c: New file.
19969         * math/test-nan-payload.c: Likewise.
19970         * math/Makefile (tests): Add test-nan-overflow and
19971         test-nan-payload.
19972
19973 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
19974
19975         Consistency about byte vs character in string.texi
19976         * manual/string.texi (String and Array Utilities):
19977         Distinguish more carefully among bytes, multibyte characters,
19978         and wide characters.  Use "byte" when talking about C 'char',
19979         to distinguish it more clearly from multibyte characters.
19980         Say "wide character" or "multibyte character" instead of
19981         "character", when a wide or multibyte character is intended.
19982         Similarly for "multibyte string" versus "string".
19983         Define these terms more carefully.
19984
19985 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
19986
19987         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
19988         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
19989         Likewise.
19990         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19991         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19992         * sysdeps/sh/math_private.h: New file.
19993         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
19994         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
19995         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
19996         long double function name.
19997         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19998         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19999         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
20000         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
20001         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20002         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20003         Remove __finitel, __isinfl, and __isnanl.
20004         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20005         Likewise.
20006         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20007         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20008         Remove __finitel.
20009         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20010         Likewise.
20011         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20012
20013 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
20014
20015         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
20016         installed libmvec_nonshared.a.
20017
20018 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20019
20020         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
20021         (sysdep_routines): Likewise.
20022         (sysdep-rtld-routines): Likewise.
20023         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
20024         [$(subdir) = nptl](tests-static): test-get_hwcap-static
20025         * sysdeps/powerpc/Versions: Added new
20026         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
20027         * sysdeps/powerpc/hwcapinfo.c: New file.
20028         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
20029         and parse hwcap, hwcap2 and platform number information.
20030         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
20031         to store HWCAP+HWCAP2 and platform number.
20032         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
20033         for HWCAP+HWCAP2 and platform number in the TCB.
20034         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
20035         the HWCAP, HWCAP2 and platform number in the TCB.
20036         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
20037         (TLS_INIT_TP): Included calls to add the hwcap and
20038         at_platform values in the TCB in TP initialization.
20039         (TLS_DEFINE_INIT_TP): Likewise.
20040         (THREAD_GET_HWCAP): New macro.
20041         (THREAD_SET_HWCAP): Likewise.
20042         (THREAD_GET_AT_PLATFORM): Likewise.
20043         (THREAD_SET_AT_PLATFORM): Likewise.
20044         * sysdeps/powerpc/powerpc32/dl-machine.h:
20045         (dl_platform_init): New function that calls
20046         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
20047         powerpc32.
20048         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
20049         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
20050         this functionality, static linking case.
20051         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
20052         linking case.
20053         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
20054         __parse_hwcap_and_convert_at_platform for the static linking case.
20055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
20056         Included the new __parse_hwcap_and_convert_at_platform symbol in the
20057         ABI list for GLIBC 2.23.
20058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
20059         Likewise.
20060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
20061         Likewise.
20062
20063 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
20064
20065         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
20066         * configure: Regenerate.
20067         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
20068         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
20069
20070 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
20071
20072         * iconvdata/ibm930.c: Add comment explaining encoding uses.
20073         * iconvdata/ibm933.c: Likewise.
20074         * iconvdata/ibm935.c: Likewise.
20075         * iconvdata/ibm937.c: Likewise.
20076         * iconvdata/ibm939.c: Likewise.
20077
20078 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20079
20080         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
20081         pthread_join.
20082         * nptl/tst-cancel21.c (tf): Likewise.
20083
20084 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20085
20086         [BZ #19313]
20087         * bits/typesizes.h (__CPU_MASK_TYPE): New.
20088         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
20089         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
20090         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
20091         Likewise.
20092         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
20093         Likewise.
20094         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
20095         Likewise.
20096         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
20097         Likewise.
20098         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
20099         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
20100         unsigned long int with __CPU_MASK_TYPE.
20101
20102 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20103
20104         * sysdeps/aarch64/libm-test-ulps: Regenerated.
20105
20106 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
20107
20108         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
20109         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
20110         t512.x.
20111         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
20112
20113 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
20114
20115         [BZ #19214]
20116         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
20117         argument to return extended model.  Update family and model
20118         with extended family and model when family == 0x0f.
20119         (init_cpu_features): Updated.
20120
20121 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20122
20123         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
20124         signed off_t, so 32bit bigger than 2GiB values are fine actually.
20125
20126         * sysdeps/mach/hurd/mmap64.c: New file.
20127
20128 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
20129
20130         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
20131         rights for its main user thread in NEWTASK.
20132
20133 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
20134
20135         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
20136         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
20137
20138 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
20139
20140         [BZ #14259]
20141         * Makeconfig: Rename localedir to complocaledir.
20142         Rename inst_localedir to inst_complocaledir.
20143         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
20144         * config.make.in: Use complocaledir and libc_cv_complocaledir.
20145         * configure.ac: Use libc_cv_complocaledir.
20146         * configure: Regenerate.
20147         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
20148         -DCOMPLOCALEDIR.
20149         * locale/findlocale.c: Use COMPLOCALEDIR.
20150         * locale/loadarchive.c: Likewise.
20151         * locale/programs/locale.c: Likewise.
20152         * locale/programs/localedef.c: Likewise.
20153         * locale/programs/locarchive.c: Likewise.
20154         * localedata/Makefile: Use inst_complocaledir.
20155         * sysdeps/gnu/configure: Regenerate.
20156         * sysdeps/hppa/configure: Regenerate.
20157         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
20158         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
20160         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
20161         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
20162         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
20163         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
20164
20165 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
20166
20167         [BZ #19058]
20168         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
20169         AS_NEEDED.
20170         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
20171         workaround.
20172         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
20173         libmvec-static-only-routines): Added new file.
20174         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
20175
20176 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20177
20178         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
20179         of interrupted RPC instead of restoring it.
20180
20181         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
20182         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
20183         libc_hidden_def.
20184         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
20185         into initialized data instead of common. Define rtld_hidden_data_def.
20186         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
20187         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
20188         libc_hidden_def.
20189         (if_freenameindex): Add libc_hidden_weak.
20190         (if_nameindex): Add libc_hidden_weak.
20191         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
20192         __open64.
20193         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
20194         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
20195         * sysdeps/mach/nanosleep.c: Include <time.h>
20196         (__nanosleep): Rename to __libc_nanosleep.
20197         (__nanosleep): Add weak_alias.
20198         (nanosleep): Update alias.
20199
20200 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
20201
20202         * stdlib/strtod_nan.c: New file.
20203         * stdlib/strtod_nan_double.h: Likewise.
20204         * stdlib/strtod_nan_float.h: Likewise.
20205         * stdlib/strtod_nan_main.c: Likewise.
20206         * stdlib/strtod_nan_narrow.h: Likewise.
20207         * stdlib/strtod_nan_wide.h: Likewise.
20208         * stdlib/strtof_nan.c: Likewise.
20209         * stdlib/strtold_nan.c: Likewise.
20210         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
20211         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
20212         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
20213         * wcsmbs/wcstod_nan.c: Likewise.
20214         * wcsmbs/wcstof_nan.c: Likewise.
20215         * wcsmbs/wcstold_nan.c: Likewise.
20216         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
20217         strtold_nan.
20218         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
20219         wcstof_nan.
20220         * include/stdlib.h (__strtof_nan): Declare and use
20221         libc_hidden_proto.
20222         (__strtod_nan): Likewise.
20223         (__strtold_nan): Likewise.
20224         (__wcstof_nan): Likewise.
20225         (__wcstod_nan): Likewise.
20226         (__wcstold_nan): Likewise.
20227         * include/wchar.h (____wcstoull_l_internal): Declare.
20228         * stdlib/strtod_l.c: Do not include <ieee754.h>.
20229         (____strtoull_l_internal): Remove declaration.
20230         (STRTOF_NAN): Define macro.
20231         (SET_MANTISSA): Remove macro.
20232         (STRTOULL): Likewise.
20233         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
20234         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
20235         (STRTOF_NAN): Define macro.
20236         (SET_MANTISSA): Remove macro.
20237         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
20238         (SET_MANTISSA): Remove macro.
20239         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
20240         macro.
20241         (SET_MANTISSA): Remove macro.
20242         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
20243         macro.
20244         (SET_MANTISSA): Remove macro.
20245         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
20246         (SET_MANTISSA): Remove macro.
20247         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
20248         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
20249         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
20250
20251         [BZ #19266]
20252         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
20253         upper case and lower case letters inside NAN(), not using TOLOWER.
20254         * stdlib/tst-strtod-nan-locale-main.c: New file.
20255         * stdlib/tst-strtod-nan-locale.c: Likewise.
20256         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
20257         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
20258         Depend on $(gen-locales).
20259         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
20260         * wcsmbs/tst-wcstod-nan-locale.c: New file.
20261         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
20262         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
20263         Depend on $(gen-locales).
20264         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
20265
20266 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
20267
20268         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
20269
20270         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
20271         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
20272         __finitel, __isinfl, and __isnanl.
20273         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20274         Likewise.
20275         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
20277         __finitel.
20278         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20279         Likewise.
20280         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20281
20282 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
20283
20284         * malloc/memusage.c (me): Remove redundant getenv call.
20285
20286 2015-10-24  Florian Weimer  <fweimer@redhat.com>
20287
20288         [BZ #19143]
20289         [BZ #19164]
20290         * nptl/check-cpuset.h: Remove.
20291         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
20292         Remove CPU set size check.
20293         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
20294         Likewise.
20295         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
20296         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
20297         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
20298         (__pthread_setaffinity_new): Remove CPU set size check.
20299         * sysdeps/unix/sysv/linux/sched_setaffinity.c
20300         (__kernel_cpumask_size): Remove.
20301         (__sched_setaffinity_new): Remove CPU set size check.
20302         * manual/threads.texi (Default Thread Attributes): Remove stale
20303         reference to check_cpuset_attr, determine_cpumask_size in comment.
20304         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
20305         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
20306         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
20307         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
20308         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
20309         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
20310         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
20311         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
20312         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
20313         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
20314         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
20315         skeleton test file.
20316         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
20317         tst-affinity-pid.
20318
20319 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20320
20321         * scripts/update-abilist.sh: New file.
20322         * Makefile (+subdir_targets): Add subdir_update-all-abi.
20323         * Makerules (update-all-abi-%, update-all-abi)
20324         (subdir_update-all-abi): New targets.
20325         * elf/Makefile (update-all-abi): New target.
20326
20327 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20328
20329         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
20330         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
20331         (__libc_lock_define_initialized): Use it.
20332         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
20333         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
20334         * malloc/malloc.c (main_arena): Likewise.
20335         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20336         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20337
20338 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
20339
20340         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
20341         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
20342         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20343         (PTRACE_O_MASK): Update value.
20344         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
20345         New value in enum __ptrace_setoptions.
20346         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20347         (PTRACE_O_MASK): Update value.
20348         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
20349         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20350         (PTRACE_O_MASK): Update value.
20351         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
20352         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20353         (PTRACE_O_MASK): Update value.
20354         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
20355         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20356         (PTRACE_O_MASK): Update value.
20357         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
20358         New value in enum __ptrace_setoptions.
20359         (PTRACE_O_MASK): Update value.
20360         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
20361         New value in enum __ptrace_setoptions.
20362         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20363         (PTRACE_O_MASK): Update value.
20364
20365         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
20366         New macro.
20367         (PACKET_AUXDATA): Likewise.
20368         (PACKET_ORIGDEV): Likewise.
20369         (PACKET_VERSION): Likewise.
20370         (PACKET_HDRLEN): Likewise.
20371         (PACKET_RESERVE): Likewise.
20372         (PACKET_TX_RING): Likewise.
20373         (PACKET_LOSS): Likewise.
20374         (PACKET_VNET_HDR): Likewise.
20375         (PACKET_TX_TIMESTAMP): Likewise.
20376         (PACKET_TIMESTAMP): Likewise.
20377         (PACKET_FANOUT): Likewise.
20378         (PACKET_TX_HAS_OFF): Likewise.
20379         (PACKET_QDISC_BYPASS): Likewise.
20380         (PACKET_ROLLOVER_STATS): Likewise.
20381         (PACKET_FANOUT_DATA): Likewise.
20382         (PACKET_MR_UNICAST): Likewise.
20383
20384         [BZ #19242]
20385         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
20386         (TOUPPER): Likewise.
20387         * stdlib/tst-strtol-locale-main.c: New file.
20388         * stdlib/tst-strtol-locale.c: Likewise.
20389         * stdlib/Makefile (tests): Add tst-strtol-locale.
20390         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
20391         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
20392         Depend on $(gen-locales).
20393         * wcsmbs/tst-wcstol-locale.c: New file.
20394         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
20395         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
20396         tr_TR.ISO-8859-9.
20397         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
20398         Depend on $(gen-locales).
20399
20400 2015-11-20  Roland McGrath  <roland@hack.frob.com>
20401
20402         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
20403         __glibc_likely instead of __builtin_expect.  After falling back to
20404         dyncode_create in a non-ET_DYN case, use the allocate_code_data
20405         system interface to register the code pages as occupied.
20406
20407 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
20408
20409         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20410         [!ARM_MATH_PRIVATE_H].
20411         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
20412         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20413         [!HPPA_MATH_PRIVATE_H].
20414         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
20415         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
20416         to [!I386_MATH_PRIVATE_H].
20417         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
20418         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
20419         Change guard to [!M68K_MATH_PRIVATE_H].
20420         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
20421         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
20422         guard to [!MICROBLAZE_MATH_PRIVATE_H].
20423         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
20424         macro.
20425         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20426         [!MIPS_MATH_PRIVATE_H].
20427         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
20428         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20429         [!NIO2_MATH_PRIVATE_H].
20430         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
20431         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20432         [!TILE_MATH_PRIVATE_H].
20433         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
20434
20435         [BZ #15421]
20436         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
20437         initialize with 0 and define as weak alias of __signgam.
20438         * include/math.h [!_ISOMAC] (__signgam): Declare.
20439         * math/Makefile (libm-calls): Add w_lgamma_compat.
20440         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
20441         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
20442         test-signgam-ullong-init.
20443         (tests-static): Add test-signgam-uchar-static,
20444         test-signgam-uchar-init-static, test-signgam-uint-static,
20445         test-signgam-uint-init-static, test-signgam-ullong-static and
20446         test-signgam-ullong-init-static.
20447         (CFLAGS-test-signgam-uchar.c): New variable.
20448         (CFLAGS-test-signgam-uchar-init.c): Likewise.
20449         (CFLAGS-test-signgam-uchar-static.c): Likewise.
20450         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20451         (CFLAGS-test-signgam-uint.c): Likewise.
20452         (CFLAGS-test-signgam-uint-init.c): Likewise.
20453         (CFLAGS-test-signgam-uint-static.c): Likewise.
20454         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20455         (CFLAGS-test-signgam-ullong.c): Likewise.
20456         (CFLAGS-test-signgam-ullong-init.c): Likewise.
20457         (CFLAGS-test-signgam-ullong-static.c): Likewise.
20458         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20459         * math/Versions (libm): Add GLIBC_2.23.
20460         * math/lgamma-compat.h: New file.
20461         * math/test-signgam-main.c: Likewise.
20462         * math/test-signgam-uchar-init-static.c: Likewise.
20463         * math/test-signgam-uchar-init.c: Likewise.
20464         * math/test-signgam-uchar-static.c: Likewise.
20465         * math/test-signgam-uchar.c: Likewise.
20466         * math/test-signgam-uint-init-static.c: Likewise.
20467         * math/test-signgam-uint-init.c: Likewise.
20468         * math/test-signgam-uint-static.c: Likewise.
20469         * math/test-signgam-uint.c: Likewise.
20470         * math/test-signgam-ullong-init-static.c: Likewise.
20471         * math/test-signgam-ullong-init.c: Likewise.
20472         * math/test-signgam-ullong-static.c: Likewise.
20473         * math/test-signgam-ullong.c: Likewise.
20474         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
20475         wrapper of w_lgamma_main.c.
20476         * math/w_lgamma_compat.c: New file.
20477         * math/w_lgamma_compatf.c: Likewise.
20478         * math/w_lgamma_compatl.c: Likewise.
20479         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
20480         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20481         defining compatibility symbols.
20482         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
20483         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
20484         wrapper of w_lgammaf_main.c.
20485         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
20486         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20487         defining compatibility symbols.
20488         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
20489         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
20490         wrapper of w_lgammal_main.c.
20491         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
20492         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20493         defining compatibility symbols.
20494         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
20495         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
20496         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
20497         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
20498         <lgamma-compat.h>.
20499         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
20500         (__ieee754_gamma): Define as alias.
20501         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
20502         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
20503         <lgamma-compat.h>.
20504         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
20505         (__ieee754_gammaf): Define as alias.
20506         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
20507         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
20508         <lgamma-compat.h>.
20509         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
20510         (__ieee754_gammal): Define as alias.
20511         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
20512         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
20513         <math/w_lgamma_compat.c>.
20514         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
20515         Define as alias of __lgamma_compat and use in defining lgammal.
20516         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
20517         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
20518         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
20519         (USE_AS_COMPAT): New macro.
20520         (LGAMMA_OLD_VER): Undefine and redefine.
20521         (lgammal): Do not define here.
20522         (gammal): Only define here if [GAMMA_ALIAS].
20523         * conform/linknamespace.pl (@whitelist): Remove signgam.
20524         * sysdeps/nacl/libm.abilist: Update.
20525         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20526         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20527         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20528         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20529         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20530         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20531         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20532         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20533         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20534         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20535         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20536         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20538         Likewise.
20539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20540         Likewise.
20541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20542         Likewise.
20543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20544         Likewise.
20545         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20546         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20547         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20548         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20549         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20550         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20551         Likewise.
20552         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20553         Likewise.
20554         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20555         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20556         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20557
20558 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20559
20560         [BZ #16364]
20561         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
20562         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
20563
20564 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20565
20566         * sysdeps/s390/fpu/bits/mathinline.h:
20567         Use __asm__ [__volatile__] instead of asm [volatile].
20568         * sysdeps/s390/abort-instr.h: Likewise.
20569         * sysdeps/s390/atomic-machine.h: Likewise.
20570         * sysdeps/s390/bits/string.h: Likewise.
20571         * sysdeps/s390/dl-tls.h: Likewise.
20572         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
20573         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
20574         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
20575         * sysdeps/s390/fpu/fesetround.c: Likewise.
20576         * sysdeps/s390/fpu/fpu_control.h: Likewise.
20577         * sysdeps/s390/fpu/s_fma.c: Likewise.
20578         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
20579         * sysdeps/s390/memusage.h: Likewise.
20580         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
20581         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
20582         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
20583         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
20584         * sysdeps/s390/nptl/tls.h: Likewise.
20585         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
20586         * sysdeps/s390/s390-32/backtrace.c: Likewise.
20587         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
20588         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
20589         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
20590         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
20591         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
20592         * sysdeps/s390/s390-64/backtrace.c: Likewise.
20593         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
20594         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
20595         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
20596         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
20597         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
20598         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
20599         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20600         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20601         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
20602         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
20603         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
20604         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20605         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
20606         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
20607         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
20608
20609 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20610             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20611
20612         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
20613         Add lwarx hint, and use macro for acquire instruction.
20614         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
20615         Likewise.
20616         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
20617         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
20618         update to use new atomic macros.
20619
20620 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20621
20622         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20623         (__lll_trylock_elision): Fix setting of adapt_count.
20624         * sysdeps/unix/sysv/linux/powerpc/htm.h
20625         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
20626         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
20627         (_ABORT_SYSCALL): Renumber, and clarify definition.
20628         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
20629
20630 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20631
20632         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
20633         after system headers to prevent MIN/MAX redefinition.  Define
20634         HAVE_ALLOCA to preserve builtin alloca usage.
20635
20636 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
20637
20638         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
20639         static and don't set or restore rounding.
20640         (__cos)[IN_SINCOS]: Likewise.
20641         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
20642         (__sincos): Set and restore rounding mode.  Remove check for infinite
20643         or NaN input.
20644
20645         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
20646
20647         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
20648         as used.
20649
20650 2015-11-16  Florian Weimer  <fweimer@redhat.com>
20651
20652         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
20653
20654 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
20655
20656         * config.make.in (have-glob-dat-reloc): New.
20657         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
20658         target supports GLOB_DAT relocaton. AC_SUBST.
20659         * configure: Regenerated.
20660         * elf/Makefile (tests): Add tst-prelink.
20661         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
20662         (tst-prelink-ENV): New.
20663         ($(objpfx)tst-prelink-conflict.out): Likewise.
20664         ($(objpfx)tst-prelink-cmp.out): Likewise.
20665         * sysdeps/x86/tst-prelink.c: Moved to ...
20666         * elf/tst-prelink.c: Here.
20667         * sysdeps/x86/tst-prelink.exp: Moved to ...
20668         * elf/tst-prelink.exp: Here.
20669         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
20670         (tst-prelink-ENV): Removed.
20671         ($(objpfx)tst-prelink-conflict.out): Likewise.
20672         ($(objpfx)tst-prelink-cmp.out): Likewise.
20673         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
20674
20675 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
20676
20677         [BZ #14551]
20678         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
20679         (__mpn_construct_long_double): If high part overflows to infinity,
20680         set errno and recompute overflowed result of the correct sign.
20681         * sysdeps/ieee754/ldbl-128ibm/Makefile
20682         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
20683         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
20684         $(libm).
20685         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
20686
20687 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
20688
20689         [BZ #15479]
20690         [BZ #19238]
20691         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
20692         floating-point state after first operation on input.  Restore full
20693         state rather than just rounding mode.
20694         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
20695         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
20696         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
20697
20698         [BZ #19235]
20699         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
20700         add 0.5 to integer arguments.
20701         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
20702         Likewise.
20703         (.LC2): New object.
20704
20705 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
20706
20707         * scripts/pylintrc (reports): Set to no.
20708
20709 2015-11-10  Roland McGrath  <roland@hack.frob.com>
20710
20711         * elf/dl-load.c (open_verify): Take new argument FD.
20712         Skip __open call if passed FD is not -1.
20713         (_dl_map_object, open_path): Update callers.
20714         * elf/dl-sysdep-open.h: New file.
20715         * elf/dl-load.c: Include it.
20716         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
20717         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
20718         * sysdeps/nacl/dl-sysdep-open.h: New file.
20719         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
20720         from libc to rtld.
20721
20722 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
20723
20724         [BZ #19228]
20725         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
20726         and restore full floating-point state.
20727         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
20728         Likewise.
20729         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
20730         Likewise.
20731         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
20732         Likewise.
20733         * math/test-nearbyint-except-2.c: New file.
20734         * math/Makefile (tests): Add test-nearbyint-except-2.
20735
20736 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
20737
20738         [BZ #19178]
20739         * sysdeps/x86/Makefile (tests): Add tst-prelink.
20740         (tst-prelink-ENV): New.
20741         ($(objpfx)tst-prelink-conflict.out): Likewise.
20742         ($(objpfx)tst-prelink-cmp.out): Likewise.
20743         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
20744         * sysdeps/x86/tst-prelink.c: New file.
20745         * sysdeps/x86/tst-prelink.exp: Likewise.
20746
20747 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
20748
20749         * math/auto-libm-test-in: Add another test of pow.
20750         * math/auto-libm-test-out: Regenerated.
20751         * math/libm-test.inc (pow_test_data): Add another test.
20752
20753 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20754
20755         [BZ #19219]
20756         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
20757         weak_alias to nearbyintl.
20758
20759 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
20760
20761         * sysdeps/aarch64/bits/string.h: New file.
20762         (_STRING_ARCH_unaligned): Define.
20763
20764 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
20765
20766         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
20767         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
20768         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
20769         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
20770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
20771
20772 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
20773
20774         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
20775         for original name of the DSO.  Add it to the name list of the DSO
20776         if it is actually given.
20777         (_dl_map_object): Keep track of whether an audit module rewrote
20778         the file name.  If yes, pass the original name to
20779         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
20780         debugging is enabled, log the change of the file name.
20781         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
20782         _dl_map_object_from_fd.
20783         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
20784         * elf/tst-audit11.c: New file
20785         * elf/tst-auditmod11.c: New file.
20786         * elf/tst-audit11mod1.c: New file.
20787         * elf/tst-audit11mod2.c: New file.
20788         * elf/tst-audit11mod2.map: New file.
20789         * elf/tst-audit12.c: New file
20790         * elf/tst-auditmod12.c: New file.
20791         * elf/tst-audit12mod1.c: New file.
20792         * elf/tst-audit12mod2.c: New file.
20793         * elf/tst-audit12mod2.map: New file.
20794         * elf/tst-audit12mod3.c: New file.
20795
20796 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
20797
20798         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
20799         Don't create weak aliases,
20800         because versioned symbols are created later.
20801         * sysdeps/s390/s390-32/setjmp.S
20802         (setjmp, _setjmp): Remove weak and rename to an unique name
20803         in SHARED case due to existing versioned symbols.
20804         * sysdeps/s390/s390-64/setjmp.S: Likewise.
20805         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
20806         (getcontext): Create weak alias only in non SHARED case.
20807         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20808
20809 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
20810
20811         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
20812         (__ASSUME_*_SYSCALL) Define new macros.
20813         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
20814         Remove socketcall syscalls.
20815         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
20816         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
20817         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
20818         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
20819         * sysdeps/unix/sysv/linux/send.c (__libc_send):
20820         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
20821
20822 2015-11-09  Florian Weimer  <fweimer@redhat.com>
20823
20824         [BZ #12926]
20825         Terminate process on invalid netlink response.
20826         * sysdeps/unix/sysv/linux/netlinkaccess.h
20827         (__netlink_assert_response): Declare.
20828         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
20829         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
20830         (sysdep_routines): Add netlink_assert_response.
20831         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
20832         __netlink_assert_response.
20833         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
20834         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
20835         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
20836         __netlink_assert_response.
20837
20838 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20839
20840         [BZ #19178]
20841         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
20842         (RTYPE_CLASS_PLT): Likewise.
20843         (RTYPE_CLASS_COPY): Likewise.
20844         (RTYPE_CLASS_TLS): Likewise.
20845         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
20846         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
20847         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
20848         DL_DEBUG_PRELINK.
20849
20850 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
20851
20852         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
20853         calls with argument -0.5.
20854         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
20855
20856         * configure.ac (libc_cv_z_nodelete): Remove configure test.
20857         (libc_cv_z_nodlopen): Likewise.
20858         (libc_cv_z_initfirst): Likewise.
20859         * configure: Regenerated.
20860
20861 2015-11-06  Florian Weimer  <fweimer@redhat.com>
20862
20863         Simplify abilist format to be line-based.
20864         * scripts/abilist.awk: Collect descriptors in the descs variable.
20865         (emit): Write descs variable and sort it
20866         externally, with sort.
20867         * sysdeps/**/*.abilist: Convert to new format.
20868
20869 2015-11-06  Mark Wielaard  <mjw@redhat.com>
20870
20871         [BZ #11460]
20872         * io/Makefile (routines): Add fts64.
20873         (tests): Add tst-fts and tst-fts-lfs.
20874         (CFLAGS-fts64.c): New.
20875         * io/Versions (GLIBC_2.23): New.
20876         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
20877         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
20878         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
20879         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
20880         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
20881         (FTSENT64): Likewise.
20882         (fts64_children): Likewise.
20883         (fts64_close): Likewise.
20884         (fts64_open): Likewise.
20885         (fts64_read): Likewise.
20886         (fts64_set): Likewise.
20887         * io/fts64.c: New file.
20888         * io/tst-fts.c: New test.
20889         * io/tst-fts-lfs.c: Likewise.
20890         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
20891         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
20892         fts64_set.
20893         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20894         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20895         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20896         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20897         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20898         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20899         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20900         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20901         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20902         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
20903         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20904         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20905         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20907         Likewise.
20908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20909         Likewise.
20910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
20911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
20912         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20913         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20914         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20915         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20916         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
20918         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
20919         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20920         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20921         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20922         * sysdeps/wordsize-64/fts.c: New file.
20923         * sysdeps/wordsize-64/fts64.c: Likewise.
20924         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
20925         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
20926         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
20927         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
20928
20929 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
20930
20931         * math/libm-test.inc (NON_FINITE): New macro.
20932         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
20933         * math/gen-libm-test.pl (show_exceptions): Add argument
20934         $non_finite.
20935         (parse_args): Update call to show_exceptions.
20936         * math/test-math-finite.h: New file.
20937         * math/test-math-no-finite.h: Likewise.
20938         * math/test-double-finite.c: Likewise.
20939         * math/test-float-finite.c: Likewise.
20940         * math/test-ldouble-finite.c: Likewise.
20941         * math/test-double.c: Include "test-math-no-finite.h".
20942         * math/test-float.c: Include "test-math-no-finite.h".
20943         * math/test-ldouble.c: Include "test-math-no-finite.h".
20944         * math/test-math-inline.h (TEST_FINITE): New macro.
20945         * math/test-math-vector.h (TEST_FINITE): Likewise.
20946         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
20947         (libm-tests): Add test-float-finite and test-double-finite.
20948         ($(objpfx)test-float-finite.o): New dependency on
20949         $(objpfx)libm-test.stmp.
20950         ($(objpfx)test-double-finite.o): Likewise.
20951         ($(objpfx)test-ldouble-finite.o): Likewise.
20952         (libm-test-no-inline-cflags): New variable.
20953         (libm-test-finite-cflags): Likewise.
20954         (CFLAGS-test-float-finite.c): Likewise.
20955         (CFLAGS-test-double-finite.c): Likewise.
20956         (CFLAGS-test-ldouble-finite.c): Likewise.
20957         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
20958         (CFLAGS-test-double.c): Likewise.
20959         (CFLAGS-test-ldouble.c): Likewise.
20960
20961 2015-11-05  Roland McGrath  <roland@hack.frob.com>
20962
20963         * io/fcntl.c (__fcntl): Add ... to prototype.
20964         * misc/ioctl.c (__ioctl): Likewise.
20965         * misc/syscall.c (syscall): Likewise.
20966
20967 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
20968
20969         * scripts/list-fixed-bugs.py: New file.
20970
20971         [BZ #19213]
20972         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
20973         returned for argument 1.
20974         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
20975         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
20976         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
20977         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
20978         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
20979         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
20980
20981         [BZ #19211]
20982         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
20983         __USE_XOPEN], not if [!__USE_ISOC99].
20984         (lgammaf): Likewise.
20985         (lgammal): Likewise.
20986         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
20987         (gammaf): Likewise.
20988         (gammal): Likewise.
20989         * math/test-signgam-finite-c11.c: New file.
20990         * math/test-signgam-finite-c99.c: Likewise.
20991         * math/test-signgam-finite.c: Likewise.
20992         * math/Makefile (tests): Add test-signgam-finite,
20993         test-signgam-finite-c99 and test-signgam-finite-c11.
20994         (CFLAGS-test-signgam-finite.c): New variable.
20995         (CFLAGS-test-signgam-finite-c99.c): Likewise.
20996         (CFLAGS-test-signgam-finite-c11.c): Likewise.
20997
20998         [BZ #19212]
20999         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
21000         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
21001         500].
21002         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
21003         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
21004         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
21005         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
21006         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
21007         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
21008         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
21009         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
21010         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
21011         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
21012
21013         [BZ #19209]
21014         * math/bits/math-finite.h (ldexp): Remove declaration.
21015         (ldexpf): Likewise.
21016         (ldexpl): Likewise.
21017
21018         [BZ #19205]
21019         * math/bits/math-finite.h (acosf): Condition declaration on
21020         [__USE_ISOC99].
21021         (acosl): Likewise.
21022         (acoshf): Likewise.
21023         (acoshl): Likewise.
21024         (asinf): Likewise.
21025         (asinl): Likewise.
21026         (atan2f): Likewise.
21027         (atan2l): Likewise.
21028         (atanhf): Likewise.
21029         (atanhl): Likewise.
21030         (coshf): Likewise.
21031         (coshl): Likewise.
21032         (expf): Likewise.
21033         (expl): Likewise.
21034         (fmodf): Likewise.
21035         (fmodl): Likewise.
21036         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
21037         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
21038         (j0l): Likewise.
21039         (y0f): Likewise.
21040         (y0l): Likewise.
21041         (j1f): Likewise.
21042         (j1l): Likewise.
21043         (y1f): Likewise.
21044         (y1l): Likewise.
21045         (jnf): Likewise.
21046         (jnl): Likewise.
21047         (ynf): Likewise.
21048         (ynl): Likewise.
21049         (lgammaf_r): Condition declaration on [__USE_ISOC99].
21050         (lgammal_r): Likewise.
21051         (__lgamma_r_finite): New declaration.
21052         (__lgammaf_r_finite): Likewise.
21053         (__lgammal_r_finite): Likewise.
21054         (lgamma): Use __lgamma_r_finite.
21055         (lgammaf): Condition definition on [__USE_ISOC99].  Use
21056         __lgammaf_r_finite.
21057         (lgammal): Condition definition on [__USE_ISOC99].  Use
21058         __lgammal_r_finite.
21059         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
21060         __lgamma_r_finite.
21061         (gammaf): Condition definition on [__USE_ISOC99].  Use
21062         __lgammaf_r_finite.
21063         (gammal): Condition definition on [__USE_ISOC99].  Use
21064         __lgammal_r_finite.
21065         (logf): Condition declaration on [__USE_ISOC99].
21066         (logl): Likewise.
21067         (log10f): Likewise.
21068         (log10l): Likewise.
21069         (ldexpf): Likewise.
21070         (ldexpl): Likewise.
21071         (powf): Likewise.
21072         (powl): Likewise.
21073         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
21074         __USE_ISOC99].
21075         (remainderf): Condition declaration on [__USE_ISOC99].
21076         (remainderl): Likewise.
21077         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
21078         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
21079         (scalbl): Likewise.
21080         (sinhf): Condition declaration on [__USE_ISOC99].
21081         (sinhl): Likewise.
21082         (sqrtf): Likewise.
21083         (sqrtl): Likewise.
21084
21085 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21086
21087         * sysdeps/arm/atomic-machine.h
21088         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
21089         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
21090         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
21091         Remove conditional code.
21092         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
21093         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
21094         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
21095         Change conditional to [__ASSEMBLER__].
21096         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21097         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
21098         [!__ASSEMBLER__].
21099         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
21100         code.
21101         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
21102         conditional macro definitions.
21103         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
21104         (__arch_compare_and_exchange_val_16_acq): Likewise.
21105         (__arch_compare_and_exchange_val_32_acq): Likewise.
21106         (atomic_exchange_and_add): Likewise.
21107         (atomic_add): Likewise.
21108         (atomic_add_negative): Likewise.
21109         (atomic_add_zero): Likewise.
21110         (atomic_bit_set): Likewise.
21111         (atomic_bit_test_set): Likewise.
21112         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
21113         code unconditional.
21114         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21115
21116         * math/test-math-errno.h: New file.
21117         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
21118         empty.
21119         (TEST_ERRNO): New macro.
21120         (TEST_EXCEPTIONS): Likewise.
21121         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
21122         (TEST_EXCEPTIONS): Likewise.
21123         * math/test-math-vector.h (TEST_ERRNO): Likewise.
21124         * math/test-double.c: Include "test-math-errno.h".
21125         * math/test-float.c: Likewise.
21126         * math/test-ldouble.c: Likewise.
21127         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
21128         code unconditional.
21129         (test_exceptions): Only run code if TEST_EXCEPTIONS.
21130         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
21131         unconditional.
21132         (test_errno): Only run code if TEST_ERRNO.
21133         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
21134
21135 2015-11-04  Florian Weimer  <fweimer@redhat.com>
21136
21137         * nptl/tst-once5.cc: Remove attribution.
21138
21139 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21140
21141         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
21142         sqrt, tan, tanh, y0, y1 and yn.
21143         * math/auto-libm-test-out: Regenerated.
21144         * math/libm-test.inc (scalb_test_data): Add more tests.
21145         (scalbn_test_data): Likewise.
21146         (scalbln_test_data): Likewise.
21147         (signbit_test_data): Likewise.
21148         (sin_test_data): Likewise.
21149         (sincos_test_data): Likewise.
21150         (sinh_test_data): Likewise.
21151         (sqrt_test_data): Likewise.
21152         (tan_test_data): Likewise.
21153         (tanh_test_data): Likewise.
21154         (tgamma_test_data): Likewise.
21155         (y0_test_data): Likewise.
21156         (y1_test_data): Likewise.
21157         (yn_test_data): Likewise.
21158         (significand_test_data): Likewise.
21159         * sysdeps/i386/fpu/libm-test-ulps: Update.
21160
21161 2015-11-03  David Kastrup  <dak@gnu.org>
21162
21163         [BZ #18604]
21164         * assert/assert.h (assert): Don't macro-expand failed assertion
21165         expression in error message.
21166         * malloc/malloc.c (assert): Likewise.
21167
21168 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
21169
21170         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
21171         test.
21172         * configure: Regenerated.
21173
21174 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
21175
21176         * math/libm-test.inc (modf_test_data): Add more tests.
21177         (nearbyint_test_data): Likewise.
21178         (nextafter_test_data): Likewise.
21179         (nexttoward_test_data): Likewise.
21180         (pow_test_data): Likewise.
21181         (remainder_test_data): Likewise.
21182         (remquo_test_data): Likewise.
21183         (rint_test_data): Likewise.
21184
21185         [BZ #19201]
21186         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
21187         Check for zero remainder in case of large exponents and ensure
21188         correct sign of result in that case.
21189         * math/libm-test.inc (remainder_test_data): Add more tests.
21190
21191         [BZ #6799]
21192         * math/s_nextafter.c: Include <errno.h>.
21193         (__nextafter): Set errno on overflow and underflow.
21194         * math/s_nexttowardf.c: Include <errno.h>.
21195         (__nexttowardf): Set errno on overflow and underflow.
21196         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
21197         (__nextafterl): Set errno on overflow and underflow.
21198         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
21199         (__nexttoward): Set errno on overflow and underflow.
21200         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
21201         (__nexttowardf): Set errno on overflow and underflow.
21202         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
21203         (__nextafterf): Set errno on overflow and underflow.
21204         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
21205         (__nextafterl): Set errno on overflow and underflow.
21206         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
21207         (__nexttoward): Set errno on overflow and underflow.
21208         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
21209         (__nexttowardf): Set errno on overflow and underflow.
21210         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
21211         (__nextafterl): Set errno on overflow and underflow.
21212         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
21213         (__nexttoward): Set errno on overflow and underflow.
21214         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
21215         (__nexttowardf): Set errno on overflow and underflow.
21216         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
21217         (__nexttoward): Set errno on overflow and underflow.
21218         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
21219         (__nexttowardf): Set errno on overflow and underflow.
21220         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
21221         (__nldbl_nexttowardf): Set errno on overflow and underflow.
21222         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
21223         (__nextafterl): Set errno on overflow and underflow.
21224         * math/libm-test.inc (nextafter_test_data): Do not allow errno
21225         setting to be missing on overflow.  Add more tests.
21226         (nexttoward_test_data): Likewise.
21227
21228         * configure.ac (libc_cv_initfini_array): Remove configure test.
21229         * configure: Regenerated.
21230
21231 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
21232
21233         [BZ #19189]
21234         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
21235         non-finite argument handle arguments with negative sign.
21236
21237         * math/libm-test.inc (j0_test_data): Do not test sign of zero
21238         result from infinite argument.
21239         (j1_test_data): Likewise.
21240         (jn_test_data): Likewise.
21241         (y0_test_data): Likewise.
21242         (y1_test_data): Likewise.
21243         (yn_test_data): Likewise.
21244
21245         [BZ #16171]
21246         * math/w_remainder.c (drem): Define as weak alias of __remainder.
21247         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
21248         * math/w_remainderf.c (dremf): Define as weak alias of
21249         __remainderf.
21250         * math/w_remainderl.c (dreml): Define as weak alias of
21251         __remainderl.
21252         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
21253         __remainder.
21254         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
21255         __remainderf.
21256         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
21257         __remainderl.
21258         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
21259         weak alias of remainderl.
21260         * sysdeps/ieee754/ldbl-opt/w_remainder.c
21261         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
21262         alias of __remainder.
21263         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
21264         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
21265         strong alias of __remainderl.
21266         (dreml): Use long_double_symbol.
21267         * math/Makefile (libm-calls): Remove w_drem.
21268         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
21269         (CFLAGS-nldbl-drem.c): Remove variable.
21270         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
21271         * math/w_drem.c: Remove file.
21272         * math/w_dremf.c: Likewise.
21273         * math/w_dreml.c: Likewise.
21274         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
21275         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
21276         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
21277
21278         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
21279         * sysdeps/i386/configure: Regenerated.
21280         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
21281         * sysdeps/x86_64/configure: Regenerated.
21282
21283         * configure.ac (libc_cv_asm_protected_directive): Remove configure
21284         test.
21285         (libc_cv_visibility_attribute): Likewise.
21286         (libc_cv_protected_data): Test unconditionally.
21287         (libc_cv_broken_visibility_attribute): Remove configure test.
21288         (libc_cv_have_sdata_section): Test unconditionally.
21289         * configure: Regenerated.
21290
21291         * include/libc-internal.h (libc_max_align_t): Remove typedef.
21292         * include/scratch_buffer.h: Include <stddef.h> instead of
21293         <libc-internal.h>.
21294         (struct scratch_buffer): Use max_align_t instead of
21295         libc_max_align_t.
21296
21297 2015-10-29  Florian Weimer  <fweimer@redhat.com>
21298
21299         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
21300         instead of extend_alloca.  Change control flow to avoid a goto.
21301         Remove assert which is trivially always true.
21302
21303 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21304
21305         [BZ #16068]
21306         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
21307         (FE_ALL_EXCEPT_X86): New macro.
21308         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21309         FE_ALL_EXCEPT.  Ensure precision control is included in
21310         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21311         handle "denormal operand exception" and clear FZ and DAZ bits.
21312         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
21313         (FE_ALL_EXCEPT_X86): New macro.
21314         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21315         FE_ALL_EXCEPT.  Ensure precision control is included in
21316         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21317         handle "denormal operand exception" and clear FZ and DAZ bits.
21318         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
21319         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
21320         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21321         test-fenv-x87 and test-fenv-sse-2.
21322         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
21323
21324         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
21325         * math/test-double.h (BUILD_COMPLEX): New macro.
21326         * math/test-float.h (BUILD_COMPLEX): Likewise.
21327         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
21328
21329         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
21330         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
21331         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
21332         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
21333         instead of DBL_DENORM_MIN in comment.
21334         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
21335         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21336         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
21337         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
21338         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
21339         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21340
21341 2015-10-28  Florian Weimer  <fweimer@redhat.com>
21342
21343         [BZ #19048]
21344         * malloc/malloc.c (struct malloc_state): Update comment.  Add
21345         attached_threads member.
21346         (main_arena): Initialize attached_threads.
21347         * malloc/arena.c (list_lock): Update comment.
21348         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
21349         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
21350         (deattach_arena): New function.
21351         (_int_new_arena): Initialize arena reference count and deattach
21352         replaced arena.
21353         (get_free_list, reused_arena): Update reference count and deattach
21354         replaced arena.
21355         (arena_thread_freeres): Update arena reference count and only put
21356         unreferenced arenas on the free list.
21357
21358 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21359
21360         [BZ #19181]
21361         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
21362         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
21363         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
21364         * math/test-fenv-clear-main.c: New file.
21365         * math/test-fenv-clear.c: Likewise.
21366         * math/Makefile (tests): Add test-fenv-clear.
21367         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
21368         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21369         test-fenv-clear-sse.
21370         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
21371
21372         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
21373         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
21374         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
21375
21376 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21377
21378         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
21379         static libc.
21380
21381 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21382
21383         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
21384         test.
21385         * sysdeps/i386/configure: Regenerated.
21386         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
21387         test.
21388         * sysdeps/x86_64/configure: Regenerated.
21389         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
21390         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21391         memset-avx2 unconditionally instead of conditionally on
21392         [$(config-cflags-avx2) = yes].
21393         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
21394         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
21395         unconditional.
21396         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
21397         * sysdeps/x86_64/multiarch/memset_chk.S
21398         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
21399         to [IS_IN (libc) && SHARED].
21400
21401 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21402
21403         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
21404         configure test.
21405         * sysdeps/arm/configure: Regenerated.
21406         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
21407         Define variable if not already defined.
21408
21409         [BZ #17404]
21410         * sysdeps/mips/atomic-machine.h
21411         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
21412         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
21413         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21414
21415         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
21416         unconditional.
21417         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
21418         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21419         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
21420         unconditional.
21421         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21422         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
21423         unconditional.
21424         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21425         * stdlib/setenv.c
21426         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
21427         code unconditional.
21428         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
21429         Remove conditional code.
21430         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
21431         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
21432         unconditional.
21433         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21434         code.
21435         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
21436         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
21437         unconditional.
21438         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21439         code.
21440         * sysdeps/ieee754/ldbl-128/k_tanl.c
21441         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21442         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21443         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
21444         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21445         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21446         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
21447         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
21448         unconditional.
21449         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21450         code.
21451         * sysdeps/ieee754/ldbl-96/k_tanl.c
21452         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21453         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21454
21455         * nptl/tst-initializers1-c11.c: New file.
21456         * nptl/tst-initializers1-gnu11.c: Likewise.
21457         * nptl/Makefile (tests): Add these new tests.
21458         (CFLAGS-tst-initializers1-c11.c): New variable.
21459         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21460
21461         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
21462         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
21463         instead of -std=gnu99.
21464         * configure.ac (systemtap): Test with -std=gnu11 instead of
21465         -std=gnu99.
21466         * configure: Regenerated.
21467         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
21468         in compilation command in comment.
21469
21470         * sysdeps/nptl/configure.ac: Remove file.
21471         * sysdeps/nptl/configure: Remove generated file.
21472         * configure.ac (libc_cv_forced_unwind): Do not substitute.
21473         * configure: Regenerated.
21474         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
21475         * config.make.in (have-forced-unwind): Remove variable.
21476         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
21477         unconditional.
21478         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
21479         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
21480         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
21481         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
21482         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
21483         unconditional.
21484
21485 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
21486
21487         [BZ #19174]
21488         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
21489         .skip_lock_out_of_tbegin_retries.
21490         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
21491         (__lll_lock_elision): Likewise, and respect a value of
21492         try_tbegin <= 0.
21493
21494 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21495
21496         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
21497         statement.
21498
21499 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21500
21501         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
21502         variable.
21503         (test-xfail-ISO11/stdalign.h/conform): Likewise.
21504         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
21505
21506         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
21507         of -std=c1x -D_ISOC11_SOURCE.
21508
21509         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
21510         * configure: Regenerated.
21511         * manual/install.texi (Tools for Compilation): Document
21512         requirement for GCC 4.7 or later.
21513         * INSTALL: Regenerated.
21514
21515 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
21516
21517         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
21518         on CNT to a conditional jump to 'puntdata'.
21519
21520 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21521
21522         * configure.ac (libc_cv_gcc___thread): Remove configure test.
21523         (libc_cv_gcc_tls_model_attr): Likewise.
21524         * configure: Regenerated.
21525
21526         * configure.ac (libc_cv_need_minus_P): Remove configure test.
21527         * configure: Regenerated.
21528         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
21529
21530 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
21531
21532         * configure.ac (old_glibc_headers): Remove configure test.
21533         * configure: Regenerated.
21534         * config.make.in (old-glibc-headers): Remove variable.
21535         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
21536         (install): Remove dependency on remove-old-headers.
21537         (headers2_0): Remove variable.
21538         (remove-old-headers): Remove rule.
21539
21540         * configure.ac (libc_cv_dot_text): Remove configure test.
21541         (libc_cv_asm_set_directive): Use .text instead of
21542         ${libc_cv_dot_text} in configure test.
21543         * configure: Regenerated.
21544
21545 2015-10-26  Florian Weimer  <fweimer@redhat.com>
21546
21547         [BZ #19168]
21548         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
21549
21550 2015-10-26  Florian Weimer  <fweimer@redhat.com>
21551
21552         * configure.ac (CXX): Clear the variable if the C++ toolchain does
21553         not support static linking.
21554         * configure: Regenerate.
21555
21556 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
21557
21558         * math/libm-test.inc (check_float_internal): Do not special-case
21559         errors up to 0.5 ulp.
21560
21561         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
21562         log2.
21563         * math/auto-libm-test-out: Regenerated.
21564         * math/libm-test.inc (MAX_EXP): New macro.
21565         (ilogb_test_data): Add more tests.
21566         (isfinite_test_data): Likewise.
21567         (isgreater_test_data): Likewise.
21568         (isgreaterequal_test_data): Likewise.
21569         (isinf_test_data): Likewise.
21570         (isless_test_data): Likewise.
21571         (islessequal_test_data): Likewise.
21572         (islessgreater_test_data): Likewise.
21573         (isnan_test_data): Likewise.
21574         (isnormal_test_data): Likewise.
21575         (issignaling_test_data): Likewise.
21576         (isunordered_test_data): Likewise.
21577         (j0_test_data): Likewise.
21578         (j1_test_data): Likewise.
21579         (jn_test_data): Likewise.
21580         (lgamma_test_data): Likewise.
21581         (log_test_data): Likewise.
21582         (log10_test_data): Likewise.
21583         (log1p_test_data): Likewise.
21584         (log2_test_data): Likewise.
21585         (logb_test_data): Likewise.
21586         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21587
21588         [BZ #18611]
21589         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
21590         avoid excess range and precision on underflow.
21591         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21592         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
21593         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21594         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
21595         underflow.
21596         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21597         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21598         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
21599         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21600         * math/auto-libm-test-in: Do not allow missing errno setting for
21601         tests of j1 and jn.
21602         * math/auto-libm-test-out: Regenerated.
21603
21604 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
21605
21606         [BZ #15491]
21607         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
21608         floating-point environment instead of clearing all exceptions.
21609         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
21610         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
21611         merging in "invalid" exceptions from frndint.
21612         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
21613         * math/test-nearbyint-except.c: New file.
21614         * math/Makefile (tests): Add test-nearbyint-except.
21615
21616 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
21617
21618         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
21619
21620         * sysdeps/tile/libm-test-ulps: Regenerated.
21621
21622 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21623
21624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
21625         (__NR_sync_file_range2): Assume it is always defined.
21626         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
21627         (__NR_sync_file_range): Assume it is always defined.
21628
21629 2015-10-22  Andreas Schwab  <schwab@suse.de>
21630
21631         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
21632         INTERNAL_SYSCALL_ERRNO.
21633         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21634         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
21635         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21636         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
21637         Likewise.
21638         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21639
21640 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21641
21642         * io/tst-fcntl.c (fd): New static variable.
21643         (do_prepare): Open temporary file here....
21644         (do_test): ...not here.
21645
21646         * io/ftwtest-sh: Also trap on exit to remove temporary files.
21647
21648 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
21649
21650         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
21651         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
21652         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
21653         Moved before "#ifdef __ASSEMBLER__".
21654
21655 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21656
21657         [BZ #19156]
21658         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
21659         arguments very close to 0.
21660
21661 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
21662
21663         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
21664         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
21665
21666 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
21667
21668         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
21669         New.  Defined for GCC 5 and above when not compiling for
21670         profiling.
21671         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
21672
21673         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
21674         Renamed to ...
21675         (CFLAGS-epoll_pwait.o): This.
21676         (CFLAGS-mmap.c): Renamed to ...
21677         (CFLAGS-mmap.o): This.
21678         (CFLAGS-mmap64.c): Renamed to ...
21679         (CFLAGS-mmap64.o): This.
21680         (CFLAGS-epoll_pwait.os): New.
21681         (CFLAGS-mmap.os): Likewise.
21682         (CFLAGS-mmap64.os): Likewise.
21683         (CFLAGS-semtimedop.os): Likewise.
21684         (CFLAGS-semtimedop.c): Renamed to ...
21685         (CFLAGS-semtimedop.o): This.
21686
21687 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21688
21689         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
21690         warning message.
21691
21692 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21693
21694         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
21695         * Makefile ($(objpfx)c++-types-check.out): Filter out
21696         $(+gccwarn-c) instead of -Wstrict-prototypes.
21697
21698         * io/fts.c (fts_open): Convert to prototype-style function
21699         definition.
21700         * malloc/mcheck.c (mcheck): Likewise.
21701         (mcheck_pedantic): Likewise.
21702         * posix/regexec.c (re_search_2_stub): Likewise.  Use
21703         internal_function.
21704         (re_search_internal): Likewise.
21705         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
21706         prototype-style function definition.
21707         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
21708         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
21709         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
21710         (xdr_utmpptr): Likewise.
21711         (xdr_utmparr): Likewise.
21712         (xdr_utmpidle): Likewise.
21713         (xdr_utmpidleptr): Likewise.
21714         (xdr_utmpidlearr): Likewise.
21715
21716         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
21717         log, log10 and log2.
21718         * math/auto-libm-test-out: Regenerated.
21719         * math/libm-test.inc (fmod_test_data): Add more tests.
21720         (fpclassify_test_data): Likewise.
21721         (frexp_test_data): Likewise.
21722         (hypot_test_data): Likewise.
21723         (ilogb_test_data): Likewise.
21724
21725 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
21726
21727         * debug/fortify_fail.c (__fortify_fail): Convert to
21728         prototype-style function definition.  Use internal_function.
21729         * libio/genops.c (save_for_backup): Convert to prototype-style
21730         function definition.
21731         * libio/wgenops.c (save_for_wbackup): Likewise.
21732         * login/grantpt.c (grantpt): Likewise.
21733         * login/ptsname.c (ptsname): Likewise.
21734         (__ptsname_r): Likewise.
21735         * login/unlockpt.c (unlockpt): Likewise.
21736         * mach/msgserver.c (__mach_msg_server): Likewise.
21737         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
21738         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
21739         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
21740         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
21741         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
21742         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
21743         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
21744         Likewise.
21745         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
21746         internal_function.
21747         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
21748         prototype-style function definition.
21749         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
21750         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
21751         (__pthread_create_2_0): Likewise.
21752         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
21753         * nptl/register-atfork.c (__register_atfork): Likewise.
21754         * posix/glob.c (glob): Likewise.
21755         * posix/regcomp.c (re_comp): Likewise.
21756         * posix/regexec.c (re_exec): Likewise.
21757         * stdlib/add_n.c [__STDC__]: Make code unconditional.
21758         [!__STDC__]: Remove conditional code.
21759         * stdlib/cmp.c [__STDC__]: Make code unconditional.
21760         [!__STDC__]: Remove conditional code.
21761         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
21762         [!__STDC__]: Remove conditional code.
21763         * stdlib/divrem.c [__STDC__]: Make code unconditional.
21764         [!__STDC__]: Remove conditional code.
21765         * stdlib/lshift.c [__STDC__]: Make code unconditional.
21766         [!__STDC__]: Remove conditional code.
21767         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
21768         [!__STDC__]: Remove conditional code.
21769         * stdlib/mul.c [__STDC__]: Make code unconditional.
21770         [!__STDC__]: Remove conditional code.
21771         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
21772         [!__STDC__]: Remove conditional code.
21773         * stdlib/rshift.c [__STDC__]: Make code unconditional.
21774         [!__STDC__]: Remove conditional code.
21775         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
21776         function definition.
21777         (STRTOF): Likewise.
21778         * stdlib/strtod_l.c (__STRTOF): Likewise.
21779         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
21780         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
21781         (__strtol_l): Likewise.
21782         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
21783         [!__STDC__]: Remove conditional code.
21784         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
21785         definition.
21786         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
21787         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21788         type.
21789         (__strcasecmp): Convert to prototype-style function definition.
21790         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
21791         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21792         type.
21793         (__strncasecmp): Convert to prototype-style function definition.
21794         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
21795         * sunrpc/xdr.c (xdr_union): Likewise.
21796         * sunrpc/xdr_array.c (xdr_array): Likewise.
21797         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
21798         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
21799         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
21800         Likewise.
21801         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
21802         Likewise.
21803         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
21804         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
21805         Likewise.
21806         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
21807         (LOCALE_PARAM_PROTO): Likewise.
21808         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
21809         argument type.
21810         (ut_argument_spec): Remove macro.
21811         (ut_argument_spec_iso): Rename to ut_argument_spec.
21812         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
21813         prototype-style function definition.
21814         (memcpy_uppcase): Likewise.
21815         (__strftime_internal): Likewise.
21816         (my_strftime): Likewise.
21817         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
21818         (LOCALE_PARAM_DECL): Likewise.
21819         [_LIBC] (LOCALE_PARAM): Include argument type.
21820         (__strptime_internal): Convert to prototype-style function
21821         definition.
21822         (strptime): Likewise.
21823         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
21824         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21825         type.
21826         (__wcscasecmp): Convert to prototype-style function definition.
21827         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
21828         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21829         type.
21830         (__wcsncasecmp): Convert to prototype-style function definition.
21831
21832         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
21833         function definition.
21834         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
21835         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
21836         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
21837         * elf/dl-minimal.c (_itoa): Likewise.
21838         * hurd/hurdmalloc.c (malloc): Likewise.
21839         (free): Likewise.
21840         (realloc): Likewise.
21841         * inet/inet6_option.c (inet6_option_space): Likewise.
21842         (inet6_option_init): Likewise.
21843         (inet6_option_append): Likewise.
21844         (inet6_option_alloc): Likewise.
21845         (inet6_option_next): Likewise.
21846         (inet6_option_find): Likewise.
21847         * io/ftw.c (FTW_NAME): Likewise.
21848         (NFTW_NAME): Likewise.
21849         (NFTW_NEW_NAME): Likewise.
21850         (NFTW_OLD_NAME): Likewise.
21851         * libio/iofwide.c (_IO_fwide): Likewise.
21852         * libio/strops.c (_IO_str_init_static_internal): Likewise.
21853         (_IO_str_init_static): Likewise.
21854         (_IO_str_init_readonly): Likewise.
21855         (_IO_str_overflow): Likewise.
21856         (_IO_str_underflow): Likewise.
21857         (_IO_str_count): Likewise.
21858         (_IO_str_seekoff): Likewise.
21859         (_IO_str_pbackfail): Likewise.
21860         (_IO_str_finish): Likewise.
21861         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
21862         (_IO_wstr_overflow): Likewise.
21863         (_IO_wstr_underflow): Likewise.
21864         (_IO_wstr_count): Likewise.
21865         (_IO_wstr_seekoff): Likewise.
21866         (_IO_wstr_pbackfail): Likewise.
21867         (_IO_wstr_finish): Likewise.
21868         * locale/programs/localedef.c (normalize_codeset): Likewise.
21869         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
21870         (add_locales_to_archive): Likewise.
21871         (delete_locales_from_archive): Likewise.
21872         * malloc/malloc.c (__libc_mallinfo): Likewise.
21873         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
21874         * misc/tsearch.c (__tfind): Likewise.
21875         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
21876         * nptl/pthread_attr_getdetachstate.c
21877         (__pthread_attr_getdetachstate): Likewise.
21878         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
21879         Likewise.
21880         * nptl/pthread_attr_getinheritsched.c
21881         (__pthread_attr_getinheritsched): Likewise.
21882         * nptl/pthread_attr_getschedparam.c
21883         (__pthread_attr_getschedparam): Likewise.
21884         * nptl/pthread_attr_getschedpolicy.c
21885         (__pthread_attr_getschedpolicy): Likewise.
21886         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
21887         Likewise.
21888         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
21889         Likewise.
21890         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
21891         Likewise.
21892         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
21893         Likewise.
21894         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
21895         (__pthread_attr_init_2_0): Likewise.
21896         * nptl/pthread_attr_setdetachstate.c
21897         (__pthread_attr_setdetachstate): Likewise.
21898         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
21899         Likewise.
21900         * nptl/pthread_attr_setinheritsched.c
21901         (__pthread_attr_setinheritsched): Likewise.
21902         * nptl/pthread_attr_setschedparam.c
21903         (__pthread_attr_setschedparam): Likewise.
21904         * nptl/pthread_attr_setschedpolicy.c
21905         (__pthread_attr_setschedpolicy): Likewise.
21906         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
21907         Likewise.
21908         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
21909         Likewise.
21910         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
21911         Likewise.
21912         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
21913         Likewise.
21914         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
21915         Likewise.
21916         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
21917         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
21918         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
21919         use internal_function.
21920         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
21921         prototype-style function definition.
21922         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
21923         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
21924         internal_function.
21925         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
21926         Convert to prototype-style function definition.
21927         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
21928         Likewise.
21929         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
21930         Likewise.
21931         (__pthread_mutex_unlock): Likewise.
21932         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
21933         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
21934         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
21935         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
21936         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
21937         * nss/makedb.c (process_input): Likewise.
21938         * posix/fnmatch.c (__strchrnul): Likewise.
21939         (__wcschrnul): Likewise.
21940         (fnmatch): Likewise.
21941         * posix/fnmatch_loop.c (FCT): Likewise.
21942         * posix/glob.c (globfree): Likewise.
21943         (__glob_pattern_type): Likewise.
21944         (__glob_pattern_p): Likewise.
21945         * posix/regcomp.c (re_compile_pattern): Likewise.
21946         (re_set_syntax): Likewise.
21947         (re_compile_fastmap): Likewise.
21948         (regcomp): Likewise.
21949         (regerror): Likewise.
21950         (regfree): Likewise.
21951         * posix/regexec.c (regexec): Likewise.
21952         (re_match): Likewise.
21953         (re_search): Likewise.
21954         (re_match_2): Likewise.
21955         (re_search_2): Likewise.
21956         (re_search_stub): Likewise.  Use internal_function
21957         (re_copy_regs): Likewise.
21958         (re_set_registers): Convert to prototype-style function
21959         definition.
21960         (prune_impossible_nodes): Likewise.  Use internal_function.
21961         * resolv/inet_net_pton.c (inet_net_pton): Convert to
21962         prototype-style function definition.
21963         (inet_net_pton_ipv4): Likewise.
21964         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
21965         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
21966         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
21967         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
21968         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
21969         Make variadic.
21970         * time/strptime_l.c (localtime_r): Convert to prototype-style
21971         function definition.
21972         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
21973         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
21974         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
21975         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
21976
21977         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
21978         definition.
21979         (_ufc_doit_r): Likewise.
21980         * crypt/crypt_util.c (_ufc_copymem): Likewise.
21981         (_ufc_output_conversion_r): Likewise.
21982         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
21983         * inet/rcmd.c (rcmd_af): Likewise.
21984         (rcmd): Likewise.
21985         (ruserok_af): Likewise.
21986         (ruserok): Likewise.
21987         (ruserok2_sa): Likewise.
21988         (ruserok_sa): Likewise.
21989         (iruserok_af): Likewise.
21990         (iruserok): Likewise.
21991         (__ivaliduser): Likewise.
21992         (__validuser2_sa): Likewise.
21993         * inet/rexec.c (rexec_af): Likewise.
21994         (rexec): Likewise.
21995         * inet/ruserpass.c (ruserpass): Likewise.
21996         * locale/programs/xmalloc.c (xcalloc): Likewise.
21997         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
21998         * math/w_drem.c (__drem): Likewise.
21999         * math/w_dremf.c (__dremf): Likewise.
22000         * math/w_dreml.c (__dreml): Likewise.
22001         * misc/daemon.c (daemon): Likewise.
22002         * resolv/res_debug.c (p_fqnname): Likewise.
22003         * stdlib/div.c (div): Likewise.
22004         * string/memcmp.c (memcmp_bytes): Likewise.
22005         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
22006         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
22007
22008         * crypt/cert.c (main): Convert to prototype-style function
22009         definition.
22010         * io/pipe.c (__pipe): Likewise.
22011         * io/pipe2.c (__pipe2): Likewise.
22012         * misc/futimesat.c (futimesat): Likewise.
22013         * misc/utimes.c (__utimes): Likewise.
22014         * posix/execve.c (__execve): Likewise.
22015         * posix/execvp.c (execvp): Likewise.
22016         * posix/execvpe.c (__execvpe): Likewise.
22017         * posix/fexecve.c (fexecve): Likewise.
22018         * socket/socketpair.c (socketpair): Likewise.
22019         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
22020         * stdlib/erand48.c (erand48): Likewise.
22021         * stdlib/erand48_r.c (__erand48_r): Likewise.
22022         * stdlib/jrand48.c (jrand48): Likewise.
22023         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
22024         * stdlib/lcong48.c (lcong48): Likewise.
22025         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
22026         * stdlib/nrand48.c (nrand48): Likewise.
22027         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
22028         * stdlib/seed48.c (seed48): Likewise.
22029         * stdlib/seed48_r.c (__seed48_r): Likewise.
22030         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
22031         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
22032         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
22033
22034 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22035
22036         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
22037         * configure: Regenerated.
22038         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
22039         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
22040         unconditional.
22041         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22042         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22043         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22044         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
22045         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
22046         unconditional.
22047         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22048
22049         * posix/Makefile (CFLAGS-regex.c): Remove variable.
22050         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
22051
22052         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
22053         function definition.
22054         * crypt/crypt_util.c (__encrypt_r): Likewise.
22055         * libio/genops.c (_IO_no_init): Likewise.
22056         * libio/iofopncook.c (_IO_fopencookie): Likewise.
22057         (_IO_old_fopencookie): Likewise.
22058         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
22059         * libio/iogetline.c (_IO_getline): Likewise.
22060         (_IO_getline_info): Likewise.
22061         * libio/iogetwline.c (_IO_getwline): Likewise.
22062         (_IO_getwline_info): Likewise.
22063         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
22064         * libio/vswprintf.c (_IO_vswprintf): Likewise.
22065         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
22066         (find_entry): Likewise.
22067         (iterate_table): Likewise.
22068         (lookup): Likewise.
22069         * login/forkpty.c (forkpty): Likewise.
22070         * misc/hsearch_r.c (__hsearch_r): Likewise.
22071         * misc/select.c (__select): Likewise.
22072         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
22073         Likewise.
22074         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
22075         Likewise.
22076         * nptl/old_pthread_cond_timedwait.c
22077         (__pthread_cond_timedwait_2_0): Likewise.
22078         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22079         * nptl/pthread_barrierattr_getpshared.c
22080         (pthread_barrierattr_getpshared): Likewise.
22081         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
22082         Likewise.
22083         * nptl/pthread_mutex_setprioceiling.c
22084         (pthread_mutex_setprioceiling): Likewise.
22085         * nptl/pthread_mutexattr_getprioceiling.c
22086         (pthread_mutexattr_getprioceiling): Likewise.
22087         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22088         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
22089         Likewise.
22090         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
22091         Likewise.
22092         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
22093         Likewise.
22094         * socket/recvfrom.c (__recvfrom): Likewise.
22095         * socket/sendto.c (__sendto): Likewise.
22096         * socket/setsockopt.c (__setsockopt): Likewise.
22097         * stdio-common/_itoa.c (_itoa): Likewise.
22098         * stdio-common/_itowa.c (_itowa): Likewise.
22099         * stdio-common/reg-printf.c (__register_printf_specifier):
22100         Likewise.
22101         (__register_printf_function): Likewise.
22102         * stdio-common/tempname.c (__path_search): Likewise.
22103         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
22104         * stdlib/mul_1.c (mpn_mul_1): Likewise.
22105         * stdlib/random_r.c (__initstate_r): Likewise.
22106         * stdlib/setenv.c (__add_to_environ): Likewise.
22107         * stdlib/submul_1.c (mpn_submul_1): Likewise.
22108         * streams/getpmsg.c (getpmsg): Likewise.
22109         * streams/putmsg.c (putmsg): Likewise.
22110         * streams/putpmsg.c (putpmsg): Likewise.
22111         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
22112         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
22113         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
22114         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
22115         * sunrpc/pm_getport.c (pmap_getport): Likewise.
22116         * sunrpc/svc_udp.c (cache_get): Likewise.
22117         * sunrpc/xdr_array.c (xdr_vector): Likewise.
22118         * sysdeps/mach/hurd/getcwd.c
22119         (__canonicalize_directory_name_internal): Likewise.
22120         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
22121         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
22122         * sysdeps/mach/hurd/select.c (__select): Likewise.
22123         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
22124         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
22125         * sysdeps/sparc/nptl/pthread_barrier_init.c
22126         (__pthread_barrier_init): Likewise.
22127         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
22128         (__pthread_cond_timedwait): Likewise.
22129         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
22130         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
22131         Likewise.
22132         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
22133         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
22134         Likewise.
22135         * sysvipc/semtimedop.c (semtimedop): Likewise.
22136         * time/setitimer.c (__setitimer): Likewise.
22137         * time/strftime_l.c (emacs_strftime): Likewise.
22138
22139 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22140
22141         * config.make.in (have-ssp): Delete.
22142         (stack-protector): New variable.
22143         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
22144         cache test for -fstack-protector-strong.  Export stack_protector to
22145         the best ssp flag.
22146         * configure: Regenerated.
22147         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
22148         * nscd/Makefile (CFLAGS-nscd): Likewise.
22149         * resolv/Makefile (CFLAGS-libresolv): Likewise.
22150
22151 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
22152
22153         [BZ #19122]
22154         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
22155         attribute_hidden.
22156
22157 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22158
22159         [BZ #18743]
22160         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
22161         code to...
22162         (ELIDE_LOCK): ...here.
22163         (__get_new_count): New function with part of the code from
22164         __elide_lock that updates the value of adapt_count after a
22165         transaction abort.
22166         (__elided_trylock): Moved this code to...
22167         (ELIDE_TRYLOCK): ...here.
22168
22169 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22170
22171         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
22172         * configure: Regenerate.
22173         * INSTALL: Regenerate.
22174         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
22175         and tweak grammar.
22176
22177 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
22178
22179         * login/programs/pt_chown.c: Include signal.h
22180         (main): Clear any signal mask from the parent process.
22181
22182 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22183
22184         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
22185         * configure: Regenerated.
22186         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
22187         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
22188         $(gnu89-inline-CFLAGS).
22189
22190         * configure.ac (libc_cv_asm_weak_directive): Remove configure
22191         test.
22192         (libc_cv_asm_weakext_directive): Likewise.
22193         * configure: Regenerated.
22194         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
22195         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
22196         * include/libc-symbols.h
22197         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
22198         #error.
22199         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
22200         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
22201
22202         * sysdeps/arm/backtrace.c (__backtrace): Convert to
22203         prototype-style function definition.
22204         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
22205         * sysdeps/i386/ffs.c (__ffs): Likewise.
22206         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
22207         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
22208         Likewise.
22209         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22210         Likewise.
22211         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
22212         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
22213         Likewise.
22214         * sysdeps/m68k/ffs.c (__ffs): Likewise.
22215         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
22216         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
22217         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
22218         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
22219         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
22220         * sysdeps/mach/hurd/access.c (__access): Likewise.
22221         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
22222         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
22223         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
22224         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
22225         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
22226         (cthread_getspecific): Likewise.
22227         (cthread_setspecific): Likewise.
22228         (__libc_getspecific): Likewise.
22229         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
22230         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
22231         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
22232         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
22233         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
22234         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
22235         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
22236         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
22237         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
22238         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
22239         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
22240         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
22241         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
22242         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
22243         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
22244         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
22245         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
22246         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
22247         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
22248         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
22249         * sysdeps/mach/hurd/link.c (__link): Likewise.
22250         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
22251         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
22252         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
22253         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
22254         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
22255         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
22256         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
22257         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
22258         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22259         * sysdeps/mach/hurd/rename.c (rename): Likewise.
22260         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
22261         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
22262         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
22263         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
22264         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
22265         * sysdeps/mach/hurd/send.c (__send): Likewise.
22266         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
22267         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
22268         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
22269         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
22270         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
22271         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
22272         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
22273         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
22274         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
22275         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
22276         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
22277         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
22278         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
22279         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
22280         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
22281         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
22282         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
22283         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
22284         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
22285         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22286         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
22287         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
22288         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
22289         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
22290         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
22291         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
22292         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
22293         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
22294         * sysdeps/posix/alarm.c (alarm): Likewise.
22295         * sysdeps/posix/cuserid.c (cuserid): Likewise.
22296         * sysdeps/posix/dirfd.c (dirfd): Likewise.
22297         * sysdeps/posix/dup.c (__dup): Likewise.
22298         * sysdeps/posix/dup2.c (__dup2): Likewise.
22299         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
22300         (main): Likewise.
22301         * sysdeps/posix/flock.c (__flock): Likewise.
22302         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
22303         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
22304         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
22305         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
22306         * sysdeps/posix/isatty.c (__isatty): Likewise.
22307         * sysdeps/posix/killpg.c (killpg): Likewise.
22308         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
22309         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
22310         * sysdeps/posix/raise.c (raise): Likewise.
22311         * sysdeps/posix/remove.c (remove): Likewise.
22312         * sysdeps/posix/rename.c (rename): Likewise.
22313         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
22314         * sysdeps/posix/seekdir.c (seekdir): Likewise.
22315         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
22316         * sysdeps/posix/sigignore.c (sigignore): Likewise.
22317         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
22318         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
22319         * sysdeps/posix/sigset.c (sigset): Likewise.
22320         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
22321         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
22322         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
22323         * sysdeps/posix/time.c (time): Likewise.
22324         * sysdeps/posix/ttyname.c (getttyname): Likewise.
22325         (ttyname): Likewise.
22326         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
22327         * sysdeps/posix/utime.c (utime): Likewise.
22328         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
22329         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
22330         Likewise.
22331         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
22332         (pthread_spin_trylock): Likewise.
22333         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
22334         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
22335         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
22336         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
22337         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
22338         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
22339         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
22340         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
22341         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
22342         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
22343         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
22344         * sysdeps/s390/ffs.c (__ffs): Likewise.
22345         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
22346         Likewise.
22347         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22348         Likewise.
22349         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
22350         Likewise.
22351         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
22352         (pthread_barrier_destroy): Likewise.
22353         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22354         (__pthread_barrier_wait): Likewise.
22355         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
22356         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22357         (__pthread_barrier_wait): Likewise.
22358         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
22359         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
22360         (memcmp_not_common_alignment): Likewise.
22361         (MEMCMP): Likewise.
22362         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
22363         (_wordcopy_fwd_dest_aligned): Likewise.
22364         (_wordcopy_bwd_aligned): Likewise.
22365         (_wordcopy_bwd_dest_aligned): Likewise.
22366         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
22367         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
22368         * sysdeps/unix/bsd/stty.c (stty): Likewise.
22369         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
22370         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
22371         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
22372         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
22373         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
22374         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
22375         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
22376         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
22377         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
22378         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
22379         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
22380         * sysdeps/unix/stime.c (stime): Likewise.
22381         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
22382         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
22383         Likewise.  Use internal_function.
22384         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
22385         Convert to prototype-style function definition.
22386         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
22387         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
22388         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
22389         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22390         Likewise.  Use internal_function.
22391         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
22392         prototype-style function definition
22393         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22394         Likewise.
22395         (__getlogin_r): Likewise.
22396         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
22397         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
22398         (__pthread_cond_broadcast): Likewise.
22399         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
22400         (__pthread_cond_destroy): Likewise.
22401         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
22402         (__pthread_cond_init): Likewise.
22403         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
22404         (__pthread_cond_signal): Likewise.
22405         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
22406         (__pthread_cond_wait): Likewise.
22407         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
22408         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
22409         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
22410         Likewise.
22411         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
22412         Likewise.
22413         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
22414         Likewise.
22415         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
22416         Likewise.
22417         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
22418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
22419         (__ftruncate64): Likewise.
22420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
22421         (truncate64): Likewise.
22422         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
22423         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
22424         (pthread_getcpuclockid): Likewise.
22425         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
22426         Likewise.
22427         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
22428         Likewise.
22429         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
22430         Likewise.
22431         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
22432         Likewise.
22433         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
22434         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
22435         (__libc_sigaction): Likewise.
22436         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
22437         Likewise.
22438         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
22439         (__sigprocmask): Likewise.
22440         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
22441         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
22442         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
22443         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
22444         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22445         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
22446         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22447         Likewise.
22448         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
22449         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
22450         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22451         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
22452         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
22453         Likewise.
22454         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
22455         (__sigprocmask): Likewise.
22456         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
22457         (cfgetispeed): Likewise.
22458         (cfsetospeed): Likewise.
22459         (cfsetispeed): Likewise.
22460         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
22461         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
22462         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
22463         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
22464         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
22465         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
22466         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
22467         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
22468         Likewise.
22469         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
22470         Likewise.
22471         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
22472         Likewise.
22473         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
22474         Likewise.
22475         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
22476
22477 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22478
22479         sunrpc: Rewrite with explicit TLS access using __thread.
22480         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
22481         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
22482         directly.
22483         (__rpc_thread_variables): Access thread_rpc_vars directly.
22484         Eliminate redundant assignment of the tvp variable.
22485
22486 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22487
22488         malloc: Rewrite with explicit TLS access using __thread.
22489         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
22490         (tsd_setspecific, tsd_getspecific): Remove.
22491         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
22492         (tsd_setspecific, tsd_getspecific): Likewise.
22493         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
22494         (tsd_setspecific, tsd_getspecific): Likewise.
22495         * malloc/arena.c (thread_arena): New TLS variable.
22496         (arena_key): Remove variable.
22497         (arena_get): Use thread_arena.
22498         (arena_lookup): Remove macro.
22499         (malloc_atfork, free_atfork, ptmalloc_lock_all)
22500         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
22501         (_int_new_arena, get_free_list, reused_arena)
22502         (arena_thread_freeres): Use thread_arena.
22503         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
22504         tsd_getspecific, tsd_setspecific from safety annotations.
22505         (Allocating Cleared Space): Remove arena_lookup from safety
22506         annotations.
22507
22508 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22509
22510         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
22511         struct scratch_buffer instead of extend_alloca.
22512
22513 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22514
22515         * sysdeps/unix/sysv/linux/kernel-features.h
22516         (__ASSUME_SOCK_CLOEXEC): Remove.
22517         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
22518         (__have_paccept): Remove unused macro.
22519         * include/unistd.h (__have_sock_cloexec): Remove declaration.
22520         * misc/syslog.c (openlog_internal): Remove fallback code for
22521         !__ASSUME_SOCK_CLOEXEC.
22522         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
22523         missing SOCK_CLOEXEC.
22524         * nscd/connections.c (have_sock_cloexec): Remove definition.
22525         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
22526         * nscd/nscd_helper.c (open_socket): Remove fallback code for
22527         !__ASSUME_SOCK_CLOEXEC.
22528         * resolv/res_send.c (__have_o_nonblock): Remove definition.
22529         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
22530         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
22531         definition.
22532         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
22533         code for !__ASSUME_SOCK_CLOEXEC.
22534
22535 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22536
22537         [BZ #18982]
22538         * manual/stdio.texi (Variable Arguments Output): Add portability
22539         note, explaining that vfprintf clobbers the va_list pointer.
22540
22541 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
22542
22543         * math/libm-test.inc (fabs_test_data): Add more tests.
22544         (fdim_test_data): Likewise.
22545         (fma_test_data): Likewise.
22546         (fmax_test_data): Likewise.
22547         (fmin_test_data): Likewise.
22548         (fmod_test_data): Likewise.
22549
22550 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
22551
22552         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
22553         data.
22554
22555 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
22556
22557         * math/libm-test.inc (ceil_test_data): Add more tests and more
22558         expectations for "inexact".
22559         (floor_test_data): Add more tests.
22560         (round_test_data): Likewise.
22561         (trunc_test_data): Likewise.
22562
22563         * crypt/cert.c (good_bye): Convert to prototype-style function
22564         definition.
22565         (get8): Likewise.
22566         (put8): Likewise.
22567         * crypt/crypt-entry.c (crypt): Likewise.
22568         (__fcrypt): Likewise.
22569         * crypt/crypt_util.c (_ufc_prbits): Likewise.
22570         (_ufc_set_bits): Likewise.
22571         (_ufc_clearmem): Likewise.
22572         (__init_des_r): Likewise.
22573         (shuffle_sb): Likewise.
22574         (shuffle_sb): Likewise.
22575         (_ufc_setup_salt_r): Likewise.
22576         (_ufc_mk_keytab_r): Likewise.
22577         (_ufc_dofinalperm_r): Likewise.
22578         (encrypt): Likewise.
22579         (__setkey_r): Likewise.
22580         (setkey): Likewise.
22581         * crypt/md5.c (md5_init_ctx): Likewise.
22582         (md5_read_ctx): Likewise.
22583         (md5_finish_ctx): Likewise.
22584         (md5_stream): Likewise.
22585         (md5_buffer): Likewise.
22586         (md5_process_bytes): Likewise.
22587         * crypt/sha256.c (__sha256_init_ctx): Likewise.
22588         (__sha256_finish_ctx): Likewise.
22589         (__sha256_process_bytes): Likewise.
22590         * crypt/sha512.c (__sha512_init_ctx): Likewise.
22591         (__sha512_finish_ctx): Likewise.
22592         (__sha512_process_bytes): Likewise.
22593         * ctype/isctype.c (__isctype): Likewise.
22594         * debug/backtrace.c (__backtrace): Likewise.
22595         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
22596         * debug/fgets_chk.c (__fgets_chk): Likewise.
22597         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
22598         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
22599         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
22600         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
22601         * debug/memset_chk.c (__memset_chk): Likewise.
22602         * debug/strcat_chk.c (__strcat_chk): Likewise.
22603         * debug/strncat_chk.c (__strncat_chk): Likewise.
22604         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
22605         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
22606         * dirent/dirfd.c (dirfd): Likewise.
22607         * dirent/getdents.c (__getdirentries): Likewise.
22608         * dirent/getdents64.c (getdirentries64): Likewise.
22609         * dirent/rewinddir.c (__rewinddir): Likewise.
22610         * dirent/seekdir.c (seekdir): Likewise.
22611         * dirent/telldir.c (telldir): Likewise.
22612         * elf/sln.c (makesymlinks): Likewise.
22613         (makesymlink): Likewise.
22614         * gmon/gmon.c (__moncontrol): Likewise.
22615         (__monstartup): Likewise.
22616         (write_hist): Likewise.
22617         (write_call_graph): Likewise.
22618         (write_bb_counts): Likewise.
22619         * grp/setgroups.c (setgroups): Likewise.
22620         * inet/inet_lnaof.c (inet_lnaof): Likewise.
22621         * inet/inet_net.c (inet_network): Likewise.
22622         * inet/inet_netof.c (inet_netof): Likewise.
22623         * inet/rcmd.c (rresvport_af): Likewise.
22624         (rresvport): Likewise.
22625         * io/access.c (__access): Likewise.
22626         * io/chdir.c (__chdir): Likewise.
22627         * io/chmod.c (__chmod): Likewise.
22628         * io/chown.c (__chown): Likewise.
22629         * io/close.c (__close): Likewise.
22630         * io/creat.c (creat): Likewise.
22631         * io/creat64.c (creat64): Likewise.
22632         * io/dup.c (__dup): Likewise.
22633         * io/dup2.c (__dup2): Likewise.
22634         * io/dup3.c (__dup3): Likewise.
22635         * io/euidaccess.c (__euidaccess): Likewise.
22636         * io/faccessat.c (faccessat): Likewise.
22637         * io/fchmod.c (__fchmod): Likewise.
22638         * io/fchmodat.c (fchmodat): Likewise.
22639         * io/fchown.c (__fchown): Likewise.
22640         * io/fchownat.c (fchownat): Likewise.
22641         * io/fcntl.c (__fcntl): Likewise.
22642         * io/flock.c (__flock): Likewise.
22643         * io/fts.c (fts_load): Likewise.
22644         (fts_close): Likewise.
22645         (fts_read): Likewise.
22646         (fts_set): Likewise.
22647         (fts_children): Likewise.
22648         (fts_build): Likewise.
22649         (fts_stat): Likewise.
22650         (fts_sort): Likewise.
22651         (fts_alloc): Likewise.
22652         (fts_lfree): Likewise.
22653         (fts_palloc): Likewise.
22654         (fts_padjust): Likewise.
22655         (fts_maxarglen): Likewise.
22656         (fts_safe_changedir): Likewise.
22657         * io/getwd.c (getwd): Likewise.
22658         * io/isatty.c (__isatty): Likewise.
22659         * io/lchown.c (__lchown): Likewise.
22660         * io/link.c (__link): Likewise.
22661         * io/linkat.c (linkat): Likewise.
22662         * io/lseek.c (__libc_lseek): Likewise.
22663         * io/mkdir.c (__mkdir): Likewise.
22664         * io/mkdirat.c (mkdirat): Likewise.
22665         * io/mkfifo.c (mkfifo): Likewise.
22666         * io/mkfifoat.c (mkfifoat): Likewise.
22667         * io/open.c (__libc_open): Likewise.
22668         * io/open64.c (__libc_open64): Likewise.
22669         * io/readlink.c (__readlink): Likewise.
22670         * io/readlinkat.c (readlinkat): Likewise.
22671         * io/rmdir.c (__rmdir): Likewise.
22672         * io/symlink.c (__symlink): Likewise.
22673         * io/symlinkat.c (symlinkat): Likewise.
22674         * io/ttyname.c (ttyname): Likewise.
22675         * io/ttyname_r.c (__ttyname_r): Likewise.
22676         * io/umask.c (__umask): Likewise.
22677         * io/unlink.c (__unlink): Likewise.
22678         * io/unlinkat.c (unlinkat): Likewise.
22679         * io/utime.c (utime): Likewise.
22680         * libio/clearerr.c (clearerr): Likewise.
22681         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
22682         * libio/feof.c (_IO_feof): Likewise.
22683         * libio/feof_u.c (feof_unlocked): Likewise.
22684         * libio/ferror.c (_IO_ferror): Likewise.
22685         * libio/ferror_u.c (ferror_unlocked): Likewise.
22686         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
22687         * libio/fileno.c (__fileno): Likewise.
22688         * libio/fputc.c (fputc): Likewise.
22689         * libio/fputc_u.c (fputc_unlocked): Likewise.
22690         * libio/fputwc.c (fputwc): Likewise.
22691         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
22692         * libio/freopen.c (freopen): Likewise.
22693         * libio/freopen64.c (freopen64): Likewise.
22694         * libio/fseek.c (fseek): Likewise.
22695         * libio/fseeko.c (fseeko): Likewise.
22696         * libio/fseeko64.c (fseeko64): Likewise.
22697         * libio/ftello.c (__ftello): Likewise.
22698         * libio/ftello64.c (ftello64): Likewise.
22699         * libio/fwide.c (fwide): Likewise.
22700         * libio/genops.c (_IO_un_link): Likewise.
22701         (_IO_link_in): Likewise.
22702         (_IO_least_marker): Likewise.
22703         (_IO_switch_to_main_get_area): Likewise.
22704         (_IO_switch_to_backup_area): Likewise.
22705         (_IO_switch_to_get_mode): Likewise.
22706         (_IO_free_backup_area): Likewise.
22707         (_IO_switch_to_put_mode): Likewise.
22708         (__overflow): Likewise.
22709         (__underflow): Likewise.
22710         (__uflow): Likewise.
22711         (_IO_setb): Likewise.
22712         (_IO_doallocbuf): Likewise.
22713         (_IO_default_underflow): Likewise.
22714         (_IO_default_uflow): Likewise.
22715         (_IO_default_xsputn): Likewise.
22716         (_IO_sgetn): Likewise.
22717         (_IO_default_xsgetn): Likewise.
22718         (_IO_sync): Likewise.
22719         (_IO_default_setbuf): Likewise.
22720         (_IO_default_seekpos): Likewise.
22721         (_IO_default_doallocate): Likewise.
22722         (_IO_init): Likewise.
22723         (_IO_old_init): Likewise.
22724         (_IO_default_sync): Likewise.
22725         (_IO_default_finish): Likewise.
22726         (_IO_default_seekoff): Likewise.
22727         (_IO_sputbackc): Likewise.
22728         (_IO_sungetc): Likewise.
22729         (_IO_set_column): Likewise.
22730         (_IO_set_column): Likewise.
22731         (_IO_adjust_column): Likewise.
22732         (_IO_get_column): Likewise.
22733         (_IO_init_marker): Likewise.
22734         (_IO_remove_marker): Likewise.
22735         (_IO_marker_difference): Likewise.
22736         (_IO_marker_delta): Likewise.
22737         (_IO_seekmark): Likewise.
22738         (_IO_unsave_markers): Likewise.
22739         (_IO_nobackup_pbackfail): Likewise.
22740         (_IO_default_pbackfail): Likewise.
22741         (_IO_default_seek): Likewise.
22742         (_IO_default_stat): Likewise.
22743         (_IO_default_read): Likewise.
22744         (_IO_default_write): Likewise.
22745         (_IO_default_showmanyc): Likewise.
22746         (_IO_default_imbue): Likewise.
22747         (_IO_iter_next): Likewise.
22748         (_IO_iter_file): Likewise.
22749         * libio/getc.c (_IO_getc): Likewise.
22750         * libio/getwc.c (_IO_getwc): Likewise.
22751         * libio/iofclose.c (_IO_new_fclose): Likewise.
22752         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
22753         * libio/iofflush.c (_IO_fflush): Likewise.
22754         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
22755         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
22756         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
22757         * libio/iofgets.c (_IO_fgets): Likewise.
22758         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
22759         * libio/iofgetws.c (fgetws): Likewise.
22760         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
22761         * libio/iofopen64.c (_IO_fopen64): Likewise.
22762         * libio/iofopncook.c (_IO_cookie_read): Likewise.
22763         (_IO_cookie_write): Likewise.
22764         (_IO_cookie_seek): Likewise.
22765         (_IO_cookie_close): Likewise.
22766         (_IO_cookie_seekoff): Likewise.
22767         (_IO_old_cookie_seek): Likewise.
22768         * libio/iofputs.c (_IO_fputs): Likewise.
22769         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
22770         * libio/iofputws.c (fputws): Likewise.
22771         * libio/iofputws_u.c (fputws_unlocked): Likewise.
22772         * libio/iofread.c (_IO_fread): Likewise.
22773         * libio/iofread_u.c (__fread_unlocked): Likewise.
22774         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
22775         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
22776         * libio/ioftell.c (_IO_ftell): Likewise.
22777         * libio/iofwrite.c (_IO_fwrite): Likewise.
22778         * libio/iogetdelim.c (_IO_getdelim): Likewise.
22779         * libio/iogets.c (_IO_gets): Likewise.
22780         * libio/iopadn.c (_IO_padn): Likewise.
22781         * libio/iopopen.c (_IO_new_proc_open): Likewise.
22782         (_IO_new_popen): Likewise.
22783         (_IO_new_proc_close): Likewise.
22784         * libio/ioputs.c (_IO_puts): Likewise.
22785         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
22786         (_IO_seekoff): Likewise.
22787         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
22788         (_IO_seekpos): Likewise.
22789         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
22790         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
22791         * libio/ioungetc.c (_IO_ungetc): Likewise.
22792         * libio/ioungetwc.c (ungetwc): Likewise.
22793         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
22794         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
22795         * libio/iowpadn.c (_IO_wpadn): Likewise.
22796         * libio/libc_fatal.c (__libc_fatal): Likewise.
22797         * libio/memstream.c (__open_memstream): Likewise.
22798         (_IO_mem_sync): Likewise.
22799         (_IO_mem_finish): Likewise.
22800         * libio/oldfileops.c (_IO_old_file_init): Likewise.
22801         (_IO_old_file_close_it): Likewise.
22802         (_IO_old_file_finish): Likewise.
22803         (_IO_old_file_fopen): Likewise.
22804         (_IO_old_file_attach): Likewise.
22805         (_IO_old_file_setbuf): Likewise.
22806         (_IO_old_do_write): Likewise.
22807         (old_do_write): Likewise.
22808         (_IO_old_file_underflow): Likewise.
22809         (_IO_old_file_overflow): Likewise.
22810         (_IO_old_file_sync): Likewise.
22811         (_IO_old_file_seekoff): Likewise.
22812         (_IO_old_file_write): Likewise.
22813         (_IO_old_file_xsputn): Likewise.
22814         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
22815         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
22816         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
22817         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
22818         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
22819         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
22820         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
22821         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
22822         (_IO_old_popen): Likewise.
22823         (_IO_old_proc_close): Likewise.
22824         * libio/oldpclose.c (__old_pclose): Likewise.
22825         * libio/pclose.c (__new_pclose): Likewise.
22826         * libio/peekc.c (_IO_peekc_locked): Likewise.
22827         * libio/putc.c (_IO_putc): Likewise.
22828         * libio/putc_u.c (putc_unlocked): Likewise.
22829         * libio/putchar.c (putchar): Likewise.
22830         * libio/putchar_u.c (putchar_unlocked): Likewise.
22831         * libio/putwc.c (putwc): Likewise.
22832         * libio/putwc_u.c (putwc_unlocked): Likewise.
22833         * libio/putwchar.c (putwchar): Likewise.
22834         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
22835         * libio/rewind.c (rewind): Likewise.
22836         * libio/setbuf.c (setbuf): Likewise.
22837         * libio/setlinebuf.c (setlinebuf): Likewise.
22838         * libio/vasprintf.c (_IO_vasprintf): Likewise.
22839         * libio/vscanf.c (_IO_vscanf): Likewise.
22840         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
22841         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
22842         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
22843         * libio/wgenops.c (_IO_least_wmarker): Likewise.
22844         (_IO_switch_to_main_wget_area): Likewise.
22845         (_IO_switch_to_wbackup_area): Likewise.
22846         (_IO_wsetb): Likewise.
22847         (_IO_wdefault_pbackfail): Likewise.
22848         (_IO_wdefault_finish): Likewise.
22849         (_IO_wdefault_uflow): Likewise.
22850         (__woverflow): Likewise.
22851         (__wuflow): Likewise.
22852         (__wunderflow): Likewise.
22853         (_IO_wdefault_xsputn): Likewise.
22854         (_IO_wdefault_xsgetn): Likewise.
22855         (_IO_wdoallocbuf): Likewise.
22856         (_IO_wdefault_doallocate): Likewise.
22857         (_IO_switch_to_wget_mode): Likewise.
22858         (_IO_free_wbackup_area): Likewise.
22859         (_IO_switch_to_wput_mode): Likewise.
22860         (_IO_sputbackwc): Likewise.
22861         (_IO_sungetwc): Likewise.
22862         (_IO_adjust_wcolumn): Likewise.
22863         (_IO_init_wmarker): Likewise.
22864         (_IO_wmarker_delta): Likewise.
22865         (_IO_seekwmark): Likewise.
22866         (_IO_unsave_wmarkers): Likewise.
22867         * libio/wmemstream.c (open_wmemstream): Likewise.
22868         (_IO_wmem_sync): Likewise.
22869         (_IO_wmem_finish): Likewise.
22870         * locale/nl_langinfo.c (nl_langinfo): Likewise.
22871         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
22872         * locale/programs/simple-hash.c (init_hash): Likewise.
22873         (delete_hash): Likewise.
22874         (insert_entry): Likewise.
22875         (set_entry): Likewise.
22876         (next_prime): Likewise.
22877         (is_prime): Likewise.
22878         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
22879         (xmalloc): Likewise.
22880         (xrealloc): Likewise.
22881         * locale/programs/xstrdup.c (xstrdup): Likewise.
22882         * localedata/collate-test.c (xstrcoll): Likewise.
22883         * localedata/xfrm-test.c (xstrcmp): Likewise.
22884         * login/getlogin_r.c (__getlogin_r): Likewise.
22885         * login/getpt.c (__posix_openpt): Likewise.
22886         * login/login_tty.c (login_tty): Likewise.
22887         * login/setlogin.c (setlogin): Likewise.
22888         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
22889         (mach_msg_destroy_port): Likewise.
22890         (mach_msg_destroy_memory): Likewise.
22891         * malloc/mcheck.c (flood): Likewise.
22892         * misc/acct.c (acct): Likewise.
22893         * misc/brk.c (__brk): Likewise.
22894         * misc/chflags.c (chflags): Likewise.
22895         * misc/chroot.c (chroot): Likewise.
22896         * misc/fchflags.c (fchflags): Likewise.
22897         * misc/fstab.c (getfsspec): Likewise.
22898         (getfsfile): Likewise.
22899         * misc/fsync.c (fsync): Likewise.
22900         * misc/ftruncate.c (__ftruncate): Likewise.
22901         * misc/ftruncate64.c (__ftruncate64): Likewise.
22902         * misc/getdomain.c (getdomainname): Likewise.
22903         (getdomainname): Likewise.
22904         * misc/gethostname.c (__gethostname): Likewise.
22905         * misc/getpass.c (getpass): Likewise.
22906         * misc/getttyent.c (skip): Likewise.
22907         (value): Likewise.
22908         * misc/gtty.c (gtty): Likewise.
22909         * misc/hsearch.c (hsearch): Likewise.
22910         (hcreate): Likewise.
22911         * misc/hsearch_r.c (__hcreate_r): Likewise.
22912         (__hdestroy_r): Likewise.
22913         * misc/ioctl.c (__ioctl): Likewise.
22914         * misc/mkdtemp.c (mkdtemp): Likewise.
22915         * misc/mkostemp.c (mkostemp): Likewise.
22916         * misc/mkostemp64.c (mkostemp64): Likewise.
22917         * misc/mkostemps.c (mkostemps): Likewise.
22918         * misc/mkostemps64.c (mkostemps64): Likewise.
22919         * misc/mkstemp.c (mkstemp): Likewise.
22920         * misc/mkstemp64.c (mkstemp64): Likewise.
22921         * misc/mkstemps.c (mkstemps): Likewise.
22922         * misc/mkstemps64.c (mkstemps64): Likewise.
22923         * misc/mktemp.c (__mktemp): Likewise.
22924         * misc/preadv.c (preadv): Likewise.
22925         * misc/preadv64.c (preadv64): Likewise.
22926         * misc/pwritev.c (pwritev): Likewise.
22927         * misc/pwritev64.c (pwritev64): Likewise.
22928         * misc/readv.c (__readv): Likewise.
22929         * misc/revoke.c (revoke): Likewise.
22930         * misc/setdomain.c (setdomainname): Likewise.
22931         * misc/setegid.c (setegid): Likewise.
22932         * misc/seteuid.c (seteuid): Likewise.
22933         * misc/sethostid.c (sethostid): Likewise.
22934         * misc/sethostname.c (sethostname): Likewise.
22935         * misc/setregid.c (__setregid): Likewise.
22936         * misc/setreuid.c (__setreuid): Likewise.
22937         * misc/sstk.c (sstk): Likewise.
22938         * misc/stty.c (stty): Likewise.
22939         * misc/syscall.c (syscall): Likewise.
22940         * misc/syslog.c (setlogmask): Likewise.
22941         * misc/truncate.c (__truncate): Likewise.
22942         * misc/truncate64.c (truncate64): Likewise.
22943         * misc/ualarm.c (ualarm): Likewise.
22944         * misc/usleep.c (usleep): Likewise.
22945         * misc/ustat.c (ustat): Likewise.
22946         * misc/writev.c (__writev): Likewise.
22947         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
22948         * nptl/old_pthread_cond_broadcast.c
22949         (__pthread_cond_broadcast_2_0): Likewise.
22950         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
22951         Likewise.
22952         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
22953         Likewise.
22954         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
22955         Likewise.
22956         * nptl/pt-raise.c (raise): Likewise.
22957         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
22958         Likewise.
22959         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
22960         * nptl/pthread_barrierattr_destroy.c
22961         (pthread_barrierattr_destroy): Likewise.
22962         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22963         Likewise.
22964         * nptl/pthread_barrierattr_setpshared.c
22965         (pthread_barrierattr_setpshared): Likewise.
22966         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
22967         Likewise.
22968         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
22969         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22970         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
22971         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
22972         Likewise.
22973         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
22974         Likewise.
22975         * nptl/pthread_condattr_getpshared.c
22976         (pthread_condattr_getpshared): Likewise.
22977         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
22978         Likewise.
22979         * nptl/pthread_condattr_setpshared.c
22980         (pthread_condattr_setpshared): Likewise.
22981         * nptl/pthread_detach.c (pthread_detach): Likewise.
22982         * nptl/pthread_equal.c (__pthread_equal): Likewise.
22983         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
22984         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
22985         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
22986         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
22987         Likewise.
22988         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
22989         Likewise.
22990         * nptl/pthread_mutex_getprioceiling.c
22991         (pthread_mutex_getprioceiling): Likewise.
22992         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
22993         Likewise.
22994         * nptl/pthread_mutexattr_getprotocol.c
22995         (pthread_mutexattr_getprotocol): Likewise.
22996         * nptl/pthread_mutexattr_getpshared.c
22997         (pthread_mutexattr_getpshared): Likewise.
22998         * nptl/pthread_mutexattr_getrobust.c
22999         (pthread_mutexattr_getrobust): Likewise.
23000         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
23001         Likewise.
23002         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
23003         Likewise.
23004         * nptl/pthread_mutexattr_setprioceiling.c
23005         (pthread_mutexattr_setprioceiling): Likewise.
23006         * nptl/pthread_mutexattr_setprotocol.c
23007         (pthread_mutexattr_setprotocol): Likewise.
23008         * nptl/pthread_mutexattr_setpshared.c
23009         (pthread_mutexattr_setpshared): Likewise.
23010         * nptl/pthread_mutexattr_setrobust.c
23011         (pthread_mutexattr_setrobust): Likewise.
23012         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
23013         Likewise.
23014         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
23015         Likewise.
23016         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
23017         Likewise.
23018         * nptl/pthread_rwlockattr_getkind_np.c
23019         (pthread_rwlockattr_getkind_np): Likewise.
23020         * nptl/pthread_rwlockattr_getpshared.c
23021         (pthread_rwlockattr_getpshared): Likewise.
23022         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
23023         Likewise.
23024         * nptl/pthread_rwlockattr_setkind_np.c
23025         (pthread_rwlockattr_setkind_np): Likewise.
23026         * nptl/pthread_rwlockattr_setpshared.c
23027         (pthread_rwlockattr_setpshared): Likewise.
23028         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
23029         Likewise.
23030         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
23031         Likewise.
23032         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
23033         Likewise.
23034         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
23035         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
23036         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
23037         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
23038         * nptl/sem_close.c (sem_close): Likewise.
23039         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
23040         * nptl/sem_init.c (__old_sem_init): Likewise.
23041         * nptl/sigaction.c (__sigaction): Likewise.
23042         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
23043         * posix/_exit.c (_exit): Likewise.
23044         * posix/alarm.c (alarm): Likewise.
23045         * posix/confstr.c (confstr): Likewise.
23046         * posix/fpathconf.c (__fpathconf): Likewise.
23047         * posix/getgroups.c (__getgroups): Likewise.
23048         * posix/getpgid.c (__getpgid): Likewise.
23049         * posix/group_member.c (__group_member): Likewise.
23050         * posix/pathconf.c (__pathconf): Likewise.
23051         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
23052         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
23053         * posix/setgid.c (__setgid): Likewise.
23054         * posix/setpgid.c (__setpgid): Likewise.
23055         * posix/setuid.c (__setuid): Likewise.
23056         * posix/sleep.c (__sleep): Likewise.
23057         * posix/sysconf.c (__sysconf): Likewise.
23058         * posix/times.c (__times): Likewise.
23059         * posix/uname.c (__uname): Likewise.
23060         * posix/waitid.c (__waitid): Likewise.
23061         * pwd/getpw.c (__getpw): Likewise.
23062         * resolv/base64.c (b64_pton): Likewise.
23063         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
23064         * resolv/gethnamaddr.c (Dprintf): Likewise.
23065         (gethostbyname): Likewise.
23066         (gethostbyname2): Likewise.
23067         (gethostbyaddr): Likewise.
23068         (_sethtent): Likewise.
23069         (_gethtbyname): Likewise.
23070         (_gethtbyname2): Likewise.
23071         (_gethtbyaddr): Likewise.
23072         (map_v4v6_address): Likewise.
23073         (map_v4v6_hostent): Likewise.
23074         (addrsort): Likewise.
23075         (ht_sethostent): Likewise.
23076         (ht_gethostbyname): Likewise.
23077         (ht_gethostbyaddr): Likewise.
23078         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
23079         (inet_net_ntop_ipv4): Likewise.
23080         * resolv/inet_neta.c (inet_neta): Likewise.
23081         * resolv/inet_ntop.c (inet_ntop): Likewise.
23082         (inet_ntop4): Likewise.
23083         (inet_ntop6): Likewise.
23084         * resolv/inet_pton.c (__inet_pton): Likewise.
23085         (inet_pton4): Likewise.
23086         (inet_pton6): Likewise.
23087         * resolv/res_debug.c (loc_aton): Likewise.
23088         (loc_ntoa): Likewise.
23089         * resource/getpriority.c (__getpriority): Likewise.
23090         * resource/getrusage.c (__getrusage): Likewise.
23091         * resource/nice.c (nice): Likewise.
23092         * resource/setpriority.c (__setpriority): Likewise.
23093         * resource/setrlimit64.c (setrlimit64): Likewise.
23094         * resource/vlimit.c (vlimit): Likewise.
23095         * resource/vtimes.c (vtimes): Likewise.
23096         * rt/aio_error.c (aio_error): Likewise.
23097         * rt/aio_return.c (aio_return): Likewise.
23098         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
23099         * signal/kill.c (__kill): Likewise.
23100         * signal/killpg.c (killpg): Likewise.
23101         * signal/raise.c (raise): Likewise.
23102         * signal/sigaction.c (__sigaction): Likewise.
23103         * signal/sigaddset.c (sigaddset): Likewise.
23104         * signal/sigaltstack.c (sigaltstack): Likewise.
23105         * signal/sigandset.c (sigandset): Likewise.
23106         * signal/sigblock.c (__sigblock): Likewise.
23107         * signal/sigdelset.c (sigdelset): Likewise.
23108         * signal/sigempty.c (sigemptyset): Likewise.
23109         * signal/sigfillset.c (sigfillset): Likewise.
23110         * signal/sighold.c (sighold): Likewise.
23111         * signal/sigignore.c (sigignore): Likewise.
23112         * signal/sigintr.c (siginterrupt): Likewise.
23113         * signal/sigisempty.c (sigisemptyset): Likewise.
23114         * signal/sigismem.c (sigismember): Likewise.
23115         * signal/signal.c (signal): Likewise.
23116         * signal/sigorset.c (sigorset): Likewise.
23117         * signal/sigpause.c (__sigpause): Likewise.
23118         * signal/sigpending.c (sigpending): Likewise.
23119         * signal/sigprocmask.c (__sigprocmask): Likewise.
23120         * signal/sigrelse.c (sigrelse): Likewise.
23121         * signal/sigreturn.c (__sigreturn): Likewise.
23122         * signal/sigset.c (sigset): Likewise.
23123         * signal/sigsetmask.c (__sigsetmask): Likewise.
23124         * signal/sigstack.c (sigstack): Likewise.
23125         * signal/sigsuspend.c (__sigsuspend): Likewise.
23126         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
23127         * signal/sysv_signal.c (__sysv_signal): Likewise.
23128         * socket/accept.c (accept): Likewise.
23129         * socket/accept4.c (__libc_accept4): Likewise.
23130         * socket/bind.c (__bind): Likewise.
23131         * socket/connect.c (__connect): Likewise.
23132         * socket/getpeername.c (getpeername): Likewise.
23133         * socket/getsockname.c (__getsockname): Likewise.
23134         * socket/getsockopt.c (getsockopt): Likewise.
23135         * socket/listen.c (__listen): Likewise.
23136         * socket/recv.c (__recv): Likewise.
23137         * socket/recvmsg.c (__recvmsg): Likewise.
23138         * socket/send.c (__send): Likewise.
23139         * socket/sendmsg.c (__sendmsg): Likewise.
23140         * socket/shutdown.c (shutdown): Likewise.
23141         * socket/sockatmark.c (sockatmark): Likewise.
23142         * socket/socket.c (__socket): Likewise.
23143         * stdio-common/ctermid.c (ctermid): Likewise.
23144         * stdio-common/cuserid.c (cuserid): Likewise.
23145         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
23146         * stdio-common/remove.c (remove): Likewise.
23147         * stdio-common/rename.c (rename): Likewise.
23148         * stdio-common/renameat.c (renameat): Likewise.
23149         * stdio-common/tempname.c (__gen_tempname): Likewise.
23150         * stdio-common/xbug.c (InitBuffer): Likewise.
23151         (AppendToBuffer): Likewise.
23152         (ReadFile): Likewise.
23153         * stdlib/a64l.c (a64l): Likewise.
23154         * stdlib/drand48_r.c (drand48_r): Likewise.
23155         * stdlib/getcontext.c (getcontext): Likewise.
23156         * stdlib/getenv.c (getenv): Likewise.
23157         * stdlib/l64a.c (l64a): Likewise.
23158         * stdlib/llabs.c (llabs): Likewise.
23159         * stdlib/lldiv.c (lldiv): Likewise.
23160         * stdlib/lrand48_r.c (lrand48_r): Likewise.
23161         * stdlib/mrand48_r.c (mrand48_r): Likewise.
23162         * stdlib/putenv.c (putenv): Likewise.
23163         * stdlib/random.c (__srandom): Likewise.
23164         (__initstate): Likewise.
23165         (__setstate): Likewise.
23166         * stdlib/random_r.c (__srandom_r): Likewise.
23167         (__setstate_r): Likewise.
23168         (__random_r): Likewise.
23169         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
23170         * stdlib/setcontext.c (setcontext): Likewise.
23171         * stdlib/setenv.c (setenv): Likewise.
23172         (unsetenv): Likewise.
23173         * stdlib/srand48.c (srand48): Likewise.
23174         * stdlib/srand48_r.c (__srand48_r): Likewise.
23175         * stdlib/swapcontext.c (swapcontext): Likewise.
23176         * stdlib/system.c (__libc_system): Likewise.
23177         * stdlib/tst-strtod.c (expand): Likewise.
23178         * stdlib/tst-strtol.c (expand): Likewise.
23179         * stdlib/tst-strtoll.c (expand): Likewise.
23180         * streams/fattach.c (fattach): Likewise.
23181         * streams/fdetach.c (fdetach): Likewise.
23182         * streams/getmsg.c (getmsg): Likewise.
23183         * streams/isastream.c (isastream): Likewise.
23184         * string/ffs.c (__ffs): Likewise.
23185         * string/ffsll.c (ffsll): Likewise.
23186         * string/memcmp.c (memcmp_common_alignment): Likewise.
23187         (memcmp_not_common_alignment): Likewise.
23188         (MEMCMP): Likewise.
23189         * string/memcpy.c (memcpy): Likewise.
23190         * string/memmove.c (MEMMOVE): Likewise.
23191         * string/memset.c (memset): Likewise.
23192         * string/rawmemchr.c (RAWMEMCHR): Likewise.
23193         * string/strchrnul.c (STRCHRNUL): Likewise.
23194         * string/strerror.c (strerror): Likewise.
23195         * string/strndup.c (__strndup): Likewise.
23196         * string/strverscmp.c (__strverscmp): Likewise.
23197         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
23198         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
23199         (clnttcp_freeres): Likewise.
23200         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
23201         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
23202         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
23203         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
23204         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
23205         (xdr_callhdr): Likewise.
23206         * sunrpc/rpcinfo.c (udpping): Likewise.
23207         (tcpping): Likewise.
23208         (pstatus): Likewise.
23209         (pmapdump): Likewise.
23210         (brdcst): Likewise.
23211         (deletereg): Likewise.
23212         (getprognum): Likewise.
23213         (getvers): Likewise.
23214         (get_inet_address): Likewise.
23215         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
23216         * sunrpc/svc_udp.c (svcudp_create): Likewise.
23217         (svcudp_stat): Likewise.
23218         (svcudp_recv): Likewise.
23219         (svcudp_reply): Likewise.
23220         (svcudp_getargs): Likewise.
23221         (svcudp_freeargs): Likewise.
23222         (svcudp_destroy): Likewise.
23223         * sunrpc/xdr.c (xdr_bytes): Likewise.
23224         (xdr_netobj): Likewise.
23225         (xdr_string): Likewise.
23226         (xdr_wrapstring): Likewise.
23227         * sunrpc/xdr_float.c (xdr_float): Likewise.
23228         (xdr_double): Likewise.
23229         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
23230         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
23231         * sysvipc/ftok.c (ftok): Likewise.
23232         * sysvipc/msgctl.c (msgctl): Likewise.
23233         * sysvipc/msgget.c (msgget): Likewise.
23234         * sysvipc/msgrcv.c (msgrcv): Likewise.
23235         * sysvipc/msgsnd.c (msgsnd): Likewise.
23236         * sysvipc/semget.c (semget): Likewise.
23237         * sysvipc/semop.c (semop): Likewise.
23238         * sysvipc/shmat.c (shmat): Likewise.
23239         * sysvipc/shmctl.c (shmctl): Likewise.
23240         * sysvipc/shmdt.c (shmdt): Likewise.
23241         * sysvipc/shmget.c (shmget): Likewise.
23242         * termios/cfmakeraw.c (cfmakeraw): Likewise.
23243         * termios/speed.c (cfgetospeed): Likewise.
23244         (cfgetispeed): Likewise.
23245         (cfsetospeed): Likewise.
23246         (cfsetispeed): Likewise.
23247         * termios/tcflow.c (tcflow): Likewise.
23248         * termios/tcflush.c (tcflush): Likewise.
23249         * termios/tcgetattr.c (__tcgetattr): Likewise.
23250         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
23251         * termios/tcgetsid.c (tcgetsid): Likewise.
23252         * termios/tcsendbrk.c (tcsendbreak): Likewise.
23253         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
23254         * time/adjtime.c (__adjtime): Likewise.
23255         * time/dysize.c (dysize): Likewise.
23256         * time/ftime.c (ftime): Likewise.
23257         * time/getitimer.c (__getitimer): Likewise.
23258         * time/gettimeofday.c (__gettimeofday): Likewise.
23259         * time/gmtime.c (__gmtime_r): Likewise.
23260         (gmtime): Likewise.
23261         * time/localtime.c (__localtime_r): Likewise.
23262         (localtime): Likewise.
23263         * time/offtime.c (__offtime): Likewise.
23264         * time/settimeofday.c (__settimeofday): Likewise.
23265         * time/stime.c (stime): Likewise.
23266         * time/strftime_l.c (tm_diff): Likewise.
23267         (iso_week_days): Likewise.
23268         * time/strptime.c (strptime): Likewise.
23269         * time/time.c (time): Likewise.
23270         * time/timespec_get.c (timespec_get): Likewise.
23271         * time/tzset.c (tzset_internal): Likewise.
23272         (compute_change): Likewise.
23273         (__tz_compute): Likewise.
23274         * wcsmbs/btowc.c (__btowc): Likewise.
23275         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
23276         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
23277         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
23278         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
23279         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
23280         * wcsmbs/wcscat.c (__wcscat): Likewise.
23281         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
23282         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
23283         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
23284         * wcsmbs/wcscspn.c (wcscspn): Likewise.
23285         * wcsmbs/wcsdup.c (wcsdup): Likewise.
23286         * wcsmbs/wcslen.c (__wcslen): Likewise.
23287         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
23288         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
23289         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
23290         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
23291         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
23292         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
23293         * wcsmbs/wcsspn.c (wcsspn): Likewise.
23294         * wcsmbs/wcsstr.c (wcsstr): Likewise.
23295         * wcsmbs/wcstok.c (wcstok): Likewise.
23296         * wcsmbs/wctob.c (wctob): Likewise.
23297         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
23298         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23299         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
23300         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
23301         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
23302         * wcsmbs/wmemset.c (__wmemset): Likewise.
23303         * wctype/wcfuncs.c (__towlower): Likewise.
23304         (__towupper): Likewise.
23305
23306         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
23307         (lll_unlock_elision): Add adapt_count parameter.
23308
23309 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23310
23311         * sysdeps/nptl/configure.ac: Do not give errors based on the
23312         results of top-level configure tests.
23313         * sysdeps/nptl/configure: Regenerated.
23314
23315         * configure.ac (libc_cv_Bgroup): Remove configure test.
23316         * configure: Regenerated.
23317         * config.make.in (have-Bgroup): Remove variable.
23318
23319         * configure.ac (sizeof_long_double): Remove configure test.
23320         * configure: Regenerated.
23321         * config.make.in (sizeof-long-double): Remove variable.
23322
23323         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
23324         * configure: Regenerated.
23325         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
23326         variable.
23327         (exceptions): Likewise.
23328         * sysdeps/arm/configure: Regenerated.
23329         * config.make.in (exceptions): Remove variable.
23330         * Makeconfig (uses-callbacks): Use -fexceptions instead of
23331         $(exceptions).
23332         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
23333         (CFLAGS-vdprintf_chk.c): Likewise.
23334         (CFLAGS-printf_chk.c): Likewise.
23335         (CFLAGS-fprintf_chk.c): Likewise.
23336         (CFLAGS-vprintf_chk.c): Likewise.
23337         (CFLAGS-vfprintf_chk.c): Likewise.
23338         (CFLAGS-gets_chk.c): Likewise.
23339         (CFLAGS-fgets_chk.c): Likewise.
23340         (CFLAGS-fgets_u_chk.c): Likewise.
23341         (CFLAGS-fread_chk.c): Likewise.
23342         (CFLAGS-fread_u_chk.c): Likewise.
23343         (CFLAGS-wprintf_chk.c): Likewise.
23344         (CFLAGS-fwprintf_chk.c): Likewise.
23345         (CFLAGS-vwprintf_chk.c): Likewise.
23346         (CFLAGS-vfwprintf_chk.c): Likewise.
23347         (CFLAGS-fgetws_chk.c): Likewise.
23348         (CFLAGS-fgetws_u_chk.c): Likewise.
23349         * libio/Makefile (CFLAGS-fileops.c): Likewise.
23350         (CFLAGS-fputc.c): Likewise.
23351         (CFLAGS-fputwc.c): Likewise.
23352         (CFLAGS-freopen64.c): Likewise.
23353         (CFLAGS-freopen.c): Likewise.
23354         (CFLAGS-fseek.c): Likewise.
23355         (CFLAGS-fseeko64.c): Likewise.
23356         (CFLAGS-fseeko.c): Likewise.
23357         (CFLAGS-ftello64.c): Likewise.
23358         (CFLAGS-ftello.c): Likewise.
23359         (CFLAGS-fwide.c): Likewise.
23360         (CFLAGS-genops.c): Likewise.
23361         (CFLAGS-getc.c): Likewise.
23362         (CFLAGS-getchar.c): Likewise.
23363         (CFLAGS-getwc.c): Likewise.
23364         (CFLAGS-getwchar.c): Likewise.
23365         (CFLAGS-iofclose.c): Likewise.
23366         (CFLAGS-iofflush.c): Likewise.
23367         (CFLAGS-iofgetpos64.c): Likewise.
23368         (CFLAGS-iofgetpos.c): Likewise.
23369         (CFLAGS-iofgets.c): Likewise.
23370         (CFLAGS-iofgetws.c): Likewise.
23371         (CFLAGS-iofputs.c): Likewise.
23372         (CFLAGS-iofputws.c): Likewise.
23373         (CFLAGS-iofread.c): Likewise.
23374         (CFLAGS-iofsetpos64.c): Likewise.
23375         (CFLAGS-iofsetpos.c): Likewise.
23376         (CFLAGS-ioftell.c): Likewise.
23377         (CFLAGS-iofwrite.c): Likewise.
23378         (CFLAGS-iogetdelim.c): Likewise.
23379         (CFLAGS-iogetline.c): Likewise.
23380         (CFLAGS-iogets.c): Likewise.
23381         (CFLAGS-iogetwline.c): Likewise.
23382         (CFLAGS-ioputs.c): Likewise.
23383         (CFLAGS-ioseekoff.c): Likewise.
23384         (CFLAGS-ioseekpos.c): Likewise.
23385         (CFLAGS-iosetbuffer.c): Likewise.
23386         (CFLAGS-iosetvbuf.c): Likewise.
23387         (CFLAGS-ioungetc.c): Likewise.
23388         (CFLAGS-ioungetwc.c): Likewise.
23389         (CFLAGS-oldfileops.c): Likewise.
23390         (CFLAGS-oldiofclose.c): Likewise.
23391         (CFLAGS-oldiofgetpos64.c): Likewise.
23392         (CFLAGS-oldiofgetpos.c): Likewise.
23393         (CFLAGS-oldiofsetpos64.c): Likewise.
23394         (CFLAGS-oldiofsetpos.c): Likewise.
23395         (CFLAGS-peekc.c): Likewise.
23396         (CFLAGS-putc.c): Likewise.
23397         (CFLAGS-putchar.c): Likewise.
23398         (CFLAGS-putwc.c): Likewise.
23399         (CFLAGS-putwchar.c): Likewise.
23400         (CFLAGS-rewind.c): Likewise.
23401         (CFLAGS-wfileops.c): Likewise.
23402         (CFLAGS-wgenops.c): Likewise.
23403         (CFLAGS-oldiofopen.c): Likewise.
23404         (CFLAGS-iofopen.c): Likewise.
23405         (CFLAGS-iofopen64.c): Likewise.
23406         (CFLAGS-oldtmpfile.c): Likewise.
23407         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
23408         (CFLAGS-fprintf.c): Likewise.
23409         (CFLAGS-printf.c): Likewise.
23410         (CFLAGS-vfwprintf.c): Likewise.
23411         (CFLAGS-vfscanf.c): Likewise.
23412         (CFLAGS-vfwscanf.c): Likewise.
23413         (CFLAGS-fscanf.c): Likewise.
23414         (CFLAGS-scanf.c): Likewise.
23415         (CFLAGS-isoc99_vfscanf.c): Likewise.
23416         (CFLAGS-isoc99_vscanf.c): Likewise.
23417         (CFLAGS-isoc99_fscanf.c): Likewise.
23418         (CFLAGS-isoc99_scanf.c): Likewise.
23419         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
23420         (CFLAGS-isoc99_fwscanf.c): Likewise.
23421         (CFLAGS-isoc99_vwscanf.c): Likewise.
23422         (CFLAGS-isoc99_vfwscanf.c): Likewise.
23423
23424         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
23425         after mkstemp64.
23426         * login/tst-utmp.c (do_prepare): Likewise.
23427         * rt/tst-aio.c (do_prepare): Likewise.
23428         * rt/tst-aio64.c (do_prepare): Likewise.
23429
23430 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23431
23432         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
23433         (__lll_lock_elision): Remove adapt_count decrement...
23434         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
23435         (__lll_trylock_elision): Likewise.
23436         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
23437         (__lll_unlock_elision): ... to here. And utilize
23438         new adapt_count parameter.
23439         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
23440         (__lll_unlock_elision): Update to include adapt_count
23441         parameter.
23442         (lll_unlock_elision): Pass pointer to adapt_count
23443         variable.
23444
23445 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23446
23447         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
23448         Add elision adapt_count parameter to list of arguments.
23449         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
23450         (lll_unlock_elision): Update with new parameter list
23451         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
23452         (lll_unlock_elision): Likewise.
23453         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
23454         (lll_unlock_elision): Likewise.
23455
23456 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23457
23458         [BZ #19122]
23459         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
23460         attribute_hidden.
23461
23462         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
23463         attribute_hidden.
23464         [IS_IN (rtld)] (__strdup): Likewise.
23465         [IS_IN (rtld)] (__strerror_r): Likewise.
23466         [IS_IN (rtld)] (__strsep_g): Likewise.
23467         [IS_IN (rtld)] (memchr): Likewise.
23468         [IS_IN (rtld)] (memcmp): Likewise.
23469         [IS_IN (rtld)] (memcpy): Likewise.
23470         [IS_IN (rtld)] (memmove): Likewise.
23471         [IS_IN (rtld)] (memset): Likewise.
23472         [IS_IN (rtld)] (rawmemchr): Likewise.
23473         [IS_IN (rtld)] (stpcpy): Likewise.
23474         [IS_IN (rtld)] (strchr): Likewise.
23475         [IS_IN (rtld)] (strcmp): Likewise.
23476         [IS_IN (rtld)] (strlen): Likewise.
23477         [IS_IN (rtld)] (strnlen): Likewise.
23478         [IS_IN (rtld)] (strsep): Likewise.
23479
23480         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
23481         attribute_hidden.
23482         [IS_IN (rtld)] (__strtoul_internal): Likewise.
23483
23484         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
23485         attribute_hidden.
23486         [IS_IN (rtld)] (__libc_sigaction): Likewise.
23487
23488         * include/setjmp.h (__longjmp): Add attribute_hidden.
23489         [IS_IN (rtld)] (__sigsetjmp): Likewise.
23490
23491         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
23492         Add attribute_hidden.
23493
23494         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
23495         [IS_IN (rtld)] (__open): Likewise.
23496         [IS_IN (rtld)] (__fcntl): Likewise.
23497
23498         * include/dirent.h (__opendirat): Add attribute_hidden.
23499         (__getdents): Likewise.
23500         (__getdents64): Likewise.
23501         (__alloc_dir): Likewise.
23502         [IS_IN (rtld)] (__closedir): Likewise.
23503         [IS_IN (rtld)] (__fdopendir): Likewise.
23504         [IS_IN (rtld)] (__readdir): Likewise.
23505         [IS_IN (rtld)] (__readdir64): Likewise.
23506         [IS_IN (rtld)] (__rewinddir): Likewise.
23507
23508         * include/dlfcn.h (_dl_catch_error): Moved to ...
23509         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
23510         attribute_hidden.
23511
23512         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
23513         (_itoa_word): Likewise.
23514
23515         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
23516         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
23517         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
23518         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
23519         (_dl_higher_prime_number): Likewise.
23520         (_dl_debug_printf_c): Likewise.
23521         (_dl_signal_cerror): Likewise.
23522         (_dl_receive_error): Likewise.
23523         (_dl_reloc_bad_type): Likewise.
23524         (_dl_resolve_conflicts): Likewise.
23525         (_dl_check_all_versions): Likewise.
23526         (_dl_check_map_versions): Likewise.
23527         (_dl_sort_fini): Likewise.
23528         (_dl_debug_initialize): Likewise.
23529         (_dl_init_paths): Likewise.
23530         (_dl_show_auxv): Likewise.
23531         (_dl_next_ld_env_entry): Likewise.
23532         (_dl_important_hwcaps): Likewise.
23533         (_dl_load_cache_lookup): Likewise.
23534         (_dl_update_slotinfo): Likewise.
23535         (_dl_show_scope): Likewise.
23536
23537         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
23538         attribute_hidden.
23539         (_wordcopy_fwd_dest_aligned): Likewise.
23540         (_wordcopy_bwd_aligned): Likewise.
23541         (_wordcopy_bwd_dest_aligned): Likewise.
23542
23543         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
23544         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
23545         Likewise.
23546         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
23547         Likewise.
23548         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
23549
23550 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23551
23552         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
23553         GCC 5 requirement.
23554
23555 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23556
23557         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
23558         test.
23559         * sysdeps/i386/configure: Regenerated.
23560         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
23561         code unconditional.
23562
23563         * configure.ac (libc_cv_asm_previous_directive): Remove configure
23564         test.
23565         (libc_cv_asm_popsection_directive): Likewise.
23566         * configure: Regenerated.
23567         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
23568         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
23569         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
23570         (__make_section_unallocated): Make definition unconditional.
23571         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
23572         Remove conditional definition.
23573         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
23574         (__make_section_unallocated): Likewise.
23575
23576         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
23577         * configure: Regenerated.
23578         * config.make.in (static-libgcc): Remove variable.
23579         * Makerules (build-shlib-helper): Use -static-libgcc instead of
23580         $(static-libgcc).
23581         (build-module-helper): Likewise.
23582
23583         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
23584         * configure: Regenerated.
23585
23586 2015-10-15  Florian Weimer  <fweimer@redhat.com>
23587
23588         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
23589         (struct char_buffer): New type.
23590         (char_buffer_start, char_buffer_size, char_buffer_error)
23591         (char_buffer_rewind, char_buffer_add): New functions.
23592         (ADDW): Remove macro, replaced by the char_buffer_add function.
23593         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
23594         of extend_alloca.  Make control flow more explicit.
23595
23596 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23597
23598         [BZ #19137]
23599         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
23600         Add -fomit-frame-pointer.
23601         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
23602
23603 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23604
23605         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
23606         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
23607         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
23608         only if !__GNUC_PREREQ (5,0).
23609         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
23610         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
23611         (INTERNAL_SYSCALL_NCS): Likewise.
23612         (LOADREGS_0): New macro for GCC 5.
23613         (ASMARGS_0): Likewise.
23614         (LOADREGS_1): Likewise.
23615         (ASMARGS_1): Likewise.
23616         (LOADREGS_2): Likewise.
23617         (ASMARGS_2): Likewise.
23618         (LOADREGS_3): Likewise.
23619         (ASMARGS_3): Likewise.
23620         (LOADREGS_4): Likewise.
23621         (ASMARGS_4): Likewise.
23622         (LOADREGS_5): Likewise.
23623         (ASMARGS_5): Likewise.
23624         (LOADREGS_6): Likewise.
23625         (ASMARGS_6): Likewise.
23626
23627 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23628
23629         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
23630         -fomit-frame-pointer.
23631         (CFLAGS-mmap64.c): Likewise.
23632         (CFLAGS-semtimedop.c): Likewise.
23633         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
23634         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
23635         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
23636         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
23637
23638 2015-10-15  Florian Weimer  <fweimer@redhat.com>
23639
23640         [BZ #18928]
23641         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
23642         _dl_pointer_guard member.
23643         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
23644         initializer.
23645         (security_init): Always set up pointer guard.
23646         (process_envvars): Do not process LD_POINTER_GUARD.
23647
23648 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
23649
23650         [BZ #19134]
23651         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
23652         (.LC2): Likewise.
23653         (.LC3): Likewise.
23654         (__lround): Do not add 0.5 to integer or out-of-range arguments.
23655
23656 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23657
23658         [BZ #19129]
23659         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
23660         r0 and r1.
23661
23662 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
23663
23664         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
23665
23666 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
23667
23668         * include/stap-probe.h: Fix macro definition formatting.
23669
23670 2015-10-14  Florian Weimer  <fweimer@redhat.com>
23671
23672         [BZ #19074]
23673         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
23674         load and store num_ifs.
23675
23676 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23677
23678         [BZ #18822]
23679         * sysdeps/unix/sysv/linux/sched_getaffinity.c
23680         (__sched_getaffinity_new): Add libc_hidden_proto and
23681         libc_hidden_def.
23682
23683 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23684
23685         [BZ #19007]
23686         * scripts/localplt.awk: Also allow GOT references.
23687         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
23688         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
23689         with "+ REL R_386_GLOB_DAT".
23690         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
23691         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
23692
23693 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23694
23695         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
23696         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23697         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
23698         Likewise.
23699         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
23700         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
23701         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
23702         INTERNAL_SYSCALLINTERNAL_SYSCALL and
23703         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23704         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
23705         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
23706         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
23707         Likewise.
23708         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
23709
23710 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
23711
23712         [BZ #19125]
23713         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
23714         <math_private.h> and <stdint.h>.
23715         (__llround): Avoid conversions to and from long long int, and
23716         subtractions, where those might raise spurious exceptions.
23717         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
23718         <math_private.h> and <stdint.h>.
23719         (__llroundf): Avoid conversions to and from long long int, and
23720         subtractions, where those might raise spurious exceptions.
23721
23722 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23723
23724         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
23725         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23726         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
23727         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
23728         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
23729         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
23730         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
23731         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
23732         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
23733         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
23734         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
23735         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
23736         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
23737         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
23738         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
23739         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
23740         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
23741         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
23742         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
23743         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
23744         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
23745         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
23746         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
23747         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
23748         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
23749         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
23750         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
23751         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
23752         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
23753         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
23754         (__xstat64_conv): Likewise.
23755         (__xstat32_conv): Likewise.
23756
23757 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23758
23759         * sysdeps/unix/sysv/linux/sysdep.h: New file.
23760         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
23761         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
23762         <sysdeps/unix/sysv/linux/sysdep.h>.
23763         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23764         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
23765         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
23766         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23767         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23768         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
23769         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
23770         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
23771         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
23772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23774         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23775         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23776         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23777         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
23778         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23779         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
23780         (sysdep-dl-routines): Add sysdep.
23781         [$(subdir) == nptl] (libpthread-routines): Likewise.
23782         [$(subdir) == rt] (librt-routines): Likewise.
23783         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
23784         PIC when branching to SYSCALL_ERROR_LABEL.
23785         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
23786         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
23787         <sysdeps/unix/sysv/linux/sysdep.h>.
23788         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
23789         (SYSCALL_ERROR_ERRNO): Removed.
23790         (SYSCALL_ERROR_HANDLER): Changed to empty.
23791         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
23792         (__syscall_error): New prototype.
23793         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
23794         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
23795
23796 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23797
23798         [BZ #19124]
23799         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
23800         (_dl_runtime_resolve_avx512): Make it a hidden alias of
23801         _dl_runtime_resolve_avx.
23802         (_dl_runtime_profile_avx512): Make it a hidden alias of
23803         _dl_runtime_profile_avx.
23804
23805 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
23806
23807         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
23808         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
23809         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
23810         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
23811
23812         [BZ #16422]
23813         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
23814         New configure test.
23815         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
23816         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
23817         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
23818         <math_private.h> and <stdint.h>.
23819         (__llrint): Avoid conversions to long long int where those might
23820         raise spurious exceptions.
23821         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
23822         <math_private.h> and <stdint.h>.
23823         (__llrintf): Avoid conversions to long long int where those might
23824         raise spurious exceptions.
23825
23826 2015-10-12  Andreas Schwab  <schwab@suse.de>
23827
23828         [BZ #18969]
23829         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
23830         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
23831         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
23832         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
23833         $(gen-locales).
23834         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
23835         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
23836         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
23837         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
23838         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
23839         $(gen-locales).
23840         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
23841         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
23842         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
23843         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
23844         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
23845         ($(objpfx)tst-ftell-active-handler.out)
23846         ($(objpfx)tst-ftell-append.out)
23847         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
23848         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
23849         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
23850         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
23851         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
23852         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
23853         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
23854         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
23855         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
23856         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
23857         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
23858         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
23859         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
23860         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
23861         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
23862         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
23863         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
23864         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
23865         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
23866         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
23867         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
23868         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
23869         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
23870         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
23871         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
23872         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
23873         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
23874         $(gen-locales).
23875         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
23876         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
23877         $(gen-locales).
23878         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
23879         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
23880         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
23881         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
23882         $(gen-locales).
23883         * libio/tst_wprintf2.c (main): Use explicit locale.
23884         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
23885
23886 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23887
23888         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
23889         __msg_sig_post.
23890         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
23891
23892 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
23893
23894         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
23895         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23896
23897         * sysdeps/arm/libm-test-ulps: Regenerated.
23898
23899         [BZ #15470]
23900         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
23901
23902         [BZ #16399]
23903         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
23904         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
23905         and <fix-fp-int-convert-overflow.h>.
23906         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
23907         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23908         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
23909         and <fix-fp-int-convert-overflow.h>.
23910         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
23911         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23912         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
23913         <fix-fp-int-convert-overflow.h>.
23914         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
23915         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23916         * sysdeps/ieee754/dbl-64/s_lround.c: Include
23917         <fix-fp-int-convert-overflow.h>.
23918         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
23919         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23920         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
23921         and <fix-fp-int-convert-overflow.h>.
23922         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
23923         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23924         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
23925         <limits.h> and <fix-fp-int-convert-overflow.h>.
23926         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
23927         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23928         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
23929         and <fix-fp-int-convert-overflow.h>.
23930         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
23931         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23932         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
23933         and <fix-fp-int-convert-overflow.h>.
23934         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
23935         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23936         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
23937
23938 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
23939
23940         [BZ #18589]
23941         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
23942         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
23943         $(gen-locales).
23944
23945 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23946             Phil Blundell <pb@pbcl.net>
23947
23948         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
23949         * nptl/tst-cancel26.c: New file.
23950         * nptl/tst-cancel27.c: Likewise.
23951
23952 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
23953
23954         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
23955         __ILP32__ isn't defined.
23956         (lrint): Likewise.
23957         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
23958         (lrintf): Likewise.
23959         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
23960         (lrintl): Likewise.
23961         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
23962         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
23963         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
23964
23965 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23966
23967         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
23968         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
23969
23970         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
23971         file.
23972         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
23973         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
23974
23975 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
23976
23977         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
23978         configure test.
23979         * sysdeps/i386/configure: Regenerated.
23980         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
23981         configure test.
23982         * sysdeps/x86_64/configure: Regenerated.
23983         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
23984         Make code unconditional.
23985
23986         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
23987         test.
23988         * sysdeps/i386/configure: Regenerated.
23989         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
23990         test.
23991         * sysdeps/x86_64/configure: Regenerated.
23992         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
23993         Make code unconditional.
23994         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
23995         Likewise.
23996         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
23997         Likewise.
23998         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23999         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
24000         code unconditional.
24001         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24002         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
24003         code unconditional.
24004         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24005         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
24006         code unconditional.
24007         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
24008         code unconditional.
24009         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24010         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
24011         code unconditional.
24012         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24013         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
24014         code unconditional.
24015         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24016         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
24017         code unconditional.
24018         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24019         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
24020         code unconditional.
24021         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24022         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
24023
24024         [BZ #19095]
24025         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
24026         mantissa to long int before shifting left.
24027
24028 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
24029
24030         [BZ #19094]
24031         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
24032         <limits.h>.
24033         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24034         when result overflows but exception would not result from cast.
24035         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
24036         <limits.h>.
24037         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24038         when result overflows but exception would not result from cast.
24039         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
24040         <limits.h>.
24041         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24042         when result overflows but exception would not result from cast.
24043         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
24044         <limits.h>.
24045         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24046         when result overflows but exception would not result from cast.
24047         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
24048         <limits.h>.
24049         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24050         when result overflows but exception would not result from cast.
24051         * math/libm-test.inc (lrint_test_data): Add more tests.
24052         (llrint_test_data): Likewise.
24053
24054 2015-10-08  Roland McGrath  <roland@hack.frob.com>
24055
24056         [BZ #18872]
24057         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
24058         Move out from under [$(run-built-tests) = yes] conditional.
24059         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
24060         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
24061
24062 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
24063
24064         [BZ #18589]
24065         * string/Makefile (tests): Add bug-strcoll2.
24066         (LOCALES): Add cs_CZ.UTF-8.
24067         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
24068
24069         [BZ #18589]
24070         * string/bug-strcoll2.c: New file.
24071         * locale/categories.def: Revert commit
24072         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
24073         * locale/langinfo.h: Likewise.
24074         * locale/localeinfo.h: Likewise.
24075         * locale/C-collate.c: Likewise.
24076         * locale/programs/ld-collate.c (collate_output): Likewise.
24077         * string/strcoll_l.c (STRDIFF): Likewise.
24078         (STRCOLL): Likewise.
24079         * wcsmbs/wcscoll_l.c: Likewise.
24080
24081 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
24082
24083         * math/libm-test.inc (lround_test_data): Do not expect the absence
24084         of "inexact" for some tests with non-integer arguments.
24085         (llround_test_data): Likewise.
24086
24087         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
24088         test.
24089         (libc_cv_cc_sse2avx): Likewise.
24090         * sysdeps/i386/configure: Regenerated.
24091         * sysdeps/i386/i686/multiarch/Makefile
24092         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
24093         [$(subdir) = math].
24094         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
24095         code unconditional.
24096         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
24097         Likewise.
24098         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
24099         Likewise.
24100         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
24101         Likewise.
24102         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
24103         test.
24104         (libc_cv_cc_sse2avx): Likewise.
24105         * sysdeps/x86_64/configure: Regenerated.
24106         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
24107         unconditional.
24108         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
24109         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
24110         unconditional.
24111         (_dl_runtime_profile)
24112         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
24113         conditional code.
24114         * sysdeps/x86_64/fpu/multiarch/Makefile
24115         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
24116         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
24117         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24118         * sysdeps/x86_64/fpu/multiarch/e_exp.c
24119         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24120         * sysdeps/x86_64/fpu/multiarch/e_log.c
24121         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24122         * sysdeps/x86_64/fpu/multiarch/s_atan.c
24123         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24124         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
24125         Likewise.
24126         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
24127         Likewise.
24128         * sysdeps/x86_64/fpu/multiarch/s_sin.c
24129         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24130         * sysdeps/x86_64/fpu/multiarch/s_tan.c
24131         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24132         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
24133         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
24134         (HAVE_SSE2AVX_SUPPORT): Likewise.
24135
24136 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
24137
24138         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
24139         instead of #pragma optimize.
24140
24141 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24142
24143         [BZ #17195]
24144         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
24145         as is similarly done in systrim and _int_free already.
24146
24147 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24148
24149         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
24150
24151 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24152
24153         [BZ #19088]
24154         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
24155         <limits.h>.
24156         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24157         overflows but exception would not result from cast.
24158         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
24159         and <limits.h>.
24160         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24161         overflows but exception would not result from cast.
24162         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
24163         <limits.h>.
24164         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24165         overflows but exception would not result from cast.
24166         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
24167         <limits.h>.
24168         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24169         overflows but exception would not result from cast.
24170         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
24171         <limits.h>.
24172         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24173         overflows but exception would not result from cast.
24174         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
24175         <limits.h>.
24176         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24177         overflows but exception would not result from cast.
24178         * math/libm-test.inc (lround_test_data): Add more tests.
24179         (llround_test_data): Likewise.
24180
24181 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
24182
24183         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
24184         (CFLAGS-ialloc.c): Ditto.
24185         (CFLAGS-scheck.c): Ditto.
24186
24187 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24188
24189         [BZ #19086]
24190         * manual/filesys.texi (Storage Allocation): Fix argument order for
24191         posix_fallocate64.
24192
24193 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24194
24195         [BZ #19085]
24196         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
24197         exponent below 48 inside case for non-overflowing exponent.
24198         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
24199
24200 2015-10-07  Florian Weimer  <fweimer@redhat.com>
24201
24202         * iconvdata/cp737.h (from_idx): Add const.
24203         * iconvdata/cp775.h (from_idx): Likewise.
24204
24205 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24206
24207         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
24208         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
24209         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
24210
24211         [BZ #19079]
24212         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
24213         file, conditioned on [!_LP64].
24214         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
24215         [!_LP64] (__lround): Do not define as function or alias.
24216         [!_LP64] (lround): Likewise.
24217         [!_LP64] (__lroundl): Likewise.
24218         [!_LP64] (lroundl): Likewise.
24219         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
24220         macro.
24221         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
24222         Likewise.
24223
24224 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24225
24226         * math/libm-test.inc (lrint_test_data): Add more tests.
24227         (llrint_test_data): Likewise.
24228         (lround_test_data): Likewise.
24229         (llround_test_data): Likewise.
24230
24231         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
24232         (llrint_test_data): Add tests used for lrint.
24233
24234         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
24235         test.
24236         * sysdeps/i386/configure: Regenerated.
24237         * sysdeps/i386/i686/multiarch/Makefile
24238         [$(config-cflags-sse4) = yes]: Make code unconditional.
24239         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24240         Likewise.
24241         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
24242         Likewise.
24243         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
24244         test.
24245         * sysdeps/x86_64/configure: Regenerated.
24246         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
24247         Make code unconditional.
24248         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24249         Likewise.
24250         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
24251         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
24252
24253         * scripts/rpm2dynsym.sh: Remove file.
24254
24255 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24256
24257         * configure.ac (libc_cv_cxx_thread_local): Define.
24258         * configure: Regenerate.
24259         * config.make.in (have-cxx-thread_local): Define.
24260         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
24261         (LDLIBS-tst-thread_local1): Define.
24262         (tests): Add tst-thread_local1.
24263         [have-cxx-thread_local != yes] (tests-unsupported): Add
24264         tst-thread_local1.
24265         * nptl/tst-thread_local1.cc: New file.
24266
24267 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24268
24269         [BZ #19078]
24270         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
24271         (u_thres): Likewise.
24272         (__expl): Determine whether to call __kernel_standard_l based on
24273         value of result, not argument.
24274
24275         * math/libm-test.inc (scalb_test_data): Add more expectations for
24276         the "inexact" exception.
24277
24278         [BZ #19077]
24279         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
24280         0.0L for argument 1.0L.
24281
24282         [BZ #19076]
24283         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
24284         constant 0.0L when computing infinite result.
24285
24286 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24287
24288         [BZ #10432]
24289         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
24290         malloc_usable_size.
24291
24292 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24293
24294         [BZ #19018]
24295         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
24296         Mangle function pointer before storing it.
24297         (__call_tls_dtors): Demangle function pointer before calling it.
24298
24299 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24300
24301         [BZ #19012]
24302         * iconv/gconv_db.c (gen_steps): Check for additional errors.
24303         Clean up on failure.
24304
24305 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
24306
24307         [BZ #19071]
24308         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
24309         long int variable to store possibly incremented high part of
24310         mantissa.
24311         * math/libm-test.inc (lround_test_data): Add tests used for
24312         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
24313         for tests requiring 64-bit long.  Do not condition tests on
24314         [TEST_FLOAT] unnecessarily.
24315         (llround_test_data): Add tests used for lround.  Add another
24316         expectation for the "inexact" exception.  Do not condition tests
24317         on [TEST_FLOAT] unnecessarily.
24318
24319         [BZ #887]
24320         [BZ #19049]
24321         [BZ #19050]
24322         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
24323         * sysdeps/ieee754/dbl-64/e_log10.c: Include
24324         <fix-int-fp-convert-zero.h>.
24325         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24326         * sysdeps/ieee754/dbl-64/e_log2.c: Include
24327         <fix-int-fp-convert-zero.h>.
24328         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24329         * sysdeps/ieee754/dbl-64/s_erf.c: Include
24330         <fix-int-fp-convert-zero.h>.
24331         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24332         * sysdeps/ieee754/dbl-64/s_logb.c: Include
24333         <fix-int-fp-convert-zero.h>.
24334         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24335         * sysdeps/ieee754/flt-32/e_log10f.c: Include
24336         <fix-int-fp-convert-zero.h>.
24337         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24338         * sysdeps/ieee754/flt-32/e_log2f.c: Include
24339         <fix-int-fp-convert-zero.h>.
24340         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24341         * sysdeps/ieee754/flt-32/s_erff.c: Include
24342         <fix-int-fp-convert-zero.h>.
24343         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24344         * sysdeps/ieee754/flt-32/s_logbf.c: Include
24345         <fix-int-fp-convert-zero.h>.
24346         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24347         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
24348         <fix-int-fp-convert-zero.h>.
24349         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24350         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
24351         <fix-int-fp-convert-zero.h>.
24352         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24353         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
24354         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
24355         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
24356         file.
24357         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
24358
24359 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
24360
24361         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
24362
24363 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
24364
24365         [BZ #19059]
24366         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
24367         overflowing computation.
24368         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
24369         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
24370         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
24371         Likewise.
24372         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
24373         Likewise.
24374         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
24375         Likewise.
24376         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
24377         Likewise.
24378         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
24379         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
24380         Likewise.
24381         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
24382         Likewise.
24383         * math/libm-test.inc (nexttoward_test_data): Add more tests.
24384
24385         * nss/rewrite_field.c (__nss_rewrite_field): Use
24386         internal_function.
24387         * nss/valid_field.c (__nss_valid_field): Likewise.
24388         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
24389
24390 2015-10-02  Florian Weimer  <fweimer@redhat.com>
24391
24392         [BZ #18724]
24393         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
24394         (__nss_invalid_field_characters, __nss_valid_field)
24395         (__nss_valid_list_field, __nss_rewrite_field): Declare.
24396         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
24397         tst-field.c: New file.
24398         * nss/Makefile (routines): Add valid_field, rewrite_field.
24399         (tests-static): Define unconditionally.
24400         (tests): Include tests-static.
24401         [build-static-nss] (tests-static): Use append.
24402         [build-static-nss] (tests): Remove modification.
24403         * nss/getent.c (print_group): Call putgrent.  Report error.
24404         (print_gshadow): Call putsgent.  Report error.
24405         (print_passwd): Call putpwent.  Report error.
24406         (print_shadow): Call putspent.  Report error.
24407         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
24408         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
24409         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
24410         name, password, directory, shell fields for valid syntax.  Rewrite
24411         GECOS field to match syntax.
24412         * pwd/Makefile (tests): Add tst-putpwent.
24413         * pwd/tst-putpwent.c: New file.
24414         * grp/putgrent.c (putgrent): Convert to ISO function definition.
24415         Check grName, grpasswd, gr_mem fields for valid syntax.
24416         Change loop variable i to size_t.
24417         * grp/Makefile (tests): Add tst-putgrent.
24418         * grp/tst-putgrent.c: New file.
24419         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
24420         valid syntax.
24421         * shadow/Makefile (tests): Add tst-putspent.
24422         * shadow/tst-putspent.c: New file.
24423         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
24424         sg_mem fields for valid syntax.
24425         * gshadow/Makefile (tests): Add tst-putsgent.
24426         * gshadow/tst-putsgent.c: New file.
24427
24428 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24429
24430         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
24431         assembly instructions.
24432
24433 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24434
24435         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
24436         prefix from operands.
24437
24438 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
24439
24440         [BZ #16347]
24441         [BZ #19046]
24442         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
24443         <libc-internal.h>.
24444         (MAXLGM): Do not use diagnostic control macros.
24445         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
24446         threshold for ldbl-128ibm.
24447         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
24448         instead of multiplying by log then subtracting.
24449         * math/auto-libm-test-in: Add more tests of lgamma.
24450         * math/auto-libm-test-out: Regenerated.
24451
24452         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
24453         (TYPE_HEX_DIG): Likewise.
24454         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
24455         precisions when printing floating-point numbers.
24456         (check_float_internal): Likewise.
24457
24458 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
24459
24460         [BZ #16620]
24461         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
24462         of log (10) rounded downward to 48 bits.
24463         (log10_low): Use corresponding low part of log (10).
24464
24465         [BZ #19032]
24466         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
24467         compute result as (x - x) / (x - x) not as 0 / 0.
24468         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
24469         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
24470
24471         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
24472         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
24473         and expm1.
24474         * math/auto-libm-test-out: Regenerated.
24475         * math/libm-test.inc (acos_test_data): Add more tests.
24476         (asin_test_data): Likewise.
24477         (asinh_test_data): Likewise.
24478         (atan_test_data): Likewise.
24479         (atanh_test_data): Likewise.
24480         (atan2_test_data): Likewise.
24481         (cbrt_test_data): Likewise.
24482         (ceil_test_data): Likewise.
24483         (copysign_test_data): Likewise.
24484         (cos_test_data): Likewise.
24485         (cosh_test_data): Likewise.
24486         (erf_test_data): Likewise.
24487         (erfc_test_data): Likewise.
24488         (exp_test_data): Likewise.
24489         (exp10_test_data): Likewise.
24490         (exp2_test_data): Likewise.
24491         (expm1_test_data): Likewise.
24492         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24493
24494 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
24495
24496         [BZ #19006]
24497         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
24498         to ...
24499         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
24500         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
24501         to ...
24502         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
24503         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
24504         to ...
24505         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
24506         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
24507         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
24508         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
24509         to ...
24510         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
24511         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
24512         Moved to ...
24513         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
24514         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
24515         Moved to ...
24516         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
24517         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
24518         to ...
24519         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
24520         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
24521         Moved to ...
24522         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
24523         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
24524         to ...
24525         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
24526         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
24527         Removed.
24528         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
24529         Likewise.
24530         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
24531         Likewise.
24532         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
24533         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
24534         Likewise.
24535         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
24536         Likewise.
24537         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
24538         Likewise.
24539         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
24540         Likewise.
24541         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
24542         Likewise.
24543         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
24544         Likewise.
24545         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
24546         Likewise.
24547         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
24548         Likewise.
24549         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
24550         Likewise.
24551         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
24552         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
24553         Likewise.
24554         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
24555         Likewise.
24556         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
24557         Likewise.
24558         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
24559         Likewise.
24560         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
24561         Likewise.
24562         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
24563         Replace ../i486/pthread_cond_timedwait.S with
24564         ../pthread_cond_timedwait.S.
24565
24566 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
24567
24568         * math/libm-test.inc (acos_test_data): Refine expectations for
24569         errno and "inexact" exceptions.
24570         (acosh_test_data): Likewise.
24571         (asin_test_data): Likewise.
24572         (asinh_test_data): Likewise.
24573         (atan_test_data): Likewise.
24574         (atanh_test_data): Likewise.
24575         (atan2_test_data): Likewise.
24576         (cbrt_test_data): Likewise.
24577         (ceil_test_data): Likewise.
24578         (copysign_test_data): Likewise.
24579         (cosh_test_data): Likewise.
24580         (erf_test_data): Likewise.
24581         (erfc_test_data): Likewise.
24582         (exp_test_data): Likewise.
24583         (exp10_test_data): Likewise.
24584         (exp2_test_data): Likewise.
24585         (expm1_test_data): Likewise.
24586         (fabs_test_data): Likewise.
24587         (floor_test_data): Likewise.
24588         (fma_test_data): Likewise.
24589         (fmax_test_data): Likewise.
24590         (fmin_test_data): Likewise.
24591         (fmod_test_data): Likewise.
24592         (fpclassify_test_data): Likewise.
24593         (frexp_test_data): Likewise.
24594         (hypot_test_data): Likewise.
24595         (ilogb_test_data): Likewise.
24596         (isgreater_test_data): Likewise.
24597         (isgreaterequal_test_data): Likewise.
24598         (isinf_test_data): Likewise.
24599         (isless_test_data): Likewise.
24600         (islessequal_test_data): Likewise.
24601         (islessgreater_test_data): Likewise.
24602         (isnan_test_data): Likewise.
24603         (isnormal_test_data): Likewise.
24604         (issignaling_test_data): Likewise.
24605         (isunordered_test_data): Likewise.
24606         (j0_test_data): Likewise.
24607         (j1_test_data): Likewise.
24608         (jn_test_data): Likewise.
24609         (lgamma_test_data): Likewise.
24610         (lrint_test_data): Likewise.
24611         (llrint_test_data): Likewise.
24612         (log_test_data): Likewise.
24613         (log10_test_data): Likewise.
24614         (log1p_test_data): Likewise.
24615         (log2_test_data): Likewise.
24616         (logb_test_data): Likewise.
24617         (lround_test_data): Likewise.
24618         (llround_test_data): Likewise.
24619         (modf_test_data): Likewise.
24620         (nearbyint_test_data): Likewise.
24621         (nextafter_test_data): Likewise.
24622         (nexttoward_test_data): Likewise.
24623         (pow_test_data): Likewise.
24624         (remainder_test_data): Likewise.
24625         (remquo_test_data): Likewise.
24626         (rint_test_data): Likewise.
24627         (round_test_data): Likewise.
24628         (signbit_test_data): Likewise.
24629         (sinh_test_data): Likewise.
24630         (sqrt_test_data): Likewise.
24631         (tanh_test_data): Likewise.
24632         (tgamma_test_data): Likewise.
24633         (trunc_test_data): Likewise.
24634         (y0_test_data): Likewise.
24635         (y1_test_data): Likewise.
24636         (yn_test_data): Likewise.
24637         (significand_test_data): Likewise.
24638
24639 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
24640
24641         * manual/filesys.texi (Storage Allocation): Document that
24642         posix_fallocate emulation fails when fd is open with O_WRONLY.
24643
24644 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
24645
24646         [BZ #19016]
24647         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
24648         allow more cases with X^2 + Y^2 >= 0.5.
24649         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
24650         normal element in sum instead of special-casing based on values of
24651         arguments.
24652         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
24653         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
24654         -1 as normal element in sum instead of special-casing based on
24655         values of arguments.
24656         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
24657         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
24658         (__x2y2m1): Update comment.
24659         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
24660         as normal element in sum instead of special-casing based on values
24661         of arguments.
24662         * math/s_clog.c (__clog): Handle more cases using log1p without
24663         hypot.
24664         * math/s_clog10.c (__clog10): Likewise.
24665         * math/s_clog10f.c (__clog10f): Likewise.
24666         * math/s_clog10l.c (__clog10l): Likewise.
24667         * math/s_clogf.c (__clogf): Likewise.
24668         * math/s_clogl.c (__clogl): Likewise.
24669         * math/auto-libm-test-in: Add more tests of clog and clog10.
24670         * math/auto-libm-test-out: Regenerated.
24671         * sysdeps/i386/fpu/libm-test-ulps: Update.
24672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24673
24674 2015-09-28  Martin Sebor  <msebor@redhat.com>
24675
24676         [BZ #18969]
24677         * string/Makefile (LOCALES): Define.
24678         (gen-locales.mk): Include.
24679         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
24680         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
24681         * string/tst-strxfrm2.c (do_test): Print the name of the locale
24682         on setlocale failure.
24683
24684 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
24685
24686         [BZ #18985]
24687         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
24688         (__strftime_internal): Likewise.
24689         * time/tst-strftime.c (do_bz18985): New test.
24690         (do_test): Call it.
24691
24692 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
24693
24694         [BZ #18956]
24695         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
24696         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
24697         extracting high part.
24698         * math/auto-libm-test-in: Add another test of pow.
24699         * math/auto-libm-test-out: Regenerated.
24700         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24701
24702 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
24703
24704         [BZ #18825]
24705         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
24706         New macro.
24707         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
24708         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24709         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
24710         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
24711         DBL_NARROW_EVAL, reloading the PIC register as needed.
24712         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
24713         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
24714         FLT_NARROW_EVAL.  Use separate return path for case when first
24715         argument is NaN.
24716         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
24717         DEFINE_LDBL_MIN.
24718         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
24719         PIC register.
24720         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
24721         math_check_force_underflow_nonneg.
24722         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
24723         underflow for subnormal result.
24724         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
24725         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
24726         math_check_force_underflow_nonneg.
24727         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
24728         math_check_force_underflow.
24729         * sysdeps/x86_64/fpu/x86_64-math-asm.h
24730         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
24731         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
24732         DEFINE_LDBL_MIN.
24733         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
24734         * math/auto-libm-test-in: Add more tests of pow.
24735         * math/auto-libm-test-out: Regenerated.
24736
24737 2015-09-25  Florian Weimer  <fweimer@redhat.com>
24738
24739         * nss/bug17079.c (init_test_items): Add diagnostic for
24740         inconsistent entries.
24741         (test_buffer_size): Skip inconsistent entries.
24742
24743 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
24744
24745         [BZ #13304]
24746         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
24747         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24748         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
24749
24750         [BZ #13304]
24751         * sysdeps/microblaze/s_fma.c: New file.
24752         * sysdeps/microblaze/s_fmaf.c: Likewise.
24753         * sysdeps/microblaze/sfp-machine.h: Likewise.
24754
24755 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
24756
24757         [BZ #17250]
24758         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
24759         member.
24760
24761 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
24762
24763         [BZ #18803]
24764         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
24765         (MO): New macro.
24766         (__ieee754_hypot) [PIC]: Load PIC register.
24767         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
24768         DBL_NARROW_EVAL.
24769         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
24770         math_check_force_underflow_nonneg in case where result might be
24771         tiny.
24772         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
24773         Likewise.
24774         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24775         Likewise.
24776         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
24777         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
24778         * math/auto-libm-test-in: Add more tests of hypot.
24779         * math/auto-libm-test-out: Regenerated.
24780
24781 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
24782
24783         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
24784
24785 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
24786
24787         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
24788         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
24789         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
24790         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
24791         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
24792         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
24793         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
24794
24795         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
24796         LOAD_PIC_REG.
24797
24798         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
24799         (FLT_CHECK_FORCE_UFLOW): Likewise.
24800         (DBL_CHECK_FORCE_UFLOW): Likewise.
24801         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
24802         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
24803         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
24804         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24805         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24806         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24807         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24808         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24809         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
24810         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24811         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
24812         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
24813         (flt_min): Replace with use of DEFINE_FLT_MIN.
24814         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
24815         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
24816         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24817         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
24818         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
24819         (flt_min): Replace with use of DEFINE_FLT_MIN.
24820         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
24821         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
24822         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24823         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
24824         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
24825         (flt_min): Replace with use of DEFINE_FLT_MIN.
24826         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
24827         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
24828         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
24829         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
24830         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
24831         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
24832         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
24833         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
24834         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24835         (__atan): Use DBL_CHECK_FORCE_UFLOW.
24836         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
24837         (flt_min): Replace with use of DEFINE_FLT_MIN.
24838         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
24839         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
24840         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24841         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
24842         main computation.
24843         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
24844         (flt_min): Replace with use of DEFINE_FLT_MIN.
24845         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
24846         main computation.
24847         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
24848         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24849         (MO): New macro.
24850         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
24851         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
24852         (flt_min): Replace with use of DEFINE_FLT_MIN.
24853         (MO): New macro.
24854         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
24855         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
24856         (__log1pl): Use MO.
24857
24858         [BZ #19003]
24859         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
24860         $(config-cflags-nofma).
24861
24862 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24863
24864         * sysdeps/aarch64/libm-test-ulps: Regenerated.
24865
24866 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
24867
24868         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
24869         (TWO127): Likewise.
24870
24871         * sysdeps/generic/math_private.h (fabs_tg): New macro.
24872         (min_of_type): Likewise.
24873         (math_check_force_underflow): Likewise.
24874         (math_check_force_underflow_nonneg): Likewise.
24875         (math_check_force_underflow_complex): Likewise.
24876         * math/e_exp2l.c (__ieee754_exp2l): Use
24877         math_check_force_underflow_nonneg.
24878         * math/k_casinh.c (__kernel_casinh): Likewise.
24879         * math/k_casinhf.c (__kernel_casinhf): Likewise.
24880         * math/k_casinhl.c (__kernel_casinhl): Likewise.
24881         * math/s_catan.c (__catan): Use
24882         math_check_force_underflow_complex.
24883         * math/s_catanf.c (__catanf): Likewise.
24884         * math/s_catanh.c (__catanh): Likewise.
24885         * math/s_catanhf.c (__catanhf): Likewise.
24886         * math/s_catanhl.c (__catanhl): Likewise.
24887         * math/s_catanl.c (__catanl): Likewise.
24888         * math/s_ccosh.c (__ccosh): Likewise.
24889         * math/s_ccoshf.c (__ccoshf): Likewise.
24890         * math/s_ccoshl.c (__ccoshl): Likewise.
24891         * math/s_cexp.c (__cexp): Likewise.
24892         * math/s_cexpf.c (__cexpf): Likewise.
24893         * math/s_cexpl.c (__cexpl): Likewise.
24894         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
24895         * math/s_clog10.c (__clog10): Likewise.
24896         * math/s_clog10f.c (__clog10f): Likewise.
24897         * math/s_clog10l.c (__clog10l): Likewise.
24898         * math/s_clogf.c (__clogf): Likewise.
24899         * math/s_clogl.c (__clogl): Likewise.
24900         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
24901         * math/s_csinf.c (__csinf): Likewise.
24902         * math/s_csinh.c (__csinh): Likewise.
24903         * math/s_csinhf.c (__csinhf): Likewise.
24904         * math/s_csinhl.c (__csinhl): Likewise.
24905         * math/s_csinl.c (__csinl): Likewise.
24906         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
24907         * math/s_csqrtf.c (__csqrtf): Likewise.
24908         * math/s_csqrtl.c (__csqrtl): Likewise.
24909         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
24910         * math/s_ctanf.c (__ctanf): Likewise.
24911         * math/s_ctanh.c (__ctanh): Likewise.
24912         * math/s_ctanhf.c (__ctanhf): Likewise.
24913         * math/s_ctanhl.c (__ctanhl): Likewise.
24914         * math/s_ctanl.c (__ctanl): Likewise.
24915         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
24916         instead of volatile.
24917         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
24918         math_check_force_underflow.
24919         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
24920         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
24921         volatile when forcing underflow.
24922         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
24923         math_check_force_underflow_nonneg.
24924         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
24925         Likewise.
24926         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
24927         math_check_force_underflow.
24928         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
24929         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
24930         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
24931         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
24932         math_check_force_underflow_nonneg.
24933         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
24934         math_check_force_underflow.
24935         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
24936         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
24937         instead of volatile.
24938         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
24939         math_check_force_underflow.
24940         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
24941         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
24942         math_check_force_underflow_nonneg.
24943         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
24944         math_check_force_underflow.
24945         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
24946         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
24947         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
24948         math_check_force_underflow_nonneg.
24949         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
24950         Likewise.
24951         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
24952         math_check_force_underflow.
24953         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
24954         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
24955         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
24956         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
24957         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
24958         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
24959         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
24960         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
24961         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
24962         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
24963         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
24964         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
24965         Likewise.
24966         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
24967         math_check_force_underflow_nonneg.
24968         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
24969         Likewise.
24970         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
24971         math_check_force_underflow.
24972         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
24973         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
24974         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
24975         Likewise.
24976         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
24977         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
24978         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
24979         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
24980         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
24981         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
24982         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
24983         instead of volatile.
24984         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
24985         math_check_force_underflow.
24986         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
24987         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
24988         math_check_force_underflow.
24989         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
24990         Likewise.
24991         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
24992         Use math_check_force_underflow_nonneg.
24993         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
24994         math_check_force_underflow.
24995         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
24996         Likewise.
24997         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
24998         Likewise.
24999         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
25000         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
25001         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
25002         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
25003         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
25004         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
25005         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
25006         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
25007         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
25008         math_check_force_underflow_nonneg.
25009         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
25010         math_check_force_underflow.
25011         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
25012         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
25013         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
25014         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
25015         math_check_force_underflow_nonneg.
25016         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
25017         math_check_force_underflow.
25018         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
25019         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
25020         instead of volatile.
25021         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
25022         math_check_force_underflow.
25023
25024         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
25025         * stdlib/strtod_l.c: Include <math_private.h>.
25026         (overflow_value): Use math_narrow_eval.
25027         (underflow_value): Likewise.
25028         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25029         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
25030         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
25031         (__ieee754_gamma_r): Likewise.
25032         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
25033         Likewise.
25034         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
25035         Likewise.
25036         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
25037         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
25038         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
25039         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
25040         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
25041         (__ieee754_gammaf_r): Likewise.
25042         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
25043         Likewise.
25044         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
25045         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
25046         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
25047         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
25048         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
25049         volatile.
25050         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
25051         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
25052         math_narrow_eval.
25053         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
25054         Likewise.
25055         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25056         Likewise.
25057         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
25058         Likewise.
25059         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
25060         volatile.
25061         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
25062         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
25063         math_narrow_eval.
25064         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25065         Likewise.
25066         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25067         Likewise.
25068
25069 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
25070
25071         * nptl/Versions: Remove ignored symbols.
25072
25073 2015-09-22  Florian Weimer  <fweimer@redhat.com>
25074
25075         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
25076         * nss/Makefile (tests): Update.
25077
25078 2015-09-22  Florian Weimer  <fweimer@redhat.com>
25079
25080         * nss/bug18287.c: New file.
25081         * nss/Makefile (tests): Add bug18287.
25082
25083 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25084
25085         * mach/Versions (__mach_host_self_): Add symbol.
25086
25087 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25088
25089         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
25090         vm_page_size.
25091
25092 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25093
25094         Really fix sysdeps/i386/fpu/s_scalbn.S build
25095
25096         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
25097         (libc: GLIBC_2_22): Remove unused version set.
25098
25099 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25100
25101         * config.make.in (enable-timezone-tools): New variable.
25102         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
25103         (enable_timezone_tools): Export to generated files.
25104         * configure: Regenerate.
25105         * INSTALL: Regenerate.
25106         * manual/install.texi (--disable-timezone-tools): Document new flag.
25107         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
25108         ifeq ($(enable-timezone-tools),yes) check.
25109
25110 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25111
25112         * timezone/Makefile: Revert previous change.
25113
25114         [BZ #18980]
25115         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
25116         (DEFINE_DBL_MIN): Likewise.
25117         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
25118         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
25119         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
25120         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
25121         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
25122         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25123         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25124         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
25125         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
25126         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25127         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25128         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
25129         (flt_min): Replace with use of DEFINE_FLT_MIN.
25130         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25131         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
25132         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25133         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25134         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
25135         (flt_min): Replace with use of DEFINE_FLT_MIN.
25136         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25137         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
25138         (flt_min): Replace with use of DEFINE_FLT_MIN.
25139         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25140         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
25141         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
25142         (__ieee754_hypot): Use DBL_NARROW_EVAL.
25143         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
25144         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
25145         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
25146         (__ieee754_pow): Use DBL_NARROW_EVAL.
25147         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
25148         (__ieee754_powf): Use FLT_NARROW_EVAL.
25149         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
25150         (__ieee754_expf_sse2): Convert double-precision result to single
25151         precision.
25152         * sysdeps/i386/fpu/libm-test-ulps: Update.
25153
25154 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25155
25156         * timezone/Makefile: Ignore unused variable errors due to private.h
25157         (time_t_min) and (time_t_max).
25158         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
25159         Likewise.
25160
25161 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25162
25163         [BZ #18981]
25164         * sysdeps/i386/fpu/i386-math-asm.h: New file.
25165         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
25166         (__ieee754_scalb): Use DBL_NARROW_EVAL.
25167         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
25168         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
25169         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
25170         (__scalbn): Use DBL_NARROW_EVAL.
25171         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
25172         (__scalbnf): Use FLT_NARROW_EVAL.
25173
25174 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25175
25176         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
25177         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
25178         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
25179         * stdio-common/printf_fp.c (___printf_fp):
25180         Use signbit to get the sign. Use isinf macro to allow inlining.
25181         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
25182         * stdio-common/printf_size.c (__printf_size): Likewise.
25183
25184 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25185
25186         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
25187
25188 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25189
25190         [BZ #18980]
25191         * sysdeps/generic/math_private.h: Include <float.h>.
25192         (math_narrow_eval): New macro.
25193         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
25194         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
25195         math_narrow_eval on overflowing return value.
25196         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
25197         Likewise.
25198         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25199         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
25200         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
25201         Likewise.
25202         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
25203
25204 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25205
25206         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
25207         * math/Makefile: Remove isinf_ns.c.
25208         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
25209         * math/multc3.c (__multc3): Likewise.
25210         * math/s_casin.c (__casin): Likewise.
25211         * math/s_casinf.c (__casinf): Likewise.
25212         * math/s_casinl.c (__casinl): Likewise.
25213         * math/s_cproj.c (__cproj): Likewise.
25214         * math/s_cprojf.c (__cprojf): Likewise.
25215         * math/s_cprojl.c (__cprofl): Likewise.
25216         * math/s_ctan.c (__ctan): Likewise.
25217         * math/s_ctanf.c (__ctanf): Likewise.
25218         * math/s_ctanh.c (__ctanh): Likewise.
25219         * math/s_ctanhf.c (__ctanhf): Likewise.
25220         * math/s_ctanhl.c (__ctanhl): Likewise.
25221         * math/s_ctanl.c (__ctanl): Likewise.
25222         * math/w_fmod.c (__fmod): Likewise.
25223         * math/w_fmodf.c (__fmodf): Likewise.
25224         * math/w_fmodl.c (_fmodl): Likewise.
25225         * math/w_remainder.c (__remainder): Likewise.
25226         * math/w_remainderf.c (__remainderf): Likewise.
25227         * math/w_remainderl.c (__remainderl): Likewise.
25228         * math/w_scalb.c (__scalb): Likewise.
25229         * math/w_scalbf.c (__scalbf): Likewise.
25230         * math/w_scalbl.c (__scalbl): Likewise.
25231         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
25232         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
25233         with isinf.
25234         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
25235         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
25236         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
25237         __isinf_nsf with isinf.
25238         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
25239         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
25240         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
25241         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
25242         with isinf.
25243         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
25244         __isinf_nsl with isinf.
25245         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
25246         with isinf.
25247         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
25248         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
25249         __isinf_nsl with isinf.
25250         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
25251         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
25252         with isinf.
25253
25254 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25255
25256         * resolv/base64.c (rcsid): Remove unused static.
25257         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
25258         static.  (tqpi1): Likewise.
25259         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
25260         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
25261         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
25262         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
25263         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
25264         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
25265         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
25266         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
25267         Likewise.
25268
25269 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
25270
25271         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
25272         <nptl/pthreadP.h>.
25273         (_longjmp_unwind): Use __libc_ptf_call.
25274         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
25275
25276 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
25277
25278         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
25279         * sysdeps/arm/__longjmp.S: Likewise.
25280
25281 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25282
25283         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
25284         Use __builtin_signbit.
25285         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
25286         Use __builtin_signbitf.
25287         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
25288         Use __builtin_signbitl.
25289         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
25290         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
25291
25292 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25293
25294         [BZ #15367]
25295         [BZ #17441]
25296
25297         * math/Makefile: Build test-snan.c with -fsignaling-nans.
25298         * math/math.h (fpclassify): Use __builtin_fpclassify when
25299         available.  (signbit): Use __builtin_signbit(f/l).
25300         (isfinite): Use__builtin_isfinite.  (isnormal): Use
25301         __builtin_isnormal.  (isnan): Use __builtin_isnan.
25302         (isinf): Use __builtin_isinf_sign.
25303
25304 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25305
25306         * benchtests/Makefile: Add bench-math-inlines, link with libm.
25307         * benchtests/bench-math-inlines.c: New benchmark.
25308         * benchtests/bench-util.h: New file.
25309         * benchtests/bench-util.c: New file.
25310         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
25311
25312 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
25313
25314         * elf/tst-dlmopen1.c: Define TEST_SO.
25315         (do_test): Use TEST_SO.
25316
25317         * elf/dl-load.c: Include libc-internal.h.
25318         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
25319
25320 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25321
25322         [BZ #17887]
25323         * time/strptime_l.c (__strptime_internal): Make %z accept
25324         [+-]HH:MM time zones.
25325
25326 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25327
25328         [BZ #17886]
25329         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
25330         valid time zone.
25331
25332 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
25333
25334         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
25335         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
25336         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
25337         (__ASSUME_FDATASYNC): Delete.
25338
25339 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25340
25341         * conform/linknamespace.pl: Require weak undefined symbols to be
25342         in the standard namespace.
25343         (%strong_syms): Rename to %seen_syms.
25344         (%strong_seen): Rename to %seen_where.
25345
25346 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
25347
25348         [BZ #18970]
25349         * misc/error.c (error): Replace pthread_setcancelstate with
25350         __pthread_setcancelstate.
25351         (error_at_line): Likewise.
25352         * posix/wordexp.c (parse_comm): Likewise.
25353         * stdlib/fmtmsg.c (fmtmsg): Likewise.
25354         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
25355         (__pthread_setcancelstate): This.
25356         (pthread_setcancelstate): Add an alias.
25357         * nptl/nptl-init.c (pthread_functions): Replace
25358         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
25359         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
25360         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
25361         hidden_proto.
25362         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
25363         it with hidden_def.
25364         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
25365         (pthread_setcancelstate): Renamed to ...
25366         (__pthread_setcancelstate): This.
25367         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
25368         __libc_ptf_call with __pthread_setcancelstate.
25369
25370 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25371             Andreas Schwab  <schwab@suse.de>
25372
25373         [BZ #17118]
25374         * math/s_ctan.c (__ctan): Determine sign of zero real part of
25375         result when imaginary part of argument is infinite using sine and
25376         cosine.
25377         * math/s_ctanf.c (__ctanf): Likewise.
25378         * math/s_ctanl.c (__ctanl): Likewise.
25379         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
25380         of result when real part of argument is infinite using sine and
25381         cosine.
25382         * math/s_ctanhf.c (__ctanhf): Likewise.
25383         * math/s_ctanhl.c (__ctanhl): Likewise.
25384         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
25385         (ctanh_test_data): Add more tests of ctanh.
25386
25387 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25388
25389         [BZ #15384]
25390         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
25391         bit-mask as in subtraction.
25392         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
25393         Likewise.
25394         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
25395         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
25396         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
25397
25398         [BZ #18951]
25399         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
25400         underflow exception for small results.
25401         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25402         Likewise.
25403         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25404         Likewise.
25405         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25406         Likewise.
25407         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
25408         Likewise.
25409         * math/auto-libm-test-in: Add more tests of tgamma.
25410         * math/auto-libm-test-out: Regenerated.
25411
25412 2015-09-17  Andreas Schwab  <schwab@suse.de>
25413
25414         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
25415
25416 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25417
25418         [BZ #18977]
25419         * math/bits/mathcalls.h
25420         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
25421         not declare.
25422         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
25423         Likewise.
25424         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
25425         Likewise.
25426         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
25427         Likewise.
25428         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
25429         Likewise.
25430         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
25431         Likewise.
25432         * conform/data/math.h-data
25433         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
25434         function.
25435         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
25436         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
25437         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
25438         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
25439         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
25440         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
25441         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
25442         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
25443         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
25444         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
25445         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
25446
25447         [BZ #6803]
25448         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
25449         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
25450         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
25451         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
25452         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
25453         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
25454         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
25455         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
25456         [NO_LONG_DOUBLE] (scalbnl): Likewise.
25457         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
25458         Likewise.
25459         [NO_LONG_DOUBLE] (scalbnl): Likewise.
25460         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
25461         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
25462         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
25463         long_double_symbol calls.
25464         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
25465         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
25466         strong alias of __ldexpl.
25467         (scalbnl): Define using long_double_symbol.
25468         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
25469         Remove alias.
25470         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
25471         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
25472         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
25473         (scalbln_test_data): Add more errno expectations.
25474
25475 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
25476
25477         Cache the host port like we cache the task port.  This way we do not
25478         need to call the kernel just to get the port.  Furthermore, we no
25479         longer increase the reference count on every invocation of
25480         `mach_host_self'.
25481
25482         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
25483         Protect declarations against the macro expansion.
25484         * mach/mach_init.c (__mach_host_self_): New variable.
25485         (mach_init): Initialize `__mach_host_self_'.
25486         * mach/mach_init.h (__mach_host_self_): New declaration.
25487         (__mach_host_self, mach_host_self): New macros.
25488         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
25489         Release reference.
25490
25491 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25492
25493         [BZ #4404]
25494         * po/de.po: Update from Translation Project.
25495
25496         [BZ #16415]
25497         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
25498         (__expm1l): Remove code to handle positive infinity and overflow.
25499         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
25500         variable.
25501         (__expm1l): Remove code to handle positive infinity and overflow.
25502
25503 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25504             Paul Pluzhnikov  <ppluzhnikov@google.com>
25505
25506         [BZ #18872]
25507         * stdio-common/Makefile (tst-printf-bz18872): New test.
25508         (tst-printf-bz18872-mem.out): Likewise.
25509         * stdio-common/tst-printf-bz18872.sh: Generate new test.
25510         * stdio-common/vfprintf.c: Fix memory leaks.
25511
25512 2015-09-16  Andreas Schwab  <schwab@suse.de>
25513
25514         [BZ #17244]
25515         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
25516         Remove extra va_start/va_end calls.
25517
25518         [BZ #17243]
25519         * posix/execl.c (execl): Add missing va_end.
25520         * posix/execle.c (execle): Likewise.
25521         * posix/execlp.c (execlp): Likewise.
25522
25523 2015-09-15  Roland McGrath  <roland@hack.frob.com>
25524
25525         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
25526         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
25527
25528 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
25529
25530         [BZ #18967]
25531         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
25532         undefine around includes of <bits/mathcalls.h>.
25533         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
25534         not declare function.
25535         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
25536         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
25537         (scalb): Likewise.
25538         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
25539         not define macro.
25540         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
25541         variable.
25542         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
25543         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
25544         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
25545
25546         [BZ #18857]
25547         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
25548         return non-finite argument without doing ordered comparisons on
25549         it.
25550
25551         [BZ #16296]
25552         * math/fenv.h (fegetround): Use __attribute_pure__.
25553         * include/fenv.h (__fegetround): Likewise.
25554
25555         [BZ #18595]
25556         * math/s_ctan.c (__ctan): Force underflow exception for results
25557         whose real or imaginary part has small absolute value.
25558         * math/s_ctanf.c (__ctanf): Likewise.
25559         * math/s_ctanh.c (__ctanh): Likewise.
25560         * math/s_ctanhf.c (__ctanhf): Likewise.
25561         * math/s_ctanhl.c (__ctanhl): Likewise.
25562         * math/s_ctanl.c (__ctanl): Likewise.
25563         * math/auto-libm-test-in: Do not allow missing underflow for ctan
25564         and ctanh.  Add more tests of ctan and ctanh.
25565
25566         [BZ #15918]
25567         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
25568         handling of cases where one argument is an infinity.
25569
25570         [BZ #18875]
25571         [BZ #18966]
25572         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
25573         (MO): New macro.
25574         (__ieee754_exp10): For small results, force underflow exception
25575         and remove excess range and precision from return value.
25576         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
25577         (MO): New macro.
25578         (__ieee754_exp10f): For small results, force underflow exception
25579         and remove excess range and precision from return value.
25580         * math/auto-libm-test-in: Add more tests of exp10.
25581         * math/auto-libm-test-out: Regenerated.
25582
25583 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
25584
25585         [BZ #18875]
25586         [BZ #18961]
25587         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
25588         (MO): New macro.
25589         (__ieee754_exp): For small results, force underflow exception and
25590         remove excess range and precision from return value.
25591         (__exp_finite): Likewise.
25592         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
25593         (MO): New macro.
25594         (__ieee754_expf): For small results, force underflow exception and
25595         remove excess range and precision from return value.
25596         (__expf_finite): Likewise.
25597         * math/auto-libm-test-in: Add more tests of exp.
25598         * math/auto-libm-test-out: Regenerated.
25599
25600         [BZ #16521]
25601         [BZ #18875]
25602         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
25603         small results.
25604         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
25605         (MO): New macro.
25606         (__ieee754_exp2): For small results, force underflow exception and
25607         remove excess range and precision from return value.
25608         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
25609         (MO): New macro.
25610         (__ieee754_exp2f): For small results, force underflow exception
25611         and remove excess range and precision from return value.
25612         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
25613         (MO): New macro.
25614         (__ieee754_exp2l): Force underflow exception for small results.
25615         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
25616         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
25617         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
25618         (MO): New macro.
25619         (__ieee754_exp2l): Force underflow exception for small results.
25620         * math/auto-libm-test-in: Add more tests or exp2.
25621         * math/auto-libm-test-out: Regenerated.
25622
25623 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
25624
25625         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
25626
25627         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
25628         /dev/null.
25629
25630 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25631
25632         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25633         io fs process)): Drop spurious backslash.
25634
25635 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
25636
25637         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
25638         Use sysinfo system call instead of parsing /proc/meminfo.
25639         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
25640         Likewise.
25641
25642 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
25643
25644         [BZ #16985]
25645         * programs/localedef.c (main): Display argv[remaining] when
25646         output_path is NULL.
25647
25648 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
25649
25650         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
25651         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
25652         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
25653         tanh.
25654         * math/auto-libm-test-out: Regenerated.
25655         * sysdeps/i386/fpu/libm-test-ulps: Update.
25656         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
25657         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25659
25660 2015-09-11  Roland McGrath  <roland@hack.frob.com>
25661
25662         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
25663         Use 'override' keyword to freeze the value here, preventing
25664         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
25665
25666 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
25667
25668         [BZ #14912]
25669         * sysdeps/aarch64/bits/atomic.h: Move to ...
25670         * sysdeps/aarch64/atomic-machine.h: ...here.
25671         (_AARCH64_BITS_ATOMIC_H): Rename macro to
25672         _AARCH64_ATOMIC_MACHINE_H.
25673         * sysdeps/alpha/bits/atomic.h: Move to ...
25674         * sysdeps/alpha/atomic-machine.h: ...here.
25675         * sysdeps/arm/bits/atomic.h: Move to ...
25676         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
25677         * bits/atomic.h: Move to ...
25678         * sysdeps/generic/atomic-machine.h: ...here.
25679         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25680         * sysdeps/i386/bits/atomic.h: Move to ...
25681         * sysdeps/i386/atomic-machine.h: ...here.
25682         * sysdeps/ia64/bits/atomic.h: Move to ...
25683         * sysdeps/ia64/atomic-machine.h: ...here.
25684         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
25685         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
25686         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25687         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
25688         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
25689         * sysdeps/microblaze/bits/atomic.h: Move to ...
25690         * sysdeps/microblaze/atomic-machine.h: ...here.
25691         * sysdeps/mips/bits/atomic.h: Move to ...
25692         * sysdeps/mips/atomic-machine.h: ...here.
25693         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
25694         * sysdeps/powerpc/bits/atomic.h: Move to ...
25695         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
25696         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
25697         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
25698         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
25699         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
25700         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
25701         <atomic-machine.h> instead of <bits/atomic.h>.
25702         * sysdeps/s390/bits/atomic.h: Move to ...
25703         * sysdeps/s390/atomic-machine.h: ...here.
25704         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
25705         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
25706         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25707         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
25708         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
25709         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
25710         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
25711         * sysdeps/tile/bits/atomic.h: Move to ...
25712         * sysdeps/tile/atomic-machine.h: ...here.
25713         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
25714         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
25715         <sysdeps/tile/atomic-machine.h> instead of
25716         <sysdeps/tile/bits/atomic.h>.
25717         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25718         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
25719         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
25720         <sysdeps/tile/atomic-machine.h> instead of
25721         <sysdeps/tile/bits/atomic.h>.
25722         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25723         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
25724         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
25725         <sysdeps/arm/atomic-machine.h> instead of
25726         <sysdeps/arm/bits/atomic.h>.
25727         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
25728         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
25729         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25730         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
25731         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
25732         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25733         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
25734         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
25735         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
25736         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
25737         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
25738         * sysdeps/x86_64/bits/atomic.h: Move to ...
25739         * sysdeps/x86_64/atomic-machine.h: ...here.
25740         * include/atomic.h: Include <atomic-machine.h> instead of
25741         <bits/atomic.h>.
25742
25743         * sysdeps/mips/mips32/libm-test-ulps: Update.
25744         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25745
25746         [BZ #18952]
25747         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
25748         not convert non-integer negative arguments to int to determine the
25749         value of signgam.
25750         * math/auto-libm-test-in: Add more tests of lgamma.
25751         * math/auto-libm-test-out: Regenerated.
25752
25753         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
25754         cosh, csqrt, erfc, expm1 and lgamma.
25755         * math/auto-libm-test-out: Regenerated.
25756         * sysdeps/i386/fpu/libm-test-ulps: Update.
25757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25758
25759 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
25760
25761         [BZ #2542]
25762         [BZ #2543]
25763         [BZ #2558]
25764         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
25765         __lgamma_neg for arguments from -28.0 to -2.0.
25766         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
25767         __lgamma_negf for arguments from -15.0 to -2.0.
25768         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
25769         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
25770         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
25771         Call __lgamma_negl for arguments from -33.0 to -2.0.
25772         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
25773         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
25774         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
25775         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
25776         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
25777         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
25778         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
25779         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
25780         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
25781         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
25782         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
25783         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
25784         (__lgamma_neg): Likewise.
25785         (__lgamma_negl): Likewise.
25786         (__lgamma_product): Likewise.
25787         (__lgamma_productl): Likewise.
25788         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
25789         * math/auto-libm-test-in: Add more tests of lgamma.
25790         * math/auto-libm-test-out: Regenerated.
25791         * sysdeps/i386/fpu/libm-test-ulps: Update.
25792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25793
25794 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
25795
25796         [BZ #18675]
25797         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
25798
25799 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25800
25801         [BZ #14912]
25802         * bits/libc-lock.h: Move to ...
25803         * sysdeps/generic/libc-lock.h: ...here.
25804         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25805         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
25806         * sysdeps/mach/hurd/libc-lock.h: ...here.
25807         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25808         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
25809         * sysdeps/mach/bits/libc-lock.h: Move to ...
25810         * sysdeps/mach/libc-lock.h: ...here.
25811         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25812         * sysdeps/nptl/bits/libc-lock.h: Move to ...
25813         * sysdeps/nptl/libc-lock.h: ...here.
25814         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25815         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
25816         * sysdeps/nptl/libc-lockP.h: ...here.
25817         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
25818         * crypt/crypt_util.c: Include <libc-lock.h> instead of
25819         <bits/libc-lock.h>.
25820         * dirent/scandir-tail.c: Likewise.
25821         * dlfcn/dlerror.c: Likewise.
25822         * elf/dl-close.c: Likewise.
25823         * elf/dl-iteratephdr.c: Likewise.
25824         * elf/dl-lookup.c: Likewise.
25825         * elf/dl-open.c: Likewise.
25826         * elf/dl-support.c: Likewise.
25827         * elf/dl-writev.h: Likewise.
25828         * elf/rtld.c: Likewise.
25829         * grp/fgetgrent.c: Likewise.
25830         * gshadow/fgetsgent.c: Likewise.
25831         * gshadow/sgetsgent.c: Likewise.
25832         * iconv/gconv_conf.c: Likewise.
25833         * iconv/gconv_db.c: Likewise.
25834         * iconv/gconv_dl.c: Likewise.
25835         * iconv/gconv_int.h: Likewise.
25836         * iconv/gconv_trans.c: Likewise.
25837         * include/link.h: Likewise.
25838         * inet/getnameinfo.c: Likewise.
25839         * inet/getnetgrent.c: Likewise.
25840         * inet/getnetgrent_r.c: Likewise.
25841         * intl/bindtextdom.c: Likewise.
25842         * intl/dcigettext.c: Likewise.
25843         * intl/finddomain.c: Likewise.
25844         * intl/gettextP.h: Likewise.
25845         * intl/loadmsgcat.c: Likewise.
25846         * intl/localealias.c: Likewise.
25847         * intl/textdomain.c: Likewise.
25848         * libidn/idn-stub.c: Likewise.
25849         * libio/libioP.h: Likewise.
25850         * locale/duplocale.c: Likewise.
25851         * locale/freelocale.c: Likewise.
25852         * locale/newlocale.c: Likewise.
25853         * locale/setlocale.c: Likewise.
25854         * login/getutent_r.c: Likewise.
25855         * login/getutid_r.c: Likewise.
25856         * login/getutline_r.c: Likewise.
25857         * login/utmp-private.h: Likewise.
25858         * login/utmpname.c: Likewise.
25859         * malloc/mtrace.c: Likewise.
25860         * misc/efgcvt.c: Likewise.
25861         * misc/error.c: Likewise.
25862         * misc/fstab.c: Likewise.
25863         * misc/getpass.c: Likewise.
25864         * misc/mntent.c: Likewise.
25865         * misc/syslog.c: Likewise.
25866         * nis/nis_call.c: Likewise.
25867         * nis/nis_callback.c: Likewise.
25868         * nis/nss-default.c: Likewise.
25869         * nis/nss_compat/compat-grp.c: Likewise.
25870         * nis/nss_compat/compat-initgroups.c: Likewise.
25871         * nis/nss_compat/compat-pwd.c: Likewise.
25872         * nis/nss_compat/compat-spwd.c: Likewise.
25873         * nis/nss_nis/nis-alias.c: Likewise.
25874         * nis/nss_nis/nis-ethers.c: Likewise.
25875         * nis/nss_nis/nis-grp.c: Likewise.
25876         * nis/nss_nis/nis-hosts.c: Likewise.
25877         * nis/nss_nis/nis-network.c: Likewise.
25878         * nis/nss_nis/nis-proto.c: Likewise.
25879         * nis/nss_nis/nis-pwd.c: Likewise.
25880         * nis/nss_nis/nis-rpc.c: Likewise.
25881         * nis/nss_nis/nis-service.c: Likewise.
25882         * nis/nss_nis/nis-spwd.c: Likewise.
25883         * nis/nss_nisplus/nisplus-alias.c: Likewise.
25884         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
25885         * nis/nss_nisplus/nisplus-grp.c: Likewise.
25886         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
25887         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
25888         * nis/nss_nisplus/nisplus-network.c: Likewise.
25889         * nis/nss_nisplus/nisplus-proto.c: Likewise.
25890         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
25891         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
25892         * nis/nss_nisplus/nisplus-service.c: Likewise.
25893         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
25894         * nis/ypclnt.c: Likewise.
25895         * nptl/libc_pthread_init.c: Likewise.
25896         * nss/getXXbyYY.c: Likewise.
25897         * nss/getXXent.c: Likewise.
25898         * nss/getXXent_r.c: Likewise.
25899         * nss/nss_db/db-XXX.c: Likewise.
25900         * nss/nss_db/db-netgrp.c: Likewise.
25901         * nss/nss_db/nss_db.h: Likewise.
25902         * nss/nss_files/files-XXX.c: Likewise.
25903         * nss/nss_files/files-alias.c: Likewise.
25904         * nss/nsswitch.c: Likewise.
25905         * posix/regex_internal.h: Likewise.
25906         * posix/wordexp.c: Likewise.
25907         * pwd/fgetpwent.c: Likewise.
25908         * resolv/res_hconf.c: Likewise.
25909         * resolv/res_libc.c: Likewise.
25910         * shadow/fgetspent.c: Likewise.
25911         * shadow/lckpwdf.c: Likewise.
25912         * shadow/sgetspent.c: Likewise.
25913         * socket/opensock.c: Likewise.
25914         * stdio-common/reg-modifier.c: Likewise.
25915         * stdio-common/reg-printf.c: Likewise.
25916         * stdio-common/reg-type.c: Likewise.
25917         * stdio-common/vfprintf.c: Likewise.
25918         * stdio-common/vfscanf.c: Likewise.
25919         * stdlib/abort.c: Likewise.
25920         * stdlib/cxa_atexit.c: Likewise.
25921         * stdlib/fmtmsg.c: Likewise.
25922         * stdlib/random.c: Likewise.
25923         * stdlib/setenv.c: Likewise.
25924         * string/strsignal.c: Likewise.
25925         * sunrpc/auth_none.c: Likewise.
25926         * sunrpc/bindrsvprt.c: Likewise.
25927         * sunrpc/create_xid.c: Likewise.
25928         * sunrpc/key_call.c: Likewise.
25929         * sunrpc/rpc_thread.c: Likewise.
25930         * sysdeps/arm/backtrace.c: Likewise.
25931         * sysdeps/generic/ldsodefs.h: Likewise.
25932         * sysdeps/generic/stdio-lock.h: Likewise.
25933         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
25934         * sysdeps/i386/backtrace.c: Likewise.
25935         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
25936         * sysdeps/m68k/backtrace.c: Likewise.
25937         * sysdeps/mach/hurd/cthreads.c: Likewise.
25938         * sysdeps/mach/hurd/dirstream.h: Likewise.
25939         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
25940         * sysdeps/nptl/malloc-machine.h: Likewise.
25941         * sysdeps/nptl/stdio-lock.h: Likewise.
25942         * sysdeps/posix/dirstream.h: Likewise.
25943         * sysdeps/posix/getaddrinfo.c: Likewise.
25944         * sysdeps/posix/system.c: Likewise.
25945         * sysdeps/pthread/aio_suspend.c: Likewise.
25946         * sysdeps/s390/s390-32/backtrace.c: Likewise.
25947         * sysdeps/s390/s390-64/backtrace.c: Likewise.
25948         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
25949         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
25950         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
25951         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
25952         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
25953         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
25954         * sysdeps/unix/sysv/linux/system.c: Likewise.
25955         * sysdeps/x86_64/backtrace.c: Likewise.
25956         * time/alt_digit.c: Likewise.
25957         * time/era.c: Likewise.
25958         * time/tzset.c: Likewise.
25959         * wcsmbs/wcsmbsload.c: Likewise.
25960         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
25961         instead of <bits/libc-lock.h> in comment.
25962
25963 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
25964
25965         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
25966         Only use .set mips2 if the current ISA is below mips2.
25967         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
25968         Likewise.
25969         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
25970         mips32r2 if the current ISA is below mips32r2.
25971         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
25972         (TLS_IE): Updated to use the TLD_RDHWR macro.
25973         (TLS_LE): Likewise.
25974         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
25975         __ASSEMBLER__ condition.
25976
25977 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25978
25979         Fix parallel build of before-compile targets.
25980
25981         * sysdeps/mach/Makefile ($(patsubst
25982         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
25983         mach-before-compile target.
25984         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25985         io fs process)): Move rule to dedicated hurd-before-compile target.
25986
25987 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25988
25989         Fix rules generating headers in hurd/ and mach/ when initial make call
25990         has subdir= explicitly set.
25991
25992         * sysdeps/mach/Makefile ($(patsubst
25993         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
25994         calling $(MAKE).
25995         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25996         io fs process)): Force subdir to hurd when calling $(MAKE).
25997         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
25998         subdir to mach when calling $(MAKE).
25999
26000 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
26001
26002         Check sysheaders when looking for Mach and Hurd headers
26003
26004         * sysdeps/mach/configure.ac: Add sysheaders check.
26005         * sysdeps/mach/configure: Regenerate.
26006         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
26007         * sysdeps/mach/hurd/configure: Regenerate.
26008
26009 2015-09-04  Roland McGrath  <roland@hack.frob.com>
26010
26011         [BZ #18921]
26012         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
26013         Fix inverted sense of test of 'o_directory_works' value.
26014         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
26015         Bernhard Voelker <mail@bernhard-voelker.de>.
26016
26017 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
26018
26019         [BZ #14912]
26020         * bits/linkmap.h: Move to ...
26021         * sysdeps/generic/linkmap.h: ...here.
26022         * sysdeps/aarch64/bits/linkmap.h: Move to ...
26023         * sysdeps/aarch64/linkmap.h: ...here.
26024         * sysdeps/arm/bits/linkmap.h: Move to ...
26025         * sysdeps/arm/linkmap.h: ...here.
26026         * sysdeps/hppa/bits/linkmap.h: Move to ...
26027         * sysdeps/hppa/linkmap.h: ...here.
26028         * sysdeps/ia64/bits/linkmap.h: Move to ...
26029         * sysdeps/ia64/linkmap.h: ...here.
26030         * sysdeps/mips/bits/linkmap.h: Move to ...
26031         * sysdeps/mips/linkmap.h: ...here.
26032         * sysdeps/s390/bits/linkmap.h: Move to ...
26033         * sysdeps/s390/linkmap.h: ...here.
26034         * sysdeps/sh/bits/linkmap.h: Move to ...
26035         * sysdeps/sh/linkmap.h: ...here.
26036         * sysdeps/x86/bits/linkmap.h: Move to ...
26037         * sysdeps/x86/linkmap.h: ...here.
26038         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
26039
26040 2015-09-04  Andreas Schwab  <schwab@suse.de>
26041
26042         [BZ #18635]
26043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
26044         (__makecontext): Terminate FDE before return label.
26045         (__novec_makecontext): Likewise.
26046
26047 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26048
26049         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
26050         first member of struct sv in syscall macro.
26051
26052 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
26053
26054         [BZ #14912]
26055         * bits/stdio-lock.h: Move to ...
26056         * sysdeps/generic/stdio-lock.h: ...here.
26057         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
26058         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
26059         * sysdeps/nptl/stdio-lock.h: ...here.
26060         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
26061         * include/libio.h: Include <stdio-lock.h> instead of
26062         <bits/stdio-lock.h>.
26063         * sysdeps/nptl/fork.c: Likewise.
26064         * sysdeps/pthread/flockfile.c: Likewise.
26065         * sysdeps/pthread/ftrylockfile.c: Likewise.
26066         * sysdeps/pthread/funlockfile.c: Likewise.
26067
26068         [BZ #14912]
26069         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
26070         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
26071         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
26072         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
26073         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
26074         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
26075         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
26076
26077 2015-09-03  Roland McGrath  <roland@hack.frob.com>
26078
26079         * elf/Makefile (test-xfail-tst-protected1a): New variable.
26080         (test-xfail-tst-protected1b): New variable.
26081
26082 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
26083
26084         [BZ #14912]
26085         * bits/libc-tsd.h: Move to ...
26086         * sysdeps/generic/libc-tsd.h: ...here.
26087         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
26088         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
26089         * sysdeps/mach/hurd/libc-tsd.h: ...here.
26090         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
26091         * include/ctype.h: Include <libc-tsd.h> instead of
26092         <bits/libc-tsd.h>.
26093         * include/rpc/rpc.h: Likewise.
26094         * locale/localeinfo.h: Likewise.
26095         * sunrpc/rpc_thread.c: Likewise.
26096         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
26097         * sysdeps/nptl/malloc-machine.h: Likewise.
26098
26099         * Makefile (headers): Remove bits/libc-lock.h.
26100         * libio/Makefile (headers): Remove bits/stdio-lock.h.
26101
26102         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
26103         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
26104         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
26105         <bits/stdio-lock.h>.
26106         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
26107         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
26108
26109 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
26110
26111         [BZ #18757]
26112         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
26113         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
26114         BZ #18757.
26115
26116 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
26117
26118         * malloc/mtrace.pl: Filter out NULL entries.
26119
26120 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
26121
26122         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
26123         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
26124         macro.
26125
26126         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
26127         (TCP_CC_INFO): Likewise.
26128         (TCP_SAVE_SYN): Likewise.
26129         (TCP_SAVED_SYN): Likewise.
26130
26131 2015-08-31  Brett Neumeier <brett@neumeier.us>
26132
26133         [BZ #18870]
26134         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
26135
26136 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26137
26138         [BZ #18873]
26139         Fix broken overflow check in posix_fallocate
26140         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
26141         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
26142         Fix parenthesization typo.
26143
26144 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
26145
26146         [BZ #18887]
26147         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
26148         tst-mntent-blank-passno.
26149         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
26150         * misc/tst-mntent-blank-corrupt.c: New test.
26151         * misc/tst-mntent-blank-passno.c: New test ripped from ...
26152         * misc/tst-mntent.c (do_test): ... here.
26153
26154 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
26155
26156         [BZ #4404]
26157         * po/de.po: Fix SIGALRM typo.
26158
26159 2015-08-28  James Perkins  <james@loowit.net>
26160
26161         * time/tst-strptime2.c (tests): Replace short list of test
26162         strings for strptime %z specifier with code which exhaustively
26163         tests every combination of sign and 0 to 5 digits. Tests for
26164         rejection of invalid strings.
26165
26166 2015-08-28  James Perkins  <james@loowit.net>
26167
26168         [BZ #16141]
26169         * time/strptime_l.c (__strptime_internal): Fix %z minutes
26170         calculation, removing incorrect decimal time rounding, so that
26171         all minute values result in a valid seconds value.
26172         * time/strptime_l.c (__strptime_internal): Extend %z time zone
26173         offset range limits to UTC-99:59 through UTC+99:59 to parse
26174         current and historical use cases.
26175         * time/tst-strptime2.c (tests): Modify and add tests for the
26176         strptime %z input field descriptor, specifically conversion of
26177         minutes to seconds and validating an offset range of -9959 to
26178         +9959.
26179
26180 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26181             Dmitry V. Levin  <ldv@altlinux.org>
26182
26183         [BZ #18877]
26184         * posix/Makefile (tests): Add tst-mmap-offset.
26185         * posix/tst-mmap.c: New file.
26186         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
26187         offset calculation for negative values.
26188
26189 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26190
26191         * sysdeps/i386/init-arch.h: New file.
26192         * sysdeps/i386/i586/init-arch.h: Likewise.
26193         * sysdeps/i386/i686/init-arch.h: Likewise.
26194         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
26195         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
26196         * sysdeps/x86/cpu-features.h (bit_I586): New.
26197         (bit_I686): Likewise.
26198         (bit_CX8): Likewise.
26199         (bit_CMOV): Likewise.
26200         (index_CX8): Likewise.
26201         (index_CMOV): Likewise.
26202         (index_I586): Likewise.
26203         (index_I686): Likewise.
26204         (reg_CX8): Likewise.
26205         (reg_CMOV): Likewise.
26206         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
26207         available at compile-time.
26208         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
26209         available at compile-time.
26210         * sysdeps/x86/init-arch.h (USE_I586): New macro.
26211         (USE_I686): Likewise.
26212
26213 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26214
26215         * sysdeps/i386/bcopy.S: New file.
26216         * sysdeps/i386/bzero.S: Likewise.
26217         * sysdeps/i386/memcpy.S: Likewise.
26218         * sysdeps/i386/memmove.S: Likewise.
26219         * sysdeps/i386/mempcpy.S: Likewise.
26220         * sysdeps/i386/memset.S: Likewise.
26221         * sysdeps/i386/bzero.c: Removed.
26222         * sysdeps/i386/memset.c: Likewise.
26223         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
26224         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
26225         * sysdeps/i386/i586/memset_chk.S: Likewise.
26226         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
26227         * sysdeps/i386/memcpy_chk.S: Here.
26228         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
26229         * sysdeps/i386/memmove_chk.S: Here.
26230         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
26231         * sysdeps/i386/mempcpy_chk.S: Likewise.
26232         * sysdeps/i386/i686/memset_chk.S: Moved to ...
26233         * sysdeps/i386/memset_chk.S: Likewise.
26234
26235 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
26236
26237         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
26238         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
26239         file, move DIAG_POP_NEEDS_COMMENT to end of file.
26240         * soft-fp/fmadf4.c: Ditto.
26241         * soft-fp/fmatf4.c: Ditto.
26242
26243 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26244
26245         * sysdeps/i386/i586/Implies: Removed.
26246         * sysdeps/i386/i686/Implies: Likewise.
26247
26248 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26249
26250         * sysdeps/i386/i486/strlen.S: Moved to ...
26251         * sysdeps/i386/strlen.S: Here.
26252
26253 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26254
26255         * sysdeps/i386/i486/strcat.S: Moved to ...
26256         * sysdeps/i386/strcat.S: Here.
26257
26258 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26259
26260         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
26261         * sysdeps/i386/pthread_spin_trylock.S: Here.
26262         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
26263         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
26264
26265 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26266
26267         * sysdeps/i386/i486/string-inlines.c: Moved to ...
26268         * sysdeps/i386/string-inlines.c: Here.
26269
26270 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26271
26272         * sysdeps/i386/i486/htonl.S: Moved ...
26273         * sysdeps/i386/htonl.S: here.
26274
26275 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26276
26277         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
26278         * sysdeps/i386/bits/atomic.h: Here.
26279
26280 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26281
26282         * sysdeps/i386/i486/Versions: Removed.
26283
26284 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
26285
26286         [BZ #2898]
26287         * misc/mktemp.c: Add mkdtemp to the link_warning message.
26288         Based on patch by Aurelien Jarno.
26289
26290 2015-08-26  Stan Shebs  <stanshebs@google.com>
26291
26292         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
26293         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
26294
26295 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26296
26297         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
26298         * sysdeps/powerpc/dl-procinfo.c:
26299         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
26300         feature so it shows when LD_SHOW_AUXV=1.
26301
26302 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26303
26304         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
26305         (__arch_compare_and_exchange_val_32_acq): Remove and use common
26306         definition.  ISA 2.07B no longer requires full sync.
26307
26308 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
26309
26310         [BZ #18863]
26311         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
26312         (si_call_addr): Define.
26313         (si_syscall): Define.
26314         (si_arch): Define.
26315
26316 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
26317
26318         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
26319         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
26320         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
26321         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26322         (__memset_zero_constant_len_parameter): New.
26323         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
26324         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26325         (__memset_zero_constant_len_parameter): Don't define if
26326         __memset_chk or USE_AS_BZERO are defined.
26327
26328         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
26329         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
26330         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
26331
26332         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
26333         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
26334         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
26335         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
26336         comments.
26337         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
26338         -mno-mmx for $(all-rtld-routines).
26339         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
26340         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
26341         i386.
26342
26343 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
26344
26345         * sysdeps/generic/unwind.h
26346         (_Unwind_Word): Use __mode__(__unwind_word__)
26347         instead of __mode__(__word__).
26348         (_Unwind_Sword): Likewise.
26349
26350         * sysdeps/s390/s390-64/utf8-utf16-z9.c
26351         (MAX_NEEDED_INPUT): New define.
26352         (MAX_NEEDED_OUTPUT): New define.
26353
26354         * NEWS: New item for IBM z13 string optimizations.
26355
26356         * sysdeps/s390/multiarch/memrchr-c.c: New File.
26357         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
26358         * sysdeps/s390/multiarch/memrchr.c: Likewise.
26359         * sysdeps/s390/multiarch/Makefile
26360         (sysdep_routines): Add memrchr functions.
26361         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26362         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
26363
26364         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
26365         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
26366         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
26367         * sysdeps/s390/multiarch/Makefile
26368         (sysdep_routines): Add wmemcmp functions.
26369         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26370         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
26371         * benchtests/bench-wmemcmp.c: New File.
26372         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
26373
26374         * sysdeps/s390/multiarch/wmemset-c.c: New File.
26375         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
26376         * sysdeps/s390/multiarch/wmemset.c: Likewise.
26377         * sysdeps/s390/multiarch/Makefile
26378         (sysdep_routines): Add wmemset functions.
26379         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26380         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
26381         * wcsmbs/wmemset.c: Use WMEMSET if defined.
26382         * string/test-memset.c: Add wmemset support.
26383         * wcsmbs/test-wmemset.c: New File.
26384         * wcsmbs/Makefile (strop-tests): Add wmemset.
26385         * benchtests/bench-memset.c: Add wmemset support.
26386         * benchtests/bench-wmemset.c: New File.
26387         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
26388
26389         * sysdeps/s390/multiarch/memccpy-c.c: New File.
26390         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
26391         * sysdeps/s390/multiarch/memccpy.c: Likewise.
26392         * sysdeps/s390/multiarch/Makefile
26393         (sysdep_routines): Add memccpy functions.
26394         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26395         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
26396         * string/memccpy.c: Use MEMCCPY if defined.
26397
26398         * sysdeps/s390/multiarch/memchr-vx.S: New File.
26399         * sysdeps/s390/multiarch/memchr.c: Likewise.
26400         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
26401         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
26402         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
26403         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
26404         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
26405         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
26406         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
26407         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
26408         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
26409         and rawmemchr functions.
26410         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26411         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
26412         and wmemchr.
26413         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
26414         * string/test-memchr.c: Add wmemchr support.
26415         * wcsmbs/test-wmemchr.c: New File.
26416         * wcsmbs/Makefile (strop-tests): Add wmemchr.
26417         * benchtests/bench-memchr.c: Add wmemchr support.
26418         * benchtests/bench-wmemchr.c: New File.
26419         * benchtests/Makefile (wcsmbs-bench): wmemchr.
26420
26421         * sysdeps/s390/multiarch/strcspn-c.c: New File.
26422         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
26423         * sysdeps/s390/multiarch/strcspn.c: Likewise.
26424         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
26425         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
26426         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
26427         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
26428         wcscspn functions.
26429         * sysdeps/s390/multiarch/ifunc-impl-list.c
26430         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
26431         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
26432         * string/test-strcspn.c: Add wcscspn support.
26433         * wcsmbs/test-wcscspn.c: New File.
26434         * wcsmbs/Makefile (strop-tests): Add wcscspn.
26435         * benchtests/bench-strcspn.c: Add wcscspn support.
26436         * benchtests/bench-wcscspn.c: New File.
26437         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
26438
26439         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
26440         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
26441         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
26442         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
26443         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
26444         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
26445         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
26446         wcspbrk functions.
26447         * sysdeps/s390/multiarch/ifunc-impl-list.c
26448         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
26449         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
26450         * string/test-strpbrk.c: Add wcspbrk support.
26451         * wcsmbs/test-wcspbrk.c: New File.
26452         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
26453         * benchtests/bench-strpbrk.c: Add wcspbrk support.
26454         * benchtests/bench-wcspbrk.c: New File.
26455         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
26456
26457         * sysdeps/s390/multiarch/strspn-c.c: New File.
26458         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
26459         * sysdeps/s390/multiarch/strspn.c: Likewise.
26460         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
26461         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
26462         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
26463         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
26464         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
26465         wcsspn functions.
26466         * sysdeps/s390/multiarch/ifunc-impl-list.c
26467         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
26468         * string/test-strspn.c: Add wcsspn support.
26469         * wcsmbs/test-wcsspn.c: New File.
26470         * wcsmbs/Makefile (strop-tests): Add wcsspn.
26471         * benchtests/bench-strspn.c: Add wcsspn support.
26472         * benchtests/bench-wcsspn.c: New File.
26473         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
26474
26475         * sysdeps/s390/multiarch/strrchr-c.c: New File.
26476         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
26477         * sysdeps/s390/multiarch/strrchr.c: Likewise.
26478         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
26479         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
26480         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
26481         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
26482         wcsrchr functions.
26483         * sysdeps/s390/multiarch/ifunc-impl-list.c
26484         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
26485         * benchtests/bench-wcsrchr.c: New File.
26486         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
26487
26488         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
26489         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
26490         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
26491         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
26492         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
26493         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
26494         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
26495         wcschrnul functions.
26496         * sysdeps/s390/multiarch/ifunc-impl-list.c
26497         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
26498         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
26499         * string/test-strchr.c: Add wcschrnul support.
26500         * wcsmbs/test-wcschrnul.c: New File.
26501         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
26502         * benchtests/bench-strchr.c: Add wcschrnul support.
26503         * benchtests/bench-wcschrnul.c: New File.
26504         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
26505
26506         * sysdeps/s390/multiarch/strchr-c.c: New File.
26507         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
26508         * sysdeps/s390/multiarch/strchr.c: Likewise.
26509         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
26510         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
26511         * sysdeps/s390/multiarch/wcschr.c: Likewise.
26512         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
26513         wcschr functions.
26514         * sysdeps/s390/multiarch/ifunc-impl-list.c
26515         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
26516         * string/strchr.c (STRCHR): Define and use macro.
26517         * benchtests/bench-wcschr.c: New File.
26518         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
26519
26520         * sysdeps/s390/multiarch/strncmp-c.c: New File.
26521         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
26522         * sysdeps/s390/multiarch/strncmp.c: Likewise.
26523         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
26524         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
26525         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
26526         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
26527         wcsncmp functions.
26528         * sysdeps/s390/multiarch/ifunc-impl-list.c
26529         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
26530         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
26531         * benchtests/bench-strncmp.c: Add wcsncmp support.
26532         * benchtests/bench-wcsncmp.c: New File.
26533         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
26534
26535         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
26536         * sysdeps/s390/multiarch/strcmp.c: Likewise.
26537         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
26538         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
26539         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
26540         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
26541         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
26542         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
26543         wcscmp functions.
26544         * sysdeps/s390/multiarch/ifunc-impl-list.c
26545         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
26546         * string/strcmp.c (STRCMP): Define and use macro.
26547         * benchtests/bench-wcscmp.c: New File.
26548         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
26549         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
26550         instead of _HAVE_STRING_ARCH_memchr.
26551
26552         * sysdeps/s390/multiarch/strncat-c.c: New File.
26553         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
26554         * sysdeps/s390/multiarch/strncat.c: Likewise.
26555         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
26556         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
26557         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
26558         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
26559         wcsncat functions.
26560         * sysdeps/s390/multiarch/ifunc-impl-list.c
26561         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
26562         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
26563         * string/test-strncat.c: Add wcsncat support.
26564         * wcsmbs/test-wcsncat.c: New File.
26565         * wcsmbs/Makefile (strop-tests): Add wcsncat.
26566         * benchtests/bench-strncat.c: Add wcsncat support.
26567         * benchtests/bench-wcsncat.c: New File.
26568         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
26569
26570         * sysdeps/s390/multiarch/strcat-c.c: New File.
26571         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
26572         * sysdeps/s390/multiarch/strcat.c: Likewise.
26573         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
26574         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
26575         * sysdeps/s390/multiarch/wcscat.c: Likewise.
26576         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
26577         wcscat functions.
26578         * sysdeps/s390/multiarch/ifunc-impl-list.c
26579         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
26580         * string/strcat.c (STRCAT): Define and use macro.
26581         * wcsmbs/wcscat.c: Use WCSCAT if defined.
26582         * string/test-strcat.c: Add wcscat support.
26583         * wcsmbs/test-wcscat.c: New File.
26584         * wcsmbs/Makefile (strop-tests): Add wcscat.
26585         * benchtests/bench-strcat.c: Add wcscat support.
26586         * benchtests/bench-wcscat.c: New File.
26587         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
26588
26589         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
26590         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
26591         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
26592         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
26593         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
26594         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
26595         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
26596         wcpncpy functions.
26597         * sysdeps/s390/multiarch/ifunc-impl-list.c
26598         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
26599         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
26600         * string/test-stpncpy.c: Add wcpncpy support.
26601         * wcsmbs/test-wcpncpy.c: New File.
26602         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
26603         * benchtests/bench-stpncpy.c: Add wcpncpy support.
26604         * benchtests/bench-wcpncpy.c: New File.
26605         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
26606
26607         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
26608         * sysdeps/s390/multiarch/strncpy.c: Likewise.
26609         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
26610         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
26611         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
26612         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
26613         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
26614         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
26615         wcsncpy functions.
26616         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
26617         * sysdeps/s390/multiarch/ifunc-impl-list.c
26618         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
26619         * string/test-strncpy.c: Add wcsncpy support.
26620         * wcsmbs/test-wcsncpy.c: New File.
26621         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
26622         * benchtests/bench-strncpy.c: Add wcsncpy support.
26623         * benchtests/bench-wcsncpy.c: New File.
26624         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
26625
26626         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
26627         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
26628         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
26629         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
26630         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
26631         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
26632         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
26633         wcpcpy functions.
26634         * string/stpcpy.c: Use STPCPY if defined.
26635         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
26636         * sysdeps/s390/multiarch/ifunc-impl-list.c
26637         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
26638         * string/test-stpcpy.c: Add wcpcpy support.
26639         * wcsmbs/test-wcpcpy.c: New File.
26640         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
26641         * benchtests/bench-stpcpy.c: Add wcpcpy support.
26642         * benchtests/bench-wcpcpy.c: New File.
26643         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
26644
26645         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
26646         * sysdeps/s390/multiarch/strcpy.c: Likewise.
26647         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
26648         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
26649         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
26650         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
26651         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
26652         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
26653         wcscpy functions.
26654         * sysdeps/s390/multiarch/ifunc-impl-list.c
26655         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
26656         * benchtests/bench-wcscpy.c: New File.
26657         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
26658
26659         * sysdeps/s390/multiarch/strnlen-c.c: New File.
26660         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
26661         * sysdeps/s390/multiarch/strnlen.c: Likewise.
26662         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
26663         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
26664         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
26665         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
26666         wcsnlen functions.
26667         * sysdeps/s390/multiarch/ifunc-impl-list.c
26668         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
26669         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
26670         * string/test-strnlen.c: Add wcsnlen support.
26671         * wcsmbs/test-wcsnlen.c: New File.
26672         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
26673         * benchtests/bench-strnlen.c: Add wcsnlen support.
26674         * benchtests/bench-wcsnlen.c: New File.
26675         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
26676
26677         * sysdeps/s390/multiarch/Makefile: New File.
26678         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
26679         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
26680         * sysdeps/s390/multiarch/strlen.c: Likewise.
26681         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
26682         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
26683         * sysdeps/s390/multiarch/wcslen.c: Likewise.
26684         * string/strlen.c (STRLEN): Define and use macro.
26685         * sysdeps/s390/multiarch/ifunc-impl-list.c
26686         (IFUNC_VX_IMPL): New macro function.
26687         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
26688         * benchtests/Makefile (wcsmbs-bench): New variable.
26689         (string-bench-all): Added wcsmbs-bench.
26690         * benchtests/bench-wcslen.c: New File.
26691
26692         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
26693         s390_vx_libc_ifunc2): New macro function.
26694
26695         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
26696         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
26697         assembler support.
26698         * sysdeps/s390/configure: Regenerated.
26699
26700         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
26701         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
26702
26703         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
26704         * sysdeps/s390/dl-procinfo.h: Add vector capability.
26705         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
26706
26707         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
26708         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
26709         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
26710         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
26711         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
26712         (memcmp, bcmp): Use __memcmp_default as alias source.
26713         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
26714         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
26715         Rename to __memcmp_default.
26716         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
26717         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
26718         (memcpy): Use __memcpy_default as alias source.
26719         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
26720         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
26721         Rename to __memcpy_default.
26722         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
26723         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
26724         (memset): Use __memset_default as alias source.
26725         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
26726         * sysdeps/s390/s390-32/memset.S (__memset_g5):
26727         Rename to __memset_default.
26728         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
26729         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
26730         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
26731         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
26732         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
26733         (memcmp, bcmp): Use __memcmp_default as alias source.
26734         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
26735         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
26736         Rename to __memcmp_default.
26737         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
26738         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
26739         (memcpy): Use __memcpy_default as alias source.
26740         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
26741         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
26742         Rename to __memcpy_default.
26743         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
26744         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
26745         (memset): Use __memset_default as alias source.
26746         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
26747         * sysdeps/s390/s390-64/memset.S (__memset_z900):
26748         Rename to __memset_default.
26749         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
26750         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
26751
26752         [BZ #18610]
26753         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
26754         __ieee_instruction_pointer to __unused.
26755         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
26756         __ieee_instruction_pointer.
26757         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
26758         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
26759         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
26760         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
26761         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
26762         Mark dxc-field as reserved.
26763
26764 2015-08-25  Roland McGrath  <roland@hack.frob.com>
26765
26766         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
26767         if the weak reference is not null.
26768
26769 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26770
26771         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
26772
26773         [BZ #11214]
26774         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
26775
26776 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26777
26778         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
26779         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
26780         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
26781         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
26782         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
26783         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
26784         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
26785         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
26786         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
26787         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
26788         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
26789         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
26790         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
26791         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
26792         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
26793         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
26794         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
26795         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
26796
26797 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26798
26799         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
26800         register other than r0 for tabort, it has special meaning.
26801         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
26802         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
26803         transaction before starting syscall.
26804
26805 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26806
26807         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
26808
26809 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26810
26811         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
26812
26813         * sysdeps/x86_64/rtld-memcmp.c: Removed.
26814         * sysdeps/x86_64/rtld-memset.S: Likewise.
26815         * sysdeps/x86_64/rtld-strchr.S: Likewise.
26816         * sysdeps/x86_64/rtld-strlen.S: Likewise.
26817         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
26818         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
26819
26820         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
26821
26822 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
26823
26824         * debug/strcpy_chk.c: Improve performance.
26825         * debug/stpcpy_chk.c: Likewise.
26826         * sysdeps/x86_64/strcpy_chk.S: Remove.
26827         * sysdeps/x86_64/stpcpy_chk.S: Remove.
26828
26829         [BZ #18240]
26830         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
26831
26832 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26833
26834         [BZ #15128]
26835         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
26836         ifuncmain8.
26837         (modules-names): Add ifuncmod8.
26838         ($(objpfx)ifuncmain8): New rule.
26839         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
26840         <cpuid.h>.
26841         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
26842         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
26843         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
26844         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
26845         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
26846         * sysdeps/x86_64/dl-trampoline.h: Likewise.
26847         * sysdeps/x86_64/ifuncmain8.c: New file.
26848         * sysdeps/x86_64/ifuncmod8.c: Likewise.
26849         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
26850         Removed.
26851         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
26852         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
26853         Change rtld_savespace_sse to __glibc_unused2.
26854         (RTLD_CHECK_FOREIGN_CALL): Removed.
26855         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
26856         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
26857         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
26858
26859 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
26860
26861         * sysdeps/aarch64/bzero.S (__bzero): Remove.
26862
26863 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
26864
26865         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
26866         Unconditionally set __fpcr to avoid uninialized warning.
26867         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
26868
26869 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26870
26871         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
26872         is corrupt.
26873
26874         * malloc/arena.c (arena_get2): Drop unused argument.
26875         (arena_lock): Adjust.
26876         (arena_get_retry): Likewise.
26877
26878 2015-08-24  Andreas Schwab  <schwab@suse.de>
26879
26880         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
26881         Don't define.
26882         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
26883         (__ASSUME_IPC64): Don't undef.
26884         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
26885         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
26886         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
26887         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
26888         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
26889         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
26890         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
26891         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
26892         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
26893         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
26894         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
26895         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
26896         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
26897         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
26898         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
26899         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
26900         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
26901         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
26902         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
26903         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
26904         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
26905
26906 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
26907
26908         * manual/Makefile (install): Only build manual when perl is available.
26909
26910 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26911
26912         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
26913         '#undef memcpy' by '#undef memchr'.
26914
26915 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26916
26917         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
26918         memchr not point to the internal __GI_memchr implementation.
26919
26920 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
26921
26922         * timezone/Makefile (CFLAGS-zdump.c): Remove
26923         -Wno-strict-prototypes.
26924         (CFLAGS-zic.c): Likewise.
26925         (CFLAGS-ialloc.c): Likewise.
26926         (CFLAGS-scheck.c): Likewise.
26927
26928         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
26929         -Wno-error=undef.
26930
26931 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26932
26933         * i386/i686/multiarch/strcasestr-c.c: Removed.
26934         * x86_64/multiarch/strcasestr.c: Likewise.
26935         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
26936         Remove strcasestr.
26937
26938 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
26939
26940         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
26941
26942         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
26943         variables for high and low parts before possibly modifying them.
26944
26945 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26946
26947         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
26948         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
26949         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
26950         of "multiarch/init-arch.h".
26951         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
26952         * sysdeps/x86/init-arch.h: This.
26953
26954 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26955
26956         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
26957         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
26958
26959 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
26960
26961         [BZ #17787]
26962         * manual/macros.texi: Add twoexp macro.
26963         * manual/filesys.texi: Fix exponents.
26964         * manual/llio.texi: Likewise.
26965         * manual/stdio.texi: Likewise.
26966
26967 2015-08-20  Florian Weimer  <fweimer@redhat.com>
26968
26969         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
26970         incorrect use.
26971
26972 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
26973
26974         [BZ #18370]
26975         * math/s_csqrt.c (__csqrt): Force underflow exception for results
26976         whose real or imaginary part has small absolute value.
26977         * math/s_csqrtf.c (__csqrtf): Likewise.
26978         * math/s_csqrtl.c (__csqrtl): Likewise.
26979         * math/auto-libm-test-in: Add more tests of csqrt.
26980         * math/auto-libm-test-out: Regenerated.
26981         * sysdeps/i386/fpu/libm-test-ulps: Update.
26982
26983 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
26984
26985         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
26986         __ppc_set_ppr_very_low): New functions.
26987         * manual/platform.texi: Add documentation about
26988         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
26989
26990 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
26991
26992         * string/stpncpy.c (stpncpy): Improve performance using
26993         __strnlen/memcpy/memset.
26994
26995 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
26996
26997         [BZ #18796]
26998         * scripts/test-installation.pl: Don't add -lmvec to build options if
26999         libmvec wasn't built.
27000
27001 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
27002
27003         [BZ #14341]
27004         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
27005         case when there is a gap between DT_REL and DT_JMPREL sections.
27006         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
27007         (LDFLAGS-tst-split-dynreloc): New.
27008         (tst-split-dynreloc-ENV): Likewise.
27009         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
27010         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
27011
27012 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27013
27014         [BZ #18822]
27015         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
27016         attribute_hidden.
27017         (__xstat64_conv): Likewise.
27018         (__xstat32_conv): Likewise.
27019
27020 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27021
27022         [BZ #18822]
27023         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
27024         Don't load %ebx when calling __setcontext.  Call __setcontext
27025         with HIDDEN_JUMPTARGET.
27026         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
27027         libc_hidden_def.
27028
27029 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27030
27031         * sysdeps/i386/i686/Makefile
27032         [$(subdir) == string] (sysdep_routines): Moved to ...
27033         * sysdeps/i386/Makefile: Here.
27034         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
27035         * sysdeps/i386/cacheinfo.c: Here.
27036         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
27037         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
27038         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
27039         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
27040
27041 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27042
27043         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
27044         __i586__ is defined.
27045         (HAS_I686): Defined to 1 if __i686__ is defined.
27046
27047 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
27048
27049         * elf/Makefile [$(have-z-execstack) = yes]
27050         (CPPFLAGS-tst-execstack.c): New variable.
27051
27052         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
27053         conditional to [defined UTMPX || _HAVE_UT_TYPE].
27054         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
27055         UTMPX || _HAVE_UT_TV].
27056         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
27057         UTMPX || _HAVE_UT_TV - 0].
27058
27059 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
27060
27061         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
27062         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
27063         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
27064
27065 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27066
27067         * sysdeps/powerpc/dl-procinfo.c:
27068         (_dl_powerpc_cap_flags): Added missing strings for some
27069         hwcap features.
27070         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
27071
27072 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27073
27074         Port the 0x7efe...feff pattern to GCC 6.
27075         See Steve Ellcey's bug report in:
27076         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
27077         * string/memrchr.c (MEMRCHR):
27078         * string/rawmemchr.c (RAWMEMCHR):
27079         * string/strchr.c (strchr):
27080         * string/strchrnul.c (STRCHRNUL):
27081         Rewrite code to avoid issues with signed shift overflow.
27082
27083 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
27084
27085         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
27086         whether cpuid is available only if HAS_CPUID is 0.
27087         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
27088         (HAS_I586): Likewise.
27089         (HAS_I686): Likewise.
27090
27091 2015-08-18  Zack Weinberg  <zackw@panix.com>
27092
27093         * misc/Versions (libc): Add GLIBC_2.23.
27094
27095 2015-08-18  Alan Modra  <amodra@gmail.com>
27096
27097         [BZ #18421]
27098         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
27099         .Lp__global.
27100         (_start): Load %dp via .Lp__global.
27101         [!SHARED]: Use .section .rodata.
27102
27103 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27104
27105         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
27106         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
27107
27108 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27109
27110         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
27111         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
27112
27113 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27114
27115         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
27116         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
27117
27118 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27119
27120         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
27121         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
27122
27123 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27124
27125         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
27126         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
27127
27128 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27129
27130         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
27131         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
27132
27133 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27134
27135         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
27136
27137 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27138
27139         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
27140         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
27141         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27142         (__ASSUME_LWS_CAS): Delete.
27143
27144 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27145
27146         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
27147         * sysdeps/hppa/configure: Regenerated.
27148         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
27149         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
27150         * sysdeps/hppa/nptl/tls.h: Likewise.
27151
27152 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
27153
27154         [BZ #18823]
27155         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
27156         for scaling up small arguments.
27157         * math/s_csqrtf.c (__csqrtf): Likewise.
27158         * math/s_csqrtl.c (__csqrtl): Likewise.
27159         * math/auto-libm-test-in: Add more tests of csqrt.
27160         * math/auto-libm-test-out: Regenerated.
27161
27162 2015-08-17  Andreas Schwab  <schwab@suse.de>
27163
27164         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
27165         version set GLIBC_2.19.
27166
27167 2015-08-16  Zack Weinberg  <zackw@panix.com>
27168
27169         [BZ #18681]
27170         * misc/regexp.h: This interface is no longer supported.
27171         Remove all contents, leaving only an #error directive.
27172         * misc/regexp.c (loc1, loc2, locs, step, advance):
27173         Demote to compatibility symbols.
27174
27175 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
27176
27177         [BZ #18084]
27178         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
27179         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
27180         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
27181         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
27182         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
27183         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
27184         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
27185         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
27186         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
27187
27188 2015-08-15  Zack Weinberg  <zackw@panix.com>
27189
27190         [BZ #18795]
27191         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
27192         buffer length is known to be too large, not if it's known to be
27193         small enough.
27194         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
27195         overflow at runtime, involving a length parameter, twice: once
27196         with a compile-time constant length parameter, once without.
27197
27198 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
27199
27200         [BZ #18824]
27201         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
27202         scaling x * y up instead of down.
27203         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27204         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27205         * math/auto-libm-test-in: Add more tests of fma.
27206         * math/auto-libm-test-out: Regenerated.
27207
27208 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
27209
27210         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
27211
27212 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27213
27214         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
27215         unnecessary movq.
27216         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
27217         Likewise.
27218
27219 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
27220
27221         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
27222         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
27223         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
27224         and tgamma.
27225         * math/auto-libm-test-out: Regenerated.
27226         * sysdeps/i386/fpu/libm-test-ulps: Update.
27227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27228
27229         [BZ #16520]
27230         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
27231         (__tanh): Force underflow exception for arguments with small
27232         absolute value.
27233         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
27234         (__tanhf): Force underflow exception for arguments with small
27235         absolute value.
27236         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
27237         (__tanhl): Force underflow exception for arguments with small
27238         absolute value.
27239         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
27240         (__tanhl): Force underflow exception for arguments with small
27241         absolute value.
27242         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
27243         (__tanhl): Force underflow exception for arguments with small
27244         absolute value.
27245         * math/auto-libm-test-in: Add more tests of tanh.
27246         * math/auto-libm-test-out: Regenerated.
27247         * sysdeps/i386/fpu/libm-test-ulps: Update.
27248
27249 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27250
27251         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
27252         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
27253
27254 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27255
27256         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
27257         <cpuid.h>.
27258
27259 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27260
27261         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
27262         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
27263
27264 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27265
27266         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
27267         Remove $(objpfx)init-arch.o.
27268         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
27269         init-arch.
27270         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
27271         (INIT_ARCH_EXT): Defined as empty.
27272         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
27273         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
27274         __init_cpu_features call.  Replace HAS_XXX with
27275         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27276         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
27277         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
27278         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
27279         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
27280         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
27281         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
27282         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
27283         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
27284         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
27285         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
27286         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
27287         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
27288         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
27289         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
27290         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
27291         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
27292         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
27293         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
27294         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
27295         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
27296         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
27297         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
27298         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
27299         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
27300         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
27301         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
27302         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
27303         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
27304         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
27305         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
27306         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
27307         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
27308         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
27309         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
27310         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
27311
27312 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27313
27314         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
27315         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27316         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27317         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27318         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
27319         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
27320         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
27321         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
27322         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
27323         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
27324         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
27325         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
27326         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27327         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27328         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27329         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27330         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27331         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27332         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27333         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27334         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27335         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27336         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27337         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27338         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27339         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27340         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27341         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27342         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27343         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27344         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27345         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27346         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27347         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27348         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27349         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27350         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27351         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27352         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27353         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27354         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27355         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27356         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27357
27358 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27359
27360         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
27361         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27362         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
27363         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27364         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27365         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
27366         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27367         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
27368         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
27369         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27370         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27371         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
27372         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
27373         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
27374         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
27375         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
27376         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
27377         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
27378         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
27379         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
27380         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
27381         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
27382         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
27383         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27384         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27385         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
27386         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
27387         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
27388         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27389         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27390         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27391         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27392         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27393         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27394         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27395         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27396         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27397         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27398         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27399         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27400         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27401         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27402         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27403
27404 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27405
27406         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
27407         (dl_platform_init): Call init_cpu_features.
27408         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
27409         * sysdeps/i386/i686/cacheinfo.c
27410         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
27411         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
27412         * sysdeps/i386/i686/multiarch/Versions: Removed.
27413         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
27414         Removed.
27415         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
27416         * sysdeps/unix/sysv/linux/x86/Makefile
27417         (libpthread-sysdep_routines): Remove init-arch.
27418         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
27419         <sysdeps/x86_64/dl-procinfo.c> instead of
27420         sysdeps/generic/dl-procinfo.c>.
27421         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
27422         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
27423         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
27424         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
27425         [$(subdir) == elf] (tests-static): Add
27426         tst-get-cpu-features-static.
27427         * sysdeps/x86/Versions: New file.
27428         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
27429         * sysdeps/x86/cpu-features.c: Likewise.
27430         * sysdeps/x86/cpu-features.h: Likewise.
27431         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
27432         * sysdeps/x86/libc-start.c: Likewise.
27433         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
27434         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
27435         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
27436         * sysdeps/x86_64/dl-procinfo.c: Likewise.
27437         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
27438         Assume USE_MULTIARCH is defined and don't check it.
27439         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
27440         (is_amd): Likewise.
27441         (max_cpuid): Likewise.
27442         (intel_check_word): Likewise.
27443         (__cache_sysconf): Don't call __init_cpu_features.
27444         (__x86_preferred_memory_instruction): Removed.
27445         (init_cacheinfo): Don't call __init_cpu_features. Replace
27446         __cpu_features with GLRO(dl_x86_cpu_features).
27447         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
27448         (dl_platform_init): Call init_cpu_features.
27449         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
27450         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
27451         * sysdeps/x86_64/multiarch/Versions: Removed.
27452         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
27453         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
27454         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
27455         Removed.
27456         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
27457
27458 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
27459
27460         [BZ #18820]
27461         * libio/Makefile (test-fmemopen-mem): New test.
27462         * libio/test-fmemopen.c (do_bz18820): New test.
27463         * libio/fmemopen.c (__fmemopen): Fix memory leak.
27464         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
27465
27466 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
27467
27468         [BZ #16734]
27469         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
27470         (FREE_BUF): Delete.
27471         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
27472         * libio/genops.c (_IO_setb): Use malloc and free directly.
27473         (_IO_default_doallocate, _IO_default_finish): Likewise.
27474         ( _IO_unbuffer_all): Likewise.
27475         ( libc_freeres_fn): Likewise.
27476         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
27477         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
27478         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
27479         (_IO_wdefault_doallocate): Likewise.
27480
27481 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
27482
27483         [BZ #18086]
27484         * sysdeps/posix/nice.c (nice): Restore old errno.
27485         * posix/tst-nice.c (do_test): Add test for BZ #18086.
27486
27487 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
27488
27489         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
27490
27491 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27492
27493         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
27494         __bcopy and add a weak_alias to bcopy.
27495         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
27496         for static build.
27497
27498         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
27499         cleanup macro usage.
27500         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
27501         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
27502         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
27503         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
27504         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
27505         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
27506         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
27507         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
27508         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
27509         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
27510         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
27511         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
27512         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
27513         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
27514         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
27515         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
27516         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
27517         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
27518         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
27519
27520         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
27521         libc_hidden_def.
27522         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
27523
27524         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
27525         (sysdep_routines): Add strstr-ppc64.
27526         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
27527
27528 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
27529
27530         [BZ #18778]
27531         * elf/Makefile (tests): Add Add tst-nodelete2.
27532         (modules-names): Add tst-nodelete2mod.
27533         (tst-nodelete2mod.so-no-z-defs): New.
27534         ($(objpfx)tst-nodelete2): Likewise.
27535         ($(objpfx)tst-nodelete2.out): Likewise.
27536         (LDFLAGS-tst-nodelete2): Likewise.
27537         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
27538         out of loop through all loaded libraries.
27539         * elf/tst-nodelete2.c: New file.
27540         * elf/tst-nodelete2mod.c: Likewise.
27541         * elf/tst-znodelete-zlib.cc: Delete.
27542
27543 2015-08-11  Andreas Schwab  <schwab@suse.de>
27544
27545         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
27546         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
27547         (__openat64_nocancel): Likewise.
27548
27549 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
27550
27551         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
27552         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
27553         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
27554         * math/auto-libm-test-out: Regenerated.
27555         * sysdeps/i386/fpu/libm-test-ulps: Update.
27556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27557
27558 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
27559
27560         [BZ #18790]
27561         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
27562         threshold for returning +/- 1.
27563         * math/auto-libm-test-in: Add more tests of tanh.
27564         * math/auto-libm-test-out: Regenerated.
27565         * sysdeps/i386/fpu/libm-test-ulps: Update.
27566
27567 2015-08-10  Andreas Schwab  <schwab@suse.de>
27568
27569         [BZ #18781]
27570         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
27571         MORE_OFLAGS to oflag.
27572         * io/test-lfs.c (do_test): Test openat64.
27573
27574 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
27575
27576         [BZ #18789]
27577         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
27578         smaller threshold for returning the argument.
27579         * math/auto-libm-test-in: Add more tests of sinh.
27580         * math/auto-libm-test-out: Regenerated.
27581         * sysdeps/i386/fpu/libm-test-ulps: Update.
27582
27583 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
27584
27585         [BZ #18674]
27586         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
27587         break.
27588
27589 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
27590
27591         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
27592         (generated): Don't add $(addprefix z.,$(tzfiles)).
27593
27594 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27595
27596         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
27597         * scripts/sysd-rules.awk: Likewise.
27598
27599 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27600
27601         * iconvdata/tst-tables.sh: Change echo -n to printf.
27602         * nss/db-Makefile: Likewise.
27603         * posix/tst-getconf.sh: Likewise.
27604         * stdio-common/tst-unbputc.sh: Likewise.
27605
27606 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27607
27608         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
27609         MADV_*_PAGES defines behind this feature check.
27610
27611 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
27612
27613         [BZ #18480]
27614         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
27615         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
27616         Define.
27617         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
27618         LOAD_REGS_5, LOAD_REGS_6): Update.
27619         (INTERNAL_SYSCALL): Update using new LOAD defines.
27620         (INTERNAL_SYSCALL_NCS): Likewise.
27621         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
27622
27623 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27624
27625         [BZ #16734]
27626         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
27627
27628 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27629
27630         [BZ #17905]
27631         * catgets/Makefile (tst-catgets-mem): New test.
27632         * catgets/catgets.c (catopen): Don't use unbounded alloca.
27633         * catgets/open_catalog.c (__open_catalog): Likewise.
27634         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
27635
27636 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
27637
27638         [BZ #18787]
27639         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
27640         clobber registers.
27641         (atomic_compare_and_exchange_val_acq): Use register asms to assign
27642         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
27643         Cast return to __typeof (oldval).
27644
27645 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
27646
27647         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
27648         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
27649         and delete sys/syscall.h include.
27650
27651 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
27652
27653         [BZ #16517]
27654         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
27655         (tan): Force underflow exception for arguments with small absolute
27656         value.
27657         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
27658         (__kernel_tanf): Force underflow exception for arguments with
27659         small absolute value.
27660         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
27661         (__kernel_tanl): Force underflow exception for arguments with
27662         small absolute value.
27663         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
27664         (__kernel_tanl): Force underflow exception for arguments with
27665         small absolute value.
27666         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
27667         (__kernel_tanl): Force underflow exception for arguments with
27668         small absolute value.
27669         * math/auto-libm-test-in: Add more tests of tan.
27670         * math/auto-libm-test-out: Regenerated.
27671
27672 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27673
27674         Fix sysdeps/i386/fpu/s_scalbn.S build
27675
27676         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
27677
27678 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
27679
27680         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
27681
27682 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27683
27684         Fix gcrt0.o compilation
27685
27686         When static-start-installed-name is different from
27687         start-installed-name, we must not use the shared objects.
27688
27689         * csu/Makefile
27690         (extra-objs): Add gmon-start.o when building shared library and
27691         $(static-start-installed-name) is different from
27692         $(start-installed-name).
27693         $(objpfx)g$(static-start-installed-name): When building shared
27694         library and $(static-start-installed-name) is different from
27695         $(static-start-installed-name), revert to non-shared rule,
27696         i.e. using $(objpfx)% and gmon-start.o.
27697
27698 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
27699
27700         [BZ #16519]
27701         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
27702         (__ieee754_sinh): Force underflow exception for arguments with
27703         small absolute value.
27704         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
27705         (__ieee754_sinhf): Force underflow exception for arguments with
27706         small absolute value.
27707         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
27708         (__ieee754_sinhl): Force underflow exception for arguments with
27709         small absolute value.
27710         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
27711         (__ieee754_sinhl): Force underflow exception for arguments with
27712         small absolute value.
27713         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
27714         (__ieee754_sinhl): Force underflow exception for arguments with
27715         small absolute value.
27716         * math/auto-libm-test-in: Add more tests of sinh.
27717         * math/auto-libm-test-out: Regenerated.
27718         * sysdeps/i386/fpu/libm-test-ulps: Update.
27719
27720 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27721
27722         * libio/oldfileops.c: Include unistd.h.
27723
27724 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
27725
27726         * stdlib/isomac.c: Include ctype.h.
27727
27728 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
27729
27730         * dirent/tst-seekdir.c (main): Converted to ...
27731         (do_test): ... this.
27732         (TEST_FUNCTION): New macro.
27733         Include test-skeleton.c.
27734         * elf/tst-dlmodcount.c (main): Converted to ...
27735         (do_test): ... this.
27736         (TEST_FUNCTION): New macro.
27737         Include test-skeleton.c.
27738         * elf/tst-order-main.c (main): Converted to ...
27739         (do_test): ... this.
27740         (TEST_FUNCTION): New macro.
27741         Include test-skeleton.c.
27742         * elf/tst-pie2.c (main): Converted to ...
27743         (do_test): ... this.
27744         (TEST_FUNCTION): New macro.
27745         Include test-skeleton.c.
27746         * inet/tst-ether_aton.c (main): Converted to ...
27747         (do_test): ... this.
27748         (TEST_FUNCTION): New macro.
27749         Include test-skeleton.c.
27750         * misc/tst-mntent.c (main): Converted to ...
27751         (do_test): ... this.
27752         (TEST_FUNCTION): New macro.
27753         Include test-skeleton.c.
27754         * misc/tst-tsearch.c (main): Converted to ...
27755         (do_test): ... this.
27756         (TEST_FUNCTION): New macro.
27757         Include test-skeleton.c.
27758         * posix/tst-regexloc.c (main): Converted to ...
27759         (do_test): ... this.
27760         (TEST_FUNCTION): New macro.
27761         Include test-skeleton.c.
27762         * resolv/tst-aton.c (main): Converted to ...
27763         (do_test): ... this.
27764         (TEST_FUNCTION): New macro.
27765         Include test-skeleton.c.
27766         * stdio-common/test-fwrite.c (main): Converted to ...
27767         (do_test): ... this.
27768         (TEST_FUNCTION): New macro.
27769         Include test-skeleton.c.
27770         * stdio-common/tst-ferror.c (main): Converted to ...
27771         (do_test): ... this.
27772         (TEST_FUNCTION): New macro.
27773         Include test-skeleton.c.
27774         * stdio-common/tst-printf.c (main): Converted to ...
27775         (do_test): ... this.
27776         (TEST_FUNCTION): New macro.
27777         Include test-skeleton.c.
27778         * stdio-common/tst-printfsz.c (main): Converted to ...
27779         (do_test): ... this.
27780         (TEST_FUNCTION): New macro.
27781         Include test-skeleton.c.
27782         * stdlib/tst-strtod.c (main): Converted to ...
27783         (do_test): ... this.
27784         (TEST_FUNCTION): New macro.
27785         Include test-skeleton.c.
27786         * string/tst-strlen.c (main): Converted to ...
27787         (do_test): ... this.
27788         (TEST_FUNCTION): New macro.
27789         Include test-skeleton.c.
27790         * string/tst-svc.c (main): Converted to ...
27791         (do_test): ... this.
27792         (TEST_FUNCTION): New macro.
27793         Include test-skeleton.c.
27794         * time/tst-strptime.c (main): Converted to ...
27795         (do_test): ... this.
27796         (TEST_FUNCTION): New macro.
27797         Include test-skeleton.c.
27798         * timezone/tst-timezone.c (main): Converted to ...
27799         (do_test): ... this.
27800         (TEST_FUNCTION): New macro.
27801         Include test-skeleton.c.
27802
27803 2015-08-05  Zack Weinberg  <zackw@panix.com>
27804
27805         * misc/regexp.h: Update comments.
27806
27807 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
27808
27809         [BZ #18635]
27810         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
27811         before return label.
27812
27813 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27814
27815         [BZ #18661]
27816         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
27817         when calling __errno_location.
27818         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
27819         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
27820
27821 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27822
27823         [BZ #18661]
27824         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
27825         (__lll_timedwait_tid): Align stack to 16 bytes when calling
27826         __gettimeofday.
27827
27828 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27829
27830         [BZ #18661]
27831         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
27832         (__start_context): Don't use pop to restore %rdi so that stack
27833         is aligned to 16 bytes when calling __setcontext.
27834
27835 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27836
27837         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
27838         only for libc.
27839         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
27840
27841 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27842
27843         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
27844         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
27845         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
27846
27847 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27848
27849         * string/memccpy.c (memccpy):
27850         Improve performance by using memchr/memcpy/__mempcpy.
27851
27852 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27853
27854         * string/strncpy.c (strncpy):
27855         Improve performance by using __strnlen/memcpy.
27856
27857 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27858
27859         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
27860         Optimize to avoid an unnecessary FPCR read.
27861
27862 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27863
27864         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
27865         Optimize to reduce FPCR/FPSR accesses.
27866
27867 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27868
27869         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
27870         dead->data[category] != NULL.
27871
27872 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
27873
27874         [BZ #18647]
27875         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
27876         and |x| close to 1, use absolute value of x when computing log.
27877         * math/auto-libm-test-in: Add more tests of pow.
27878         * math/auto-libm-test-out: Regenerated.
27879
27880 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27881
27882         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
27883         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
27884         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
27885
27886 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
27887
27888         [BZ #18525]
27889         * locales/km_KH: Remove timezone definition.
27890         * locales/lo_LA: Likewise.
27891         * locales/my_MM: Likewise.
27892         * locales/nan_TW@latin: Likewise.
27893         * locales/th_TH: Likewise.
27894         * locales/uk_UA: Likewise.
27895
27896 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
27897
27898         [BZ #18265]
27899         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
27900         (wcsncat): Likewise.
27901         (wcscmp): Likewise.
27902         (wcsncmp): Likewise.
27903
27904 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27905
27906         * test-skeleton.c (usage): New function.
27907         (main): Call usage when opt is '?'.
27908
27909 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27910
27911         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
27912         before first use.
27913
27914 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27915
27916         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
27917         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
27918         in there too.
27919
27920 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
27921
27922         * version.h (RELEASE): Set to "development".
27923         (VERSION): Set to "2.22.90"
27924
27925         * version.h (RELEASE): Set to "stable".
27926         (VERSION): Set to "2.22"
27927         * include/features.h (__GLIBC_MINOR__): Set to 22.
27928
27929 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
27930
27931         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
27932         Restructure macro to avoid "value computed is not used" warning.
27933         (atomic_compare_and_exchange_val_acq): Likewise.
27934
27935 2015-08-04  Andreas Schwab  <schwab@suse.de>
27936
27937         [BZ #18635]
27938         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
27939         ret.
27940         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
27941
27942 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
27943
27944         * po/pl.po: Updated translation.
27945         * po/uk.po: Likewise.
27946         * po/fi.po: Likewise.
27947         * po/ko.po: Likewise.
27948         * po/ru.po: Likewise.
27949         * po/vi.po: Likewise.
27950
27951 2015-07-31  Zack Weinberg  <zackw@panix.com>
27952
27953         [BZ #18681]
27954         * regexp.h: Add unconditional #warning stating that this header
27955         will be removed soon.  Revise banner comment to match.
27956         (compile): Consistently use ERROR instead of RETURN to report
27957         errors (partial fix for BZ #18681).
27958         * regexp.c: Don't include regexp.h. Remove some unnecessary
27959         declarations.
27960
27961 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
27962
27963         * po/libc.pot: Regenerated.
27964
27965 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
27966
27967         [BZ #18740]
27968         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
27969         float-vlen4-arch-ext-cflags): Removed.
27970         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
27971         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
27972
27973 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27974
27975         [BZ #14113]
27976         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
27977         aligned to __aligned__.
27978         (pthread_cond_t, pthread_rwlock_t): Likewise.
27979
27980 2015-07-30  Torvald Riegel  <triegel@redhat.com>
27981
27982         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
27983
27984 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27985
27986         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
27987         (struct sigaction): Change sa_flags from a long to an int, and add
27988         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
27989
27990 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27991
27992         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
27993         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
27994         sysdeps/generic/sysdep.h include.
27995         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
27996         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
27997         sysdeps/hppa/sysdep.h.
27998         (ENTRY, PSEUDO): Undefine before defining.
27999
28000 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28001
28002         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
28003         from scratch to use INTERNAL_SYSCALL.
28004
28005 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
28006
28007         [BZ #18078]
28008         * scripts/check-localplt.awk: Support alternate relocations.
28009         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
28010         sections.
28011         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
28012         malloc entries with + REL R_386_GLOB_DAT.
28013         * sysdeps/x86_64/localplt.data: New file.
28014
28015 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
28016
28017         [BZ #18731]
28018         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
28019         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
28020         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
28021
28022 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28023
28024         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
28025
28026 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28027
28028         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
28029         directly in terms of __sync_fetch_and_add and delete (int) cast.
28030
28031 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28032
28033         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
28034         the -D_ASM_IA64_CURRENT_H flag.
28035
28036 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28037
28038         [BZ #18641]
28039         * pwd/pwd.h (putpwent): Delete __nonnull markings.
28040
28041 2015-07-27  Andreas Schwab  <schwab@suse.de>
28042
28043         * conform/conformtest.pl (checknamespace): Filter out string
28044         literals while tokenizing.
28045
28046 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
28047
28048         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28049         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
28050         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28051
28052 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
28053
28054         * nptl/tst-join7mod.c: Add #include <string.h>.
28055
28056 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
28057
28058         * sysdeps/nios2/libm-test-ulps: Update.
28059
28060 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
28061
28062         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
28063         Fix order of arguments to the rt_sigprocmask syscall.
28064         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
28065         Likewise.
28066
28067 2015-07-24  Roland McGrath  <roland@hack.frob.com>
28068
28069         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
28070
28071 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28072
28073         [BZ #18457]
28074         * nptl/Makefile (tests): New test case tst-join7.
28075         (modules-names): New test case module tst-join7mod.
28076         * nptl/tst-join7.c: New file.
28077         * nptl/tst-join7mod.c: New file.
28078         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
28079         all translation units in libc.so, libpthread.so and rtld.
28080
28081 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28082
28083         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28084
28085 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
28086
28087         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
28088         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
28089         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
28090         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
28091         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
28092         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
28093         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
28094         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
28095         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
28096         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
28097         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
28098         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
28099         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
28100         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
28101         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
28102         implementation.
28103
28104 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28105
28106         [BZ #17711]
28107         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28108         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
28109         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28110         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28111         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
28112         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28113
28114 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28115
28116         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
28117         instead of just saying load lock in the comments.
28118
28119 2015-07-23  Roland McGrath  <roland@hack.frob.com>
28120
28121         * sysdeps/unix/Subdirs: Moved ...
28122         * sysdeps/posix/Subdirs: ... here.
28123         * login/pty.h (struct termios, struct winsize): Add forward decls.
28124         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
28125         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
28126         * sysdeps/arm/nacl/libc.abilist: Updated.
28127         * sysdeps/nacl/libutil.abilist: New file.
28128
28129         * bits/signum.h: Update comments to mention 1003.1-2013 too.
28130         (SIGWINCH): New macro.
28131
28132         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
28133         * sysdeps/arm/nacl/libc.abilist: Add it.
28134
28135 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28136
28137         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
28138
28139 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28140
28141         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28142         Swap __glibc_reserved0 and sa_flags order.
28143
28144 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
28145
28146         [BZ #18657]
28147         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
28148         are pending TLS destructor calls.
28149         * include/link.h (struct link_map): Add concurrency note for
28150         L_TLS_DTOR_COUNT.
28151         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
28152         Don't touch the link map flag.  Atomically increment
28153         l_tls_dtor_count.
28154         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
28155         Avoid taking the load lock and don't touch the link map flag.
28156         * stdlib/tst-tls-atexit-nodelete.c: New test case.
28157         * stdlib/Makefile (tests): Use it.
28158         * stdlib/tst-tls-atexit.c (do_test): dlopen
28159         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
28160         to allow tst-tls-atexit-nodelete test case to use it.
28161
28162 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28163
28164         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
28165         to bits/types.h.
28166         (msgqnum_t): New typedef.
28167         (msglen_t): Likewise.
28168         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
28169         and msg_qbytes type to msglen_t.
28170
28171 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28172
28173         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
28174         pad0 to __glibc_reserved0.
28175         (struct stat64): Likewise.
28176
28177 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28178
28179         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28180         Change sa_flags from a long to an int and add __glibc_reserved0 before
28181         it for padding.
28182
28183 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28184
28185         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
28186         anonymous by deleting "siginfo" name.
28187
28188 2015-07-21  Roland McGrath  <roland@hack.frob.com>
28189
28190         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
28191         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
28192         rather than __nacl_irt_filename.
28193         * sysdeps/nacl/xstat.c (__xstat): Likewise.
28194
28195         * NEWS: New item for arm-nacl port.
28196         * sysdeps/arm/nacl/libc.abilist: New file.
28197         * sysdeps/nacl/ld.abilist: New file.
28198         * sysdeps/nacl/libBrokenLocale.abilist: New file.
28199         * sysdeps/nacl/libanl.abilist: New file.
28200         * sysdeps/nacl/libcrypt.abilist: New file.
28201         * sysdeps/nacl/libdl.abilist: New file.
28202         * sysdeps/nacl/libm.abilist: New file.
28203         * sysdeps/nacl/libpthread.abilist: New file.
28204         * sysdeps/nacl/libresolv.abilist: New file.
28205         * sysdeps/nacl/librt.abilist: New file.
28206
28207 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
28208
28209         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
28210         __startcontext to initialize the new context.
28211         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
28212         up CFI directive to forbid further backtracing.
28213
28214 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
28215
28216         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
28217         reference.
28218         * charmaps/ANSI_X3.4-1968: Likewise.
28219         * charmaps/BS_4730: Likewise.
28220         * charmaps/BS_VIEWDATA: Likewise.
28221         * charmaps/CP1250: Likewise.
28222         * charmaps/CP1251: Likewise.
28223         * charmaps/CP1252: Likewise.
28224         * charmaps/CP1253: Likewise.
28225         * charmaps/CP1254: Likewise.
28226         * charmaps/CP1255: Likewise.
28227         * charmaps/CP1256: Likewise.
28228         * charmaps/CSN_369103: Likewise.
28229         * charmaps/EBCDIC-DK-NO: Likewise.
28230         * charmaps/GB_1988-80: Likewise.
28231         * charmaps/GREEK-CCITT: Likewise.
28232         * charmaps/GREEK7: Likewise.
28233         * charmaps/INIS-8: Likewise.
28234         * charmaps/ISIRI-3342: Likewise.
28235         * charmaps/ISO_2033-1983: Likewise.
28236         * charmaps/ISO_5427-EXT: Likewise.
28237         * locales/POSIX: Likewise.
28238         * locales/ar_SA: Likewise.
28239         * locales/be_BY: Likewise.
28240         * locales/be_BY@latin: Likewise.
28241         * locales/ca_ES: Likewise.
28242         * locales/cs_CZ: Likewise.
28243         * locales/da_DK: Likewise.
28244         * locales/de_BE: Likewise.
28245         * locales/de_CH: Likewise.
28246         * locales/de_LU: Likewise.
28247         * locales/en_AU: Likewise.
28248         * locales/en_BW: Likewise.
28249         * locales/en_CA: Likewise.
28250         * locales/en_DK: Likewise.
28251         * locales/en_GB: Likewise.
28252         * locales/en_IE: Likewise.
28253         * locales/en_NZ: Likewise.
28254         * locales/en_ZA: Likewise.
28255         * locales/en_ZW: Likewise.
28256         * locales/es_AR: Likewise.
28257         * locales/es_BO: Likewise.
28258         * locales/es_CL: Likewise.
28259         * locales/es_CO: Likewise.
28260         * locales/es_DO: Likewise.
28261         * locales/es_EC: Likewise.
28262         * locales/es_ES: Likewise.
28263         * locales/es_HN: Likewise.
28264         * locales/es_MX: Likewise.
28265         * locales/es_PA: Likewise.
28266         * locales/es_PE: Likewise.
28267         * locales/es_PY: Likewise.
28268         * locales/es_SV: Likewise.
28269         * locales/es_US: Likewise.
28270         * locales/es_UY: Likewise.
28271         * locales/es_VE: Likewise.
28272         * locales/et_EE: Likewise.
28273         * locales/fa_IR: Likewise.
28274         * locales/fo_FO: Likewise.
28275         * locales/fr_CA: Likewise.
28276         * locales/fr_CH: Likewise.
28277         * locales/gv_GB: Likewise.
28278         * locales/he_IL: Likewise.
28279         * locales/hr_HR: Likewise.
28280         * locales/id_ID: Likewise.
28281         * locales/is_IS: Likewise.
28282         * locales/it_CH: Likewise.
28283         * locales/iw_IL: Likewise.
28284         * locales/kl_GL: Likewise.
28285         * locales/ko_KR: Likewise.
28286         * locales/kw_GB: Likewise.
28287         * locales/lg_UG: Likewise.
28288         * locales/lt_LT: Likewise.
28289         * locales/lv_LV: Likewise.
28290         * locales/mi_NZ: Likewise.
28291         * locales/nhn_MX: Likewise.
28292         * locales/nl_BE: Likewise.
28293         * locales/pl_PL: Likewise.
28294         * locales/sk_SK: Likewise.
28295         * locales/sl_SI: Likewise.
28296         * locales/sv_FI: Likewise.
28297         * locales/tl_PH: Likewise.
28298         * locales/tr_TR: Likewise.
28299         * locales/vi_VN: Likewise.
28300
28301 2015-07-21  Khem Raj  <raj.khem@gmail.com>
28302
28303         [BZ #17475]
28304         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
28305         of tu_IN and bh_IN.
28306
28307 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
28308
28309         [BZ #18694]
28310         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
28311         bits/wordsize.h.
28312         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
28313
28314 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
28315
28316         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
28317         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
28318         (spawn_thread): New function.
28319         (load): Rename to reg_dtor_and_close.  Move dlopen to...
28320         (do_test): ... here.  Use IS_LOADED to test for its
28321         availability.
28322
28323 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
28324
28325         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28326
28327 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
28328
28329         [BZ #18696]
28330         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
28331         si_addr_bnd.
28332         (si_lower): New.
28333         (si_upper): Likewise.
28334
28335 2015-07-16  David S. Miller  <davem@davemloft.net>
28336
28337         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
28338
28339 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28340
28341         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
28342         buffer.
28343         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
28344         fail output information.
28345
28346 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28347
28348         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
28349         and strstr-ppc64..
28350         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
28351         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
28352         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
28353         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
28354         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
28355
28356 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28357
28358         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28359         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28360         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28361         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28362
28363 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28364
28365         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
28366         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
28367         rtld_hidden_proto.
28368         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
28369
28370 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
28371
28372         * tst-nodelete-opened.c (do_test): Add comment to clarify how
28373         the test can fail.
28374
28375         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
28376
28377         [BZ #18676]
28378         * elf/tst-nodelete-opened.c: New test case.
28379         * elf/tst-nodelete-opened-lib.c: New test case module.
28380         * elf/Makefile (tests, modules-names): Use them.
28381         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
28382         early.
28383
28384 2015-07-15  David S. Miller  <davem@davemloft.net>
28385
28386         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
28387         futex-intenal.h
28388         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
28389         * sysdeps/sparc/sparc64/Makefile: Likewise.
28390         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
28391         Remove space from macro define.
28392         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
28393
28394 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
28395
28396         [BZ #17475]
28397         * locale/iso-639.def: Update Bhili and Tulu language codes as
28398         per iso639-3.
28399
28400 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
28401
28402         * elf/tst-leaks1.c (main): Converted to ...
28403         (do_test): ... this.
28404         (TEST_FUNCTION): New macro.
28405         Include test-skeleton.c.
28406         * localedata/tst-langinfo.c (main): Converted to ...
28407         (do_test): ... this.
28408         (TEST_FUNCTION): New macro.
28409         Include test-skeleton.c.
28410         * math/test-fpucw.c (main): Converted to ...
28411         (do_test): ... this.
28412         (TEST_FUNCTION): New macro.
28413         Include test-skeleton.c.
28414         * math/test-tgmath.c (main): Converted to ...
28415         (do_test): ... this.
28416         (TEST_FUNCTION): New macro.
28417         Include test-skeleton.c.
28418         * math/test-tgmath2.c (main): Converted to ...
28419         (do_test): ... this.
28420         (TEST_FUNCTION): New macro.
28421         Include test-skeleton.c.
28422         * setjmp/tst-setjmp.c (main): Converted to ...
28423         (do_test): ... this.
28424         (TEST_FUNCTION): New macro.
28425         Include test-skeleton.c.
28426         * stdio-common/tst-sscanf.c (main): Converted to ...
28427         (do_test): ... this.
28428         (TEST_FUNCTION): New macro.
28429         Include test-skeleton.c.
28430         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
28431         (do_test): ... this.
28432         (TEST_FUNCTION): New macro.
28433         Include test-skeleton.c.
28434
28435         * elf/tst-audit9.c (main): Converted to ...
28436         (do_test): ... this.
28437         (TEST_FUNCTION): New macro.
28438         Include test-skeleton.c.
28439
28440 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
28441
28442         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
28443
28444 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
28445
28446         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
28447         New variable.
28448
28449 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
28450
28451         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28452
28453 2015-07-14  Roland McGrath  <roland@hack.frob.com>
28454
28455         * sysdeps/generic/dl-fileid.h: New file.
28456         * sysdeps/posix/dl-fileid.h: New file.
28457         * sysdeps/nacl/dl-fileid.h: New file.
28458         * include/link.h: Include <dl-fileid.h>.
28459         (struct link_map): Replace l_dev and l_ino with l_file_id.
28460         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
28461         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
28462         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
28463
28464 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28465
28466         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
28467
28468 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28469
28470         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
28471         Add iff $CXX is set.
28472         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
28473         Likewise.
28474         (tst-nodelete-zmodiff): Likewise.
28475         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
28476
28477 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28478
28479         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
28480
28481 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
28482
28483         * sysdeps/aarch64/fpu/math_private.h
28484         (define math_opt_barrier): Add AArch64 version.
28485         (math_force_eval): Likewise.
28486
28487 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
28488
28489         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
28490
28491 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
28492
28493         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
28494         %ld with %jd and cast to intmax_t.
28495         (do_test_length_zero): Likewise.
28496
28497 2015-07-10  Roland McGrath  <roland@hack.frob.com>
28498
28499         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
28500
28501 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
28502
28503         * sysdeps/tile/libm-test-ulps: Regenerated.
28504
28505         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
28506         Comment out the whole function, not just its body.
28507
28508 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28509
28510         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
28511         locks.
28512
28513         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
28514
28515 2015-07-10  Torvald Riegel  <triegel@redhat.com>
28516
28517         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
28518         (sem_assume_only_signals_cause_futex_EINTR): Remove.
28519
28520 2015-07-10  Torvald Riegel  <triegel@redhat.com>
28521
28522         * sysdeps/nptl/futex-internal.h: New file.
28523         * sysdeps/nacl/futex-internal.h: New file.
28524         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
28525         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
28526         error checking.
28527         (setxid_unmark_thread): Likewise.
28528         (__nptl_setxid): Likewise.
28529         (__wait_lookup_done): Likewise.
28530         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28531         * nptl/nptl-init.c (sighandler_setxid): Likewise.
28532         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28533         * nptl/pthread_once.c (clear_once_control): Likewise.
28534         (__pthread_once_slow): Likewise.
28535         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
28536         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
28537         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
28538         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28539         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
28540         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
28541         Likewise.
28542         (__pthread_rwlock_rdlock): Likewise.
28543         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
28544         Likewise.
28545         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
28546         Likewise.
28547         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
28548         Likewise.
28549         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
28550         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
28551         Likewise.
28552         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
28553         __ASSUME_PRIVATE_FUTEX check.
28554         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
28555         Check that shared futexes are supported.
28556         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
28557         wrappers with error checking.
28558         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
28559         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
28560         * nptl/pthread_barrierattr_setpshared.c
28561         (pthread_barrierattr_setpshared): Check that shared futexes are
28562         supported.
28563         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
28564         Likewise.
28565         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
28566         Likewise.
28567         * nptl/sem_init.c (futex_private_if_supported): Remove.
28568         (__new_sem_init): Adapt and check that shared futexes are supported.
28569         * nptl/sem_open.c (sem_open): Likewise.
28570         * nptl/sem_post.c (futex_wake): Remove.
28571         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
28572         (do_futex_wait): Use futex wrappers with error checking.
28573         * nptl/sem_wait.c: Include lowlevellock.h.
28574         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
28575         Use futex_supports_pshared.
28576         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
28577         Use futex wrappers with error checking.
28578         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
28579         Likewise.
28580         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
28581         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
28582         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
28583         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
28584         (futex_wake): Likewise.
28585         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
28586         (do_futex_wait): Use futex wrappers with error checking.
28587         (__new_sem_wait_slow): Update EINTR handling.
28588         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
28589
28590 2015-07-09  Martin Sebor  <msebor@redhat.com>
28591
28592         [BZ #18435]
28593         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
28594         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
28595         * nptl/Makefile (test-xfail-tst-once5): Define.
28596
28597 2015-07-09  Roland McGrath  <roland@hack.frob.com>
28598
28599         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
28600         * elf/dl-minimal.c: For readability, reorder some definitions and
28601         introduce more page breaks.  Include <stdio.h>.
28602         (__libc_fatal): New function.
28603
28604         * include/unistd.h: Add rtld_hidden_proto for _exit.
28605         * posix/_exit.c: Add rtld_hidden_def.
28606         * sysdeps/mach/hurd/_exit.c: Likewise.
28607         * sysdeps/nacl/_exit.c: Likewise.
28608         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
28609         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
28610
28611 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
28612
28613         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
28614         bndmov encoding with zero displacement.
28615
28616 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
28617             H.J. Lu  <hongjiu.lu@intel.com>
28618
28619         [BZ #18134]
28620         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
28621         * sysdeps/i386/configure: Regenerated.
28622         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
28623         (_dl_runtime_profile): Save and restore Intel MPX return bound
28624         registers when calling _dl_call_pltexit.  Add
28625         PRESERVE_BND_REGS_PREFIX before return.
28626         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
28627         (LRV_BND1_OFFSET): Likewise.
28628         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
28629         lrv_bnd1.
28630         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
28631         typo in bndmov encoding.
28632         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
28633         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
28634         branch instructions to preserve bounds.
28635
28636 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28637
28638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
28639         [GLIBC_2.22]: Add fmemopen.
28640
28641 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28642
28643         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
28644         returns an error, also try to use host port from __mach_host_self for
28645         the __vm_wire call.
28646         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
28647
28648 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28649
28650         [BZ #18400]
28651         [BZ #18648]
28652         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
28653         Fix pr_uid and pr_gid members.
28654         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
28655         definition to elf_greg_t.
28656
28657 2015-07-08  Roland McGrath  <roland@hack.frob.com>
28658
28659         [BZ #18383]
28660         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
28661         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
28662         * sysdeps/arm/configure: Regenerated.
28663         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
28664         (test-xfail-tst-tlsalign-static): Variable removed.
28665
28666         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
28667         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
28668         rather than explicit 'ln -s'.
28669
28670         * resolv/rpc/netdb.h: New file.
28671         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
28672
28673 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28674
28675         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
28676         length buffers.
28677         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
28678         test-skeleton.c.
28679
28680         [BZ #6544]
28681         [BZ #11216]
28682         [BZ #12836]
28683         [BZ #13151]
28684         [BZ #13152]
28685         [BZ #14292]
28686         * include/stdio.h (fmemopen): Remove hidden prototype.
28687         (__fmemopen): Add new hidden prototype.
28688         * libio/Makefile: Add oldfmemopen object.
28689         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
28690         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
28691         compliance.
28692         * libio/oldfmemopen.c: New file: old fmemopen implementation for
28693         symbol compatibility.
28694         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
28695         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
28696         fmemopen.
28697         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
28698         on append and read mode.
28699         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
28700         fmemopen.
28701         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
28702         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
28703         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
28704         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
28705         Likewise.
28706         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
28707         [GLIBC_2.22]: Likewise.
28708         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
28709         Likewise.
28710         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
28711         Likewise.
28712         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
28713         [GLIBC_2.22]: Likewise.
28714         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
28715         [GLIBC_2.22]: Likewise.
28716         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
28717         [GLIBC_2.22]: Likewise.
28718         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
28719         [GLIBC_2.22]: Likewise.
28720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
28721         [GLIBC_2.22]: Likewise.
28722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
28723         [GLIBC_2.22]: Likewise.
28724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
28725         [GLIBC_2.22]: Likewise.
28726         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
28727         Likewise.
28728         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
28729         Likewise.
28730         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
28731         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
28732         [GLIBC_2.22]: Likewise.
28733         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
28734         [GLIBC_2.22]: Likewise.
28735         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
28736         [GLIBC_2.22]: Likewise.
28737         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
28738         [GLIBC_2.22]: Likewise.
28739         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
28740         Likewise.
28741         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
28742         Likewise.
28743         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
28744         Likewise.
28745         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
28746         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
28747
28748 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
28749
28750         [BZ #18643]
28751         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
28752         IPV6_PATHMTU, and IPV6_DONTFRAG.
28753
28754 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
28755
28756         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
28757         and _IO_UNBUFFERED.
28758         * libio/oldfileops.c: Likewise.
28759         * libio/wfileops.c: Likewise.
28760
28761 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
28762
28763         * nscd/selinux.c: Delete selinux/flask.h include.
28764
28765 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
28766
28767         [BZ #18641]
28768         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
28769         (putpwent): Likewise.
28770         (getpwnam): Likewise.
28771         (getpwent_r): Likewise.
28772         (getpwuid_r): Likewise.
28773         (getpwnam_r): Likewise.
28774         (fgetpwent_r): Likewise.
28775
28776 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
28777
28778         [BZ #18557]
28779         * inet/rcmd.c (__validuser2_sa): Check user first to
28780         short-circuit host check.
28781
28782 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
28783             Mikhail Ilin  <m.ilin@samsung.com>
28784
28785         [BZ #17833]
28786         * elf/Makefile (tests): Add tst-nodelete.
28787         (modules-names): Add tst-nodelete-uniquemod.
28788         (tst-nodelete-uniquemod.so-no-z-defs): New.
28789         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
28790         (tst-nodelete-zmod.so-no-z-defs): Likewise.
28791         ($(objpfx)tst-nodelete): Likewise.
28792         ($(objpfx)tst-nodelete.out): Likewise.
28793         (LDFLAGS-tst-nodelete): Likewise.
28794         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
28795         * elf/dl-close.c (_dl_close_worker): Add a parameter to
28796         implement forced object deletion.
28797         (_dl_close): Pass false to _dl_close_worker.
28798         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
28799         * elf/tst-nodelete.cc: New file.
28800         * elf/tst-nodeletelib.cc: Likewise.
28801         * elf/tst-znodeletelib.cc: Likewise.
28802         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
28803
28804 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28805
28806         [BZ #18508]
28807         * stdlib/Makefile ($(objpfx)tst-makecontext3):
28808         Depend on $(libdl).
28809         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
28810         is not called infinitely times.
28811         (backtrace_helper): New function.
28812         (trace_arg): New struct.
28813         (st1): Enlarge stack size.
28814         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
28815         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
28816         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
28817         Likewise.
28818
28819 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28820
28821         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28822
28823 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28824
28825         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
28826         Include sys/types.h instead of bits/types.h.
28827         Remove inclusion of bits/wordsize.h.
28828
28829 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28830
28831         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
28832         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
28833         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
28834         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
28835         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
28836         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
28837
28838 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28839
28840         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
28841         link-defines.sym.
28842         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
28843         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
28844         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
28845         and LR_SIZE.
28846         * sysdeps/i386/link-defines.sym: New file.
28847
28848 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28849
28850         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
28851         (modules-names): Add tst-auditmod3a tst-auditmod3b.
28852         ($(objpfx)tst-audit3): New rule.
28853         ($(objpfx)tst-audit3.out): Likewise.
28854         * sysdeps/i386/tst-audit3.c: New file.
28855         * sysdeps/i386/tst-audit3.h: Likewise.
28856         * sysdeps/i386/tst-auditmod3a.c: Likewise.
28857         * sysdeps/i386/tst-auditmod3b.c: Likewise.
28858
28859 2015-07-07  Torvald Riegel  <triegel@redhat.com>
28860
28861         [BZ #18633]
28862         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
28863         pointer in C code.
28864         (__strcat_c): Likewise.
28865         (__strcat_g): Likewise.
28866
28867 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
28868
28869         [BZ #18592]
28870         * misc/sbrk.c: Set errno to ENOMEM on overflow.
28871
28872 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
28873
28874         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
28875         New function.  (__ieee754_sqrtf): New function.
28876         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
28877         New function.
28878         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
28879         New function.
28880
28881 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
28882
28883         * sysdeps/ieee754/support.c: Remove unused file.
28884
28885 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28886
28887         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
28888         registers instead of d ones so the layout is kernel abi compatible.
28889         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
28890         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
28891         Likewise.
28892
28893 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28894
28895         * sysdeps/aarch64/libm-test-ulps: Regenerated.
28896
28897 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
28898
28899         [BZ #18619]
28900         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
28901         and return argument in case of subnormal argument.
28902
28903 2015-07-01  Martin Sebor  <msebor@redhat.com>
28904
28905         [BZ #18435]
28906         * nptl/Makefile: Add tst-once5.cc.
28907         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
28908         Remove macro redefinitions.
28909         * nptl/tst-once5.cc: New test.
28910
28911 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
28912
28913         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28914
28915         * sysdeps/arm/libm-test-ulps: Regenerated.
28916
28917         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28918         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28919
28920 2015-06-30  Torvald Riegel  <triegel@redhat.com>
28921
28922         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
28923         lll_lock_wait_private and lll_futex_wake probes.
28924
28925         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
28926         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
28927         Likewise.
28928         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
28929         atomic_spin_nop.
28930         * sysdeps/x86_64/bits/atomic.h: Likewise.
28931         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
28932         to atomic_spin_nop and move ...
28933         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
28934         ... here and ...
28935         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
28936         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
28937         atomic_spin_nop instead of BUSY_WAIT_NOP.
28938         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
28939         Likewise.
28940         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
28941         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
28942         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
28943         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
28944         instead of atomic_delay.
28945
28946 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
28947
28948         [BZ #18613]
28949         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
28950         X_ADJ not X when adjusting exponent.
28951         (__ieee754_gamma_r): Do intermediate computations in
28952         round-to-nearest then adjust overflowing and underflowing results
28953         as needed.
28954         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
28955         of X_ADJ not X when adjusting exponent.
28956         (__ieee754_gammaf_r): Do intermediate computations in
28957         round-to-nearest then adjust overflowing and underflowing results
28958         as needed.
28959         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
28960         log of X_ADJ not X when adjusting exponent.
28961         (__ieee754_gammal_r): Do intermediate computations in
28962         round-to-nearest then adjust overflowing and underflowing results
28963         as needed.  Use 1.0L not 1.0f as numerator of division.
28964         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
28965         log of X_ADJ not X when adjusting exponent.
28966         (__ieee754_gammal_r): Do intermediate computations in
28967         round-to-nearest then adjust overflowing and underflowing results
28968         as needed.  Use 1.0L not 1.0f as numerator of division.
28969         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
28970         of X_ADJ not X when adjusting exponent.
28971         (__ieee754_gammal_r): Do intermediate computations in
28972         round-to-nearest then adjust overflowing and underflowing results
28973         as needed.  Use 1.0L not 1.0f as numerator of division.
28974         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
28975         to auto-libm-test-in.
28976         (tgamma_test): Use ALL_RM_TEST.
28977         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
28978         tests of tgamma with spurious-overflow.
28979         * math/auto-libm-test-out: Regenerated.
28980         * math/gen-libm-have-vector-test.sh: Do not check for START.
28981         * sysdeps/i386/fpu/libm-test-ulps: Update.
28982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28983
28984         [BZ #18612]
28985         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
28986         arguments, just return 0.5 times the argument, with underflow
28987         forced as needed.
28988         * math/auto-libm-test-in: Add more tests of j1.
28989         * math/auto-libm-test-out: Regenerated.
28990
28991         [BZ #16559]
28992         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
28993         (__ieee754_j1): Force underflow exception for small results.
28994         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
28995         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
28996         (__ieee754_j1f): Force underflow exception for small results.
28997         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
28998         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
28999         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
29000         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
29001         (__ieee754_j1l): Force underflow exception for small results.
29002         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29003         * math/auto-libm-test-in: Add more tests of j1 and jn.
29004         * math/auto-libm-test-out: Regenerated.
29005
29006         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
29007         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
29008         (PF_MPLS): Likewise.
29009         (AF_IB): Likewise.
29010         (AF_MPLS): Likewise.
29011         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
29012         value and macro.
29013         (MS_RMT_MASK): Include MS_LAZYTIME.
29014
29015 2015-06-26  Mel Gorman  <mgorman@suse.de>
29016
29017         [BZ #18502]
29018         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
29019         already minimal.
29020
29021 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
29022
29023         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
29024         (DT_MIPS_NUM): Update.
29025         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
29026         DT_MIPS_RLD_MAP_REL.
29027
29028 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
29029
29030         [BZ #16559]
29031         [BZ #18602]
29032         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
29033         round-to-nearest internally then recompute results that
29034         underflowed to zero in the original rounding mode.
29035         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
29036         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29037         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
29038         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29039         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
29040         * sysdeps/i386/fpu/libm-test-ulps: Update.
29041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29042
29043 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
29044
29045         * NEWS: Fixed description of link with vector math library.
29046
29047 2015-06-25  Andreas Schwab  <schwab@suse.de>
29048
29049         [BZ #18549]
29050         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
29051         * libio/test-fmemopen.c (do_test): Add test for it.
29052
29053 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
29054
29055         [BZ #17841]
29056         * Makeconfig (no-pie-ldflag): New.
29057         (+link): Set to $(+link-pie) if default to PIE.
29058         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
29059         * config.make.in (build-pie-default): New.
29060         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
29061         is default.  AC_SUBST.
29062         * configure: Regenerated.
29063         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
29064
29065 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29066
29067         * nptl/descr.h (struct pthread): Change type of field setxid_futex
29068         to 'unsigned int'.
29069
29070         * resolv/gai_misc.h (struct waitlist): Change type of field
29071         counterp to 'volatile unsigned int *'.
29072         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
29073         FUTEXADDR and OLDVAL.
29074         * resolv/getaddrinfo_a.c (getaddrinfo_a):
29075         Give local variable TOTAL type 'volatile unsigned int'.
29076         (struct async_waitlist): Change type of field counter to 'unsigned int'.
29077         * resolv/gai_suspend.c (gai_suspend):
29078         Give local variable CNTR type 'unsigned int'.
29079
29080         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
29081         counterp to 'volatile unsigned int *'.
29082         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
29083         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
29084         (aio_suspend): Give local variable CNTR type 'unsigned int'.
29085         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
29086         Give local variable TOTAL type 'volatile unsigned int'.
29087         (struct async_waitlist): Change type of field counter to 'unsigned int'.
29088
29089 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29090
29091         [BZ #18383]
29092         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
29093         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
29094         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
29095         comment for i386/x86-64.
29096         (test-xfail-tst-tlsalign-extern-static): Removed.
29097
29098 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29099
29100         * math/test-double.h: New file.
29101         * math/test-float.h: Likewise.
29102         * math/test-ldouble.h: Likewise.
29103         * math/test-math-inline.h: Likewise.
29104         * math/test-math-no-inline.h: Likewise.
29105         * math/test-math-scalar.h: Likewise.
29106         * math/test-math-vector.h: Likewise.
29107         * math/test-vec-loop.h: Remove file.  Contents moved into
29108         test-math-vector.h.
29109         * math/libm-test.inc (MATHCONST): Do not document macro.
29110         * math/test-double.c: Include test-double.h, test-math-no-inline.h
29111         and test-math-scalar.h.
29112         (FUNC): Remove macro.
29113         (FUNC_TEST): Likewise.
29114         (FLOAT): Likewise.
29115         (MATHCONST): Likewise.
29116         (PRINTF_EXPR): Likewise.
29117         (PRINTF_XEXPR): Likewise.
29118         (PRINTF_NEXPR): Likewise.
29119         (TEST_DOUBLE): Likewise.
29120         (TEST_MATHVEC): Likewise.
29121         (__NO_MATH_INLINES): Likewise.
29122         * math/test-float.c: Include test-float.h, test-math-no-inline.h
29123         and test-math-scalar.h.
29124         (FUNC): Remove macro.
29125         (FUNC_TEST): Likewise.
29126         (FLOAT): Likewise.
29127         (MATHCONST): Likewise.
29128         (PRINTF_EXPR): Likewise.
29129         (PRINTF_XEXPR): Likewise.
29130         (PRINTF_NEXPR): Likewise.
29131         (TEST_FLOAT): Likewise.
29132         (TEST_MATHVEC): Likewise.
29133         (__NO_MATH_INLINES): Likewise.
29134         * math/test-idouble.c: Include test-double.h, test-math-inline.h
29135         and test-math-scalar.h.
29136         (FUNC): Remove macro.
29137         (FUNC_TEST): Likewise.
29138         (FLOAT): Likewise.
29139         (MATHCONST): Likewise.
29140         (PRINTF_EXPR): Likewise.
29141         (PRINTF_XEXPR): Likewise.
29142         (PRINTF_NEXPR): Likewise.
29143         (TEST_DOUBLE): Likewise.
29144         (TEST_MATHVEC): Likewise.
29145         (TEST_INLINE): Likewise.
29146         (__NO_MATH_INLINES): Likewise.
29147         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
29148         test-math-scalar.h.
29149         (FUNC): Remove macro.
29150         (FUNC_TEST): Likewise.
29151         (FLOAT): Likewise.
29152         (MATHCONST): Likewise.
29153         (PRINTF_EXPR): Likewise.
29154         (PRINTF_XEXPR): Likewise.
29155         (PRINTF_NEXPR): Likewise.
29156         (TEST_FLOAT): Likewise.
29157         (TEST_MATHVEC): Likewise.
29158         (TEST_INLINE): Likewise.
29159         (__NO_MATH_INLINES): Likewise.
29160         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
29161         and test-math-scalar.h.
29162         (FUNC): Remove macro.
29163         (FUNC_TEST): Likewise.
29164         (FLOAT): Likewise.
29165         (MATHCONST): Likewise.
29166         (PRINTF_EXPR): Likewise.
29167         (PRINTF_XEXPR): Likewise.
29168         (PRINTF_NEXPR): Likewise.
29169         (TEST_LDOUBLE): Likewise.
29170         (TEST_MATHVEC): Likewise.
29171         (TEST_INLINE): Likewise.
29172         (__NO_MATH_INLINES): Likewise.
29173         * math/test-ldouble.c: Include test-ldouble.h,
29174         test-math-no-inline.h and test-math-scalar.h.
29175         (FUNC): Remove macro.
29176         (FUNC_TEST): Likewise.
29177         (FLOAT): Likewise.
29178         (MATHCONST): Likewise.
29179         (PRINTF_EXPR): Likewise.
29180         (PRINTF_XEXPR): Likewise.
29181         (PRINTF_NEXPR): Likewise.
29182         (TEST_LDOUBLE): Likewise.
29183         (TEST_MATHVEC): Likewise.
29184         (__NO_MATH_INLINES): Likewise.
29185         * math/test-double-vlen2.h: Include test-double.h,
29186         test-math-no-inline.h and test-math-vector.h.
29187         (FLOAT): Remove macro.
29188         (FUNC): Likewise.
29189         (MATHCONST): Likewise.
29190         (PRINTF_EXPR): Likewise.
29191         (PRINTF_XEXPR): Likewise.
29192         (PRINTF_NEXPR): Likewise.
29193         (TEST_DOUBLE): Likewise.
29194         (TEST_MATHVEC): Likewise.
29195         (__NO_MATH_INLINES): Likewise.
29196         (CNCT): Likewise.
29197         (CONCAT): Likewise.
29198         (WRAPPER_NAME): Likewise.
29199         (WRAPPER_DECL): Likewise.
29200         (WRAPPER_DECL_ff): Likewise.
29201         (WRAPPER_DECL_fFF): Likewise.
29202         (VECTOR_WRAPPER): Likewise.
29203         (VECTOR_WRAPPER_ff): Likewise.
29204         (VECTOR_WRAPPER_fFF): Likewise.
29205         (VEC_LEN): New macro.
29206         * math/test-double-vlen4.h: Include test-double.h,
29207         test-math-no-inline.h and test-math-vector.h.
29208         (FLOAT): Remove macro.
29209         (FUNC): Likewise.
29210         (MATHCONST): Likewise.
29211         (PRINTF_EXPR): Likewise.
29212         (PRINTF_XEXPR): Likewise.
29213         (PRINTF_NEXPR): Likewise.
29214         (TEST_DOUBLE): Likewise.
29215         (TEST_MATHVEC): Likewise.
29216         (__NO_MATH_INLINES): Likewise.
29217         (CNCT): Likewise.
29218         (CONCAT): Likewise.
29219         (WRAPPER_NAME): Likewise.
29220         (WRAPPER_DECL): Likewise.
29221         (WRAPPER_DECL_ff): Likewise.
29222         (WRAPPER_DECL_fFF): Likewise.
29223         (VECTOR_WRAPPER): Likewise.
29224         (VECTOR_WRAPPER_ff): Likewise.
29225         (VECTOR_WRAPPER_fFF): Likewise.
29226         (VEC_LEN): New macro.
29227         * math/test-double-vlen8.h: Include test-double.h,
29228         test-math-no-inline.h and test-math-vector.h.
29229         (FLOAT): Remove macro.
29230         (FUNC): Likewise.
29231         (MATHCONST): Likewise.
29232         (PRINTF_EXPR): Likewise.
29233         (PRINTF_XEXPR): Likewise.
29234         (PRINTF_NEXPR): Likewise.
29235         (TEST_DOUBLE): Likewise.
29236         (TEST_MATHVEC): Likewise.
29237         (__NO_MATH_INLINES): Likewise.
29238         (CNCT): Likewise.
29239         (CONCAT): Likewise.
29240         (WRAPPER_NAME): Likewise.
29241         (WRAPPER_DECL): Likewise.
29242         (WRAPPER_DECL_ff): Likewise.
29243         (WRAPPER_DECL_fFF): Likewise.
29244         (VECTOR_WRAPPER): Likewise.
29245         (VECTOR_WRAPPER_ff): Likewise.
29246         (VECTOR_WRAPPER_fFF): Likewise.
29247         (VEC_LEN): New macro.
29248         * math/test-float-vlen4.h: Include test-float.h,
29249         test-math-no-inline.h and test-math-vector.h.
29250         (FLOAT): Remove macro.
29251         (FUNC): Likewise.
29252         (MATHCONST): Likewise.
29253         (PRINTF_EXPR): Likewise.
29254         (PRINTF_XEXPR): Likewise.
29255         (PRINTF_NEXPR): Likewise.
29256         (TEST_FLOAT): Likewise.
29257         (TEST_MATHVEC): Likewise.
29258         (__NO_MATH_INLINES): Likewise.
29259         (CNCT): Likewise.
29260         (CONCAT): Likewise.
29261         (WRAPPER_NAME): Likewise.
29262         (WRAPPER_DECL): Likewise.
29263         (WRAPPER_DECL_ff): Likewise.
29264         (WRAPPER_DECL_fFF): Likewise.
29265         (VECTOR_WRAPPER): Likewise.
29266         (VECTOR_WRAPPER_ff): Likewise.
29267         (VECTOR_WRAPPER_fFF): Likewise.
29268         (VEC_LEN): New macro.
29269         * math/test-float-vlen8.h: Include test-float.h,
29270         test-math-no-inline.h and test-math-vector.h.
29271         (FLOAT): Remove macro.
29272         (FUNC): Likewise.
29273         (MATHCONST): Likewise.
29274         (PRINTF_EXPR): Likewise.
29275         (PRINTF_XEXPR): Likewise.
29276         (PRINTF_NEXPR): Likewise.
29277         (TEST_FLOAT): Likewise.
29278         (TEST_MATHVEC): Likewise.
29279         (__NO_MATH_INLINES): Likewise.
29280         (CNCT): Likewise.
29281         (CONCAT): Likewise.
29282         (WRAPPER_NAME): Likewise.
29283         (WRAPPER_DECL): Likewise.
29284         (WRAPPER_DECL_ff): Likewise.
29285         (WRAPPER_DECL_fFF): Likewise.
29286         (VECTOR_WRAPPER): Likewise.
29287         (VECTOR_WRAPPER_ff): Likewise.
29288         (VECTOR_WRAPPER_fFF): Likewise.
29289         (VEC_LEN): New macro.
29290         * math/test-float-vlen16.h: Include test-float.h,
29291         test-math-no-inline.h and test-math-vector.h.
29292         (FLOAT): Remove macro.
29293         (FUNC): Likewise.
29294         (MATHCONST): Likewise.
29295         (PRINTF_EXPR): Likewise.
29296         (PRINTF_XEXPR): Likewise.
29297         (PRINTF_NEXPR): Likewise.
29298         (TEST_FLOAT): Likewise.
29299         (TEST_MATHVEC): Likewise.
29300         (__NO_MATH_INLINES): Likewise.
29301         (CNCT): Likewise.
29302         (CONCAT): Likewise.
29303         (WRAPPER_NAME): Likewise.
29304         (WRAPPER_DECL): Likewise.
29305         (WRAPPER_DECL_ff): Likewise.
29306         (WRAPPER_DECL_fFF): Likewise.
29307         (VECTOR_WRAPPER): Likewise.
29308         (VECTOR_WRAPPER_ff): Likewise.
29309         (VECTOR_WRAPPER_fFF): Likewise.
29310         (VEC_LEN): New macro.
29311         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
29312         test-vec-loop.h.
29313         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29314         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29315         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29316         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29317         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29318         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29319         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
29320
29321 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29322
29323         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
29324         (__getlogin_r): ... this.
29325
29326 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29327
29328         [BZ #18594]
29329         * math/s_ccosh.c (__ccosh): Compare with least normal value
29330         instead of comparing class with FP_SUBNORMAL.
29331         * math/s_ccoshf.c (__ccoshf): Likewise.
29332         * math/s_ccoshl.c (__ccoshl): Likewise.
29333         * math/s_cexp.c (__cexp): Likewise.
29334         * math/s_cexpf.c (__cexpf): Likewise.
29335         * math/s_cexpl.c (__cexpl): Likewise.
29336         * math/s_csin.c (__csin): Likewise.
29337         * math/s_csinf.c (__csinf): Likewise.
29338         * math/s_csinh.c (__csinh): Likewise.
29339         * math/s_csinhf.c (__csinhf): Likewise.
29340         * math/s_csinhl.c (__csinhl): Likewise.
29341         * math/s_csinl.c (__csinl): Likewise.
29342         * math/s_ctan.c (__ctan): Likewise.
29343         * math/s_ctanf.c (__ctanf): Likewise.
29344         * math/s_ctanh.c (__ctanh): Likewise.
29345         * math/s_ctanhf.c (__ctanhf): Likewise.
29346         * math/s_ctanhl.c (__ctanhl): Likewise.
29347         * math/s_ctanl.c (__ctanl): Likewise.
29348         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
29349         csin, csinh, ctan and ctanh.
29350         * math/auto-libm-test-out: Regenerated.
29351         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
29352         * sysdeps/i386/fpu/libm-test-ulps: Update.
29353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29354
29355 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29356
29357         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
29358         return value is wrong, print the expected value too.
29359
29360 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29361
29362         [BZ #18585]
29363         * elf/readlib.c (is_gdb_python_file): New.
29364         (process_file): Don't issue errors on filenames with -gdb.py
29365         suffix.
29366
29367 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29368
29369         * math/auto-libm-test-in: Add more tests of csin and csinh.
29370         * math/auto-libm-test-out: Regenerated.
29371         * math/libm-test.inc (csin_test_data): Remove tests moved to
29372         auto-libm-test-in.
29373         (csinh_test_data): Likewise.
29374
29375         [BZ #18593]
29376         * math/s_csin.c (__csin): Negate before rather than after possibly
29377         overflowing multiplication.
29378         * math/s_csinf.c (__csinf): Likewise.
29379         * math/s_csinh.c (__csinh): Likewise.
29380         * math/s_csinhf.c (__csinhf): Likewise.
29381         * math/s_csinhl.c (__csinhl): Likewise.
29382         * math/s_csinl.c (__csinl): Likewise.
29383         * math/auto-libm-test-in: Add some tests of csin and csinh.
29384         * math/auto-libm-test-out: Regenerated.
29385         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
29386         (csinh_test_data): Likewise.
29387         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29388
29389         [BZ #18586]
29390         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
29391         underflow exception for small results.
29392
29393 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
29394
29395         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29396         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
29397         variable and included header.
29398         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
29399         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
29400         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
29401         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
29402         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
29403         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
29404         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
29405         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
29406         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
29407         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
29408         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
29409         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
29410         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
29411         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
29412         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
29413         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
29414
29415 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29416
29417         [BZ #16526]
29418         [BZ #16538]
29419         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
29420         (__sin): Force underflow exception for arguments with small
29421         absolute value.
29422         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
29423         (__kernel_sinf): Force underflow exception for arguments with
29424         small absolute value.
29425         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
29426         (__kernel_sincosl): Force underflow exception for arguments with
29427         small absolute value.
29428         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
29429         (__kernel_sinl): Force underflow exception for arguments with
29430         small absolute value.
29431         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
29432         (__kernel_sincosl): Force underflow exception for arguments with
29433         small absolute value.
29434         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
29435         (__kernel_sinl): Force underflow exception for arguments with
29436         small absolute value.
29437         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
29438         (__kernel_sinl): Force underflow exception for arguments with
29439         small absolute value.
29440         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
29441         (__kernel_sinf): Force underflow exception for arguments with
29442         small absolute value.
29443         * math/auto-libm-test-in: Add more tests of sin and sincos.
29444         * math/auto-libm-test-out: Regenerated.
29445
29446         [BZ #18245]
29447         [BZ #18583]
29448         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
29449         (__kernel_standard_l): Use feholdexcept and fesetenv around
29450         conversion to double instead of special-casing overflow and
29451         underflow.
29452         * math/libm-test.inc (fmod_test_data): Add more tests.
29453         (remainder_test_data): Likewise.
29454         (sqrt_test_data): Likewise.
29455
29456 2015-06-23  Torvald Riegel  <triegel@redhat.com>
29457
29458         [BZ #17403]
29459         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
29460         atomic_read_barrier, atomic_write_barrier): Define.
29461         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
29462         atomic_read_barrier, atomic_write_barrier): Define.
29463
29464 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29465
29466         * math/Makefile [$(PERL) != no]
29467         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
29468         dependency on libm-test.stmp below the inclusion of Rules.
29469
29470 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
29471
29472         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29473         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
29474         and included header.
29475         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
29476         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
29477         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
29478         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
29479         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
29480         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
29481         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
29482         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
29483         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
29484         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
29485         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
29486         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
29487         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
29488         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
29489         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
29490         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
29491         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
29492         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
29493         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
29494
29495 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29496
29497         [BZ #18371]
29498         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
29499         intermediate but not final result might underflow.
29500         * math/s_csqrtf.c (__csqrtf): Likewise.
29501         * math/s_csqrtl.c (__csqrtl): Likewise.
29502         * math/auto-libm-test-in: Add more tests of csqrt.
29503         * math/auto-libm-test-out: Regenerated.
29504         * sysdeps/i386/fpu/libm-test-ulps: Update.
29505
29506         [BZ #18219]
29507         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
29508         threshold on absolute value of exponent for which scaling is used.
29509         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
29510         * math/auto-libm-test-in: Add more tests of exp2.
29511         * math/auto-libm-test-out: Regenerated.
29512
29513 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
29514
29515         [BZ #17977]
29516         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
29517         when initializing interface list, based on the bug analysis
29518         and the patch proposed by Eric Newton.
29519         * resolv/tst-res_hconf_reorder.c: New test.
29520         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
29521         tst-res_hconf_reorder.
29522         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
29523         and $(shared-thread-library).
29524         (tst-res_hconf_reorder-ENV): New variable.
29525
29526         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
29527         in comment.
29528
29529 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
29530
29531         [BZ #16353]
29532         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
29533         (__expm1): Force underflow exception for arguments with small
29534         absolute value.
29535         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
29536         (__expm1f): Force underflow exception for arguments with small
29537         absolute value.
29538         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
29539         (__expm1): Force underflow exception for arguments with small
29540         absolute value.
29541         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
29542         (__expm1f): Force underflow exception for arguments with small
29543         absolute value.
29544         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
29545         Check for small arguments before calling __expm1.
29546         * math/auto-libm-test-in: Do not mark underflow exceptions as
29547         possibly missing for bug 16353.
29548         * math/auto-libm-test-out: Regenerated.
29549
29550 2015-06-22  Andreas Schwab  <schwab@suse.de>
29551
29552         [BZ #18513]
29553         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
29554         PTR queries.
29555
29556 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
29557
29558         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
29559
29560         * string/strcoll_l.c: Remove unused struct element idxnow.
29561
29562 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
29563
29564         [BZ #18569]
29565         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
29566         underflow and return argument in case of subnormal argument.
29567         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29568         Likewise.
29569         * math/auto-libm-test-in: Add more tests of expm1.
29570         * math/auto-libm-test-out: Regenerated.
29571
29572         [BZ #16361]
29573         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
29574         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
29575         tiny results.
29576         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
29577         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
29578         tiny results.
29579         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
29580         mark underflow exceptions as possibly missing for bug 16361.
29581         * math/auto-libm-test-out: Regenerated.
29582
29583 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
29584
29585         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
29586         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
29587         Remove variable.
29588         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
29589         (test-xfail-XOPEN2K8/utmpx.h/conform).
29590
29591         * conform/conformtest.pl ($xerrors): New variable.
29592         (note_error): New function.
29593         (compiletest): New argument $xfail.  Use not_error.
29594         (runtest): Likewise.
29595         (top level): Handle xfail- lines.  Update calls to compiletest and
29596         runtest.  Handle xfail- and optional- in headers listed with
29597         allow-header.
29598         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
29599         (O_EXEC): Likewise.
29600         (O_SEARCH): Likewise.
29601         * conform/data/stropts.h-data (ioctl): Likewise.
29602         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
29603         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
29604         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
29605         (msghdr.msg_controllen): Likewise.
29606         (cmsghdr.cmsg_len): Likewise.
29607         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
29608         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
29609         variable.
29610         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
29611         (test-xfail-XPG4/stropts.h/conform): Likewise.
29612         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
29613         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
29614         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
29615         (test-xfail-UNIX98/stropts.h/conform): Likewise.
29616         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
29617         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
29618         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
29619         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
29620         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
29621         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
29622         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
29623         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
29624         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
29625         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
29626         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
29627         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
29628         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
29629         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
29630         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
29631
29632 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
29633
29634         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
29635         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
29636         definitions for proper unfolding of __MATHDECL_VEC.
29637
29638 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29639
29640         * benchtests/bench-strcoll.c:
29641         Include string.h.
29642         (main): Remove unused variable res.
29643
29644 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29645
29646         * timezone/Makefile (%/UTC %/Universal):
29647         Generate test-result files for UTC and Universal.
29648
29649 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29650
29651         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
29652
29653 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
29654
29655         [BZ #16350]
29656         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
29657         for arguments with small absolute value.
29658         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
29659         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
29660         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
29661         (__asinh): Force underflow exception for arguments with small
29662         absolute value.
29663         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
29664         (__asinhf): Force underflow exception for arguments with small
29665         absolute value.
29666         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
29667         (__asinhl): Force underflow exception for arguments with small
29668         absolute value.
29669         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
29670         (__asinhl): Force underflow exception for arguments with small
29671         absolute value.
29672         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
29673         (__asinhl): Force underflow exception for arguments with small
29674         absolute value.
29675         * math/auto-libm-test-in: Do not mark underflow exceptions as
29676         possibly missing for bug 16350.
29677         * math/auto-libm-test-out: Regenerated.
29678
29679         * include/bits/ipc.h: Remove file.
29680         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
29681         variable.
29682         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
29683         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
29684         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
29685         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
29686         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
29687         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
29688         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
29689         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
29690         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
29691
29692         * math/auto-libm-test-in: Remove spurious underflow allowance for
29693         tests of cexp.
29694         * math/auto-libm-test-out: Regenerated.
29695
29696         [BZ #18558]
29697         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
29698         unconditional definition.
29699         (MCAST_BLOCK_SOURCE): Likewise.
29700         (MCAST_UNBLOCK_SOURCE): Likewise.
29701         (MCAST_LEAVE_GROUP): Likewise.
29702         (MCAST_JOIN_SOURCE_GROUP): Likewise.
29703         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
29704         (MCAST_MSFILTER): Likewise.
29705         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
29706         Remove variable.
29707         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
29708         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
29709         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
29710         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
29711         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
29712
29713 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
29714
29715         * NEWS: Mention addition of x86_64 vector sincosf.
29716         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
29717         * math/test-float-vlen4.h: Likewise.
29718         * math/test-float-vlen8.h: Likewise.
29719         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29720         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
29721         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29722         * sysdeps/x86_64/fpu/Versions: New versions added.
29723         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29724         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29725         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29726         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
29727         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
29728         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
29729         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
29730         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
29731         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
29732         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
29733         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
29734         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
29735         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
29736         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
29737         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
29738         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
29739         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
29740         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
29741         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29742         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29743         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29744         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29745         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29746         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29747
29748         * NEWS: Mention addition of x86_64 vector sincos.
29749         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
29750         * math/math.h (__MATHDECL_VEC): New macro.
29751         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
29752         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
29753         declaration under condition.
29754         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
29755         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
29756         TEST_VEC_LOOP change.
29757         * math/test-double-vlen4.h: Likewise.
29758         * math/test-double-vlen8.h: Likewise.
29759         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
29760         * math/test-float-vlen4.h: Likewise.
29761         * math/test-float-vlen8.h: Likewise.
29762         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29763         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
29764         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29765         * sysdeps/x86_64/fpu/Versions: New versions added.
29766         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29767         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29768         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29769         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
29770         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
29771         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
29772         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
29773         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
29774         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
29775         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
29776         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
29777         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
29778         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
29779         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
29780         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
29781         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
29782         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
29783         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
29784         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29785         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
29786         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29787         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
29788         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29789         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
29790
29791         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29792         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29793         redirections for powf.
29794         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29795         * sysdeps/x86_64/fpu/Versions: New versions added.
29796         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29797         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29798         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29799         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
29800         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
29801         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
29802         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
29803         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
29804         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
29805         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
29806         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
29807         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
29808         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
29809         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
29810         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
29811         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
29812         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
29813         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
29814         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29815         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29816         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29817         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29818         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29819         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29820         * math/test-float-vlen16.h: Fixed 2 argument macro.
29821         * math/test-float-vlen4.h: Likewise.
29822         * math/test-float-vlen8.h: Likewise.
29823         * NEWS: Mention addition of x86_64 vector powf.
29824
29825 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
29826
29827         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
29828         and redefine.
29829         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
29830         and redefine.
29831         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
29832         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29833         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29834
29835         [BZ #18553]
29836         * resource/getpriority.c (getpriority): Rename to __getpriority
29837         and define as weak alias of __getpriority.
29838         * resource/setpriority.c (setpriority): Rename to __setpriority
29839         and define as weak alias of __setpriority.
29840         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
29841         __getpriority and define as weak alias of __getpriority.
29842         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
29843         __setpriority and define as weak alias of __setpriority.
29844         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
29845         strong name.
29846         (setpriority): Use __setpriority as strong name.
29847         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
29848         __getpriority and define as weak alias of __getpriority.
29849         * include/sys/resource.h (__getpriority): Declare.  Use
29850         libc_hidden_proto.
29851         (__setpriority): Likewise.
29852         (getpriority): Don't use libc_hidden_proto.
29853         (setpriority): Likewise.
29854         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
29855         getpriority.  Call __setpriority instead of setpriority.
29856         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
29857         Remove variable.
29858
29859         [BZ #18547]
29860         * misc/getttyent.c (getttynam): Rename to __getttynam and define
29861         as weak alias of __getttynam.  Use prototype function definition.
29862         Call __setttyent, __getttyent and __endttyent instead of
29863         setttyent, getttyent and endttyent.
29864         (getttyent): Rename to __getttyent and define as weak alias of
29865         __getttyent.  Call __setttyent instead of setttyent.  Call
29866         __fgets_unlocked instead of fgets_unlocked.
29867         (setttyent): Rename to __setttyent and define as weak alias of
29868         __setttyent.
29869         (endttyent): Rename to __endttyent and define as weak alias of
29870         __endttyent.
29871         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
29872         (__setttyent): Likewise.
29873         (__endttyent): Likewise.
29874         (getttyent): Don't use libc_hidden_proto.
29875         (setttyent): Likewise.
29876         (endttyent): Likewise.
29877         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
29878         __endttyent instead of setttyent, getttyent and endttyent.
29879         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
29880         Remove variable.
29881
29882         [BZ #18546]
29883         * socket/recv.c (__recv): Use libc_hidden_def.
29884         * socket/socket.c (__socket): Likewise.
29885         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
29886         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
29887         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
29888         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
29889         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
29890         libc_hidden_def.
29891         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
29892         libc_hidden_weak.
29893         * include/sys/socket.h (__socket): Do not use attribute_hidden.
29894         Use libc_hidden_proto.
29895         (__recv): Likewise.
29896         * socket/Versions (libc): Export __recv and __socket at version
29897         GLIBC_PRIVATE.
29898         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
29899         instead of recv.
29900         (init_mq_netlink): Call __socket instead of socket.
29901         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
29902         Remove variable.
29903
29904         [BZ #18545]
29905         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
29906         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
29907         hidden_weak.
29908         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
29909         define as alias of __mq_timedsend.  Use hidden_weak.
29910         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
29911         __mq_timedsend as strong name.
29912         (mq_timedreceive): Use __mq_timedreceive as strong name.
29913         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
29914         (__mq_timedreceive): Likewise.
29915         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
29916         __mq_timedreceive instead of mq_timedreceive.
29917         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
29918         instead of mq_timedsend.
29919         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
29920         Remove variable.
29921
29922         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
29923         hidden_def and hidden_weak instead of libc_hidden_def and
29924         libc_hidden_weak.
29925         (top level): Refer to hidden_def in comment.
29926         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
29927         macro.  Use it instead of libc_hidden_def.
29928         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
29929         specify __GI_* name explicitly.
29930         (mq_timedreceive): Likewise.
29931         (mq_setattr): Likewise.
29932
29933         [BZ #18544]
29934         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
29935         __pthread_barrier_init and define as weak alias of
29936         __pthread_barrier_init.
29937         * sysdeps/sparc/nptl/pthread_barrier_init.c
29938         (pthread_barrier_init): Likewise.
29939         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
29940         __pthread_barrier_wait and define as weak alias of
29941         __pthread_barrier_wait.
29942         * sysdeps/sparc/nptl/pthread_barrier_wait.c
29943         (pthread_barrier_wait): Likewise.
29944         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
29945         (pthread_barrier_wait): Likewise.
29946         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
29947         (pthread_barrier_wait): Likewise.
29948         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
29949         (pthread_barrier_wait): Likewise.
29950         * nptl/Versions (libpthread): Export __pthread_barrier_init and
29951         __pthread_barrier_wait at version GLIBC_PRIVATE.
29952         * include/pthread.h (__pthread_barrier_init): Declare.
29953         (__pthread_barrier_wait): Likewise.
29954         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
29955         Call __pthread_barrier_wait instead of pthread_barrier_wait.
29956         (helper_thread): Likewise.
29957         (init_mq_netlink): Call __pthread_barrier_init instead of
29958         pthread_barrier_init.
29959
29960         [BZ #18542]
29961         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
29962         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
29963         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
29964         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
29965         vswscanf.
29966         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
29967         Remove variable.
29968
29969         [BZ #18540]
29970         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
29971         strong alias of _IO_fflush.  Use libc_hidden_def.
29972         * libio/iofflush_u.c (fflush_unlocked): Rename to
29973         __fflush_unlocked and define as weak alias of __fflush_unlocked.
29974         Use libc_hidden_weak.
29975         * include/stdio.h (__fflush_unlocked): Declare.  Use
29976         libc_hidden_proto.
29977         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
29978         fflush_unlocked.
29979         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
29980         Remove variable.
29981
29982         [BZ #18539]
29983         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
29984         define as weak alias of __addseverity.
29985         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
29986         Remove variable.
29987         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
29988         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
29989         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
29990
29991         [BZ #18536]
29992         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
29993         (__tfind): Likewise.
29994         (__tdelete): Likewise.
29995         (__twalk): Likewise.
29996         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
29997         __twalk to GLIBC_PRIVATE.
29998         * include/search.h (__tsearch): Use libc_hidden_proto.
29999         (__tfind): Likewise.
30000         (__tdelete): Likewise.
30001         (__twalk): Likewise.
30002         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
30003         Call __tdelete instead of tdelete.
30004         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
30005         tfind.  Call __tsearch instead of tsearch.
30006         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
30007         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
30008         Remove variable.
30009         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
30010
30011         [BZ #18534]
30012         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
30013         (dprintf): Define as a weak alias of __dprintf, not a strong
30014         alias.
30015         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
30016         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
30017         dprintf.
30018         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
30019         Remove variable.
30020         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
30021         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
30022
30023         [BZ #18533]
30024         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
30025         not a strong alias.
30026         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
30027         Remove variable.
30028
30029         [BZ #18532]
30030         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
30031         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
30032         (in6addr_loopback): Rename to __in6addr_loopback and define as
30033         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
30034         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
30035         libc_hidden_proto.
30036         (__in6addr_any): Likewise.
30037         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
30038         in6addr_any.
30039         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
30040         variable.
30041         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
30042
30043 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
30044
30045         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
30046         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
30047         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30048         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30049         redirections for pow.
30050         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30051         * sysdeps/x86_64/fpu/Versions: New versions added.
30052         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30053         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30054         build of SSE, AVX2 and AVX512 IFUNC versions.
30055         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
30056         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
30057         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
30058         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
30059         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
30060         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
30061         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
30062         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
30063         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
30064         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
30065         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
30066         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
30067         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
30068         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
30069         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30070         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30071         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30072         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30073         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30074         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30075         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30076         * NEWS: Mention addition of x86_64 vector pow.
30077
30078         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30079         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30080         redirections for expf.
30081         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30082         * sysdeps/x86_64/fpu/Versions: New versions added.
30083         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30084         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30085         build of SSE, AVX2 and AVX512 IFUNC versions.
30086         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
30087         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
30088         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
30089         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
30090         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
30091         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
30092         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
30093         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
30094         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
30095         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
30096         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
30097         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
30098         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
30099         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30100         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30101         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30102         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30103         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30104         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30105         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30106         * NEWS: Mention addition of x86_64 vector expf.
30107
30108         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
30109         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
30110         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30111         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30112         redirections for exp.
30113         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30114         * sysdeps/x86_64/fpu/Versions: New versions added.
30115         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30116         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30117         build of SSE, AVX2 and AVX512 IFUNC versions.
30118         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
30119         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
30120         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
30121         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
30122         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
30123         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
30124         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
30125         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
30126         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
30127         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
30128         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
30129         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
30130         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
30131         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30132         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30133         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30134         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30135         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30136         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30137         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30138         * NEWS: Mention addition of x86_64 vector exp.
30139
30140         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30141         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30142         redirections for logf.
30143         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30144         * sysdeps/x86_64/fpu/Versions: New versions added.
30145         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30146         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30147         build of SSE, AVX2 and AVX512 IFUNC versions.
30148         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
30149         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
30150         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
30151         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
30152         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
30153         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
30154         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
30155         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
30156         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
30157         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
30158         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
30159         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
30160         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
30161         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30162         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30163         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30164         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30165         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30166         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30167         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30168         * NEWS: Mention addition of x86_64 vector logf.
30169
30170         * bits/libm-simd-decl-stubs.h: Added stubs for log.
30171         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
30172         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30173         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30174         redirections for log.
30175         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30176         * sysdeps/x86_64/fpu/Versions: New versions added.
30177         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30178         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30179         build of SSE, AVX2 and AVX512 IFUNC versions.
30180         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
30181         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
30182         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
30183         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
30184         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
30185         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
30186         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
30187         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
30188         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
30189         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
30190         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
30191         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
30192         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
30193         test.
30194         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30195         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30196         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30197         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30198         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30199         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30200         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30201         * NEWS: Mention addition of x86_64 vector log.
30202
30203 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30204
30205         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
30206         cfi_adjust_cfa_offset argument.
30207         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
30208         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
30209
30210         [BZ #18034]
30211         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
30212         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
30213         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
30214         ordering using ldar.
30215         (_dl_tlsdesc_dynamic): Likewise.
30216         (_dl_tlsdesc_return_lazy): Likewise.
30217         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
30218         relaxed atomics instead of volatile and synchronize with release store.
30219         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
30220         volatile.
30221         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
30222
30223 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
30224
30225         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30226         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
30227         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30228         * sysdeps/x86_64/fpu/Versions: New versions added.
30229         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30230         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30231         build of SSE, AVX2 and AVX512 IFUNC versions.
30232         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
30233         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
30234         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
30235         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
30236         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
30237         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
30238         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
30239         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
30240         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
30241         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
30242         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
30243         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
30244         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
30245         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30246         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30247         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30248         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30249         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30250         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30251         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30252         * NEWS: Mention addition of x86_64 vector sinf.
30253
30254 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
30255
30256         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
30257         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
30258         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
30259         Remove variable.
30260         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
30261         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
30262
30263 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30264
30265         [BZ #18530]
30266         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
30267         strong alias of _IO_fputs.  Use libc_hidden_def.
30268         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
30269         and define as weak alias of __fputs_unlocked.  Use
30270         libc_hidden_weak.
30271         * include/stdio.h (__fputs_unlocked): Declare.  Use
30272         libc_hidden_proto.
30273         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
30274         fputs_unlocked.
30275
30276         [BZ #18529]
30277         * resolv/netdb.h [__USE_POSIX]: Change condition to
30278         [__USE_XOPEN2K].
30279         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
30280         not expect.
30281         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
30282         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
30283         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
30284         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
30285         [XPG4 || UNIX98] (AI_ALL): Likewise.
30286         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
30287         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
30288         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
30289         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
30290         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
30291         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
30292         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
30293         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
30294         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
30295         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
30296         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
30297         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
30298         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
30299         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
30300         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
30301         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30302         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30303         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
30304         [XPG4 || UNIX98] (gai_strerror): Likewise.
30305         [XPG4 || UNIX98] (getaddrinfo): Likewise.
30306         [XPG4 || UNIX98] (getnameinfo): Likewise.
30307
30308         [BZ #18528]
30309         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
30310         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
30311         __USE_XOPEN2K8].
30312         (getgrent): Likewise.
30313         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
30314         expect.
30315         [XPG3 || POSIX2008] (endgrent): Likewise.
30316         [XPG3] (setgrent): Likewise.
30317         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
30318         variable.
30319         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
30320
30321         [BZ #18527]
30322         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
30323         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
30324         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
30325         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
30326         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
30327         * include/unistd.h (__getlogin_r): Declare.  Use
30328         libc_hidden_proto.
30329         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
30330         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
30331         variable.
30332         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
30333         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
30334         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
30335
30336 2015-06-12  Martin Sebor  <msebor@redhat.com>
30337
30338         [BZ #18512]
30339         * Makerules (check-install-supported): New target.
30340         (install): Add check-install-supported as a dependency.
30341         * manual/install.texi (Installing the C Library): Document
30342         that overriding prefix and exec_prefix is not supported.
30343         Mention DESTDIR.
30344         * INSTALL: Regenerate from the above.
30345
30346 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30347
30348         [BZ #18519]
30349         * posix/Versions (libc): Export __libc_pread at version
30350         GLIBC_PRIVATE.
30351         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
30352         instead of pread.
30353         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
30354         variable.
30355
30356         [BZ #18522]
30357         * misc/efgcvt_r.c
30358         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
30359         (cvt_symbol): Use weak_alias instead of strong_alias.
30360         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
30361         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
30362         Remove variable.
30363         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
30364         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
30365
30366         [BZ #18520]
30367         * inet/herrno.c (h_errno): Rename to __h_errno.
30368         (__libc_h_errno): Define as alias of __h_errno not h_errno.
30369         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
30370         to __h_errno instead of h_errno.
30371         * nptl/herrno.c (h_errno): Rename to __h_errno.
30372         (__h_errno_location): Refer to __h_errno not h_errno.
30373         * resolv/Versions (h_errno): Rename to __h_errno.
30374         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
30375         Remove variable.
30376         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
30377
30378 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
30379
30380         * configure.ac: More strict check for AVX512 assembler support.
30381         * configure: Regenerated.
30382
30383         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
30384         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
30385         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30386         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
30387         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30388         * sysdeps/x86_64/fpu/Versions: New versions added.
30389         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30390         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30391         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30392         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
30393         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
30394         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
30395         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
30396         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
30397         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
30398         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
30399         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
30400         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
30401         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
30402         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
30403         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
30404         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
30405         test.
30406         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30407         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30408         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30409         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30410         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30411         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30412         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30413         * NEWS: Mention addition of x86_64 vector sin.
30414
30415 2015-06-11  Florian Weimer  <fweimer@redhat.com>
30416
30417         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
30418         comment.
30419
30420 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
30421
30422         [BZ #18479]
30423         * nptl/pt-interp.c: New file.
30424         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
30425         Add pt-interp.
30426         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
30427         $(common-objpfx)runtime-linker.h.
30428
30429 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
30430
30431         * Makeconfig (+interp): Remove unused variable.
30432         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
30433         only.  Depend on $(common-objpfx)runtime-linker.h instead of
30434         $(elf-objpfx)runtime-linker.h.
30435         ($(elf-objpfx)runtime-linker.h): Rename to
30436         $(common-objpfx)runtime-linker.h and move ...
30437         * Makerules [$(build-shared) = yes]: ... here.
30438         * elf/interp.c: Include <runtime-linker.h> instead of
30439         <elf/runtime-linker.h>.
30440
30441 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30442
30443         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
30444         (__gettimeofday_syscall): Remove vsyscall fallback.
30445         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
30446         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
30447         Add syscall fallback function.
30448         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
30449         if vDSO is not present.
30450         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
30451         fallback function.
30452         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
30453         present.
30454         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
30455         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
30456
30457 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
30458
30459         [BZ #18497]
30460         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
30461         of wcscmp.
30462         (wcscmp): Define as weak alias of WCSCMP.
30463         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
30464         wcscoll.
30465         (USE_HIDDEN_DEF): Define.
30466         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
30467         __wcscoll.  Don't use libc_hidden_weak.
30468         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
30469         wcscmp.
30470         * sysdeps/i386/i686/multiarch/wcscmp-c.c
30471         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
30472         __GI_wcscmp.
30473         (weak_alias): Undefine and redefine.
30474         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
30475         __wcscmp and define as weak alias of __wcscmp.
30476         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
30477         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
30478         (__wcscoll): Likewise.
30479         (wcscmp): Don't use libc_hidden_proto.
30480         (wcscoll): Likewise.
30481         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
30482         wcscoll.
30483         * posix/regexec.c (check_node_accept_bytes): Likewise.
30484         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
30485         variable.
30486         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
30487         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
30488
30489         [BZ #18507]
30490         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
30491         __fstatvfs and define as weak alias of __fstatvfs.  Use
30492         libc_hidden_weak.
30493         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
30494         and define as weak alias of __statvfs.  Use libc_hidden_weak.
30495         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
30496         Define as alias of __fstatvfs, not fstatvfs.
30497         (fstatvfs64): Likewise.
30498         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
30499         Define as alias of __statvfs, not statvfs.
30500         (statvfs64): Likewise.
30501         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
30502         Remove variable.
30503
30504 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30505
30506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
30507         (HAVE_GETCPU_VSYSCALL): Define.
30508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
30509         (HAVE_GETCPU_VSYSCALL): Likewise.
30510         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
30511         * sysdeps/unix/sysv/linux/sched_getcpu.c
30512         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
30513         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
30514         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
30515         prototype.
30516         * sysdeps/unix/sysv/linux/x86_64/init-first.c
30517         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
30518         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
30519         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
30520         Define.
30521         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
30522         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
30523         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
30524         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
30525
30526 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
30527
30528         * sysdeps/x86_64/fpu/Makefile: New file.
30529         * sysdeps/x86_64/fpu/Versions: New file.
30530         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
30531         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
30532         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
30533         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
30534         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
30535         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
30536         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
30537         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
30538         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
30539         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
30540         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
30541         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
30542         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
30543         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30544         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30545         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
30546         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
30547         * sysdeps/x86_64/configure.ac: Options for libmvec build.
30548         * sysdeps/x86_64/configure: Regenerated.
30549         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
30550         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
30551         * manual/install.texi (Configuring and compiling): Document
30552         --disable-mathvec.
30553         * INSTALL: Regenerated.
30554         * NEWS: Mention addition of libmvec and x86_64 vector cos.
30555
30556         * math/Makefile: Added rules for vector tests.
30557         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
30558         declaration under condition.
30559         * math/test-double-vlen2.h: New file.
30560         * math/test-double-vlen4.h: New file.
30561         * math/test-double-vlen8.h: New file.
30562         * math/test-vec-loop.h: Added initialization macro.
30563         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
30564         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
30565         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
30566         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
30567         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
30568         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
30569         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
30570         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
30571         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
30572         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
30573         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
30574
30575         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30576         * sysdeps/x86_64/fpu/Versions: New versions added.
30577         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
30578         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
30579         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
30580         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
30581         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
30582         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
30583         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
30584         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
30585         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
30586         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
30587         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
30588         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
30589         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
30590         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30591         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30592         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30593         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
30594         * NEWS: Mention addition of x86_64 vector cosf.
30595
30596         * math/Makefile: Added CFLAGS for new tests.
30597         * math/test-float-vlen16.h: New file.
30598         * math/test-float-vlen4.h: New file.
30599         * math/test-float-vlen8.h: New file.
30600         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
30601         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
30602         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30603         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
30604         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
30605         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
30606         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
30607         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
30608         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
30609         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
30610         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
30611
30612 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
30613
30614         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
30615         * locale/programs/ld-ctype.c: Likewise.
30616
30617 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
30618
30619         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
30620         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
30621         bit_ZMM16_31_state): New macro.
30622         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30623         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
30624
30625 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
30626
30627         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
30628
30629 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
30630
30631         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
30632
30633 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30634
30635         [BZ #18498]
30636         * libio/memstream.c (open_memstream): Rename to __open_memstream
30637         and define as weak alias of __open_memstream.
30638         * include/stdio.h (__open_memstream): Declare.  Use
30639         libc_hidden_proto.
30640         (open_memstream): Don't use libc_hidden_proto.
30641         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
30642         open_memstream.
30643         * posix/getopt.c (_getopt_internal_r): Likewise.
30644         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
30645         variable.
30646         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
30647         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
30648         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
30649
30650         [BZ #18496]
30651         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
30652         instead of wcrtomb.
30653
30654         [BZ #18483]
30655         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
30656         [__USE_XOPEN2K8].  Remove redundant #endif.
30657         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
30658         Remove redundant #if.
30659         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
30660         Remove variable.
30661         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
30662         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
30663
30664         [BZ #18495]
30665         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
30666         (__iswlower): Likewise.
30667         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
30668         (__iswlower): Likewise.
30669         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
30670         instead of towlower.
30671         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
30672         instead of iswlower.  Call __towupper instead of towupper.
30673         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
30674         instead of iswalnum.
30675
30676 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30677
30678         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
30679         errors to stderr.
30680
30681 2015-06-05  Florian Weimer  <fweimer@redhat.com>
30682
30683         [BZ #15661]
30684         [BZ #17322]
30685         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
30686         Check for overflow properly.  Check for O_APPEND.  Ignore large
30687         file system block sizes.  Add comments about problems.
30688         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
30689         * manual/filesys.texi (Storage Allocation): New node.
30690
30691 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30692
30693         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
30694         cancellable syscalls.
30695         (SYS_ify): Add guard to no redefine it.
30696         (INLINE_SYSCALL): Likewise.
30697         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
30698         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
30699         SYSCALL_CANCEL instead.
30700         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
30701         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
30702         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
30703         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
30704         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
30705         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
30706         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
30707         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
30708         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
30709         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
30710         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
30711         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
30712         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
30713         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
30714         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
30715         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
30716         Likewise.
30717         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
30718         (__libc_pread64): Likewise.
30719         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
30720         (__libc_preadv): Likewise.
30721         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
30722         (__libc_readv64): Likewise.
30723         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
30724         (__libc_pwrite): Likewise.
30725         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
30726         (__libc_pwrite64): Likewise.
30727         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
30728         (__libc_pwritev): Likewise.
30729         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
30730         (__libc_pwritev64): Likewise.
30731         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
30732         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
30733         (sync_file_range): Likewise.
30734         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
30735         Likewise.
30736         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
30737         Likewise.
30738         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
30739         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
30740         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
30741         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
30742         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
30743         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
30744         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
30745         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
30746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
30747         Likewise.
30748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
30749         (__libc_read64): Likewise.
30750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
30751         Likewise.
30752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
30753         Likewise.
30754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
30755         Likewise.
30756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
30757         Likewise.
30758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
30759         (__libc_pread64): Likewise.
30760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
30761         Likewise.
30762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
30763         (__libc_pwrite64): Likewise.
30764         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
30765         (sync_file_range): Likewise.
30766         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
30767         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
30768         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
30769         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
30770         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
30771         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
30772         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
30773         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
30774         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
30775         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
30776         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
30777         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
30778         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
30779         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
30780         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
30781         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
30782         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
30783         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
30784         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
30785         Likewise.
30786         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
30787         Likewise.
30788         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
30789         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
30790         Likewise.
30791         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
30792         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
30793         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
30794         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
30795         Likewise.
30796         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
30797         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
30798         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
30799         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
30800         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
30801
30802 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
30803
30804         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
30805         Include dl-vdso.
30806         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
30807         Use VDSO routines for gettimeofday, clock_gettime if
30808         available.
30809         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
30810         Declare VDSO symbols.
30811         * sysdeps/unix/sysv/linux/arm/sysdep.h:
30812         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
30813         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
30814         * sysdeps/unix/sysv/linux/arm/Versions: Add
30815         __vdso_clock_gettime.
30816
30817 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30818
30819         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
30820         be an inline implementation regardless of library is built within.
30821         (open_not_cancel_2): Likewise.
30822         (__read_nocancel): Likewise.
30823         (__write_nocancel): Likewise.
30824         (openat_not_cancel): Likewise.
30825         (openat_not_cancel_3): Likewise.
30826         (openat64_not_cancel): Likewise.
30827         (openat64_not_cancel_3): Likewise.
30828         (__close_nocancel): Likewise.
30829         (pause_not_cancel): Likewise.
30830         (nanosleep_not_cancel): Likewise.
30831         (sigsuspend_not_cancel): Likewise.
30832
30833 2015-06-04  Torvald Riegel  <triegel@redhat.com>
30834
30835         [BZ #14958]
30836         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
30837         wake-up.
30838         (__pthread_rwlock_rdlock_slow): Likewise.
30839         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
30840         Likewise.
30841         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
30842         Likewise.
30843         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
30844         * nptl/tst-rwlock16.c: New file.
30845         * nptl/Makefile (tests): Add new test.
30846
30847 2015-06-04  Torvald Riegel  <triegel@redhat.com>
30848
30849         [BZ #18324]
30850         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
30851         missing wake-up of readers.
30852         * nptl/tst-rwlock15.c: New file.
30853         * nptl/Makefile (tests): Add new test.
30854
30855 2015-06-03  Roland McGrath  <roland@hack.frob.com>
30856
30857         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
30858         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
30859         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
30860         and __nacl_supply_interface_rtld.
30861         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
30862         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
30863         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
30864         Add __nacl_supply_interface_rtld.
30865         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
30866
30867 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
30868
30869         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
30870         isfinite.
30871         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
30872         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
30873
30874 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
30875
30876         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
30877         __signbit* with standard C99 macros.
30878         * math/e_exp10l.c: Likewise.
30879         * math/e_exp2l.c: Likewise.
30880         * math/e_scalb.c: Likewise.
30881         * math/e_scalbf.c: Likewise.
30882         * math/e_scalbl.c: Likewise.
30883         * math/s_ldexp.c: Likewise.
30884         * math/s_ldexpf.c: Likewise.
30885         * math/s_ldexpl.c: Likewise.
30886         * math/w_atan2.c: Likewise.
30887         * math/w_atan2f.c: Likewise.
30888         * math/w_atan2l.c: Likewise.
30889         * math/w_cosh.c: Likewise.
30890         * math/w_coshf.c: Likewise.
30891         * math/w_coshl.c: Likewise.
30892         * math/w_exp10.c: Likewise.
30893         * math/w_exp10f.c: Likewise.
30894         * math/w_exp10l.c: Likewise.
30895         * math/w_exp2.c: Likewise.
30896         * math/w_exp2f.c: Likewise.
30897         * math/w_exp2l.c: Likewise.
30898         * math/w_fmod.c: Likewise.
30899         * math/w_fmodf.c: Likewise.
30900         * math/w_fmodl.c: Likewise.
30901         * math/w_hypot.c: Likewise.
30902         * math/w_hypotf.c: Likewise.
30903         * math/w_hypotl.c: Likewise.
30904         * math/w_jnl.c: Likewise.
30905         * math/w_lgamma.c: Likewise.
30906         * math/w_lgamma_r.c: Likewise.
30907         * math/w_lgammaf.c: Likewise.
30908         * math/w_lgammaf_r.c: Likewise.
30909         * math/w_lgammal.c: Likewise.
30910         * math/w_lgammal_r.c: Likewise.
30911         * math/w_pow.c: Likewise.
30912         * math/w_powf.c: Likewise.
30913         * math/w_powl.c: Likewise.
30914         * math/w_remainder.c: Likewise.
30915         * math/w_remainderf.c: Likewise.
30916         * math/w_remainderl.c: Likewise.
30917         * math/w_scalb.c: Likewise.
30918         * math/w_scalbf.c: Likewise.
30919         * math/w_scalbl.c: Likewise.
30920         * math/w_scalbln.c: Likewise.
30921         * math/w_scalblnf.c: Likewise.
30922         * math/w_scalblnl.c: Likewise.
30923         * math/w_sinh.c: Likewise.
30924         * math/w_sinhf.c: Likewise.
30925         * math/w_sinhl.c: Likewise.
30926         * math/w_tgamma.c: Likewise.
30927         * math/w_tgammaf.c: Likewise.
30928         * math/w_tgammal.c: Likewise.
30929         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
30930         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
30931         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
30932         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
30933         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
30934         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
30935         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30936         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
30937         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
30938         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
30939         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30940         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
30941         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
30942         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
30943         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
30944         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
30945         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
30946         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
30947         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
30948         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
30949         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
30950         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
30951         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
30952         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
30953         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
30954         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30955         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
30956         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
30957         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
30958         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30959         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
30960         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
30961         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
30962         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
30963         * stdio-common/printf_fp.c: Likewise.
30964         * stdio-common/printf_fphex.c: Likewise.
30965         * stdio-common/printf_size.c: Likewise.
30966
30967 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
30968
30969         [BZ #18470]
30970         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
30971         strnlen.
30972         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
30973         Remove variable.
30974         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
30975         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
30976         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
30977         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
30978         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
30979         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
30980         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
30981         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
30982         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
30983         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
30984
30985         [BZ #18468]
30986         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
30987         weak alias of __wmemchr.  Use libc_hidden_weak.
30988         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
30989         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
30990         instead of wmemchr.
30991
30992 2015-06-02  Roland McGrath  <roland@hack.frob.com>
30993
30994         [BZ #18383]
30995         * elf/tst-tlsalign-extern.c: New file.
30996         * elf/tst-tlsalign-extern-static.c: New file.
30997         * elf/tst-tlsalign-vars.c: New file.
30998         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
30999         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
31000         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
31001         ($(objpfx)tst-tlsalign-extern-static): Likewise.
31002         (test-xfail-tst-tlsalign-extern-static): New variable.
31003
31004 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
31005
31006         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
31007         Use variable name _sc_err instead of err.
31008         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
31009         instead of ret.
31010         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
31011         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
31012         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
31013         (INLINE_SYSCALL): Likewise.
31014
31015         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
31016         * include/string.h (__strnlen): Use libc_hidden_proto.
31017         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
31018         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
31019         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
31020         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
31021         (libc_hidden_def): Undefine and redefine.
31022         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
31023         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
31024         __GI_strnlen.
31025         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
31026         libc_hidden_def.
31027         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
31028
31029         [BZ #18469]
31030         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
31031         weak alias of __towlower.  Use libc_hidden_weak.
31032         (towupper): Rename to __towupper and define as weak alias of
31033         __towupper.  Use libc_hidden_weak.
31034         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
31035         (__towupper): Likewise.
31036         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
31037         __towlower instead of towlower.
31038
31039 2015-06-02  Roland McGrath  <roland@hack.frob.com>
31040
31041         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
31042         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
31043
31044 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31045
31046         * sysdeps/aarch64/libm-test-ulps: Update.
31047
31048 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31049
31050         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
31051         Define.
31052         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31053         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
31054         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31055         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31056         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
31057         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
31058         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
31059
31060 2015-06-01  Martin Sebor  <msebor@redhat.com>
31061
31062         [BZ #18116]
31063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
31064         (__setcontext): Use extended four-operand version of mtsf whenever
31065         possible.
31066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
31067         (__novec_swapcontext): Likewise.
31068
31069 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31070
31071         * benchtests/scripts/compare_bench.py: New file.
31072         * benchtests/scripts/import_bench.py (mean): New function.
31073         (split_list): Likewise.
31074         (do_for_all_timings): Likewise.
31075         (compress_timings): Likewise.
31076
31077         * benchtests/scripts/import_bench.py: New file.
31078         * benchtests/scripts/validate_benchout.py: Import import_bench
31079         instead of jsonschema.
31080         (validate_bench): Remove function.
31081         (main): Use import_bench.
31082
31083 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
31084
31085         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
31086         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
31087
31088 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31089
31090         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31091
31092 2015-05-28  Roland McGrath  <roland@hack.frob.com>
31093
31094         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
31095         set THREAD_SELF->tid to a magic value and futex-wake it.
31096         Pass its address to the thread_exit system call.
31097         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
31098         bit is clear.
31099         * sysdeps/nacl/lowlevellock.h: New file.
31100         * sysdeps/nacl/lll_timedwait_tid.c: New file.
31101
31102         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
31103         Add TIMEOUT to current time, don't subtract it.
31104
31105 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
31106
31107         [BZ #2981]
31108         [BZ #18422]
31109         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
31110         ($(objpfx)tst-audit2.out): Also depend on
31111         $(objpfx)tst-auditmod9b.so.
31112         * elf/tst-audit2.c: Include <dlfcn.h>.
31113         (calloc_called): New.
31114         (calloc): Allow to be called more than once.
31115         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
31116
31117 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
31118
31119         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
31120         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
31121
31122 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
31123
31124         * stdlib/monetary.h: Fix comment.
31125
31126 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
31127
31128         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
31129         Avoid using variables in #defines that might cause shadowing.
31130         (INTERNAL_VSYSCALL_CALL): Likewise.
31131
31132 2015-05-26  Roland McGrath  <roland@hack.frob.com>
31133
31134         * sysdeps/nacl/lll_timedlock_wait.c: New file.
31135
31136         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
31137         * nptl/lll_timedlock_wait.c: ... to this new file.
31138         * nptl/Makefile (libpthread-routines): Add it.
31139         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
31140         * nptl/lll_timedwait_tid.c: ... to this new file.
31141         * nptl/Makefile (libpthread-routines): Add it.
31142         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
31143         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
31144         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
31145         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
31146         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
31147         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
31148         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
31149         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
31150         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
31151         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
31152
31153 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31154
31155         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
31156         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31157         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
31158         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
31159         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
31160         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
31161         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31162         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31163         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31164         * sysdeps/unix/sysv/linux/tile/sysdep.h
31165         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31166         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
31167         using vDSO syscall macro.
31168
31169 2015-05-26  Andriy Rysin  <arysin@gmail.com>
31170
31171         [BZ #17293]
31172         * uk_UA: Fix sorting order for Ukrainian locale
31173
31174 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
31175
31176         * stdlib/monetary.h: Fix comment.
31177
31178 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31179
31180         [BZ #18234]
31181         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
31182         st_mtim and st_ctim members.
31183         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
31184         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
31185         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
31186         (struct stat64): Likewise.
31187         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
31188         (struct stat64): Likewise.
31189         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
31190         (struct stat64): Likewise.
31191
31192 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31193
31194         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
31195         Define and include sysdep-vdso.h.
31196         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
31197         Likewise.
31198         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
31199         Likewise.
31200         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
31201         Define with VDSO_SYMBOL and use PTR_MANGLE.
31202         (__vdso_clock_gettime): Likewise.
31203         (__vdso_clock_getres): Likewise.
31204         (_libc_vdso_platform_setup): Likewise.
31205         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
31206         Likewise.
31207         (_libc_vdso_platform_setup): Likewise.
31208         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
31209         Likewise.
31210         (__vdso_clock_gettime): Likewise.
31211         (__vdso_clock_getres): Likewise.
31212         (__vdso_get_tbfreq): Likewise.
31213         (__vdso_getcpu): Likewise.
31214         (__vdso_time): Likewise.
31215         (__vdso_sigtramp_rt64): Likewise.
31216         (__vdso_signtramp32): Likewise.
31217         (__vdso_sigtramp_rt32): Likewise.
31218         (_libc_vdso_platform_setup): Likewise.
31219         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
31220         Likewise.
31221         (__vdso_clock_gettime): Likewise.
31222         (__vdso_clock_getres): Likewise.
31223         (_libc_vdso_platform_setup): Likewise.
31224         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
31225         Likewise.
31226         (__vdso_clock_gettime): Likewise.
31227         (_libc_vdso_platform_setup): Likewise.
31228         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
31229         Likewise.
31230         (__vdso_getcpu): Likewise.
31231         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
31232         Use VDSO_SYMBOL macro to define.
31233         (__vdso_clock_gettime): Likewise.
31234         (__vdso_clock_getres): Likewise.
31235         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
31236         Likewise.
31237         (__vdso_clock_gettime): Likewise.
31238         (__vdso_clock_getres): Likewise.
31239         (__vdso_get_tbfreq): Likewise.
31240         (__vdso_getcpu): Likewise.
31241         (__vdso_time): Likewise.
31242         (__vdso_sigtramp_rt64): Likewise.
31243         (__vdso_signtramp32): Likewise.
31244         (__vdso_sigtramp_rt32): Likewise.
31245         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
31246         Likewise.
31247         (__vdso_clock_gettime): Likewise.
31248         (__vdso_clock_getres): Likewise.
31249         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
31250         Likewise.
31251         (__vdso_clock_gettime): Likewise.
31252         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
31253         Likewise.
31254         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
31255         macro.
31256         (INTERNAL_VSYSCALL): Likewise.
31257         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
31258         Remove macro.
31259         (INTERNAL_VSYSCALL): Likewise.
31260         (INTERNAL_VSYSCALL_NCS): Likewise.
31261         (INTERNAL_VSYSCALL_CALL): New macro.
31262         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31263         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
31264         Likewise.
31265         (INTERNAL_VSYSCALL): Likewise.
31266         (INTERNAL_VSYSCALL_NCS): Likewise.
31267         (INTERNAL_VSYSCALL_CALL): New macro.
31268         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
31270         (INLINE_VSYSCALL): Remove macro.
31271         (INTERNAL_VSYSCALL): Remove macro.
31272         (INTERNAL_VSYSCALL_NCS): Remove macro.
31273         (INTERNAL_VSYSCALL_CALL): New macro.
31274         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
31275         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
31276         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31277         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
31278         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
31280         (INLINE_VSYSCALL): Remove macro.
31281         (INTERNAL_VSYSCALL): Likewise.
31282         (INTERNAL_VSYSCALL_NCS): Likewise.
31283         (INTERNAL_VSYSCALL_CALL): New macro.
31284         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
31285         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
31286         PTR_DEMANGLE on vDSO pointer.
31287         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31288         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
31289         macro.
31290         (INTERNAL_SYSCALL): Likewise.
31291         (INTERNAL_VSYSCALL_NCS): Remove macro.
31292         (INTERNAL_VSYSCALL_CALL): New macro.
31293         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
31294         Remove macro.
31295         (INTERNAL_VSYSCALL): Likewise.
31296         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
31297         sysdep-vdso.h instead of libc-vdso.h.
31298         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
31299         definition.
31300         (INLINE_VSYSCALL): Likewise.
31301         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
31302         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
31303         definition.
31304         (INLINE_VSYSCALL): Likewise.
31305         (INTERNAL_VSYSCALL): Likewise.
31306         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31307         * sysdeps/unix/sysv/linux/timespec_get.c
31308         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31309         (timespec_get): Use ANSI prototype.
31310         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
31311         and definition for Linux.
31312
31313 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
31314
31315         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
31316         * include/libc-symbols.h: libmvec_hidden_* macro series added.
31317
31318 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31319
31320         [BZ #2981]
31321         [BZ #18410]
31322         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
31323         for missing DT_PLTRELSZ.
31324
31325 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31326
31327         Remove obsolete aliases that broke 'locale -a'
31328         [BZ #18412]
31329         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
31330         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
31331         breaking some applications that use 'locale -a' output.
31332         Change the encoding of this file from Latin-1 to ASCII to avoid
31333         other potential problems with people grepping this file.
31334
31335 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31336
31337         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
31338         -fasynchronous-unwind-tables.
31339         (CFLAGS-sendto.c): Likewise.
31340         (CFLAGS-sendmsg.c): Likewise.
31341         (CFLAGS-connect.c): Likewise.
31342         (CFLAGS-recvmsg.c): Likewise.
31343         (CFLAGS-recvfrom.c): Likewise.
31344         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
31345         (SOCKETCALL): New macro: non-cancellable socketcall.
31346         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
31347         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
31348         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
31349         * sysdeps/unix/sysv/linux/accept.c: New file.
31350         * sysdeps/unix/sysv/linux/bind.c: Likewise.
31351         * sysdeps/unix/sysv/linux/connect.c: Likewise.
31352         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
31353         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
31354         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
31355         * sysdeps/unix/sysv/linux/listen.c: Likewise.
31356         * sysdeps/unix/sysv/linux/recv.c: Likewise.
31357         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
31358         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
31359         * sysdeps/unix/sysv/linux/send.c: Likewise.
31360         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
31361         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
31362         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
31363         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
31364         * sysdeps/unix/sysv/linux/socket.c: Likewise.
31365         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
31366         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
31367         prototype.
31368         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
31369         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31370         instead of __internal_xxx function.
31371         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
31372         prototype.
31373         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
31374         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31375         instead of __internal_xxx function.
31376         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
31377         prototype.
31378         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
31379         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31380         instead of __internal_xxx function.
31381         * sysdeps/unix/sysv/linux/accept.S: Remove file.
31382         * sysdeps/unix/sysv/linux/bind.S: Likewise.
31383         * sysdeps/unix/sysv/linux/connect.S: Likewise.
31384         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
31385         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
31386         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
31387         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
31388         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
31389         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
31390         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
31391         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
31392         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
31393         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
31394         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
31395         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
31396         * sysdeps/unix/sysv/linux/listen.S: Likewise.
31397         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
31398         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
31399         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
31400         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
31401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
31402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
31403         * sysdeps/unix/sysv/linux/recv.S: Likewise.
31404         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
31405         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
31406         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
31407         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
31408         * sysdeps/unix/sysv/linux/send.S: Likewise.
31409         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
31410         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
31411         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
31412         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
31413         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
31414         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
31415         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
31416         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
31417         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
31418         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
31419         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
31420         socketcall is implemented in GLIBC.
31421
31422 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31423
31424         * soft-fp/fmadf4.c: Include <libc-internal.h>.
31425         (__fma): Ignore uninitialized warnings around packing.
31426         * soft-fp/fmasf4.c: Include <libc-internal.h>.
31427         (__fmaf): Ignore uninitialized warnings around packing.
31428         * soft-fp/fmatf4.c: Include <libc-internal.h>.
31429         (__fmal): Ignore uninitialized warnings around packing.
31430
31431         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
31432         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31433         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
31434         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31435
31436         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
31437         switch statement into default case.
31438         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
31439
31440         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
31441         a conditional in forcing "inexact".
31442         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
31443         Likewise.
31444
31445 2015-05-22  Roland McGrath  <roland@hack.frob.com>
31446
31447         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
31448         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
31449         for each INTERNAL_SYSCALL use.
31450
31451 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31452
31453         [BZ #438]
31454         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
31455         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
31456         variable.
31457
31458         [BZ #18444]
31459         * string/basename.c (basename): Rename to __basename and define as
31460         weak alias of __basename.  Use libc_hidden_weak.
31461         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
31462         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
31463         __basename instead of basename.
31464         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
31465         Remove variable.
31466         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31467
31468 2015-05-18  Florian Weimer  <fweimer@redhat.com>
31469
31470         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
31471         (_IO_JUMPS_FILE_plus): New.
31472         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
31473         _IO_CAST_FIELD_ACCESS.
31474         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
31475         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
31476         * libio/freopen.c (freopen): Likewise.
31477         * libio/freopen64.c (freopen64): Likewise.
31478         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
31479         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
31480         * libio/iofwide.c (_IO_fwide): Likewise.
31481         * libio/memstream.c (open_memstream): Likewise.
31482         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
31483         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
31484         * libio/oldiopopen.c (_IO_old_popen): Likewise.
31485
31486 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
31487
31488         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
31489         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
31490         NADJ.
31491         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
31492         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
31493         NADJ.
31494         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
31495         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
31496         NADJ.
31497
31498         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
31499         (p == 4) case.
31500
31501         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
31502         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
31503         Remove variable.
31504         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31505         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31506         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31507
31508 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31509
31510         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
31511         Adjust jump table label generation macros.
31512
31513 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31514
31515         * stdio-common/vfprintf.c (vfprintf): Move local variables
31516         args_malloced, specs, specs_malloced, and the code after
31517         do_positional to the printf_positional function.
31518         (printf_positional): New function.
31519
31520 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31521
31522         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
31523         function.
31524         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
31525         STEP4_TABLE, process_arg): Move macro definitions
31526         out of the vfprintf function.  (Cosmetic change only.)
31527
31528 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
31529
31530         * benchtests/Makefile (stdio-common-bench): Define.
31531         (benchset): Add stdio-common-bench.
31532         * sprintf-inputs: New file.
31533         * sprintf-source.c: New file.
31534
31535 2015-05-21  Andreas Schwab  <schwab@suse.de>
31536
31537         [BZ #13028]
31538         [BZ #17053]
31539         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
31540         of struct __res_state.
31541         * resolv/res_send.c (__libc_res_nsend): Likewise.
31542         (get_nsaddr): New function.
31543         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
31544         statp directly.
31545
31546 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
31547
31548         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
31549         -D_POSIX_C_SOURCE=199506L.
31550
31551         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
31552
31553         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
31554         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
31555         Do not mention otherwise.
31556         [POSIX] (_XOPEN_VERSION): Do not expect.
31557         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
31558         [POSIX] (_POSIX2_C_BIND): Likewise.
31559         [POSIX] (_POSIX2_VERSION): Likewise.
31560         [POSIX] (_XOPEN_XPG2): Likewise.
31561         [POSIX] (_XOPEN_XPG3): Likewise.
31562         [POSIX] (_XOPEN_XPG4): Likewise.
31563         [POSIX] (_XOPEN_UNIX): Likewise.
31564         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
31565         [POSIX] (_POSIX_BARRIERS): Likewise.
31566         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
31567         [POSIX] (_POSIX_CPUTIME): Likewise.
31568         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
31569         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
31570         [POSIX] (_POSIX_SHELL): Likewise.
31571         [POSIX] (_POSIX_SPAWN): Likewise.
31572         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
31573         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
31574         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
31575         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
31576         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
31577         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
31578         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
31579         [POSIX] (_XBS5_LP64_OFF64): Likewise.
31580         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
31581         [POSIX] (_POSIX_TIMEOUTS): Likewise.
31582         [POSIX] (_POSIX2_PBS): Likewise.
31583         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
31584         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
31585         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
31586         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
31587         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
31588         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
31589         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
31590         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
31591         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
31592         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
31593         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
31594         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
31595         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
31596         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
31597         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
31598         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
31599         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
31600         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
31601         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
31602         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
31603         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
31604         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
31605         [POSIX] (_SC_2_C_BIND): Likewise.
31606         [POSIX] (_SC_2_C_VERSION): Likewise.
31607         [POSIX] (_SC_2_PBS): Likewise.
31608         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
31609         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
31610         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
31611         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
31612         [POSIX] (_SC_2_PBS_TRACK): Likewise.
31613         [POSIX] (_SC_ATEXIT_MAX): Likewise.
31614         [POSIX] (_SC_BARRIERS): Likewise.
31615         [POSIX] (_SC_BASE): Likewise.
31616         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
31617         [POSIX] (_SC_DEVICE_IO): Likewise.
31618         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
31619         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
31620         [POSIX] (_SC_FD_MGMT): Likewise.
31621         [POSIX] (_SC_FIFO): Likewise.
31622         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
31623         [POSIX] (_SC_FILE_LOCKING): Likewise.
31624         [POSIX] (_SC_FILE_SYSTEM): Likewise.
31625         [POSIX] (_SC_IOV_MAX): Likewise.
31626         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
31627         [POSIX] (_SC_NETWORKING): Likewise.
31628         [POSIX] (_SC_PAGE_SIZE): Likewise.
31629         [POSIX] (_SC_PASS_MAX): Likewise.
31630         [POSIX] (_SC_PIPE): Likewise.
31631         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
31632         [POSIX] (_SC_REGEXP): Likewise.
31633         [POSIX] (_SC_SHELL): Likewise.
31634         [POSIX] (_SC_SIGNALS): Likewise.
31635         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
31636         [POSIX] (_SC_SPIN_LOCKS): Likewise.
31637         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
31638         [POSIX] (_SC_USER_GROUPS): Likewise.
31639         [POSIX] (_SC_USER_GROUPS_R): Likewise.
31640         [POSIX] (_SC_STREAMS): Likewise.
31641         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
31642         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
31643         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
31644         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
31645         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
31646         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
31647         [POSIX] (_PC_FILESIZEBITS): Likewise.
31648         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
31649         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
31650         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
31651         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
31652         [POSIX] (uid_t): Likewise.
31653         [POSIX] (gid_t): Likewise.
31654         [POSIX] (off_t): Likewise.
31655         [POSIX] (pid_t): Likewise.
31656         [POSIX] (cuserid): Allow.
31657         (_SC_2_CHAR_TERM): Require constant.
31658         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
31659         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
31660         variable.
31661
31662 2015-05-20  Roland McGrath  <roland@hack.frob.com>
31663
31664         * sysdeps/nacl/pthread-pids.h: New file.
31665         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
31666         (create_thread): Use __nacl_get_tid to initialize PD->tid.
31667
31668         * nptl/pthread-pids.h: New file.
31669         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
31670         * nptl/nptl-init.c: Include <pthread-pids.h>.
31671         (__pthread_initialize_minimal_internal):
31672         Call __pthread_initialize_pids instead of set_tid_address syscall.
31673
31674         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
31675         * sysdeps/posix/usleep.c: ... here.
31676
31677 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31678
31679         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
31680         call_pselect6 object.
31681         [$(subdir) = io]: Remove call_sync_file_range object.
31682         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
31683         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
31684         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
31685         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
31686
31687 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
31688
31689         * math/s_cproj.c: Add include "math_private.h".
31690         * math/s_cprojf.c: Likewise.
31691         * math/s_cprojl.c: Likewise.
31692
31693 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
31694
31695         [BZ #18244]
31696         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
31697         high mantissa bit when testing whether P is a NaN.
31698         * math/libm-test.inc (remainder_test_data): Add more tests.
31699         (remquo_test_data): Likewise.
31700
31701         [BZ #18049]
31702         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
31703         below -32, return the argument, with underflow if subnormal.
31704         * math/auto-libm-test-in: Add more tests of atanh.
31705         * math/auto-libm-test-out: Regenerated.
31706
31707 2015-05-19  Roland McGrath  <roland@hack.frob.com>
31708
31709         [BZ #18434]
31710         * nptl/tst-sem15.c: New file.
31711         * nptl/Makefile (tests): Add it.
31712         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
31713         s/<</>>/ to fix typo in EOVERFLOW check.
31714         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
31715
31716 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31717
31718         * manual/strings.texi (envz_remove): Fix typo in safety
31719         annotations.
31720
31721 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31722             Steve Ellcey  <sellcey@imgtec.com>
31723
31724         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
31725         in order to avoid strict alias warnings.
31726         (iruserok_af): Ditto for ra.
31727
31728 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
31729
31730         [BZ #17581]
31731         * malloc/hooks.c
31732         (magicbyte): Convert to a function and avoid returning 0x01.
31733         (mem2mem_check): Avoid using a length byte equal to the magic byte.
31734         (mem2chunk_check): Fix unsigned comparisons to zero.
31735         Hoist defs of sz and magic.
31736
31737 2015-05-19  Richard Henderson  <rth@redhat.com>
31738
31739         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
31740
31741         * sysdeps/alpha/fpu/libm-test-ulps: Update.
31742
31743 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31744
31745         [BZ #16159]
31746         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
31747         * malloc/arena.c (arena_lock): Check if arena is corrupt.
31748         (reused_arena): Find a non-corrupt arena.
31749         (heap_trim): Pass arena to unlink.
31750         * malloc/hooks.c (malloc_check_get_size): Pass arena to
31751         malloc_printerr.
31752         (top_check): Likewise.
31753         (free_check): Likewise.
31754         (realloc_check): Likewise.
31755         * malloc/malloc.c (malloc_printerr): Add arena argument.
31756         (unlink): Likewise.
31757         (munmap_chunk): Adjust.
31758         (ARENA_CORRUPTION_BIT): New macro.
31759         (arena_is_corrupt): Likewise.
31760         (set_arena_corrupt): Likewise.
31761         (sysmalloc): Use mmap if there are no usable arenas.
31762         (_int_malloc): Likewise.
31763         (__libc_malloc): Don't fail if arena_get returns NULL.
31764         (_mid_memalign): Likewise.
31765         (__libc_calloc): Likewise.
31766         (__libc_realloc): Adjust for additional argument to
31767         malloc_printerr.
31768         (_int_free): Likewise.
31769         (malloc_consolidate): Likewise.
31770         (_int_realloc): Likewise.
31771         (_int_memalign): Don't touch corrupt arenas.
31772         * malloc/tst-malloc-backtrace.c: New test case.
31773
31774         * Makefile (summarize-tests): Fix return value on success.
31775
31776         * manual/string.texi (Envz Functions): Add envz_remove.
31777
31778 2015-05-18  Roland McGrath  <roland@hack.frob.com>
31779
31780         * sysdeps/posix/opendir.c: Include <stdbool.h>.
31781         (invalid_name): New function, broken out of ...
31782         (__opendirat): ... here.  Call it.
31783         (need_isdir_precheck): New function, broken out of ...
31784         (__opendirat): ... here.  Call it.
31785         Use __fxstatat64, not __xstatat64.
31786         (opendir_oflags): New function, broken out of ...
31787         (__opendirat): ... here.  Call it.
31788         (opendir_tail): New function, broken out of ...
31789         (__opendirat): ... here.  Call it.
31790         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
31791         opendir_tail, rather than punting to __opendirat.
31792         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
31793
31794 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
31795
31796         * .gitignore: Ignore generated *.pyc.
31797
31798 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
31799
31800         * include/stdio.h: Define __need_wint_t.
31801         * test-skeleton.c: Avoid `for' loop initial declaration.
31802         * nptl/tst-initializers1.c: Use test-skeleton.c.
31803
31804 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31805
31806         [BZ #18418]
31807         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
31808
31809 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
31810
31811         [BZ #16352]
31812         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
31813         (__ieee754_atanh): Force underflow exception for results with
31814         small absolute value.
31815         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
31816         (__ieee754_atanhf): Force underflow exception for results with
31817         small absolute value.
31818         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
31819         (__ieee754_atanh): Force underflow exception for results with
31820         small absolute value.
31821         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
31822         (__ieee754_atanhf): Force underflow exception for results with
31823         small absolute value.
31824         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
31825         (__ieee754_atanhl): Force underflow exception for results with
31826         small absolute value.
31827         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
31828         (__ieee754_atanhl): Force underflow exception for results with
31829         small absolute value.
31830         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
31831         (__ieee754_atanhl): Force underflow exception for results with
31832         small absolute value.
31833         * math/auto-libm-test-in: Do not allow missing underflow
31834         exceptions from atanh.
31835         * math/auto-libm-test-out: Regenerated.
31836
31837         [BZ #18221]
31838         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
31839         2**-28 as threshold for returning x or +/- 1/x.
31840         * math/auto-libm-test-in: Add more tests of tan.
31841         * math/auto-libm-test-out: Regenerated.
31842
31843         [BZ #18220]
31844         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
31845         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
31846         * math/auto-libm-test-in: Add another test of lgamma.
31847         * math/auto-libm-test-out: Regenerated.
31848
31849 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
31850
31851         * stdio-common/printf_fp.c (___printf_fp): Use abs.
31852         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
31853         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
31854         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
31855         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
31856         (ADD2A): Use fabs.  (SUB2A): Use fabs.
31857         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
31858         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
31859         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
31860         (log1): Use fabs.  (my_log2): Use fabs.
31861         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
31862         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
31863         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
31864         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
31865         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
31866         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
31867         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
31868         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
31869         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
31870         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
31871         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
31872
31873 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
31874
31875         [BZ #18217]
31876         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
31877         as threshold for returning 1 - x.
31878         * math/auto-libm-test-in: Add more tests of erfc.
31879         * math/auto-libm-test-out: Regenerated.
31880
31881 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
31882
31883         [BZ #18196]
31884         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
31885         threshold for large arguments.
31886         * math/auto-libm-test-in: Add another test of atan.
31887         * math/auto-libm-test-out: Regenerated.
31888
31889         [BZ #16339]
31890         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
31891         (__log1p): Force underflow exception for results with small
31892         absolute value.
31893         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
31894         (__log1pf): Force underflow exception for results with small
31895         absolute value.
31896         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
31897         (__log1p): Force underflow exception for results with small
31898         absolute value.
31899         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
31900         (__log1pf): Force underflow exception for results with small
31901         absolute value.
31902         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
31903         (__log1pl): Force underflow exception for results with small
31904         absolute value.
31905         * math/auto-libm-test-in: Do not allow missing underflow
31906         exceptions from log1p.
31907         * math/auto-libm-test-out: Regenerated.
31908
31909 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
31910             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31911
31912         [BZ #16704]
31913         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
31914
31915 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
31916
31917         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
31918         (libmvec): New variable.
31919         * configure.ac: Added option for mathvec build.
31920         * configure: Regenerated.
31921         * mathvec/Depend: New file.
31922         * mathvec/Makefile: New file.
31923         * shlib-versions: Added libmvec.
31924         * math/Makefile: Added rule for libm.so installation.
31925
31926         * bits/math-vector.h: New file.
31927         * bits/libm-simd-decl-stubs.h: New header.
31928         * math/Makefile (headers): Added new header
31929         libm-simd-decl-stubs.h.
31930         * math/math.h (__MATHCALL_VEC): New macro.
31931
31932         * math/gen-libm-have-vector-test.sh: Script generates series of macros
31933         for conditions in testing functions.
31934         * math/Makefile: Added call of libm-have-vector-test.sh.
31935         * math/libm-test.inc (HAVE_VECTOR): New macros.
31936
31937         * math/libm-test.inc: START refactored.
31938         * math/test-double.c (TEST_MATHVEC): Add define.
31939         * math/test-float.c: Likewise.
31940         * math/test-idouble.c: Likewise.
31941         * math/test-ifloat.c: Likewise.
31942         * math/test-ildoubl.c: Likewise.
31943         * math/test-ldouble.c: Likewise.
31944         * sysdeps/generic/math-tests-arch.h
31945         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
31946         architecture check.
31947
31948         * math/test-double.c (FUNC_TEST): New macro.
31949         * math/test-float.c: Likewise.
31950         * math/test-idouble.c: Likewise.
31951         * math/test-ifloat.c: Likewise.
31952         * math/test-ildoubl.c: Likewise.
31953         * math/test-ldouble.c: Likewise.
31954         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
31955
31956 2015-05-13  Roland McGrath  <roland@hack.frob.com>
31957
31958         * sysdeps/nacl/fdopendir.c: New file.
31959
31960         * dirent/scandir-tail.c: New file.
31961         * dirent/scandir64-tail.c: New file.
31962         * dirent/Makefile (routines): Add them.
31963         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
31964         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
31965         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
31966         [!SCANDIR] (SCANDIR_TAIL): New macro.
31967         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
31968         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
31969         (SCANDIRAT): Macro removed.
31970         (SCANDIR_TAIL): New macro.
31971         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
31972         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
31973         (SCANDIRAT): Just call __opendirat and __scandir_tail.
31974         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
31975         (READDIR): Macro removed.
31976         (SCANDIR_TAIL): New macro.
31977         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
31978         (SCANDIR_TAIL): New macro.
31979
31980         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
31981         * dirent/scandir-cancel.c: ... to this new file.
31982         * dirent/Makefile (routines): Add it.
31983         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
31984         * sysdeps/unix/sysv/linux/i386/scandir64.c
31985         (SKIP_SCANDIR_CANCEL): Macro removed.
31986         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
31987
31988         * dirent/tst-scandir.c: New file.
31989         * dirent/tst-scandir64.c: New file.
31990         * dirent/Makefile (tests): Add them.
31991
31992 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
31993
31994         [BZ #18409]
31995         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
31996
31997 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31998
31999         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
32000         list.
32001
32002 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
32003
32004         * benchtests/bench-strcoll.c: New benchmark.
32005         * benchtests/Makefile: Generate locales and run benchmark.
32006         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
32007         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
32008         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
32009         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
32010         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
32011         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
32012         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
32013         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
32014         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
32015         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
32016         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
32017         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
32018         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
32019         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
32020         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
32021         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
32022         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
32023         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
32024         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
32025         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
32026         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
32027         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
32028         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
32029         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
32030
32031 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
32032
32033         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
32034         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
32035
32036 2015-05-12  Roland McGrath  <roland@hack.frob.com>
32037
32038         * posix/uname-values.h: New file.
32039         * posix/uname.c: Include that instead of <config-name.h>.
32040         * sysdeps/nacl/uname-values.h: New file.
32041         * sysdeps/arm/nacl/uname-values.h: New file.
32042
32043 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
32044
32045         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
32046         splitting into fields.
32047
32048 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
32049
32050         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
32051         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
32052         * locale/localeinfo.h: Add enum collation_encoding_type.
32053         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
32054         * programs/ld-collate.c (collate_output): Add encoding type info.
32055         * string/strcoll_l.c (STRDIFF): New function.
32056         * (STRCOLL): Use STRDIFF to skip over equal prefix.
32057         * wcsmbs/wcscoll_l.c: Define STRDIFF.
32058
32059 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
32060
32061         [BZ #18397]
32062         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
32063         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
32064         <fpu_control.h> instead of <math/fpu_control.c>.
32065         * sysdeps/mips/mips32/fpu/Makefile: New file.
32066
32067 2015-05-11  Andreas Schwab  <schwab@suse.de>
32068
32069         [BZ #18007]
32070         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
32071         nss_endgrent.
32072         (_nss_compat_endgrent): Call nss_endgrent.
32073         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
32074         nss_endpwent.
32075         (_nss_compat_endpwent): Call nss_endpwent.
32076         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
32077         needent, call nss_setspent only if non-zero.
32078         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
32079         (internal_endspent): Don't call nss_endspent.
32080         (_nss_compat_endspent): Call nss_endspent.
32081         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
32082         Remove.  All uses removed.
32083         (internal_setent): Remove parameter stayopen, add parameter
32084         stream.  Use it instead of global variable.
32085         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
32086         (internal_endent, internal_getent): Add parameter stream.  Use it
32087         instead of global variable.
32088         (CONCAT(_nss_files_end,ENTNAME))
32089         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
32090         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
32091         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
32092         uses removed.
32093         (internal_setent, internal_endent): Add parameter stream.  Use it
32094         instead of global variable.
32095         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
32096         stream.
32097         (get_next_alias): Add parameter stream.
32098         (_nss_files_getaliasent_r): Pass global stream.
32099         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
32100         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
32101         (_nss_files_gethostbyname4_r): Pass local stream to
32102         internal_setent, internal_getent and internal_endent.  Remove
32103         locking.
32104
32105 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
32106
32107         * tst-strfmon1.c (tests): Update expected currency symbol.
32108
32109 2015-05-08  Roland McGrath  <roland@hack.frob.com>
32110
32111         * sysdeps/nacl/gethostname.c: New file.
32112
32113 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
32114
32115         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
32116         and sinh.
32117         * math/auto-libm-test-out: Regenerated.
32118         * sysdeps/i386/fpu/libm-test-ulps: Update.
32119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32120
32121 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
32122
32123         [BZ #18125]
32124         * stdlib/tst-setcontext3.c: New file.
32125         * stdlib/tst-setcontext3.sh: New file.
32126         * stdlib/Makefile (tests): Add tst-setcontext3.
32127         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
32128         to verify test program created output file.
32129         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
32130         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
32131         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
32132         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
32133
32134 2015-05-06  Roland McGrath  <roland@hack.frob.com>
32135
32136         [BZ #18383]
32137         * elf/tst-tlsalign.c: New file.
32138         * elf/tst-tlsalign-static.c: New file.
32139         * elf/tst-tlsalign-lib.c: New file.
32140         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
32141         (tests-static): Add tst-tlsalign-static.
32142         (modules-names): Add tst-tlsalign-lib.
32143         (test-xfail-tst-tlsalign): New variable.
32144         (test-xfail-tst-tlsalign-static): New variable.
32145
32146         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
32147         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
32148
32149 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
32150
32151         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
32152         csqrt, erfc, sin and sincos.
32153         * math/auto-libm-test-out: Regenerated.
32154         * sysdeps/i386/fpu/libm-test-ulps: Update.
32155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32156
32157 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32158
32159         * sysdeps/aarch64/libm-test-ulps: Update.
32160
32161 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
32162
32163         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
32164         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
32165         * math/auto-libm-test-out: Regenerated.
32166         * sysdeps/i386/fpu/libm-test-ulps: Update.
32167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32168
32169 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
32170
32171         [BZ #18265]
32172         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
32173         (wcsncpy): Likewise.
32174
32175 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32176
32177         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
32178         Assume __ASSUME_FALLOCATE is always true.
32179         * sysdeps/unix/sysv/linux/posix_fallocate64.c
32180         (__posix_fallocate64_l64): Likewise.
32181         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
32182         (posix_fallocate): Likewise.
32183         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
32184         (__posix_fallocate64_l64): Likewise.
32185         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32186         [!__ASSUME_FALLOCATE]: Add comment.
32187
32188 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32189
32190         * sysdeps/unix/sysv/linux/i386/Makefile
32191         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
32192         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
32193         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
32194         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32195         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32196         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
32197         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
32198
32199 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
32200
32201         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
32202         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
32203         tgamma.
32204         * math/auto-libm-test-out: Regenerated.
32205         * sysdeps/i386/fpu/libm-test-ulps: Update.
32206         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32207
32208 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32209
32210         * math/auto-libm-test-in: Add more tests of tgamma.
32211         * math/auto-libm-test-out: Regenerated.
32212         * sysdeps/i386/fpu/libm-test-ulps: Update.
32213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32214
32215         * math/auto-libm-test-in: Add more tests of tanh.
32216         * math/auto-libm-test-out: Regenerated.
32217         * sysdeps/i386/fpu/libm-test-ulps: Update.
32218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32219
32220         * math/auto-libm-test-in: Add more tests of tan.
32221         * math/auto-libm-test-out: Regenerated.
32222         * sysdeps/i386/fpu/libm-test-ulps: Update.
32223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32224
32225         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
32226         * math/auto-libm-test-out: Regenerated.
32227         * sysdeps/i386/fpu/libm-test-ulps: Update.
32228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32229
32230         * math/auto-libm-test-in: Add another test of pow.
32231         * math/auto-libm-test-out: Regenerated.
32232         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32233
32234         * math/auto-libm-test-in: Add more tests of lgamma.
32235         * math/auto-libm-test-out: Regenerated.
32236         * sysdeps/i386/fpu/libm-test-ulps: Update.
32237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32238
32239         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
32240         log1p.
32241         * math/auto-libm-test-out: Regenerated.
32242         * sysdeps/i386/fpu/libm-test-ulps: Update.
32243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32244
32245 2015-05-01  Mark Wielaard  <mjw@redhat.com>
32246
32247         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
32248         Elf64_Chdr structs and ELFCOMPRESS constants.
32249
32250 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32251
32252         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
32253         expm1.
32254         * math/auto-libm-test-out: Regenerated.
32255         * sysdeps/i386/fpu/libm-test-ulps: Update.
32256         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32257
32258         * math/auto-libm-test-in: Add more tests of erf and erfc.
32259         * math/auto-libm-test-out: Regenerated.
32260         * sysdeps/i386/fpu/libm-test-ulps: Update.
32261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32262
32263 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32264
32265         * config.h.in (HAVE_AARCH64_BE): Add.
32266
32267 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
32268
32269         * math/auto-libm-test-in: Add more tests of csqrt.
32270         * math/auto-libm-test-out: Regenerated.
32271         * sysdeps/i386/fpu/libm-test-ulps: Update.
32272         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32273
32274         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32275         * math/auto-libm-test-out: Regenerated.
32276         * sysdeps/i386/fpu/libm-test-ulps: Update.
32277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32278
32279         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
32280
32281 2015-04-29  Roland McGrath  <roland@hack.frob.com>
32282
32283         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
32284         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
32285
32286         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
32287         (euidaccess, eaccess): Define as weak aliases.
32288
32289         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
32290         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
32291         but __suseconds_t is often 'long int' so some sources assume that
32292         type is being used (e.g. they use %ld to print tv_usec).
32293
32294 2015-04-29  Florian Weimer  <fweimer@redhat.com>
32295
32296         [BZ #18007]
32297         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
32298         (CVE-2014-8121)
32299         * nss/tst-nss-getpwent.c: New file.
32300         * nss/Makefile (tests): Add new test.
32301
32302 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
32303
32304         [BZ #18346]
32305         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
32306         exponents less than 48 as cases where high part of mantissa needs
32307         examining to determine whether argument is integral.
32308         * math/libm-test.inc (round_test_data): Add more tests.
32309
32310 2015-04-28  Mark Wielaard  <mjw@redhat.com>
32311
32312         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
32313
32314 2015-04-27  David S. Miller  <davem@davemloft.net>
32315
32316         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
32317         __tls_get_addr.
32318         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
32319
32320 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
32321
32322         [BZ #18333]
32323         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
32324
32325 2015-04-27  Florian Weimer  <fweimer@redhat.com>
32326
32327         [BZ #18333]
32328         * time/tzset.c (parse_tzname): Return error on memory allocation
32329         failure.
32330         * test-skeleton.c (struct temp_name_list): Change type of name
32331         member to non-const.
32332         (add_temp_file): Create a copy of the file name.
32333         (delete_temp_files): Deallocate memory.
32334         (create_temp_file): Add comment.
32335
32336 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32337
32338         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
32339         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
32340
32341 2015-04-24  Roland McGrath  <roland@hack.frob.com>
32342
32343         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
32344         * sysdeps/arm/configure: Regenerated.
32345
32346 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32347
32348         [BZ #17715]
32349         * time/tzfile.c (__tzfile_read): Check for large values of
32350         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
32351         * time/tzset.c (__tzstring_len): New function, based on the old
32352         __tzstring function.
32353         (__tzstring): Call __tzstring_len.
32354         (parse_tzname): New helper function extracted from
32355         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
32356         the input string.
32357         (parse_offset): New helper function extracted from
32358         __tzset_parse_tz.  Replace switch with fallthrough with
32359         initialization before sscanf.
32360         (parse_rule): Likewise.
32361         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
32362         new-style function definition.
32363         * timezone/Makefile (tests): Add tst-tzset.
32364         (tst-tzset.out): Dependencies on time zone files.
32365         (tst-tzset-ENV): Set TZDIR.
32366         (testdata/XT%): Copy crafted time zone files.
32367         * timezone/README: Mention crafted time zone files.
32368         * timezone/testdata/XT1, timezone/testdata/XT2,
32369         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
32370         files.
32371         * timezone/tst-tzset.c: New test.
32372
32373 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32374
32375         * Makeconfig (+gccwarn): Remove -Winline.
32376
32377 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32378
32379         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
32380
32381 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32382
32383         * NEWS: Mention sysconf() cache information support for s390.
32384         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
32385
32386 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
32387
32388         * math/k_casinh.c (__kernel_casinh): Use __copysign.
32389         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
32390         (__nearbyint): Likewise.
32391         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
32392         (copysignl): Likewise.
32393
32394 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
32395
32396         [BZ #18287]
32397         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
32398         based on padding.  (CVE-2015-1781)
32399
32400 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32401
32402         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
32403         libc-vdso.h.
32404         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
32405         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
32406         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
32407         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
32408         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
32409         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
32410         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
32411         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
32412         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
32413         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
32414         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
32415         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
32416         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
32417         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
32418         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
32419         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
32420         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
32421         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
32422         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
32423         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
32424         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
32425         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
32426         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
32427
32428 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
32429
32430         * stdlib/setenv.c (__add_to_environ):
32431         Dump core quickly if setenv (..., NULL, ...) is called.
32432         This time, do it the right way, and pacify GCC with a pragma.
32433
32434 2015-04-17  Roland McGrath  <roland@hack.frob.com>
32435
32436         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
32437         IMAP->l_prev cannot be null, and #if out the code for the contrary
32438         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
32439         believe that NS (&_dl_ns[NSID]) could point outside the array.
32440
32441         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
32442         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
32443         before using NSID as an index.
32444
32445 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
32446
32447         [BZ #17825]
32448         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
32449         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
32450         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
32451
32452 2015-04-17  Roland McGrath  <roland@hack.frob.com>
32453
32454         Add preliminary port to Google Native Client on ARM.
32455         * abi-tags (.*-.*-nacl.*): New entry.
32456         * sysdeps/arm/nacl: New directory.
32457         * sysdeps/nacl: New directory.
32458
32459 2015-04-16  David S. Miller  <davem@davemloft.net>
32460
32461         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
32462         lowlevellock-futex.h
32463
32464 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
32465
32466         * sysdeps/tile/configure.ac: New file.
32467         * sysdeps/tile/configure: Regenerated.
32468
32469 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32470
32471         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
32472         conditionals for weak_alias and libc_hidden_weak.
32473         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
32474         libc_hidden_weak and weak_alias.
32475         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
32476         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
32477         and weak_alias for static one.
32478
32479 2015-04-15  David S. Miller  <davem@davemloft.net>
32480
32481         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
32482
32483 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32484
32485         [BZ #18206]
32486         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
32487           Use signed comparision instead of substraction to avoid
32488           overflow bug.
32489         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
32490           Take the sign of ret.
32491         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
32492           Do not expect precise return values. Only the sign matters.
32493         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
32494         * wcsmbs/test-wcsncmp.c: New File.
32495         * string/test-strncmp.c: Add wcsncmp support.
32496
32497 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32498
32499         [BZ #6792]
32500         * math/w_log1p.c: New file.
32501         * math/w_log1pf.c: Likewise.
32502         * math/w_log1pl.c: Likewise.
32503         * math/Makefile (libm-calls): Add w_log1p.
32504         * math/s_log1pl.c (log1pl): Remove weak_alias.
32505         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
32506         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
32507         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
32508         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
32509         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
32510         [NO_LONG_DOUBLE] (log1pl): Likewise.
32511         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
32512         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
32513         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
32514         (log1p): Remove long_double_symbol.
32515         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
32516         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
32517         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
32518         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
32519         remove weak_alias for corresponding log1p function.
32520         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
32521         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
32522         * sysdeps/ia64/fpu/w_log1p.c: New file.
32523         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
32524         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
32525         * math/libm-test.inc (log1p_test_data): Add errno expectations.
32526
32527 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
32528
32529         [BZ #18247]
32530         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
32531         decimal exponent by 1.
32532         * stdlib/tst-strtod-round-data: Add more tests.
32533         * stdlib/tst-strtod-round.c (tests): Regenerated.
32534
32535 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
32536
32537         * math/auto-libm-test-in: Add more tests of clog and clog10.
32538         * math/auto-libm-test-out: Regenerated.
32539         * sysdeps/i386/fpu/libm-test-ulps: Update.
32540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32541
32542 2015-04-09  Roland McGrath  <roland@hack.frob.com>
32543
32544         * Makeconfig (module-cppflags): Exclude all .v.i files.
32545         (skip-module-cppflags): Variable removed.
32546
32547         * configure.ac (libc_config_ok): Initialize before reading
32548         preconfigure scripts, not after.
32549         * configure: Regenerated.
32550
32551         * test-skeleton.c (TIMEOUT): Move #define to top level.
32552         (main): Grok environment variable TEST_DIRECT.  If set, print
32553         test expectation details into that file and then behave as if
32554         given --direct.
32555
32556 2015-04-09  Florian Weimer  <fweimer@redhat.com>
32557
32558         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
32559         warning on 32-bit.
32560
32561 2015-04-08  David S. Miller  <davem@davemloft.net>
32562
32563         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32564
32565 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
32566
32567         * math/auto-libm-test-in: Add more tests of atanh.
32568         * math/auto-libm-test-out: Regenerated.
32569         * sysdeps/i386/fpu/libm-test-ulps: Update.
32570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32571
32572         * math/auto-libm-test-in: Add more tests of atan.
32573         * math/auto-libm-test-out: Regenerated.
32574         * sysdeps/i386/fpu/libm-test-ulps: Update.
32575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32576
32577 2015-04-08  Florian Weimer  <fweimer@redhat.com>
32578
32579         * elf/pldd.c (main): Rewrite to use struct
32580         scratch_buffer instead of extend_alloca.
32581         * elf/pldd-xx.c (find_maps): Likewise.
32582         * grp/initgroups.c: Include <scratch_buffer.h> instead of
32583         <alloca.h>.
32584         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
32585         scratch_buffer instead of extend_alloca.
32586         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
32587         grp/compat-initgroups.c.
32588         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
32589         Rewrite to use struct scratch_buffer instead of extend_alloca.
32590         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
32591         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32592
32593 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
32594
32595         * math/auto-libm-test-in: Add more tests of cbrt.
32596         * math/auto-libm-test-out: Regenerated.
32597         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32598
32599         * math/auto-libm-test-in: Add more tests of cabs.
32600         * math/auto-libm-test-out: Regenerated.
32601         * sysdeps/i386/fpu/libm-test-ulps: Update.
32602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32603
32604         [BZ #18210]
32605         [BZ #18211]
32606         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
32607         (__ieee754_atan2): Set FE_TONEAREST mode for internal
32608         computations.
32609         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
32610         clog10.
32611         * math/auto-libm-test-out: Regenerated.
32612         * sysdeps/i386/fpu/libm-test-ulps: Update.
32613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32614
32615         [BZ #18197]
32616         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
32617         (atan): Set FE_TONEAREST mode for internal computations.
32618         * math/auto-libm-test-in: Add more tests of atan.
32619         * math/auto-libm-test-out: Regenerated.
32620
32621 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
32622
32623         [BZ #17930]
32624         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
32625
32626 2015-04-07  Florian Weimer  <fweimer@redhat.com>
32627
32628         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
32629
32630 2015-04-07  Florian Weimer  <fweimer@redhat.com>
32631
32632         * include/scratch_buffer.h: New file.
32633         * malloc/scratch_buffer_grow.c: Likewise.
32634         * malloc/scratch_buffer_grow_preserve.c: Likewise.
32635         * malloc/scratch_buffer_set_array_size.c: Likewise.
32636         * malloc/tst-scratch_buffer.c: Likewise.
32637         * malloc/Makefile (routines): Add scratch_buffer_grow.
32638         (tests): Add test case.
32639         * malloc/Versions (GLIBC_PRIVATE): Export
32640         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
32641         __libc_scratch_buffer_set_array_size.
32642
32643 2015-04-06  Richard Henderson  <rth@redhat.com>
32644
32645         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
32646         * sysdeps/alpha/fpu/libm-test-ulps: Update.
32647
32648         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
32649         unsigned int before printing.
32650
32651 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
32652
32653         [BZ #17596]
32654         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
32655         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
32656
32657 2015-04-02  Florian Weimer  <fweimer@redhat.com>
32658
32659         * include/libc-internal.h (libc_max_align_t): Define.
32660
32661 2015-04-02  Andreas Schwab  <schwab@suse.de>
32662
32663         [BZ #16850]
32664         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
32665
32666 2015-04-02  Mel Gorman  <mgorman@suse.de>
32667
32668         [BZ #17195]
32669         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
32670         as well as the main arena.
32671
32672 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32673
32674         [BZ #18185]
32675         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
32676         sharing L2 cache to 2 for Silvermont/Knights Landing.
32677
32678 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32679
32680         [BZ #17711]
32681         * config.make.in (have-protected-data): New.
32682         * configure.ac: Check linker support for protected data symbol.
32683         * configure: Regenerated.
32684         * elf/Makefile (modules-names): Add tst-protected1moda and
32685         tst-protected1modb if $(have-protected-data) is yes.
32686         (tests): Add tst-protected1a and tst-protected1b if
32687         $(have-protected-data) is yes.
32688         ($(objpfx)tst-protected1a): New.
32689         ($(objpfx)tst-protected1b): Likewise.
32690         (tst-protected1modb.so-no-z-defs): Likewise.
32691         * elf/tst-protected1a.c: New file.
32692         * elf/tst-protected1b.c: Likewise.
32693         * elf/tst-protected1mod.h: Likewise.
32694         * elf/tst-protected1moda.c: Likewise.
32695         * elf/tst-protected1modb.c: Likewise.
32696
32697 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32698
32699         [BZ #17711]
32700         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
32701         indicates it is called from do_lookup_x on relocation against
32702         protected data, skip the data definion in the executable from
32703         copy reloc.
32704         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
32705         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
32706         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
32707         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
32708         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
32709         otherwise to 0.
32710         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
32711         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
32712         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
32713         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
32714         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
32715         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
32716
32717 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
32718
32719         * sysdeps/nptl/pthread.h: Remove duplicate definition of
32720         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
32721
32722 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
32723
32724         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
32725         THREAD_SETMEM_NC.
32726         * sysdeps/x86_64/nptl/tls.h: Ditto.
32727
32728 2015-03-27  Roland McGrath  <roland@hack.frob.com>
32729
32730         * dlfcn/tststatic.c (main): Converted to ...
32731         (do_test): ... this.
32732         (TEST_FUNCTION): New macro.
32733         Include test-skeleton.c.
32734
32735 2015-03-26  Alan Modra  <amodra@gmail.com>
32736
32737         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
32738         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
32739         zero for undefined weak.
32740         (elf_machine_plt_conflict): Similarly.
32741
32742 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
32743
32744         * math/auto-libm-test-in: Add more tests of acosh, asinh and
32745         atanh.
32746         * math/auto-libm-test-out: Regenerated.
32747         * sysdeps/i386/fpu/libm-test-ulps: Update.
32748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32749
32750         * math/auto-libm-test-in: Add another test of asin.
32751         * math/auto-libm-test-out: Regenerated.
32752         * sysdeps/i386/fpu/libm-test-ulps: Update.
32753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32754
32755         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
32756         Remove macro.
32757         (LLL_EBX_REG): Likewise.
32758         (LLL_ENTER_KERNEL): Likewise.
32759
32760         * math/auto-libm-test-in: Add more tests of asin.
32761         * math/auto-libm-test-out: Regenerated.
32762         * sysdeps/i386/fpu/libm-test-ulps: Update.
32763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32764
32765         [BZ #18138]
32766         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
32767         libc_do_syscall_args): New structure.
32768         (INTERNAL_SYSCALL_MAIN_0): New macro.
32769         (INTERNAL_SYSCALL_MAIN_1): Likewise.
32770         (INTERNAL_SYSCALL_MAIN_2): Likewise.
32771         (INTERNAL_SYSCALL_MAIN_3): Likewise.
32772         (INTERNAL_SYSCALL_MAIN_4): Likewise.
32773         (INTERNAL_SYSCALL_MAIN_5): Likewise.
32774         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
32775         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
32776         Replace conditional definitions by conditional definitions of ....
32777         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
32778         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
32779         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
32780         (libpthread-sysdep_routines): Add libc-do-syscall.
32781         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
32782         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
32783         to __NR_futex not 240.
32784
32785 2015-03-25  Alan Modra  <amodra@gmail.com>
32786
32787         * NEWS: Advertise TLS optimization.
32788         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
32789         (DT_PPC_NUM): Increment.
32790         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
32791         (CHECK_STATIC_TLS): Use here.
32792         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
32793         TLS descriptors.
32794         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
32795         * sysdeps/powerpc/dl-tls.c: New file.
32796         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
32797         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
32798         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
32799         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
32800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
32801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
32802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
32803
32804 2015-03-25  Alan Modra  <amodra@gmail.com>
32805
32806         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
32807         for overlapping .opd entries" to "support...".
32808         * sysdeps/powerpc/powerpc64/configure: Regenerate
32809
32810 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
32811
32812         * math/auto-libm-test-in: Add more tests of acos.
32813         * math/auto-libm-test-out: Regenerated.
32814         * sysdeps/i386/fpu/libm-test-ulps: Update.
32815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32816
32817         * math/auto-libm-test-in: Add more tests of expm1.
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 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
32823
32824         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32825         * math/auto-libm-test-out: Regenerated.
32826         * sysdeps/i386/fpu/libm-test-ulps: Update.
32827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32828
32829         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
32830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32831
32832         * math/auto-libm-test-in: Add more tests of log2.
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 2015-03-23  Roland McGrath  <roland@hack.frob.com>
32838
32839         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
32840         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
32841         _IO_IS_APPENDING bit in READ_WRITE instead.
32842
32843 2015-03-23  Florian Weimer  <fweimer@redhat.com>
32844
32845         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
32846         (__determine_cpumask_size): Replace extend_alloca with a
32847         variable-length array.  Do not treat res == 0 as an error.
32848
32849 2015-03-23  Florian Weimer  <fweimer@redhat.com>
32850
32851         [BZ #18100]
32852         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
32853         and integer overflow.
32854         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
32855         (main): Add integer overflow tests.
32856         * manual/pattern.texi (Calling Wordexp): Document additional use
32857         for WRDE_SYNTAX.
32858
32859 2015-03-23  Alan Modra  <amodra@gmail.com>
32860
32861         * config.h.in: Remove HAVE_ASM_PPC_REL16.
32862         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
32863         and false branch of conditional.
32864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
32865         Likewise.
32866
32867 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
32868
32869         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
32870         libc-modules.h
32871         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
32872         unused declaration of _hurd_intr_rpc_msg_in_trap.
32873         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
32874         defined instead of whether it is non-zero.
32875         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
32876         input constraint instead of both input and output constraint.  Use ecx
32877         clobber instead of %ecx.
32878         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
32879         mutex_unlock): Use a statement expression instead of an expression list.
32880         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
32881         type to vm_size_t instead of vm_address_t.
32882         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
32883         defined instead of whether it is non-zero.
32884         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
32885         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
32886         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
32887         comparisons with mapaddr.
32888         * nscd/nscd-client.h: Include <time.h>.
32889         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
32890         9th parameter to __vm_region instead of int.
32891         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
32892         * scripts/check-local-headers.sh (exclude): Add device/,
32893         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
32894         cthreads.h.
32895
32896 2015-03-19  Roland McGrath  <roland@hack.frob.com>
32897
32898         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
32899         to account for alignment padding.
32900         * sysdeps/arm/memmove.S: Likewise.
32901
32902 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
32903
32904         * sysdeps/unix/sysv/linux/generic/README: New file.
32905
32906 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
32907
32908         [BZ #18138]
32909         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
32910         (futex_abstimed_wait)
32911         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
32912         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
32913         of lll_futex_timed_wait.
32914
32915 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
32916
32917         [BZ #17542]
32918         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
32919
32920 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
32921
32922         [BZ #17090]
32923         [BZ #17620]
32924         [BZ #17621]
32925         [BZ #17628]
32926         * NEWS: Update.
32927         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
32928         entries with Static TLS too.  Skip entries past the end of the
32929         allocated DTV, from Alan Modra.
32930         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
32931         Static TLS DTV entry set up from...
32932         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
32933         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
32934         * nptl/allocatestack.c (init_one_static_tls): ... and here...
32935         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
32936         for Static TLS.
32937         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
32938         that the slot we find is associated with the given map before
32939         using its generation count.
32940         * nptl_db/db_info.c: Include ldsodefs.h.
32941         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
32942         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
32943         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
32944         (link_map::l_tls_offset): New struct field.
32945         (dtv_t::counter): Likewise.
32946         (rtld_global): New struct.
32947         (_rtld_global): New rtld variable.
32948         (dl_tls_dtv_slotinfo_list): New rtld global field.
32949         (dtv_slotinfo_list): New struct.
32950         (dtv_slotinfo): Likewise.
32951         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
32952         (td_lookup): Rename to...
32953         (td_mod_lookup): ... this.  Use new mod parameter instead of
32954         LIBPTHREAD_SO.
32955         * nptl_db/td_thr_tlsbase.c: Include link.h.
32956         (dtv_slotinfo_list, dtv_slotinfo): New functions.
32957         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
32958         addresses even if the DTV is out of date or missing them.
32959         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
32960         index zero-length arrays.
32961         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
32962         (td_lookup): Make it a macro implemented in terms of...
32963         (td_mod_lookup): ... this declaration.
32964         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
32965         (DB_MAIN_VARIABLE): Likewise.
32966
32967 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
32968
32969         [BZ #18134]
32970         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
32971
32972 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
32973
32974         * stdlib/setenv.c (__add_to_environ): Revert previous change.
32975
32976 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
32977
32978         [BZ #18128]
32979         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
32980         (atomic_add, atomic_increment_and_test)
32981         (atomic_decrement_and_test): Fix 64-bit arithmetic.
32982
32983 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
32984
32985         * stdlib/setenv.c (__add_to_environ):
32986         Dump core quickly if setenv (..., NULL, ...) is called.
32987
32988 2015-03-13  Roland McGrath  <roland@hack.frob.com>
32989
32990         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
32991         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
32992         all the necessary asm magic in one place.
32993         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
32994         using those.
32995
32996 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
32997
32998         [BZ #14906]
32999         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
33000         traced file mtime. Use consistent log message.
33001         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
33002         (register_traced_file): Call install_watches. Always set mtime.
33003         (invalidate_cache): Iterate over all trace files. Call install_watches.
33004         (inotify_check_files): Don't inline. Handle watching parent
33005         directories and configuration file movement in and out.
33006         (handle_inotify_events): New function.
33007         (main_loop_poll): Call handle_inotify_events.
33008         (main_loop_epoll): Likewise.
33009         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
33010         (struct traced_file): Use array of inotify fds. Add parent directory,
33011         and basename.
33012         (struct database_dyn): Remove unused file_mtime.
33013         (init_traced_file): New inline function.
33014         (define_traced_file): New macro.
33015         * nss/nss_db/db-init.c: Use define_traced_file.
33016         (_nss_db_init): Use init_traced_file.
33017         * nss/nss_files/files-init.c: Use define_traced_file.
33018         (_nss_files_init): Use init_traced_file.
33019
33020 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
33021
33022         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
33023         [_LIBC]: Do not include <stdlib.h>.
33024         [!_LIBC] (abort): Remove declaration.
33025         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
33026         _FP_STATIC_ASSERT instead of conditionally calling abort.
33027         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
33028         (_FP_EXTEND_CNAN): Likewise.
33029         (FP_TRUNC): Likewise.
33030         (__FP_CLZ): Likewise.
33031         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
33032
33033 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
33034
33035         * manual/string.texi (XPG basename): Fix prototype.
33036
33037 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
33038
33039         [BZ #18080]
33040         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
33041         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
33042         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
33043         (__setcontext): Likewise.
33044         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
33045         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
33046         Call rt_sigprocmask syscall one time to set new signal mask
33047         and retrieve the current signal mask instead of two calls.
33048         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
33049         (__swapcontext): Likewise.
33050         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
33051         * stdlib/tst-setcontext2.c: New file.
33052
33053 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
33054
33055         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33056
33057 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
33058
33059         [BZ #18093]
33060         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
33061         the wrong size.
33062
33063 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33064
33065         [BZ #18043]
33066         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
33067
33068 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33069
33070         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
33071         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
33072         Remove define.
33073         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
33074         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
33075         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
33076         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
33077         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
33078         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
33079         define.
33080         * nptl_db/td_symbol_list.c (td_lookup): Remove
33081         HAVE_ASM_GLOBAL_DOT_NAME code.
33082         * sysdeps/powerpc/powerpc64/configure.ac: Remove
33083         HAVE_ASM_GLOBAL_DOT_NAME check.
33084         * sysdeps/powerpc/powerpc64/configure: Regenerate.
33085         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
33086         (DOT_LABEL): Remove define.
33087         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
33088         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
33089         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
33090         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
33091         (__TLS_GET_ADDR): Likewise.
33092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
33093         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
33094
33095 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
33096
33097         [BZ #18111]
33098         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
33099         (_FPU_SETCW): Initialize cw from fpsr before storing.
33100         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
33101         (fesetexceptflag): Rewrite using fpu_control.h.
33102         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
33103
33104 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
33105
33106         [BZ #18110]
33107         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
33108         asms.
33109         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
33110
33111 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
33112
33113         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
33114         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
33115         abort.
33116         (_FP_FMA): Likewise.
33117         (_FP_DIV): Likewise.
33118
33119 2015-03-10  Roland McGrath  <roland@hack.frob.com>
33120
33121         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
33122         with 0 in that case.
33123         * Makefile (summarize-tests): New canned sequence, factored out of
33124         commands for targets tests and xtests.  Display summary lines that
33125         don't start with PASS: or XFAIL: rather than ones that do start with
33126         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
33127         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
33128         do start with ERROR: or FAIL:.
33129         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
33130         (except for [$(build-shared) = yes]).
33131         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
33132         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
33133         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
33134         * nptl/Makefile: Revert 2015-03-04 changes.
33135         [$(CXX) empty] (tests-unsupported): New variable.
33136         * debug/Makefile: Likewise.
33137
33138         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
33139         gnulib file.  Replace __attribute with __attribute__ throughout.
33140
33141 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
33142
33143         * sysdeps/hppa/fpu/libm-test-ulps: Update.
33144
33145 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33146
33147         [BZ #18104]
33148         * math/auto-libm-test-in: Add another test of pow.
33149         * math/auto-libm-test-out: Regenerated.
33150
33151 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33152
33153         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
33154         $(config-cflags-nofma).
33155
33156 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33157
33158         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
33159         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
33160         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
33161         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
33162         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
33163         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
33164         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
33165         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
33166         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
33167         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
33168         Add comment on closing #endif.
33169
33170 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33171
33172         * posix/wordexp.c (CHAR_IN_SET): New macro.
33173         (parse_param): Use it.
33174
33175 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33176
33177         * sysdeps/powerpc/fpu/libm-test-ulps: update.
33178
33179 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33180
33181         [BZ #18043]
33182         * posix/wordexp.c (parse_param): Fix buffer overflow.
33183         * posix/wordexp-test.c (test_case): Add test case.
33184
33185 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33186
33187         [BZ #18042]
33188         * posix/wordexp.c (parse_backtick): Fix off-by-one.
33189         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
33190
33191 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33192
33193         [BZ #18043]
33194         * posix/wordexp-test.c (test_case): Add test for BZ #18043
33195         (do_bz18043): Delete.
33196         (at_page_end): New.
33197         (testit): Refactor to have words at the edge of unreadable page.
33198
33199 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
33200
33201         [BZ #16734]
33202         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
33203         Cleanup read-only streams as well.
33204         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
33205
33206 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33207
33208         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
33209         <bits/libc-lockP.h>
33210
33211 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
33212
33213         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
33214         on [__KERNEL__].
33215         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
33216         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
33217         * soft-fp/op-common.h (_FP_DECL): Likewise.
33218
33219 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
33220
33221         * elf/ifuncdep2.c (global): Replace
33222         __attribute__((visibility("protected"))) with
33223         asm (".protected global").
33224         * elf/ifuncmod1.c (global): Likewise.
33225         * elf/ifuncmod5.c (global): Likewise.
33226
33227 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
33228
33229         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
33230         <asm/sfp-machine.h> instead of <sfp-machine.h>.
33231
33232 2015-03-06  Roland McGrath  <roland@hack.frob.com>
33233
33234         * manual/install.texi (Configuring and compiling):
33235         Document test-wrapper-env-only.
33236         * INSTALL: Regenerated.
33237
33238 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
33239
33240         [BZ #18043]
33241         * posix/wordexp.c (parse_param): Fix buffer overflow.
33242         * posix/wordexp-test.c (do_bz18043): Add test case.
33243
33244 2015-03-06  Vincent Bernat  <vincent@bernat.im>
33245
33246         * time/tst-strptime2.c (do_test): Ensure failing tests are
33247         reported correctly.
33248         * time/tst-strptime3.c (do_test): Likewise.
33249
33250 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
33251
33252         Fix aio_error thread-safety.
33253         * sysdeps/pthread/aio_error.c: New file
33254         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
33255         synchronization.
33256
33257 2015-03-06  Florian Weimer  <fweimer@redhat.com>
33258
33259         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
33260         (group_number, vfprintf): Use it.
33261         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
33262         (JUMP, REF): Use it.
33263         (WORK_BUFFER_SIZE): New enum constant.
33264         (process_arg, vfprintf): Use it.
33265
33266 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
33267
33268         * manual/errno.texi (Error Messages): Complete example function
33269         by adding missing #define.
33270         (program_invocation_name): Add statement indicating GNU
33271         extension and reference which header file declares the variable.
33272         (program_invocation_short_name): Likewise.
33273
33274 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
33275
33276         * manual/errno.texi (Error Messages): Delete strerror ISO C89
33277         compatibility note.
33278
33279 2015-03-05  Roland McGrath  <roland@hack.frob.com>
33280
33281         * Makeconfig (test-wrapper-env-only): New variable.
33282         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
33283         then use that with $(test-wrapper-env-only) rather than using
33284         $(test-wrapper-env) $(run-program-env) $($*-ENV).
33285
33286 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
33287
33288         [BZ #18082]
33289         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
33290         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
33291         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
33292         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
33293         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
33294         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
33295         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
33296         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
33297         Likewise.
33298         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
33299         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
33300         Likewise.
33301         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
33302         Likewise.
33303         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
33304         Likewise.
33305         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
33306         Likewise.
33307         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
33308         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
33309         Likewise.
33310         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
33311         Likewise.
33312         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
33313         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
33314
33315 2015-03-04  Roland McGrath  <roland@hack.frob.com>
33316
33317         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
33318         (ETH_ALEN): New macro.
33319         (struct ether_addr): Use it for length of ether_addr_octet.
33320
33321         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
33322         (setdb): Don't call __nss_configure_lookup for "rpc".
33323         (do_test): Don't call test_rpc.
33324         (output_rpcent, test_rpc): Functions moved ...
33325         * sunrpc/test-rpcent.c: ... to this new file.
33326         * sunrpc/Makefile (tests): Add it.
33327
33328         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
33329         __xpg_sigpause.
33330         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
33331         * nptl/tst-signal6.c: Likewise.
33332         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
33333         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
33334
33335         * configure.ac (libc_cv_cxx_link_ok): New check.
33336         Reset CXX to empty if it fails to link.
33337         * configure: Regenerated.
33338         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
33339         bug-atexit3-lib only if $(CXX) is nonempty.
33340         * nptl/Makefile (tests): Likewise for tst-cancel24.
33341         (tests, tests-static): Likewise for tst-cancel24-static.
33342         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
33343         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
33344         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
33345         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
33346
33347 2015-03-04  Andreas Schwab  <schwab@suse.de>
33348
33349         [BZ #17631]
33350         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
33351         for non-GCC compilers.
33352         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
33353         Likewise.
33354
33355 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33356
33357         [BZ #17776]
33358         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
33359         integer before bitwise and assembly operations.
33360         (feclearexcept): Likewise.
33361         * math/test-fenvinline.c: New file.
33362         * math/Makefile: Add test-fenvinline test.
33363
33364 2015-03-03  Alan Modra  <amodra@gmail.com>
33365
33366         [BZ #16512]
33367         * scripts/localplt.awk: Strip off symbol version.
33368         * NEWS: Mention bug fix.
33369
33370 2015-03-02  Roland McGrath  <roland@hack.frob.com>
33371
33372         * sysdeps/pthread/timer_routines.c
33373         (timer_free_list, thread_free_list, thread_active_list): Make static.
33374
33375 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
33376
33377         [BZ #17779]
33378         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33379         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33380         Undefine.
33381         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33382         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33383         Likewise.
33384         * sysdeps/unix/sysv/linux/sh/kernel-features.h
33385         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33386         Likewise.
33387
33388 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
33389
33390         [BZ #18036]
33391         * posix/fnmatch_loop.c (END): Detect invalid pattern.
33392         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
33393
33394 2015-03-02  Andreas Schwab  <schwab@suse.de>
33395
33396         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
33397         variable name.
33398
33399 2015-03-02  Florian Weimer  <fweimer@redhat.com>
33400
33401         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
33402         Return error status.
33403
33404 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
33405
33406         [BZ #15969]
33407         * locale/findlocale.c (_nl_find_locale): Introduce const
33408         version of loc_name and drop unsafe type casts.
33409
33410 2015-02-27  Roland McGrath  <roland@hack.frob.com>
33411
33412         * dlfcn/tststatic2.c (main): Converted to ...
33413         (do_test): ... this.
33414         (TEST_FUNCTION): New macro.
33415         Include test-skeleton.c.
33416
33417 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
33418
33419         [BZ #17711]
33420         * elf/Makefile (tests): Add vismain only if PIE is enabled.
33421         (tests-pie): Add vismain.
33422         (CFLAGS-vismain.c): New.
33423         * elf/vismain.c: Add comments for PIE requirement.
33424
33425 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33426
33427         [BZ #18046]
33428         [BZ #18047]
33429         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
33430         0x1p-56L as threshold for just returning the argument.
33431         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
33432         0x1p-32L as threshold for just returning the argument.
33433         * math/auto-libm-test-in: Add more tests of atanh.
33434         * math/auto-libm-test-out: Regenerated.
33435         * sysdeps/i386/fpu/libm-test-ulps: Update.
33436         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
33437
33438 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
33439
33440         * string/bcopy.c (bcopy): Call memmove for performance.
33441
33442 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
33443
33444         * string/bzero.c (__bzero): Call memset for performance.
33445
33446 2015-02-27  John David Anglin  <dave.anglin@bell.net>
33447
33448         [BZ #18068]
33449         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
33450         to 00100000.
33451
33452 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33453
33454         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
33455
33456 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
33457
33458         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
33459         (__kernel_standard): Use CSTR macro when setting exc.name.
33460         * sysdeps/ieee754/Makefile [$(subdir) = math]
33461         (CFLAGS-k_standard.c): Remove variable.
33462
33463         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
33464         setting p and q from "else if" to "else".
33465         (qzero): Likewise.
33466         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
33467         (qone): Likewise.
33468         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
33469         (qzerof): Likewise.
33470         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
33471         (qonef): Likewise.
33472         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
33473         (qzero): Likewise.
33474         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
33475         (qone): Likewise.
33476
33477         [BZ #18038]
33478         [BZ #18039]
33479         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
33480         return pi/2 for arguments below 0x1p-113L.
33481         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
33482         return pi/2 for arguments below 0x1p-106L.
33483         * math/auto-libm-test-in: Add more tests of acos.
33484         * math/auto-libm-test-out: Regenerated.
33485
33486         [BZ #16351]
33487         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
33488         (MO): New macro.
33489         (__ieee754_asin): Force underflow exception for results with small
33490         absolute value.
33491         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
33492         (MO): New macro.
33493         (__ieee754_asinf): Force underflow exception for results with
33494         small absolute value.
33495         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
33496         (__ieee754_asin): Force underflow exception for results with small
33497         absolute value.
33498         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
33499         (__ieee754_asinf): Force underflow exception for results with
33500         small absolute value.
33501         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
33502         (__ieee754_asinl): Force underflow exception for results with
33503         small absolute value.
33504         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
33505         (__ieee754_asinl): Force underflow exception for results with
33506         small absolute value.
33507         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
33508         (__ieee754_asinl): Force underflow exception for results with
33509         small absolute value.
33510         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
33511         Include <math.h>.
33512         * math/auto-libm-test-in: Do not mark underflow exceptions as
33513         possibly missing for bug 16351.
33514         * math/auto-libm-test-out: Regenerated.
33515
33516         [BZ #18030]
33517         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
33518         of power of 2 down when low part has opposite sign.
33519         * math/libm-test.inc (logb_test_data): Add more tests.
33520
33521 2015-02-26  Andreas Schwab  <schwab@suse.de>
33522
33523         [BZ #18032]
33524         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
33525         over collating symbol inside a bracket expression.  Minor cleanup.
33526         * posix/tst-fnmatch3.c (do_test): Add test case.
33527
33528 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
33529
33530         [BZ #18029]
33531         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
33532         Adjust exponent of power of 2 down when low part has opposite
33533         sign.
33534         * math/libm-test.inc (ilogb_test_data): Add more tests.
33535
33536 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
33537
33538         [BZ #15969]
33539         * locale/findlocale.c (_nl_find_locale): Fix constness error in
33540         the previous change.
33541
33542         [BZ #15969]
33543         * locale/findlocale.c (_nl_find_locale): Retry archive search
33544         after alias expansion.
33545
33546 2015-02-25  Roland McGrath  <roland@hack.frob.com>
33547
33548         * iconv/tst-iconv3.c (main): Converted to ...
33549         (do_test): ... this.
33550         (TEST_FUNCTION): New macro.
33551         Include test-skeleton.c.
33552
33553         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
33554         (convert): Make function static.
33555         (test_unalign): Likewise.  Add const to argument pointee types.
33556         (main): Replace with static function do_test.
33557         Print "Succeeded." only if RET is zero.
33558         (TEST_FUNCTION): New macro.
33559         Include test-skeleton.c.
33560
33561         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
33562         returns a null pointer.
33563
33564 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33565
33566         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
33567         to __memcpy_ppc only for static builds.
33568
33569 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
33570
33571         [BZ #18020]
33572         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
33573         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
33574         * math/auto-libm-test-in: Add more tests of asinh.
33575         * math/auto-libm-test-out: Regenerated.
33576         * sysdeps/i386/fpu/libm-test-ulps: Update.
33577         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33578
33579 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
33580
33581         [BZ #15850]
33582         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
33583         and ip6_mtuinfo definitions here.
33584         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
33585         in this define too.  Update comment.
33586
33587 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
33588
33589         * elf/sprof.c (load_shobj): Tweak error message to match others.
33590
33591 2015-02-24  Kevin Easton  <kevin@guarana.org>
33592
33593         [BZ #16145] (partial fix)
33594         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
33595         to reduce lock contention.
33596
33597 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
33598
33599         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
33600         (struct timex): Update time comment.
33601         (ADJ_SETOFFSET): Define.
33602
33603 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
33604
33605         [BZ #18019]
33606         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
33607         2**56 not 2**28 as threshold for log (2x) formula.
33608         * math/auto-libm-test-in: Add more tests of acosh.
33609         * math/auto-libm-test-out: Regenerated.
33610         * sysdeps/i386/fpu/libm-test-ulps: Update.
33611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33612
33613 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
33614
33615         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
33616         parenthesis around the buf assignment.
33617         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
33618
33619 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
33620
33621         [BZ #16783]
33622         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
33623         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
33624         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
33625         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
33626         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
33627         * math/libm-test.inc (scalb_test_data): Add more tests.
33628
33629 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
33630
33631         [BZ #17916]
33632         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
33633         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
33634
33635 2015-02-24  Eric Rannaud  <e@nanocritical.com>
33636
33637         [BZ #17523]
33638         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
33639         * io/bits/fcntl2.h (open): Use it.
33640         (openat): Likewise.
33641         * io/open.c (__libc_open): Likewise.
33642         * io/open64.c (__libc_open64): Likewise.
33643         * io/open64_2.c (__open64_2): Likewise.
33644         * io/open_2.c (__open_2): Likewise.
33645         * io/openat.c (__openat): Likewise.
33646         * io/openat64.c (__openat64): Likewise.
33647         * io/openat64_2.c (__openat64_2): Likewise.
33648         * io/openat_2.c (__openat_2): Likewise.
33649         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
33650         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
33651         * sysdeps/posix/open64.c (__libc_open64): Likewise.
33652         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
33653         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
33654         (__open_nocancel): Likewise.
33655         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
33656         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
33657         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
33658
33659 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
33660
33661         [BZ #14841]
33662         * resolv/gethnamaddr.c (getanswer): Skip logging if
33663         RES_USE_DNSSEC is set.
33664         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
33665
33666 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
33667
33668         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
33669
33670 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
33671
33672         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
33673         201304L, for Unicode 7.
33674
33675 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
33676
33677         [BZ #17836]
33678         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
33679         shared library.  Add gmon-start.os otherwise.
33680         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
33681         $(objpfx)gmon-start.os if builing shared library.
33682         ($(objpfx)g$(static-start-installed-name)): Likewise.
33683
33684 2015-02-23  Andreas Schwab  <schwab@suse.de>
33685
33686         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
33687
33688 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
33689
33690         [BZ #17269]
33691         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
33692         (enlarge_userbuf): Likewise.
33693
33694 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
33695
33696         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
33697         * math/atest-exp.c (TIMEOUT): Adjust to 200.
33698         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
33699         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
33700
33701 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
33702
33703         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
33704         expression inside statement expression.
33705
33706 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
33707
33708         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
33709         <sysdeps/nptl/lowlevellock.h> and remove macros and
33710         functions that are now defined there.
33711         (SYS_futex): Remove.
33712         (lll_compare_and_swap): Remove.
33713         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
33714
33715 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
33716
33717         [BZ #17999]
33718         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
33719         instead of scandirat.
33720         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
33721         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
33722         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
33723         __scandirat.
33724         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
33725         (__scandirat): Declare.  Use libc_hidden_proto.
33726         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
33727         Remove variable.
33728         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
33729
33730 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
33731
33732         [BZ #15319]
33733         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
33734         (MO): New macro.
33735         (__ieee754_atan2): For results with small absolute value, force
33736         underflow exception and remove excess range and precision from
33737         return value.
33738         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
33739         (MO): New macro.
33740         (__ieee754_atan2f): For results with small absolute value, force
33741         underflow exception and remove excess range and precision from
33742         return value.
33743         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
33744         (MO): New macro.
33745         (__atan): For results with small absolute value, force underflow
33746         exception and remove excess range and precision from return value.
33747         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
33748         (MO): New macro.
33749         (__atanf): For results with small absolute value, force underflow
33750         exception and remove excess range and precision from return value.
33751         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
33752         <math.h>.
33753         (__ieee754_atan2): Force underflow exception for results with
33754         small absolute value.
33755         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
33756         <math_private.h>.
33757         (atan): Force underflow exception for results with small absolute
33758         value.
33759         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
33760         (__atanf): Force underflow exception for results with small
33761         absolute value.
33762         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
33763         <math.h>.
33764         (__atanl): Force underflow exception for results with small
33765         absolute value.
33766         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
33767         (__atanl): Force underflow exception for results with small
33768         absolute value.
33769         * sysdeps/x86/fpu/bits/mathinline.h
33770         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
33771         (__ieee754_atan2): Only define inline for long double.
33772         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
33773         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
33774         * math/auto-libm-test-in: Do not mark underflow exceptions as
33775         possibly missing for bug 15319.  Add more tests of atan2.
33776         * math/auto-libm-test-out: Regenerated.
33777         * math/libm-test.inc (casin_test_data): Do not mark underflow
33778         exceptions as possibly missing for bug 15319.
33779         (casinh_test_data): Likewise.
33780         * sysdeps/i386/fpu/libm-test-ulps: Update.
33781
33782 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
33783
33784         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
33785         * sysdeps/mips/bits/endian.h: Fix comments.
33786
33787 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
33788
33789         [BZ #17996]
33790         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
33791         (hdestroy_r): Likewise.
33792         (hsearch_r): Likewise.
33793         (__hcreate_r): Declare and use libc_hidden_proto.
33794         (__hdestroy_r): Likewise.
33795         (__hsearch_r): Likewise.
33796         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
33797         (hcreate): Call __hcreate_r instead of hcreate_r.
33798         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
33799         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
33800         as weak alias of __hcreate_r.
33801         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
33802         __hdestroy_r.
33803         (hsearch_r): Rename to __hsearch_r and define as weak alias of
33804         __hsearch_r.
33805         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
33806         Remove variable.
33807         (test-xfail-XPG4/search.h/linknamespace): Likewise.
33808         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
33809         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
33810         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
33811
33812 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
33813
33814         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
33815         arena_lock into a single arena_get.
33816
33817 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
33818
33819         * dl-reloc.c: Inlucde libc-internal.h.
33820         (_dl_try_allocate_static_tls): Call ALIGN_UP.
33821         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
33822         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
33823         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
33824         (grow_heap): Likewise.
33825         * malloc/malloc.c: Include libc-internal.h.
33826         (do_check_malloc): Call powerof2.
33827         (sysmalloc): Use pagesize. Call ALIGN_UP.
33828         (systrim): Use pagesize.
33829         (mremap_chunk): Use pagesize. Call ALIGN_UP.
33830         (__libc_valloc): Use pagesize.
33831         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
33832
33833 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
33834
33835         [BZ #17991]
33836         * include/sys/resource.h (__getrlimit64): Declare.  Use
33837         libc_hidden_proto.
33838         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
33839         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
33840         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
33841         getrlimit64.
33842         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
33843         __getrlimit64.
33844         [!getrlimit64] (getrlimit64): Define as weak alias of
33845         __getrlimit64.  Use libc_hidden_weak.
33846         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
33847         using __getrlimit64 not __new_getrlimit64.
33848         (__GI_getrlimit64): Likewise.
33849         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
33850         Likewise.
33851         (__GI_getrlimit64): Likewise.
33852         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
33853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
33854         (getrlimit): Add __getrlimit64 alias.
33855         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
33856         Likewise.
33857         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
33858         Remove variable.
33859         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
33860         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
33861
33862 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
33863
33864         * libio/fileops.c: Add missing sys/mman.h
33865         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
33866
33867 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
33868
33869         * manual/math.texi (Errors in Math Functions): Clarify goals
33870         regarding inexact and underflow exceptions.
33871
33872 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
33873
33874         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
33875         * sysdeps/mips/memset.S: Ditto.
33876
33877 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
33878
33879         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
33880
33881 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
33882
33883         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
33884         (__v1longjmp): Remove versioned symbol.
33885         (__v1siglongjmp): Remove alias and versioned symbol.
33886         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
33887         (__v2siglongjmp): Likewise.
33888
33889 2015-02-16  Torvald Riegel  <triegel@redhat.com>
33890
33891         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
33892
33893 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
33894
33895         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
33896
33897 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
33898
33899         [BZ #17987]
33900         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
33901         zero result does not depend on the sign resulting from
33902         subtraction.
33903         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33904         Likewise.
33905         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33906         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33907         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33908         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33909         * math/libm-test.inc (remquo_test_data): Add more tests.
33910
33911 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
33912
33913         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
33914         Problem reported by J William Piggott.
33915
33916 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
33917
33918         [BZ #17978]
33919         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
33920         products 4 * y and 2 * y where those would overflow.
33921         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33922         Likewise.
33923         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33924         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33925         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33926         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33927         * math/libm-test.inc (remquo_test_data): Add more tests.
33928
33929         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
33930
33931         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
33932         [defined _COMPILING_NEWLIB].
33933         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
33934         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
33935
33936         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
33937         [!defined __mips_isa_rev || __mips_isa_rev < 6].
33938
33939 2015-02-16  Torvald Riegel  <triegel@redhat.com>
33940
33941         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
33942         acquired.
33943
33944 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
33945
33946         [BZ #17792]
33947         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
33948         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
33949         HOST_STACK_END_ADDR): Likewise.
33950
33951 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
33952
33953         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
33954         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
33955         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
33956
33957 2015-02-13  Roland McGrath  <roland@hack.frob.com>
33958
33959         * sysdeps/generic/c++-types.data: New file.
33960         * sysdeps/generic/ld.abilist: New file.
33961         * sysdeps/generic/libBrokenLocale.abilist: New file.
33962         * sysdeps/generic/libanl.abilist: New file.
33963         * sysdeps/generic/libc.abilist: New file.
33964         * sysdeps/generic/libcrypt.abilist: New file.
33965         * sysdeps/generic/libdl.abilist: New file.
33966         * sysdeps/generic/libm.abilist: New file.
33967         * sysdeps/generic/libpthread.abilist: New file.
33968         * sysdeps/generic/libresolv.abilist: New file.
33969         * sysdeps/generic/librt.abilist: New file.
33970
33971 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
33972
33973         [BZ #17569]
33974         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33975         Compute absolute value of x as modified by fmod, not original
33976         value of x.
33977         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
33978         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
33979         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
33980         RUN_TEST_ffI_f1_mod8.
33981         (remquo_test_data): Add more tests.
33982
33983 2015-02-13  Roland McGrath  <roland@hack.frob.com>
33984
33985         * sysdeps/init_array/pt-crti.S: New file.
33986
33987 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
33988
33989         [BZ #17967]
33990         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
33991         __builtin_fmaf instead of relying on contraction of a * b + c.
33992
33993 2015-02-12  J William Piggott  <elseifthen@gmx.com>
33994
33995         [BZ #17969]
33996         * manual/time.texi: correct the zoneinfo path in the TZ Variable
33997         node.
33998
33999 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
34000
34001         [BZ #17964]
34002         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
34003         __builtin_fma instead of relying on contraction of a * b + c.
34004
34005 2015-02-12  Roland McGrath  <roland@hack.frob.com>
34006
34007         * Makeconfig (ASFLAGS): Add -Werror=undef.
34008         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
34009         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
34010         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
34011
34012         * Makeconfig (after-link): New variable.
34013         (+link-pie, +link-pie-tests): Use it.
34014         (+link-static, +link-static-tests): Likewise.
34015         (+link, +link-tests): Likewise.
34016         * Makerules (build-module, build-module-asneeded): Likewise.
34017         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
34018         Likewise.
34019         * elf/Makefile ($(objpfx)ld.so): Likewise.
34020
34021 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
34022
34023         [BZ #17965]
34024         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
34025         both struct timeval and struct timespec.
34026
34027 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
34028
34029         [BZ #16560]
34030         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
34031         and redefine.
34032         (__ieee754_exp2l): Do not multiply small fractional parts by
34033         M_LN2l.
34034         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
34035         small argument.
34036         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
34037         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
34038         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
34039         * math/auto-libm-test-in: Add more tests of exp2.
34040         * math/auto-libm-test-out: Regenerated.
34041
34042 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
34043
34044         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
34045         unaligned path.
34046
34047 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34048
34049         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
34050         little endian.
34051
34052 2015-02-12  Andreas Schwab  <schwab@suse.de>
34053
34054         [BZ #15790]
34055         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
34056         Filter out elision flags from value returned in kind.
34057         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
34058         * nptl/tst-pthread-mutexattr.c: New file.
34059
34060 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34061
34062         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
34063         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
34064         into gnu-gnu, and update comment to refer to abi-tags.
34065
34066 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
34067
34068         [BZ #15467]
34069         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
34070         (__sincos): Set errno to EDOM for infinite argument.
34071         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
34072         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
34073         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
34074         (__sincosl): Set errno to EDOM for infinite argument.
34075         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
34076         (__sincosl): Set errno to EDOM for infinite argument.
34077         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
34078         (__sincosl): Set errno to EDOM for infinite argument.
34079         * math/libm-test.inc (sincos_test_data): Test errno setting.
34080
34081 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
34082
34083         * string/strxfrm_l.c: Remove #define STRCMP.
34084         * string/strcoll_l.c: Remove #define STRLEN.
34085         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
34086         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
34087
34088 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
34089
34090         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
34091         * sysdeps/mips/mips32/sfp-machine.h: ... here.
34092         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
34093         * sysdeps/mips/mips64/Makefile: ... here.
34094         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
34095         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
34096         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
34097         * sysdeps/mips/mips64/sfp-machine.h: ... here.
34098         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
34099         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
34100         * sysdeps/mips/mips64/n64/Implies: Likewise.
34101
34102 2015-02-10  Roland McGrath  <roland@hack.frob.com>
34103
34104         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
34105         <sys/time.h>, <string.h>, and <errno.h>.
34106         (dest_offset, dest_address, value, zero): Remove unused variables.
34107         (ldouble): Remove typedef.
34108         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
34109         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
34110         1).  Fix code style.
34111         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
34112         (check): Function removed.
34113         (CHECK): New macro.
34114         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
34115         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
34116         Don't call set_sigaction_FP and remove_sigaction_FP here.
34117         (ldouble_test): Just use 'long double' as macro argument, no need for
34118         the 'ldouble' typedef.
34119         (do_test): Set up SIGFPE handler at start, using plain signal rather
34120         than sigaction.  Fix code style.
34121
34122 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
34123
34124         [BZ #17949]
34125         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
34126         jump label.
34127
34128 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34129
34130         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
34131         * sysdeps/powerpc/powerpc32/configure: Regenerated.
34132
34133         * sysdeps/powerpc/configure.ac: Remove file.
34134         * sysdeps/powerpc/configure: Likewise.
34135
34136         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34137         [sysdep_routines]: Remove wordcopy-power6 object.
34138         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34139         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
34140         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
34141         (__memmove_ppc32): Likewise.
34142         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
34143         file.
34144         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
34145         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
34146         Remove preprocessor.
34147
34148         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34149         [sysdep_routines]: Remove wide chars objects.
34150         [wcsmbs]: New rule for wide char objects.
34151
34152         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34153         Remove wordcopy-power6 obejct.
34154         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
34155         Use local call for wordcopy and memcpy symbols.
34156         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
34157         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
34158         implementation for loader.
34159         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
34160
34161         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34162         Remove wordcopy-power7 object.
34163         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
34164         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
34165         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
34166         (_wordcopy_fwd_dest_aligned): Likewise.
34167         (_wordcopy_bwd_aligned): Likewise.
34168         (_wordcopy_bwd_dest_aligned): Likewise.
34169
34170         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
34171         Rewrite to call __memmove_ppc instead of include default
34172         implementation.
34173
34174         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34175         Remove wide chars objects.
34176         [wcsmbs]: New rule for wide char objects.
34177
34178 2015-02-09  Andreas Schwab  <schwab@suse.de>
34179
34180         [BZ #17912]
34181         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
34182         in terms of __O_DIRECTORY.
34183
34184 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34185
34186         * time/getdate.c: Include <stdbool.h>.
34187         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
34188         call PTR_MANGLE.
34189         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
34190         PTR_DEMANGLE.
34191
34192 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34193
34194         Add ersatz _Static_assert on older C hosts
34195         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
34196         pre-C11 C platform that is not known to support _Static_assert.
34197
34198 2015-02-07  Richard Braun  <rbraun@sceen.net>
34199
34200         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
34201         sigstate.
34202         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
34203
34204 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34205
34206         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
34207         priority against unexistent AIO_PRIO_DELTA_MAX.
34208         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
34209         instead of int.
34210         * misc/fchflags.c (fchflags): Likewise.
34211         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
34212         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
34213         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
34214         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
34215         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
34216         Declare macros.
34217         [__USE_MISC] (chflags, fchflags): Declare functions.
34218         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
34219         EINVAL when nfds is greater than FD_SETSIZE.
34220         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
34221         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
34222         45.
34223         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
34224         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
34225         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
34226         MACH_RCV_TIMED_OUT.
34227         * hurd/hurd/signal.h (_hurd_self_sigstate,
34228         _hurd_critical_section_lock, _hurd_critical_section_unlock):
34229         Explicit casts from void *.
34230         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
34231         * abi-tags: Rename gnu-gnu os into gnu.
34232
34233         [BZ #4719]
34234         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
34235         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
34236         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
34237         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
34238         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
34239         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
34240
34241         [BZ #17944]
34242         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
34243         duplicates ADDR->sun_path with sockaddr LEN limitation.
34244         * sysdeps/mach/hurd/connect.c: Include <string.h>
34245         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
34246         * sysdeps/mach/hurd/sendmsg.c: Likewise.
34247         * sysdeps/mach/hurd/sendto.c: Likewise.
34248         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
34249         implementing it by hand.
34250
34251 2015-02-06  Roland McGrath  <roland@hack.frob.com>
34252
34253         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
34254         Use sfi_breg on ldr.
34255         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
34256         Likewise.
34257
34258         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
34259         it's defined.
34260         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
34261         Test SIGSETXID only if it's defined.
34262
34263         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
34264
34265         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
34266         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
34267
34268         * nptl/tst-align2.c: Moved ...
34269         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
34270         * nptl/Makefile (tests): Remove tst-align2.
34271         * sysdeps/unix/sysv/linux/Makefile
34272         [$(subdir) = nptl] (tests): Add tst-align-clone.
34273         * nptl/tst-getpid1.c: Moved ...
34274         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
34275         * nptl/tst-getpid2.c: Moved ...
34276         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
34277         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
34278         * sysdeps/unix/sysv/linux/Makefile
34279         [$(subdir) = nptl] (tests): ... here.
34280         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
34281         * sysdeps/unix/sysv/linux/Makefile
34282         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
34283
34284         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
34285         Drop trailing \n from perror argument.  Use return rather than exit.
34286
34287         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
34288         on [SA_SIGINFO].
34289         * nptl/tst-cancel21.c (do_test): Likewise.
34290         * debug/tst-backtrace6.c: Include <signal.h> first thing.
34291         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
34292         [!SA_SIGINFO]: Make it a stub test.
34293
34294         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
34295         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
34296
34297         * posix/tst-getlogin.c: Move to ...
34298         * login/tst-getlogin.c: ... here.
34299         * posix/Makefile (tests): Move tst-getlogin to ...
34300         * login/Makefile (tests): ... here.
34301
34302         * libio/tst-atime.c (do_test): Move local variables SV and E
34303         inside [ST_NOATIME] conditional.
34304
34305         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
34306
34307         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
34308
34309         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
34310         (wait_code): New function replaces macro.
34311         Call nanosleep rather than syscall.
34312
34313         * nptl/pt-system.c: Rewritten.  Put everything under
34314         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34315         Use IFUNC to redirect when possible.
34316
34317         * nptl/pt-longjmp.c: Rewritten.  Put everything under
34318         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34319         Use IFUNC to redirect when possible.
34320
34321         * nptl/pt-fork.c: Rewritten.  Put everything under
34322         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34323         Use IFUNC to redirect when possible.
34324         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
34325
34326         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
34327         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
34328         unconditionally nowadays.  This included the only reference to
34329         __vdso_clock_gettime that appears outside libc proper.
34330         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
34331         Remove version set (containing only __vdso_clock_gettime).
34332         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
34333         Add attribute_hidden.
34334         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
34335         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
34336         libc_hidden_data_def.
34337         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
34338         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
34339
34340         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
34341         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
34342         setrpcent, and getrpcport to ...
34343         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
34344         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
34345         getrpcbynumber_r, and getrpcent_r to ...
34346         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
34347         * inet/getrpcbyname.c: Moved ...
34348         * sunrpc/getrpcbyname.c: ... here.
34349         * inet/getrpcbyname_r.c: Moved ...
34350         * sunrpc/getrpcbyname_r.c: ... here.
34351         * inet/getrpcbynumber.c: Moved ...
34352         * sunrpc/getrpcbynumber.c: ... here.
34353         * inet/getrpcbynumber_r.c: Moved ...
34354         * sunrpc/getrpcbynumber_r.c: ... here.
34355         * inet/getrpcent.c: Moved ...
34356         * sunrpc/getrpcent.c: ... here.
34357         * inet/getrpcent_r.c: Moved ...
34358         * sunrpc/getrpcent_r.c: ... here.
34359         * inet/Makefile (routines): Move those to ...
34360         * sunrpc/Makefile (routines): ... here.
34361         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
34362         the $(subdirs) list.
34363         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
34364         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
34365         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
34366         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
34367
34368         * elf/Makefile (routines): Include $(all-dl-routines), not just
34369         $(dl-routines).
34370         (rtld-routines): Likewise.  Use = rather than :=.
34371         * sysdeps/aarch64/Makefile [$(subdir) = elf]
34372         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
34373         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
34374         * sysdeps/arm/Makefile: Likewise.
34375         * sysdeps/i386/Makefile: Likewise.
34376         * sysdeps/x86_64/Makefile: Likewise.
34377         * sysdeps/hppa/Makefile [$(subdir) = elf]
34378         (sysdep_routines, sysdep-rtld-routines): Don't add
34379         $(sysdep-dl-routines) to these.
34380         * sysdeps/ia64/Makefile: Likewise.
34381         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
34382         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
34383         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
34384         Don't add dl-static to these; sysdep-dl-routines alone is enough.
34385         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
34386         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
34387         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
34388         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
34389         * sysdeps/powerpc/Makefile [$(subdir) = elf]
34390         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
34391         these; sysdep-dl-routines alone is enough.
34392
34393 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
34394
34395         [BZ #17932]
34396         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
34397         where multiplication results in zero and third argument is finite
34398         and nonzero.
34399         * math/auto-libm-test-in: Add more tests of fma.
34400         * math/auto-libm-test-out: Regenerated.
34401
34402         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
34403         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
34404         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
34405         (_FP_CMP_EQ): Likewise.
34406         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
34407
34408         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
34409         extra argument CHECK_NAN.  Redefine as wrapper around
34410         _FP_EXTEND_CNAN.
34411
34412 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
34413
34414         * version.h (RELEASE): Set to "stable".
34415         (VERSION): Set to "2.21"
34416         * include/features.h (__GLIBC_MINOR__): Set to 21.
34417
34418         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
34419
34420 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
34421             Paul Eggert  <eggert@cs.ucla.edu>
34422
34423         [BZ #16618]
34424         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
34425         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
34426         size in bytes. Store needed elements in wpmax. Use needed size
34427         in bytes for extend_alloca.
34428
34429 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
34430
34431         * manual/install.texi: Latest tested versions are GCC 4.9.2,
34432         binutls 2.25, and texinfo 5.2.
34433         * INSTALL: Regenerate.
34434         * sysdeps/nios2/configure: Regenerate.
34435         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
34436         * manual/contrib.texi: Update.
34437         * po/be.po: Update.
34438         * po/bg.po: Update.
34439         * po/ca.po: Update.
34440         * po/cs.po: Update.
34441         * po/da.po: Update.
34442         * po/de.po: Update.
34443         * po/el.po: Update.
34444         * po/eo.po: Update.
34445         * po/es.po: Update.
34446         * po/fi.po: Update.
34447         * po/fr.po: Update.
34448         * po/gl.po: Update.
34449         * po/hr.po: Update.
34450         * po/hu.po: Update.
34451         * po/ia.po: Update.
34452         * po/id.po: Update.
34453         * po/it.po: Update.
34454         * po/ja.po: Update.
34455         * po/ko.po: Update.
34456         * po/lt.po: Update.
34457         * po/nb.po: Update.
34458         * po/nl.po: Update.
34459         * po/pl.po: Update.
34460         * po/pt_BR.po: Update.
34461         * po/ru.po: Update.
34462         * po/rw.po: Update.
34463         * po/sk.po: Update.
34464         * po/sl.po: Update.
34465         * po/sv.po: Update.
34466         * po/tr.po: Update.
34467         * po/uk.po: Update.
34468         * po/vi.po: Update.
34469         * po/zh_CN.po: Update.
34470         * po/zh_TW.po: Update.
34471
34472         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
34473         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
34474         * sysdeps/hppa/dl-irel.h: Remove #warning.
34475         * sysdeps/hppa/entry.h: Provide prototype for
34476         __canonicalize_funcptr_for_compare and cast argument.
34477         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
34478         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
34479         * sysdeps/hppa/sotruss-lib.c: New file.
34480         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
34481         (atomic_compare_and_exchange_val_acq): Use __typeof__.
34482         (atomic_compare_and_exchange_bool_acq): Likewise.
34483         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
34484         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
34485
34486         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
34487         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
34488         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
34489
34490 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
34491
34492         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
34493         called function in non-PIC case.
34494
34495 2015-01-31  David S. Miller  <davem@davemloft.net>
34496
34497         * sysdeps/sparc/sparc32/bits/atomic.h
34498         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
34499         unlock not after it.
34500         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
34501         volatile register usage warnings from the compiler.
34502
34503         * sysdeps/sparc/nptl/sem_init.c: Delete.
34504         * sysdeps/sparc/nptl/sem_post.c: Delete.
34505         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
34506         * sysdeps/sparc/nptl/sem_wait.c: Delete.
34507         * sysdeps/sparc/sparc32/sem_init.c: New file.
34508         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
34509         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
34510         padding explicitly initialized.
34511         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
34512         padding for in-semaphore spinlock.
34513         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
34514         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
34515         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
34516         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
34517         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
34518         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
34519         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
34520         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
34521         version.
34522         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
34523         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
34524
34525 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
34526
34527         [BZ #17801]
34528         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34529         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
34530         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
34531         New.
34532         (index_AVX_Fast_Unaligned_Load): Likewise.
34533         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
34534         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
34535         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
34536         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
34537         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
34538         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
34539         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
34540         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
34541         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
34542
34543 2015-01-29  Andreas Schwab  <schwab@suse.de>
34544
34545         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
34546
34547 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
34548
34549         [BZ #17892]
34550         * nscd/nscd_stat.c (send_stats): Initialize DATA.
34551
34552 2015-01-28  Martin Sebor  <msebor@redhat.com>
34553
34554         * math/README.libm-test: Clarify. Add "How to read the test output."
34555
34556 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
34557
34558         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
34559         Define to 0.
34560
34561 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
34562
34563         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
34564         (__HAVE_64B_ATOMICS): Define to 0.
34565
34566 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34567
34568         [BZ #17885]
34569         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
34570         value to set as new flag.
34571
34572         [BZ #16576]
34573         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
34574         and use _ARCH_PPCSQ instead.
34575         (__ieee754_sqrt): Likewise.
34576         (__ieee754_sqrtf): Likewise.
34577         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
34578         _ARCH_PPCSQ is defined.
34579         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
34580         fsqrt instruction.
34581         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
34582         _ARCH_PPCSQ is defined.
34583         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
34584         fsqrts instruction.
34585         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
34586
34587 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34588
34589         * iconv/loop.c: Suppress array out of bound warning caused by GCC
34590         bug (GCC BZ #64739).
34591
34592 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
34593
34594         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
34595         Mark _retval as used.
34596         (lll_futex_wake_unlock): Likewise.
34597         (lll_futex_timed_wait_requeue_pi): Likewise.
34598
34599         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
34600         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
34601         register variables.
34602
34603         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
34604         libm_hidden_def.
34605
34606         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
34607         (__bswap_64): Mark as __always_inline.
34608
34609 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
34610
34611         [BZ #15378]
34612         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
34613         when none of the search directories exist.
34614
34615 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34616
34617         [BZ #17869]
34618         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
34619         power8 in .machine directive.
34620
34621         [BZ #17868]
34622         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
34623         set dependency from opd value.
34624
34625 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34626
34627         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34628         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
34629         architecture.
34630
34631 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34632
34633         [BZ #17870]
34634         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
34635         with uint64_t.
34636         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
34637         (uint64_t) 1.
34638         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
34639         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
34640         Replace 1UL with (uint64_t) 1.
34641         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
34642         int with uint64_t.
34643
34644 2015-01-23  Roland McGrath  <roland@hack.frob.com>
34645
34646         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
34647         (if_freenameindex): Likewise.
34648
34649         * resource/getrlimit64.c: Add missing libc_hidden_def.
34650
34651 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
34652
34653         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
34654         __label__.
34655         (_FP_FMA): Likewise.
34656         (_FP_TO_INT_ROUND): Likewise.
34657         (_FP_FROM_INT): Likewise.
34658
34659 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34660
34661         [BZ #16418]
34662         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
34663         Make code racy and cancel safe.
34664
34665 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
34666
34667         * sysdeps/arm/unwind-resume.h: Fix copyright year.
34668         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
34669         attribution.
34670
34671         * pwd/tst-getpw.c: Rewrite.
34672
34673         [BZ #17702]
34674         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
34675         (modules-names): Add moddummy1 and moddummy2.
34676         ($(objpfx)tst-rec-dlopen): Define.
34677         * dlfcn/moddummy1.c: New file.
34678         * dlfcn/moddummy2.c: New file.
34679         * dlfcn/tst-rec-dlopen.c: New file.
34680         * elf/dl-cache.c (_dl_load_cache_lookup):
34681         Return char*. Copy result with alloca/strcpy/strdup.
34682         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
34683         returns char*. Free cached. If not saving realname
34684         free cached.
34685         * elf/dl-open.c (dl_open_worker): Do not assert that
34686         _r_debug->r_state is RT_CONSISTENT.
34687         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
34688         returns char*.
34689
34690 2015-01-21  Torvald Riegel  <triegel@redhat.com>
34691             Carlos O'Donell  <carlos@redhat.com>
34692
34693         [BZ #12674]
34694         * nptl/sem_waitcommon.c: New file.
34695         * nptl/sem_wait.c: Include sem_waitcommon.c.
34696         (__sem_wait_cleanup, do_futex_wait): Remove.
34697         (__new_sem_wait): Adapt.
34698         (__new_sem_trywait): New function.
34699         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
34700         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
34701         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
34702         (sem_timedwait): Adapt.
34703         * nptl/sem_post.c (__new_sem_post): Adapt.
34704         (futex_wake): New function.
34705         (__old_sem_post): Add release MO fence.
34706         * nptl/sem_open.c (sem_open): Adapt.
34707         * nptl/sem_init.c (__new_sem_init): Adapt.
34708         (futex_private_if_supported): New function.
34709         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
34710         (__old_sem_getvalue): Add using previous code.
34711         * sysdeps/nptl/internaltypes.h: Adapt.
34712         * nptl/tst-sem13.c (do_test): Adapt.
34713         * nptl/tst-sem11.c (main): Adapt.
34714         * nptl/sem_trywait.c: Remove.
34715         * nptl/DESIGN-sem.txt: Remove.
34716         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
34717         (gen-as-const-headers): Remove structsem.sym.
34718         * nptl/structsem.sym: Remove.
34719         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
34720         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
34721         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
34722         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
34723         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
34724         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
34725         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
34726         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
34727         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
34728         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
34729         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
34730         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
34731         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
34732         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
34733         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
34734         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
34735         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
34736         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
34737         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
34738         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
34739         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
34740         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
34741
34742 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
34743
34744         * INSTALL: Regenerated.
34745
34746         * po/libc.pot: Regenerated.
34747
34748 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
34749             Sandra Loosemore  <sandra@codesourcery.com>
34750             Andrew Jenner  <andrew@codesourcery.com>
34751             Joseph Myers  <joseph@codesourcery.com>
34752             Nathan Sidwell  <nathan@codesourcery.com>
34753
34754         * NEWS: Mention new Nios II port.
34755         * sysdeps/nios2/Implies: New file.
34756         * sysdeps/nios2/Makefile: New file.
34757         * sysdeps/nios2/Subdirs: New file.
34758         * sysdeps/nios2/Versions: New file.
34759         * sysdeps/nios2/__longjmp.S: New file.
34760         * sysdeps/nios2/abort-instr.h: New file.
34761         * sysdeps/nios2/backtrace.c: New file.
34762         * sysdeps/nios2/bits/endian.h: New file.
34763         * sysdeps/nios2/bits/fenv.h: New file.
34764         * sysdeps/nios2/bits/link.h: New file.
34765         * sysdeps/nios2/bits/setjmp.h: New file.
34766         * sysdeps/nios2/bsd-_setjmp.S: New file.
34767         * sysdeps/nios2/bsd-setjmp.S: New file.
34768         * sysdeps/nios2/configure: New generated file.
34769         * sysdeps/nios2/configure.ac: New file.
34770         * sysdeps/nios2/crti.S: New file.
34771         * sysdeps/nios2/crtn.S: New file.
34772         * sysdeps/nios2/dl-init.c: New file.
34773         * sysdeps/nios2/dl-machine.h: New file.
34774         * sysdeps/nios2/dl-sysdep.h: New file.
34775         * sysdeps/nios2/dl-tls.h: New file.
34776         * sysdeps/nios2/dl-trampoline.S: New file.
34777         * sysdeps/nios2/gccframe.h: New file.
34778         * sysdeps/nios2/gmp-mparam.h: New file.
34779         * sysdeps/nios2/jmpbuf-offsets.h: New file.
34780         * sysdeps/nios2/jmpbuf-unwind.h: New file.
34781         * sysdeps/nios2/ldsodefs.h: New file.
34782         * sysdeps/nios2/libc-tls.c: New file.
34783         * sysdeps/nios2/libm-test-ulps: New file.
34784         * sysdeps/nios2/machine-gmon.h: New file.
34785         * sysdeps/nios2/math-tests.h: New file.
34786         * sysdeps/nios2/math_private.h: New file.
34787         * sysdeps/nios2/memusage.h: New file.
34788         * sysdeps/nios2/nptl/Makefile: New file.
34789         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
34790         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
34791         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
34792         * sysdeps/nios2/nptl/pthreaddef.h: New file.
34793         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
34794         * sysdeps/nios2/nptl/tls.h: New file.
34795         * sysdeps/nios2/preconfigure: New file.
34796         * sysdeps/nios2/s_fma.c: New file.
34797         * sysdeps/nios2/s_fmaf.c: New file.
34798         * sysdeps/nios2/setjmp.S: New file.
34799         * sysdeps/nios2/sfp-machine.h: New file.
34800         * sysdeps/nios2/sotruss-lib.c: New file.
34801         * sysdeps/nios2/stackguard-macros.h: New file.
34802         * sysdeps/nios2/stackinfo.h: New file.
34803         * sysdeps/nios2/start.S: New file.
34804         * sysdeps/nios2/sysdep.h: New file.
34805         * sysdeps/nios2/tls-macros.h: New file.
34806         * sysdeps/nios2/tst-audit.h: New file.
34807         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
34808         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
34809         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
34810         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
34811         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
34812         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
34813         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
34814         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
34815         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
34816         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
34817         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
34818         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
34819         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
34820         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
34821         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
34822         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
34823         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
34824         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
34825         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
34826         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
34827         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
34828         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
34829         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
34830         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
34831         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
34832         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
34833         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
34834         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
34835         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
34836         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
34837         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
34838         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
34839         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
34840         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
34841         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
34842         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
34843         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
34844         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
34845         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
34846         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
34847         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
34848         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
34849         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
34850         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
34851
34852 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34853
34854         [BZ #17844]
34855         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
34856         (getutent): Use weak_alias in non SHARED case
34857         and default_symbol_version in SHARED case.
34858         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
34859         (getutent_r, pututline): Likewise.
34860         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
34861         (getutid): Likewise.
34862         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
34863         (getutid_r): Likewise.
34864         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
34865         (getutline): Likewise.
34866         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
34867         (getutline_r): Likewise.
34868         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
34869         (updwtmp): Likewise.
34870
34871 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34872
34873         [BZ #17848]
34874         * sysdeps/s390/s390-32/memcmp.S
34875         (memcmp_g5): Rename to __memcmp_g5.
34876         * sysdeps/s390/s390-32/memcpy.S
34877         (memcpy_g5): Rename to __memcpy_g5.
34878         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34879         (memcpy_mvcle) Rename to __memcpy_mvcle.
34880         * sysdeps/s390/s390-32/memset.S
34881         (memset_g5): Rename to __memset_g5.
34882         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
34883         (IFUNC_RESOLVE): Prefix ifunc-resolve function
34884         and use prefixed functions.
34885         * sysdeps/s390/s390-32/multiarch/memcmp.S
34886         (memcmp_z196): Rename to __memcmp_z196.
34887         (memcmp_z10): Rename to __memcmp_z10.
34888         (memcmp): Set alias to __memcmp_g5.
34889         (bcmp): Set alias to __memcmp_g5.
34890         * sysdeps/s390/s390-32/multiarch/memcpy.S
34891         (memcpy_z196): Rename to __memcpy_z196.
34892         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34893         (memcpy_z10): Rename to __memcpy_z10.
34894         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34895         (memcpy): Set alias to __memcpy_g5.
34896         * sysdeps/s390/s390-32/multiarch/memset.S
34897         (memset_z196): Rename to __memset_z196.
34898         Jump to __memset_mvcle instead of memset_mvcle.
34899         (memset_z10): Rename to __memset_z10.
34900         Jump to __memset_mvcle instead of memset_mvcle.
34901         (memset_mvcle) Rename to __memset_mvcle.
34902         (memset): Set alias to __memset_g5.
34903         * sysdeps/s390/s390-64/memcmp.S
34904         (memcmp_z900): Rename to __memcmp_z900.
34905         * sysdeps/s390/s390-64/memcpy.S
34906         (memcpy_z900): Rename to __memcpy_z900.
34907         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34908         (memcpy_mvcle) Rename to __memcpy_mvcle.
34909         * sysdeps/s390/s390-64/memset.S
34910         (memset_z900): Rename to __memset_z900.
34911         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
34912         (IFUNC_RESOLVE): Prefix ifunc-resolve function
34913         and use prefixed functions.
34914         * sysdeps/s390/s390-64/multiarch/memcmp.S
34915         (memcmp_z196): Rename to __memcmp_z196.
34916         (memcmp_z10): Rename to __memcmp_z10.
34917         (memcmp): Set alias to __memcmp_z900.
34918         (bcmp): Set alias to __memcmp_z900.
34919         * sysdeps/s390/s390-64/multiarch/memcpy.S
34920         (memcpy_z196): Rename to __memcpy_z196.
34921         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34922         (memcpy_z10): Rename to __memcpy_z10.
34923         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34924         (memcpy): Set alias to __memcpy_z900.
34925         * sysdeps/s390/s390-64/multiarch/memset.S
34926         (memset_z196): Rename to __memset_z196.
34927         Jump to __memset_mvcle instead of memset_mvcle.
34928         (memset_z10): Rename to __memset_z10.
34929         Jump to __memset_mvcle instead of memset_mvcle.
34930         (memset_mvcle) Rename to __memset_mvcle.
34931         (memset): Set alias to __memset_z900.
34932
34933 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
34934
34935         [BZ #17748]
34936         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
34937         __fesetenv instead of fesetenv.
34938
34939 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
34940
34941         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
34942         macro.
34943
34944 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34945
34946         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
34947         regression on LE.
34948
34949         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
34950         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
34951         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
34952         strncmp-power8 object.
34953         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34954         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
34955         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
34956         * NEWS: Update.
34957
34958 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
34959             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34960
34961         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
34962         trailing byte check.
34963
34964 2015-01-13  David S. Miller  <davem@davemloft.net>
34965
34966         * include/signal.h (__sigreturn): Guard with __USE_MISC.
34967
34968 2015-01-13  Roland McGrath  <roland@hack.frob.com>
34969
34970         * login/logout.c (logout): Use memset rather than bzero.
34971         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
34972         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
34973         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
34974         (_gethtbyaddr): Likewise.
34975         * locale/programs/simple-hash.c (bcopy): Macro removed.
34976
34977 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34978
34979         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34980         Add strcmp-power8 object.
34981         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34982         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
34983         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
34984         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
34985         __strcmp_power8 implementation.
34986         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
34987         * NEWS: Update.
34988
34989         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34990         Add strncpy-power8 and stpncpy-power8 objects.
34991         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34992         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
34993         implementations.
34994         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
34995         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
34996         __stpncpy_power8 implementation.
34997         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
34998         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
34999         __strncpy_power8 implementation.
35000         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
35001         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
35002         * NEWS: Update.
35003
35004         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
35005         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
35006         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
35007
35008         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35009         strncat-power8 object.
35010         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
35011         __strcat_power8 implementation.
35012         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35013         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
35014         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
35015         optimized strcat for power8.
35016
35017         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35018         strcpy-power8 and stpcpy-power8 objects.
35019         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35020         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
35021         implementations.
35022         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
35023         multiarch stpcpy implementation for POWER8.
35024         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
35025         multiarch strcpy implementation for POWER8.
35026         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
35027         __strcpy_power8 function.
35028         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
35029         stpcpy for POWER8.
35030         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
35031         strcpy for POWER8.
35032         * NEWS: Update.
35033
35034 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
35035
35036         [BZ #16009]
35037         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
35038         weights and rules. Use do_xfrm_cached if data fits in cache,
35039         do_xfrm otherwise.  Moved former main loop to...
35040         * (do_xfrm_cached): New function.
35041         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
35042         find_idx, find_position and stack_push.
35043         * (find_idx): New function.
35044         * (find_position): Likewise.
35045         * localedata/sort-test.sh: Added test run for do_xfrm.
35046         * localedata/xfrm-test.c (main): Added command line option
35047         -nocache to run the test with strings that are too large for
35048         the STRXFRM cache.
35049
35050 2015-01-13  Torvald Riegel  <triegel@redhat.com>
35051
35052         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
35053         variable to lll_futex_wake call, not the value itself.
35054
35055 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
35056
35057         [BZ #17803]
35058         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
35059         twom64.  Adjust value to 0x1p-64L.
35060         (__scalblnl): Only return standard underflowing result for K <=
35061         -64 not K <= -63; adjust exponent for underflowing result by 64
35062         not 63.
35063         * math/libm-test.inc (scalbn_test_data): Add more tests.
35064         (scalbln_test_data): Likewise.
35065
35066         [BZ #17834]
35067         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
35068         0x1p63L.
35069         (__scalblnl): Get new exponent of adjusted subnormal value from ES
35070         not HX.
35071         * math/libm-test.inc (scalbn_test_data): Add more tests.
35072         (scalbln_test_data): Likewise.
35073
35074 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35075             Stefani Seibold  <stefani@seibold.net>
35076
35077         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
35078         (sysdep_routines): Add dl-vdso here, ...
35079         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
35080         (sysdep_routines): ... not here.
35081         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
35082         fallback when vDSO is not presented.
35083         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
35084         Define with libc_hidden_proto/libc_hidden_data_def definitions.
35085         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
35086         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
35087         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
35088         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
35089         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
35090         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
35091         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
35092         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
35093         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
35094         fallback configurable symbol when vDSO is not available.
35095         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
35096         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
35097         be able to redefine fallback symbol when vDSO is not available.
35098         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
35099         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
35100
35101 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35102
35103         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
35104         (TLS_INIT_TP): Add tm_capable initialization.
35105         (TLS_DEFINE_INIT_TP): Likewise.
35106         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
35107         TCB.
35108         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
35109         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
35110         calculation.
35111         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
35112         transactoion is lock elision is built and TCB tm_capable is set.
35113         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
35114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
35115         (INTERNAL_SYSCALL_NCS): Likewise.
35116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
35117         (INTERNAL_SYSCALL_NCS): Likewise.
35118         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
35119
35120         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
35121         for powerpc.
35122         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35123         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
35124         and remove it for 32 bits case.
35125         [pthread_rwlock_t] (__rwelision): New field for lock elision.
35126         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
35127         initialization.
35128         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
35129         Disable lock elision with rdlocks if elision is not available.
35130
35131         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
35132         (sysdep_routines): Add lock elision objects.
35133         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35134         [pthread_mutex_t] (__spins): Rework to add lock elision field.
35135         [pthread_mutex_t] (__elision): Add field.
35136         [__PTHREAD_SPINS]: Adjust to init lock elision field.
35137         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
35138         elision definitions for powerpc.
35139         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
35140         implementation of lock elision for powerpc.
35141         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
35142         implementation of timed lock elision for powerpc.
35143         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
35144         implementation of trylock with lock elision for powerpc.
35145         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
35146         implementaion of unlock for lock elision for powerpc.
35147         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
35148         automatic enable lock elision for mutexes.
35149         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
35150         transaction execution definitions for powerpc.
35151         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
35152         definitions.
35153         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
35154         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
35155         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
35156         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
35157         * NEWS: Update.
35158
35159 2015-01-09  Roland McGrath  <roland@hack.frob.com>
35160
35161         * sysdeps/posix/shm-directory.c: Use <> rather than ""
35162         for #include of <shm-directory.h>.
35163
35164 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
35165
35166         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
35167         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
35168
35169 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
35170
35171         [BZ #17791]
35172         * NEWS: Mention bug fix.
35173         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
35174         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
35175         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
35176
35177 2015-01-09  Torvald Riegel <triegel@redhat.com>
35178
35179         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
35180
35181 2015-01-09  Torvald Riegel <triegel@redhat.com>
35182
35183         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
35184
35185 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35186
35187         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
35188         pointer and cast to uintptr_t.
35189
35190 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35191
35192         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
35193         removed.
35194         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
35195
35196 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35197
35198         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
35199         of 0.
35200
35201 2015-01-08  Roland McGrath  <roland@hack.frob.com>
35202
35203         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
35204         <nptl/pthreadP.h> instead.
35205         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
35206
35207         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
35208         already defined.
35209         [__SIGRTMIN] (init): Function removed.
35210         [__SIGRTMIN] (initialized): Variable removed.
35211         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
35212         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
35213         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
35214         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
35215         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
35216         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
35217         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
35218         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
35219         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
35220         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
35221         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
35222         * sysdeps/nptl/allocrtsig.c: New file.
35223         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
35224         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
35225         * sysdeps/generic/testrtsig.h: File removed.
35226
35227         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
35228         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
35229
35230         * nptl/nptl-init.c (pthread_functions): Conditionalize
35231         .ptr__nptl_setxid initialization on [SIGSETXID].
35232
35233         * sysdeps/nptl/sys/procfs.h: New file.
35234         * nptl_db/Makefile (headers): Add it.
35235         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
35236
35237         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
35238         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
35239         * nptl/pthread_attr_setaffinity.c: Include it.
35240         * nptl/pthread_setattr_default_np.c: Likewise.
35241         * nptl/check-cpuset.h: New file.
35242
35243 2015-01-08  Richard Henderson  <rth@redhat.com>
35244
35245         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
35246         (CFLAGS-tst-execstack-prog.c): Likewise.
35247         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
35248
35249 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
35250             Sandra Loosemore  <sandra@codesourcery.com>
35251             Andrew Jenner  <andrew@codesourcery.com>
35252             Joseph Myers  <joseph@codesourcery.com>
35253             Nathan Sidwell  <nathan@codesourcery.com>
35254
35255         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
35256         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
35257         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
35258         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
35259         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
35260         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
35261         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
35262         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
35263         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
35264         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
35265         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
35266         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
35267         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
35268         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
35269         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
35270         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
35271         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
35272
35273 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35274
35275         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
35276         timespec struct member in syscall macro.
35277         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
35278         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
35279         first timeval struct member in syscall macro.
35280         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
35281
35282 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
35283
35284         [BZ #17748]
35285         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
35286         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
35287         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
35288         __feupdateenv and define as weak alias of __feupdateenv.  Use
35289         libm_hidden_weak.
35290         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
35291         libm_hidden_def.
35292         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
35293         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
35294         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35295         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
35296         libm_hidden_def.
35297         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
35298         __feupdateenv and define as weak alias of __feupdateenv.  Use
35299         libm_hidden_weak.
35300         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
35301         libm_hidden_def.
35302         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
35303         __feupdateenv and define as weak alias of __feupdateenv.  Use
35304         libm_hidden_weak.
35305         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
35306         libm_hidden_def.
35307         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35308         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35309         (__feupdateenv): Likewise.
35310         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
35311         __feupdateenv and define as weak alias of __feupdateenv.  Use
35312         libm_hidden_weak.
35313         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35314         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
35315         libm_hidden_def.
35316         * sysdeps/tile/math_private.h (__feupdateenv): New inline
35317         function.
35318         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
35319         libm_hidden_def.
35320         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
35321         __feupdateenv instead of feupdateenv.
35322         (default_libc_feupdateenv_test): Likewise.
35323         (libc_feresetround_ctx): Likewise.
35324
35325 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35326
35327         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
35328         prototype.
35329
35330 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
35331
35332         * posix/regcomp.c (parse_bracket_exp): Initialize type to
35333         COLL_SYM in a couple of places to avoid uninitialized variable
35334         wanings on tilegx gcc 4.8.2.
35335
35336 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35337
35338         * sysdeps/aarch64/strcpy.S: New file.
35339         * sysdeps/aarch64/stpcpy.S: New file.
35340         * NEWS: Updated.
35341
35342 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35343
35344         * sysdeps/aarch64/strrchr.S: New file.
35345         * NEWS: Updated.
35346
35347 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
35348
35349         [BZ #17658]
35350         * stdlib/setenv.c: Fix memory leak when setting large,
35351         duplicate string.
35352
35353 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
35354
35355         [BZ #17273]
35356         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
35357         and tabs from buffer before parsing fstab entry.
35358         * misc/tst-mntent.c (main): Add test for mount entry with
35359         trailing spaces and tabs.
35360
35361 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
35362
35363         [BZ #17748]
35364         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
35365         * math/fesetround.c (fesetround): Rename to __fesetround and
35366         define as weak alias of __fesetround.  Use libm_hidden_weak.
35367         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
35368         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
35369         * sysdeps/arm/fesetround.c (fesetround): Likewise.
35370         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
35371         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
35372         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
35373         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
35374         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
35375         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
35376         __fesetround_inline.
35377         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
35378         __fesetround_inline instead of __fesetround.
35379         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
35380         __fesetround and define as weak alias of __fesetround.  Use
35381         libm_hidden_weak.  Call __fesetround_inline instead of
35382         __fesetround.
35383         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
35384         __fesetround and define as weak alias of __fesetround.  Use
35385         libm_hidden_weak.
35386         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
35387         Likewise.
35388         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
35389         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
35390         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
35391         * sysdeps/tile/math_private.h (__fesetround): New inline function.
35392         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
35393         __fesetround and define as weak alias of __fesetround.  Use
35394         libm_hidden_weak.
35395         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
35396         __fesetround instead of fesetround.
35397         (default_libc_feholdexcept_setround): Likewise.
35398         (libc_feholdsetround_ctx): Likewise.
35399         (libc_feholdsetround_noex_ctx): Likewise.
35400
35401         [BZ #17748]
35402         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
35403         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
35404         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35405         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35406         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35407         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
35408         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35409         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
35410         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35411         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35412         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35413         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35414         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35415         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35416         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
35417         libm_hidden_def.
35418         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
35419         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
35420         Likewise.
35421         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35422         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35423         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
35424         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35425         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
35426         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35427         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35428         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
35429         __fesetenv instead of fesetenv.
35430         (libc_feresetround_noex_ctx): Likewise.
35431         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
35432         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35433         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
35434         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
35435         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
35436         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
35437         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35438         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35439         (__feupdateenv): Likewise.
35440         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
35441         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35442         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
35443         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
35444
35445 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
35446
35447         [BZ #17806]
35448         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
35449         addresses have been freed.
35450
35451 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
35452
35453         * resolv/res_init.c (__res_vinit): Improve comments about nserv
35454         and nservall.
35455
35456 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
35457
35458         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
35459         Clean up check_pf allocation pattern. addresses
35460
35461 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35462
35463         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
35464         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
35465         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
35466         * nptl/pthread_exit.c (__pthread_exit): Likewise.
35467         * nptl/pthread_join.c (pthread_join): Likewise.
35468         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
35469         * sysdeps/posix/waitid.c (__waitid): Likewise.
35470         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
35471         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
35472         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
35473         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
35474         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
35475         Likewise.
35476         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
35477         (__libc_pread64): Likewise.
35478         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
35479         (__libc_pwrite): Likewise.
35480         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
35481         (__libc_pwrite64): Likewsie.
35482         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
35483         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
35484         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
35485         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
35486         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
35487         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
35488         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
35489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
35490         Likewise.
35491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
35492         (__libc_pread64): Likewise.
35493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
35494         Likewise.
35495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
35496         (__libc_pwrite64): Likewise.
35497         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
35498         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
35499         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
35500         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
35501         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
35502         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
35503         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
35504         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
35505         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
35506         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
35507         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
35508         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
35509         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
35510         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
35511         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
35512         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
35513         Likewise.
35514
35515 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
35516
35517         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
35518         (CFLAGS-test-double.c): Likewise.
35519         (CFLAGS-test-ldouble.c): Likewise.
35520         (CPPFLAGS-test-ifloat.c): Likewise.
35521         (CPPFLAGS-test-idouble.c): Likewise.
35522         (CPPFLAGS-test-ildoubl.c): Likewise.
35523         (CFLAGS-test-test-fenv.c): Remove variable.
35524         (CFLAGS-test-misc.c): Likewise.
35525
35526 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
35527
35528         [BZ #17797]
35529         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
35530         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
35531         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
35532         CLOCKS_PER_SEC == 1000000.
35533         * time/clocktest.c (main): Replace %ld with %jd and cast to
35534         intmax_t.
35535
35536 2015-01-05  Roland McGrath  <roland@hack.frob.com>
35537
35538         * sysdeps/generic/unwind-resume.h: New file.
35539         * sysdeps/gnu/unwind-resume.c: Include it.
35540         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
35541         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
35542         argument list.
35543         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
35544         global rather than static.
35545         (_Unwind_Resume): Update user.
35546         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
35547         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
35548         rather than static.  Add __attribute__ ((cold)).
35549         (_Unwind_Resume, __gcc_personality_v0): Update callers.
35550         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
35551         * sysdeps/arm/arm-unwind-resume.S: New file.
35552         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
35553         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
35554         * sysdeps/arm/Makefile [$(subdir) = csu]
35555         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
35556         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
35557         Add rt-arm-unwind-resume.
35558         [$(subdir) = nptl]
35559         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35560         Add pt-arm-unwind-resume.
35561         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
35562         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
35563
35564 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35565
35566         [BZ #17748]
35567         * include/fenv.h (__feholdexcept): Declare.  Use
35568         libm_hidden_proto.
35569         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
35570         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
35571         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35572         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
35573         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
35574         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
35575         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
35576         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35577         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
35578         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
35579         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
35580         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
35581         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
35582         (feholdexcept): Likewise.
35583         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
35584         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
35585         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
35586         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35587         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
35588         __feholdexcept instead of feholdexcept.
35589         (default_libc_feholdexcept_setround): Likewise.
35590
35591 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35592
35593         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
35594         to avoid using stl/str to align destination.
35595
35596 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35597
35598         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
35599
35600 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35601
35602         [BZ #17796]
35603         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
35604         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
35605         Define as weak alias not strong alias.
35606
35607 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35608
35609         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
35610         bltzal with addiupc.
35611         (RTLD_START): Ditto.
35612
35613 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
35614
35615         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
35616         for __vdso_* functions in declarations.
35617         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
35618         definitions.
35619         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
35620         INTERNAL_VSYSCALL): Use struct return types to check for error.
35621
35622         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
35623         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
35624         function with cast from llround().
35625         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
35626         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
35627         Define.
35628
35629 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35630
35631         [BZ #17793]
35632         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
35633         Define as weak alias not strong alias.
35634
35635         [BZ #17635]
35636         * ctype/ctype-c99.c: New file.  isblank implementation moved from
35637         ...
35638         * ctype/ctype-extn.c: ... here.
35639         (__isblank_l): Move to ...
35640         * ctype/ctype-c99_l.c: ... here.  New file.
35641         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
35642         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
35643         Remove variable.
35644         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
35645         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
35646         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
35647         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
35648         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
35649
35650         [BZ #17777]
35651         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
35652         (posix_fadvise64): Define as weak alias not strong alias.
35653         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
35654         (posix_fallocate64): Likewise.
35655         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
35656         Remove variable.
35657         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
35658         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
35659         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
35660         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
35661         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
35662
35663 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
35664
35665         [BZ #16191]
35666         * NEWS: Mention bug fix.
35667         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
35668         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
35669         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
35670         (HOST_STACK_END_ADDR): Likewise.
35671
35672 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
35673
35674         [BZ #17748]
35675         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
35676         * math/fegetround.c (fegetround): Rename to __fegetround and
35677         define as weak alias of __fegetround.  Use libm_hidden_weak.
35678         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
35679         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
35680         * sysdeps/arm/fegetround.c (fegetround): Likewise.
35681         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
35682         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
35683         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
35684         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
35685         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
35686         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
35687         Undefine after rather than before function definition; use
35688         parentheses around function name in definition.
35689         (__fegetround): Also undefine macro after function definition.
35690         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
35691         __fegetround and define as weak alias of __fegetround.  Use
35692         libm_hidden_weak.  Do not undefine as macro.
35693         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
35694         Likewise.
35695         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
35696         __fegetround and define as weak alias of __fegetround.  Use
35697         libm_hidden_weak.
35698         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
35699         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
35700         * sysdeps/tile/math_private.h (__fegetround): New inline function.
35701         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
35702         __fegetround and define as weak alias of __fegetround.  Use
35703         libm_hidden_weak.
35704         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
35705         __fegetround instead of fegetround.
35706
35707         [BZ #17782]
35708         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
35709         Condition macro definition on [__USE_MISC].
35710
35711         [BZ #17781]
35712         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
35713         (struct sigaction): Change type of sa_flags field to int.
35714
35715         [BZ #17780]
35716         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
35717         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
35718         __glibc_reserved0.
35719
35720         * nptl/version.c (banner): Use single year in copyright notice.
35721
35722         * NEWS: Update copyright dates.
35723         * catgets/gencat.c (print_version): Likewise.
35724         * csu/version.c (banner): Likewise.
35725         * debug/catchsegv.sh: Likewise.
35726         * debug/pcprofiledump.c (print_version): Likewise.
35727         * debug/xtrace.sh (do_version): Likewise.
35728         * elf/ldconfig.c (print_version): Likewise.
35729         * elf/ldd.bash.in: Likewise.
35730         * elf/pldd.c (print_version): Likewise.
35731         * elf/sotruss.sh: Likewise.
35732         * elf/sprof.c (print_version): Likewise.
35733         * iconv/iconv_prog.c (print_version): Likewise.
35734         * iconv/iconvconfig.c (print_version): Likewise.
35735         * locale/programs/locale.c (print_version): Likewise.
35736         * locale/programs/localedef.c (print_version): Likewise.
35737         * login/programs/pt_chown.c (print_version): Likewise.
35738         * malloc/memusage.sh (do_version): Likewise.
35739         * malloc/memusagestat.c (print_version): Likewise.
35740         * malloc/mtrace.pl: Likewise.
35741         * manual/libc.texinfo: Likewise.
35742         * nptl/version.c (banner): Likewise.
35743         * nscd/nscd.c (print_version): Likewise.
35744         * nss/getent.c (print_version): Likewise.
35745         * nss/makedb.c (print_version): Likewise.
35746         * posix/getconf.c (main): Likewise.
35747         * scripts/test-installation.pl: Likewise.
35748         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
35749
35750 2015-01-02  Will Newton  <will.newton@linaro.org>
35751
35752         * sysdeps/arm/armv7/configure: Removed.
35753         * sysdeps/arm/armv7/configure.ac: Likewise.
35754
35755 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
35756
35757         * All files with FSF copyright notices: Update copyright dates
35758         using scripts/update-copyrights.
35759         * intl/plural.c: Regenerated.
35760         * locale/programs/charmap-kw.h: Likewise.
35761         * locale/programs/locfile-kw.h: Likewise.
35762
35763 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35764
35765         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
35766
35767 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
35768
35769         [BZ #17748]
35770         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
35771         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
35772         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
35773         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
35774         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35775         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
35776         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35777         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
35778         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35779         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35780         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35781         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35782         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35783         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35784         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
35785         libm_hidden_def.
35786         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
35787         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
35788         Likewise.
35789         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35790         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35791         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
35792         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35793         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
35794         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
35795         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
35796         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
35797         __fegetenv instead of fegetenv.
35798         (libc_feholdsetround_noex_ctx): Likewise.
35799
35800 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
35801
35802         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
35803         (Elf_MIPS_ABIFlags_v0): New structure.
35804         (EF_MIPS_FP64): Define.
35805         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
35806         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
35807         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
35808         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
35809         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
35810         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
35811         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
35812         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
35813         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
35814         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
35815         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
35816         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
35817         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
35818         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
35819         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
35820         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
35821         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
35822         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
35823         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
35824         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
35825         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
35826         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
35827         field.
35828         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
35829         EF_MIPS_FP64.
35830         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
35831         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
35832         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
35833         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
35834         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
35835         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
35836         * sysdeps/mips/tst-abi-interlink.c: Likewise.
35837         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
35838         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
35839         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
35840         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
35841         record the current FP ABI extension.
35842         (mips-mode-switch): Define to show if kernel headers support mode
35843         switching.
35844         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
35845         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
35846         supported SYSV ABI version to 3.
35847         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
35848         feature.
35849
35850 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
35851             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35852
35853         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
35854         path.
35855         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
35856
35857 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
35858
35859         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
35860         __fegetround and redefine to call __fegetround.  Remove condition
35861         on [!__NO_MATH_INLINES].
35862         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
35863         function.
35864         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
35865         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
35866         Remove macro.
35867         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
35868         instead of <fenv_libc.h>.
35869         (__llrintl): Call fegetround instead of __fegetround.
35870         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
35871         instead of <fenv_libc.h>.
35872         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
35873         (__lrintl): Call fegetround instead of __fegetround.
35874         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
35875         instead of <fenv_libc.h>.
35876         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
35877         (__rintl): Call fegetround instead of __fegetround.
35878
35879 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
35880
35881         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
35882         arrays.
35883
35884 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
35885
35886         [BZ #17775]
35887         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
35888         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
35889         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
35890
35891 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
35892
35893         * sysdeps/i386/tls-macros.h: Include <features.h>.
35894         (TLS_LE): Use non-PIC version for GCC >= 5.0.
35895         (TLS_IE): Likewise.
35896         (TLS_LD): Likewise.
35897         (TLS_GD): Likewise.
35898         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
35899         define for GCC >= 5.0.
35900
35901 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
35902
35903         * math/test-fenv.c (test_single_exception, set_single_exc,
35904         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
35905         feexcp_mask_test, feenable_test, fe_single_test): Add
35906         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
35907         case where they are not used.
35908         * math/libm-test.inc: Likewise.
35909         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
35910         unused in the absence of FP rounding/exception support.
35911         * stdio-common/tst-printf-round.c: Likewise.
35912         * stdlib/tst-strtod-round.c: Likewise.
35913         * stdlib/tst-strtod-underflow.c: Likewise.
35914
35915 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
35916
35917         [BZ #17723]
35918         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
35919         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
35920         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35921         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35922         libm_hidden_weak.
35923         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
35924         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
35925         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
35926         libm_hidden_def.
35927         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35928         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35929         libm_hidden_weak.
35930         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
35931         Likewise.
35932         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
35933         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35934         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35935         libm_hidden_weak.
35936         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
35937         libm_hidden_def.
35938         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
35939         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
35940         (__feraiseexcept): Likewise.
35941         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35942         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35943         libm_hidden_weak.
35944         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
35945         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
35946         libm_hidden_def.
35947         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
35948         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
35949         Use libm_hidden_def.
35950         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
35951         libm_hidden_def.
35952         (feraiseexcept): Define as weak not strong alias.  Use
35953         libm_hidden_weak.
35954         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
35955         New inline function.  Factored out of ...
35956         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
35957         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
35958         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
35959         feraiseexcept.
35960         * math/w_acos.c (__acos): Likewise.
35961         * math/w_asin.c (__asin): Likewise.
35962         * math/w_ilogb.c (__ilogb): Likewise.
35963         * math/w_j0.c (y0): Likewise.
35964         * math/w_j1.c (y1): Likewise.
35965         * math/w_jn.c (yn): Likewise.
35966         * math/w_log.c (__log): Likewise.
35967         * math/w_log10.c (__log10): Likewise.
35968         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
35969         * sysdeps/aarch64/fpu/math_private.h
35970         (libc_feupdateenv_test_aarch64): Likewise.
35971         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
35972         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
35973         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
35974         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
35975         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
35976         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
35977         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
35978         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
35979         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35980         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
35981
35982 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
35983
35984         [BZ #17732]
35985         * io/test-utime.c (main): Replace %ld with %jd and cast to
35986         intmax_t.
35987         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
35988         * nptl/tst-mutex5.c: Include <stdint.h>.
35989         (do_test): Replace %ld with %jd and cast to intmax_t.
35990         * posix/tst-regex.c (run_test): Likewise.
35991         (run_test_backwards): Likewise.
35992         * rt/tst-clock.c: Include <stdint.h>.
35993         (clock_test): Replace %ld with %jd and cast to intmax_t.
35994         * rt/tst-cpuclock1.c: Include <stdint.h>.
35995         (do_test): Replace %lu with %ju and cast to uintmax_t.
35996         * rt/tst-cpuclock2.c: Include <stdint.h>.
35997         (do_test): Replace %lu with %ju and cast to uintmax_t.
35998         * rt/tst-mqueue1.c: Include <stdint.h>.
35999         (check_attrs): Replace %ld with %jd and cast to intmax_t.
36000         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
36001         intmax_t.
36002         * rt/tst-mqueue4.c (do_test): Likewise.
36003         * rt/tst-timer4.c: Include <stdint.h>.
36004         (check_ts): Replace %ld with %jd and cast to intmax_t.
36005         (do_test): Likewise.
36006         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
36007         and cast to intmax_t.
36008         * sysdeps/pthread/tst-timer.c (main): Likewise.
36009         * time/clocktest.c (main): Likewise.
36010         * time/tst-posixtz.c (do_test): Likewise.
36011         * timezone/tst-timezone.c (main): Likewise.
36012
36013 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
36014             H.J. Lu  <hongjiu.lu@intel.com>
36015
36016         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
36017         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
36018         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
36019         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
36020         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
36021         version if bit_Fast_Unaligned_Load is set.
36022         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
36023         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
36024         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
36025         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
36026         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
36027         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
36028         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36029         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
36030         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
36031         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
36032         to 4.
36033         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
36034         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
36035         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
36036         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
36037
36038 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
36039
36040         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
36041         instead of #if to avoid a Wundef warning.
36042         * stdlib/tst-limits.c (do_test): Likewise.
36043
36044         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
36045         parallel other exception macros.
36046         (fegetenv): Convert from macro to extern inline so that it applies
36047         retroactively to inline functions already seen by the compiler.
36048         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
36049
36050         * posix/Makefile (before-compile): Use $(objpfx) for
36051         posix-conf-vars-def.h.
36052
36053 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
36054
36055         * posix/getconf.c (main): Use size_t for type of I.
36056         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
36057         NSPEC.
36058
36059         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
36060         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
36061         * posix/posix-envs.def: Likewise.
36062         * sysdeps/posix/sysconf.c: Likewise.
36063         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
36064         (specs): Remove array.
36065         * scripts/gen-posix-conf-vars.awk: Support generation of specs
36066         array.
36067
36068         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
36069         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
36070         (__sysconf): Use CONF_IS_* macros.
36071
36072         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
36073         ($(objpfx)posix-conf-vars-def.h): New target.
36074         * posix/posix-conf-vars.list: New file.
36075         * posix/posix-conf-vars.h: New file.
36076         * posix/confstr.c: Include posix-conf-vars.h.
36077         (confstr): Use CONF_IS_* macros.
36078         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
36079         CONF_IS_* macros.
36080         * scripts/gen-posix-conf-vars.awk: New file.
36081
36082 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
36083
36084         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
36085         fegetround): Add no-op macros to avoid linknamespace issues.
36086
36087         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
36088         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
36089
36090         * sysdeps/unix/sysv/linux/tile/sysdep.h
36091         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
36092         assembly-specific section to avoid a redefinition warning.
36093
36094         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
36095         long before casting to pointer to avoid a cast warning.
36096
36097 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
36098
36099         * sysdeps/tile/tilegx/Implies: New file.
36100
36101 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
36102
36103         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
36104
36105 2014-12-23  Florian Weimer  <fweimer@redhat.com>
36106
36107         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
36108
36109 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36110
36111         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
36112         not define.
36113         * sysdeps/unix/sysv/linux/utimes.c: Do not include
36114         <kernel-features.h>.
36115         (__utimes) [__NR_utimes]: Make code unconditional.
36116         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
36117         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36118         (__ASSUME_UTIMES): Do not undefine.
36119         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36120         (__ASSUME_UTIMES): Likewise.
36121         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
36122         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
36123         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
36124         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
36125
36126 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36127
36128         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
36129
36130 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
36131
36132         [BZ #17747]
36133         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
36134         alias to weak alias for j0l, y0l.
36135         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
36136         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
36137
36138         [BZ #17746]
36139         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
36140         conversion.
36141
36142 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36143
36144         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
36145         to zero if not already defined.
36146
36147 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36148
36149         [BZ #17724]
36150         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
36151         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
36152         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
36153         (char *) casts added.
36154         * sysdeps/ieee754/k_standardf.c: New file.
36155         * sysdeps/ieee754/k_standardl.c: Likewise.
36156         * math/Makefile (libm-support): Remove k_standard.
36157         (libm-calls): Add k_standard.
36158
36159 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36160
36161         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
36162         Optimize to avoid an unnecessary FPCR read.
36163
36164 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36165
36166         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
36167         Optimize to reduce FPCR/FPSR accesses.
36168
36169 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36170
36171         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
36172         Call libc_fetestexcept_aarch64.
36173
36174 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36175
36176         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
36177         Call libc_fesetround_aarch64.
36178
36179 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36180
36181         [BZ #17733]
36182         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
36183         (__bind): Do not define as weak alias.
36184         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
36185         define.
36186         (__getsockname): Do not define as weak alias.
36187
36188 2014-12-22  Will Newton  <will.newton@linaro.org>
36189
36190         * manual/install.texi: Document that we require bison 2.7
36191         or above.
36192         * INSTALL: Regenerate.
36193         * configure.ac: Use AC_CHECK_PROG_VER instead of
36194         AC_PATH_PROG when checking for bison and check for
36195         version 2.7 or above.
36196         * configure: Regenerate.
36197
36198 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
36199
36200         [BZ #17745]
36201         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
36202         * sysdeps/tile/ffsll.c (ffsll): To here.
36203
36204         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
36205
36206 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36207
36208         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
36209         if not defined.
36210         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
36211         definition.
36212         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36213         hidden ___tls_get_addr.
36214         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36215         hidden __tls_get_addr.
36216         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
36217         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
36218         Likewise.
36219
36220 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
36221
36222         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
36223         _dl_init call.
36224
36225 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36226
36227         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
36228         from "call _dl_init@PLT".
36229         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
36230
36231 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
36232
36233         * manual/search.texi: (Array Sort Function): Clarify stable sorting
36234         guarantees.
36235
36236 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
36237
36238         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
36239
36240 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36241
36242         [BZ #17744]
36243         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
36244         strnlen.
36245
36246 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36247
36248         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
36249         of multu on MIPSr6.
36250         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
36251         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
36252         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
36253         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
36254         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
36255
36256 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36257
36258         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
36259         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
36260         (PTR_SUBU): Use subu for mips32r6/mips64r6.
36261         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
36262         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
36263         mips32r6/mips64r6.
36264         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
36265
36266 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
36267
36268         * string/strncat.c (STRNCAT): Simplify implementation.
36269
36270 2014-12-19  David S. Miller  <davem@davemloft.net>
36271
36272         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
36273         access the quad as both a long double and as a series of 4 words.
36274
36275         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
36276         link_map->l_info array access.
36277
36278 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36279
36280         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
36281
36282         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
36283         * math/atest-exp2.c (TIMEOUT): Likewise.
36284         * math/atest-sincos.c (TIMEOUT): Likewise.
36285
36286 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36287
36288         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
36289         -Wno-error with -fno-builtin-lround.
36290
36291 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36292
36293         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
36294         Contains futex constants and functions moved over from ...
36295         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
36296         <lowlevellock-futex.h>.
36297         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36298         (lll_timedwait_tid): Add comments and parentheses around macro
36299         arguments.
36300
36301 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36302
36303         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
36304         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
36305         (__lll_private_flag): Remove.
36306         (lll_futex_wait): Likewise.
36307         (lll_futex_timed_wait): Likewise.
36308         (lll_futex_wake): Likewise.
36309         (lll_futex_requeue): Likewise.
36310         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36311         (__lll_timedwait_tid): Spell out argument names.
36312         (lll_timedwait_tid): Add comments and parentheses around macro
36313         arguments.
36314         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
36315         LLL_SHARED and LLL_PRIVATE usable from assembly code.
36316
36317 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36318
36319         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
36320         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
36321         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
36322         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
36323         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
36324         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
36325         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
36326         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
36327         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
36328         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
36329         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
36330         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
36331         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
36332         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
36333         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
36334         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
36335         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
36336         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
36337         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
36338
36339 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36340
36341         * sysdeps/x86_64/x32/Makefile: New file.
36342
36343 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36344
36345         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
36346         1L with (mp_limb_t) 1.
36347
36348 2014-12-17  Roland McGrath  <roland@hack.frob.com>
36349
36350         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
36351         * nptl/libc_pthread_init.c: ... here.
36352         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
36353         * nptl/register-atfork.c: ... here.
36354
36355         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
36356         Use pthread_sigmask rather than INTERNAL_SYSCALL.
36357         Use assert_perror to check its return value.
36358         (__gai_create_helper_thread): Likewise.
36359
36360         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
36361
36362         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
36363
36364 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
36365
36366         [BZ #17725]
36367         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
36368         __profil_counter.
36369         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
36370         Likewise.
36371         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
36372         Likewise.
36373         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
36374         Likewise.
36375         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
36376         (profil_counter): Likewise.
36377         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
36378         (profil_counter): Likewise.
36379         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
36380         Likewise.
36381         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
36382         Likewise.
36383         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
36384         (profil_counter): Likewise.
36385         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
36386         Likewise.
36387         [!__profil_counter] (profil_counter): Define as weak alias of
36388         __profil_counter.
36389         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
36390         (profil_counter): Rename to __profil_counter.
36391         [!__profil_counter] (profil_counter): Define as weak alias of
36392         __profil_counter.
36393         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
36394         (profil_counter): Rename to __profil_counter.
36395         [!__profil_counter] (profil_counter): Define as weak alias of
36396         __profil_counter.
36397         * sysdeps/posix/profil.c: Update comment referring to
36398         profil_counter.
36399         (__profil): Use __profil_counter instead of profil_counter.
36400         * sysdeps/posix/sprofil.c (profil_counter): Rename to
36401         __profil_counter.  Use __profil_counter_ushort and
36402         __profil_counter_uint in definitions.
36403         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
36404         instead of profil_counter_uint and profil_counter_ushort.
36405
36406         [BZ #17722]
36407         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
36408         define as weak alias of __inet_makeaddr.
36409         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
36410         as weak alias of __inet_addr.
36411         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
36412         as weak alias of __inet_pton.  Use libc_hidden_weak.
36413         * include/arpa/inet.h (__inet_pton): Declare.  Use
36414         libc_hidden_proto.
36415         (inet_makeaddr): Don't use libc_hidden_proto.
36416         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
36417         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
36418         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
36419         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
36420         Remove variable.
36421         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
36422         (test-xfail-POSIX/time.h/linknamespace): Likewise.
36423
36424 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
36425
36426         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
36427
36428 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36429
36430         * stdio-common/bug-vfprintf-nargs.c (do_test):
36431         Cast value to intptr_t to avoid format warning
36432         for usage with PRIdPTR printing macro.
36433
36434 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36435
36436         * libio/tst-widetext.c (do_test):
36437         Use format type %td instead of %Zd for ptrdiff_t
36438         in order to avoid format warning.
36439
36440 2014-12-17  Andreas Schwab  <schwab@suse.de>
36441
36442         * nscd/mem.c (gc): Add size_t cast to match printf format.
36443
36444 2014-12-16  Roland McGrath  <roland@hack.frob.com>
36445
36446         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
36447         (init): Apply PTR_MANGLE to pointers before storing them.
36448         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
36449         before using them.
36450
36451 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
36452
36453         [BZ #17719]
36454         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
36455         define as weak alias of __memrchr.
36456         (__memrchr): Do not define as strong alias of memrchr.
36457         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
36458         Remove variable.
36459         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
36460         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
36461         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
36462
36463         [BZ #17717]
36464         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
36465         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
36466         (if_indextoname): Rename to __if_indextoname and define as weak
36467         alias of __if_indextoname.  Use libc_hidden_weak.
36468         (if_freenameindex): Rename to __if_freenameindex and define as
36469         weak alias of __if_freenameindex.
36470         (if_nameindex): Rename to __if_nameindex and define as weak alias
36471         of __if_nameindex.
36472         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
36473         __if_nametoindex and define as weak alias of __if_nametoindex.
36474         Use libc_hidden_weak.
36475         (if_freenameindex): Rename to __if_freenameindex and define as
36476         weak alias of __if_freenameindex.
36477         (if_nameindex): Rename to __if_nameindex and define as weak alias
36478         of __if_nameindex.
36479         (if_indextoname): Rename to __if_indextoname and define as weak
36480         alias of __if_indextoname.  Use libc_hidden_weak.
36481         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
36482         __if_nametoindex and define as weak alias of __if_nametoindex.
36483         Use libc_hidden_weak.
36484         (if_freenameindex): Rename to __if_freenameindex and define as
36485         weak alias of __if_freenameindex.  Use libc_hidden_weak.
36486         (if_nameindex_netlink): Use __if_freenameindex instead of
36487         if_freenameindex.
36488         (if_nameindex): Rename to __if_nameindex and define as weak alias
36489         of __if_nameindex.  Use libc_hidden_weak.
36490         (if_indextoname): Rename to __if_indextoname and define as weak
36491         alias of __if_indextoname.  Use libc_hidden_weak.
36492         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
36493         libc_hidden_proto.
36494         [!_ISOMAC] (__if_freenameindex): Likewise.
36495         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
36496         if_nametoindex.
36497         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
36498         variable.
36499         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
36500         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
36501         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
36502         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
36503         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
36504         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
36505         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
36506
36507         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
36508         Remove variable.
36509         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
36510         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
36511
36512 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
36513
36514         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
36515         subscript above bounds'
36516
36517         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
36518         bounds.
36519
36520 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
36521
36522         * libio/tst-fopenloc.c: Use test-skeleton.c.
36523
36524         * stdlib/tst-bsearch.c: Use test-skeleton.c.
36525         (entry): Rename to ITEM.
36526         (do_test, comp): Adjust.
36527
36528         * stdio-common/tst-fseek.c: Use test-skeleton.c.
36529
36530 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36531
36532         * string/tester.c: Include <libc-internal.h>.
36533         (test_memset): Ignore -Wmemset-transposed-args.
36534
36535 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36536
36537         * misc/tst-mntent2.c (do_test): Fix warning.
36538
36539 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36540
36541         * elf/tst-unique4lib.cc(a): Mark as used.
36542
36543 2014-12-16  Florian Weimer  <fweimer@redhat.com>
36544
36545         [BZ #17630]
36546         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
36547         names.
36548
36549 2014-12-16  Allan McRae  <allan@archlinux.org>
36550
36551         * stdio-common/Makefile (tests): Re-add bug26.
36552
36553 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
36554
36555         [BZ #17657]
36556         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
36557         static array.
36558
36559 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
36560
36561         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
36562         (__lll_lock_wait): Likewise.
36563         (__lll_timedlock_wait): Likewise.
36564         (__lll_timedwait_tid): Likewise.
36565         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
36566         (__lll_robust_timedlock_wait): Likewise.
36567         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
36568         (lll_cond_trylock): Likewise.
36569         (__lll_lock): Likewise.
36570         (__lll_robust_lock): Likewise.
36571         (__lll_cond_lock): Likewise.
36572         (lll_robust_cond_lock): Likewise.
36573         (__lll_timedlock): Likewise.
36574         (__lll_robust_timedlock): Likewise.
36575         (__lll_unlock): Likewise.
36576         (__lll_robust_unlock): Likewise.
36577         (lll_wait_tid): Likewise.
36578         (lll_timedwait_tid): Likewise.
36579
36580 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36581
36582         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
36583
36584 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36585
36586         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
36587
36588 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
36589
36590         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
36591         * stdio-common/tst-sprintf.c: Likewise.
36592
36593 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36594
36595         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
36596
36597 2014-12-15  Jeff Law  <law@redhat.com>
36598
36599         [BZ #16617]
36600         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
36601         on the heap.  (CVE-2012-3406)
36602         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
36603         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
36604         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
36605
36606 2014-12-15  Will Newton  <will.newton@linaro.org>
36607
36608         * manual/install.texi: Bump required version of texinfo
36609         to 4.7 from 4.5.
36610         * INSTALL: Regenerated.
36611         * configure.ac: Check for makeinfo version 4.7 and above.
36612         * configure: Regenerated.
36613
36614 2014-12-12  Roland McGrath  <roland@hack.frob.com>
36615
36616         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
36617         PREFIX, string constant to insert between directory and name.
36618         * sysdeps/posix/shm_open.c: Update caller.
36619         * sysdeps/posix/shm_unlink.c: Likewise.
36620         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
36621         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
36622         (SEM_SHM_PREFIX): New macro.
36623         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
36624         [$(have-thread-library) = no].
36625         * nptl/Makefile (libpthread-routines): Add shm-directory.
36626         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
36627         * sysdeps/nptl/shm-directory.h: New file.
36628         * sysdeps/posix/shm-directory.c
36629         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
36630         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
36631         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
36632         INTERNAL_SYSCALL.
36633         (__where_is_shmfs): Function removed.
36634         (mountpoint, defaultmount, defaultdir, __namedsem_once):
36635         Variables removed.
36636         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
36637         Use SHM_GET_NAME.
36638         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
36639
36640         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
36641         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
36642         unconditional for use inside libpthread.
36643         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
36644
36645 2014-12-12  Roland McGrath  <roland@hack.frob.com>
36646
36647         * nptl/pthread_getaffinity.c: New file.
36648         * nptl/pthread_setaffinity.c: New file.
36649         * nptl/pthread_getname.c: New file.
36650         * nptl/pthread_setname.c: New file.
36651
36652         * nptl/pthread_create.c (START_THREAD_DEFN)
36653         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
36654
36655 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
36656             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36657
36658         * resolv/res_send.c (send_vc): Disable warning resplen may
36659         be used uninitialized.
36660
36661 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
36662
36663         * nptl/tst-mutex6.c
36664         (ATTR_NULL): New define checks ATTR against NULL.
36665         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
36666         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
36667
36668 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
36669
36670         [BZ #17581]
36671         * malloc/hooks.c
36672         (mem2mem_check): Revert my previous change.
36673         (malloc_check_get_size): Revert my previous change.
36674         (mem2chunk_check): Revert my previous change.
36675
36676 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36677
36678         * sysdeps/posix/shm-directory.c: New file.
36679         * sysdeps/posix/shm-directory.h: New file.
36680         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
36681         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
36682         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
36683         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
36684         Transmute EPERM to EACCES.
36685         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
36686         from ...
36687         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
36688         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
36689
36690 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
36691
36692         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
36693         pointer and cast to uintptr_t.
36694         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
36695         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
36696         Add cast to avoid warning.
36697         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
36698
36699 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
36700
36701         * nptl/semaphore.h: Move to ...
36702         * sysdeps/pthread/semaphore.h: ... here.
36703         * Makefile (installed-headers): Change nptl/semaphore.h to
36704         sysdeps/pthread/semaphore.h.
36705
36706 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36707
36708         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
36709         generated error format strings.
36710
36711         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
36712         -Wformat-extra-args warnings for scanf formats.
36713         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
36714         test of zero-length format (duh).
36715         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
36716         corner-case scanf format test.
36717         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
36718         generated fprintf format string.
36719         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
36720         corner-case sprintf format tests.
36721         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
36722         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
36723         -Wformat-extra-args warnings throughout.
36724         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
36725         (CFLAGS-scanf4.c): Likewise.
36726         (CFLAGS-scanf7.c): Likewise.
36727         (CFLAGS-tst-sprintf.c): Likewise.
36728         (CFLAGS-tst-printf.c): Likewise.
36729         (CFLAGS-tst-printfsz.c): Likewise.
36730
36731 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
36732
36733         * include/cpio.h: New file.
36734         * include/fmtmsg.h: Likewise.
36735
36736         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
36737         corresponding format argument to size_t.
36738         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
36739         arguments.
36740         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
36741         corresponding format argument to size_t.
36742         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
36743         arguments.
36744         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
36745         corresponding format argument to size_t.
36746         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
36747         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
36748         (CFLAGS-tst-mbswcs2.c): Likewise.
36749         (CFLAGS-tst-mbswcs3.c): Likewise.
36750         (CFLAGS-tst-mbswcs4.c): Likewise.
36751         (CFLAGS-tst-mbswcs5.c): Likewise.
36752         (CFLAGS-tst-trans.c): Likewise.
36753
36754 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36755
36756         * posix/regexbug1.c (main): Use "%s" format with regerror results,
36757         rather than assuming they won't contain any '%'s.
36758
36759 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
36760
36761         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
36762         inhibit_loop_to_libcall to avoid recursive calls.
36763         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
36764         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
36765
36766 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
36767
36768         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
36769         prototype.
36770
36771 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
36772
36773         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
36774         integer value instead of boolean.
36775
36776 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
36777
36778         * malloc/malloc.c: Fix powerof2 check.
36779
36780 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
36781
36782         * locale/programs/locfile.h (maybe_swap_uint32):
36783         Remove inline and add unused attribute.
36784
36785 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
36786
36787         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
36788         Truncating assembler expression to a .long expression.
36789
36790 2014-12-11  Andreas Schwab  <schwab@suse.de>
36791
36792         * elf/rtld.c (struct map_args): Constify str member.
36793         (do_preload): Constify fname argument.
36794
36795 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36796
36797         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
36798         constants definition.
36799
36800 2014-12-11  Andreas Schwab  <schwab@suse.de>
36801
36802         [BZ #16657]
36803         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
36804         FORCE_ELISION instead of DO_ELISION.
36805         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
36806         Remove.
36807         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
36808         Likewise.
36809
36810         * iconvdata/gconv-modules: Remove duplicate entry.
36811
36812 2014-12-11  Will Newton  <will.newton@linaro.org>
36813
36814         Merge gettext 0.19.3 into intl/.
36815
36816         This involves a number of cosmetic changes to comments
36817         and ANSI function definitions and prototypes throughout
36818         all the files. The gettext copyright header is used but
36819         with the date ranges taken from the glibc copy.
36820
36821         * NEWS: Add gettext merge to 2.21.
36822         * intl/bindtextdom.c: Switch to gettext copyright.
36823         Use ANSI definitions and prototypes.
36824         Use gl_* locking primitives rather than __libc_* ones.
36825         Use __builtin_expect rather than __glibc_likely/unlikely.
36826         * intl/dcgettext.c: Switch to gettext copyright.
36827         Use ANSI definitions and prototypes.
36828         * intl/dcigettext.c: Switch to gettext copyright.
36829         Use ANSI definitions and prototypes.
36830         (INTDIV0_RAISES_SIGFPE): New define.
36831         Use gl_* locking primitives rather than __libc_* ones.
36832         Include eval-plural.h instead of plural-eval.c.
36833         Use __builtin_expect rather than __glibc_likely/unlikely.
36834         * intl/dcngettext.c: Switch to gettext copyright.
36835         Use ANSI definitions and prototypes.
36836         * intl/dgettext.c: Likewise.
36837         * intl/dngettext.c: Likewise.
36838         * intl/plural-eval.c: Renamed to...
36839         * intl/eval-plural.h: ...this.
36840         * intl/explodename.c: Switch to gettext copyright.
36841         Use ANSI definitions and prototypes.
36842         (_nl_explode_name): Use strchr instead of __rawmemchr.
36843         * intl/finddomain.c: Switch to gettext copyright.
36844         Use ANSI definitions and prototypes.
36845         Use gl_* locking primitives rather than __libc_* ones.
36846         (_nl_find_domain): Use malloc rather than alloca for
36847         allocation of temporary locale name.
36848         * intl/gettext.c: Switch to gettext copyright.
36849         Use ANSI definitions and prototypes.
36850         * intl/gettextP.h: Switch to gettext copyright.
36851         Use ANSI definitions and prototypes.
36852         Use gl_* locking primitives rather than __libc_* ones.
36853         * intl/gmo.h: Switch to gettext copyright.
36854         (struct sysdep_string): Move struct segment_pair outside of
36855         struct definition.
36856         * intl/hash-string.c: Use ANSI definitions and prototypes.
36857         * intl/hash-string.h: Switch to gettext copyright.
36858         Use ANSI definitions and prototypes.
36859         * intl/l10nflist.c: Switch to gettext copyright.
36860         Use ANSI definitions and prototypes.
36861         (_nl_normalize_codeset): Avoid integer overflow.
36862         * intl/loadinfo.h: Switch to gettext copyright.
36863         Use ANSI definitions and prototypes.
36864         (LIBINTL_DLL_EXPORTED): New define.
36865         (PATH_SEPARATOR): New define.
36866         * intl/loadmsgcat.c: Switch to gettext copyright.
36867         * intl/localealias.c: Switch to gettext copyright.
36868         Use ANSI definitions and prototypes.
36869         (_nl_expand_alias): Use PATH_SEPARATOR.
36870         * intl/ngettext.c: Switch to gettext copyright.
36871         Use ANSI definitions and prototypes.
36872         * intl/plural-exp.c: Likewise.
36873         * intl/plural-exp.h: Switch to gettext copyright.
36874         Use ANSI definitions and prototypes.
36875         (struct expression): Move definition of enum operator outside
36876         of struct definition.
36877         * intl/plural.c: Regenerate.
36878         * intl/plural.y: Switch to gettext copyright.
36879         Use ANSI definitions and prototypes.
36880         Port to bison 3.0.
36881         * intl/textdomain.c: Switch to gettext copyright.
36882         Use ANSI definitions and prototypes.
36883         Use gl_* locking primitives rather than __libc_* ones.
36884
36885 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
36886
36887         * debug/warning-nop.c: Add used atrribute.
36888
36889 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36890
36891         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
36892
36893         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
36894         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
36895         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
36896
36897 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36898             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36899
36900         [BZ #17634]
36901         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
36902         Undefine after defining function.  Define as weak alias of
36903         __wcschr.  Use libc_hidden_weak.
36904         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
36905         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
36906         (libc_hidden_def): Also define __GI___wcschr alias.
36907         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
36908         __wcschr and define as weak alias of __wcschr.
36909         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
36910         __wcschr.
36911         [!WCSCHR] (DEFAULT_WCSCHR): Define.
36912         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
36913         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
36914         libc_hidden_weak.  Do not use libc_hidden_def.
36915         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
36916         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
36917         __GI___wcschr alias.
36918         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
36919         [IS_IN (libc)] (wcschr): Define as macro expanding to
36920         __redirect_wcschr.
36921         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
36922         [IS_IN (libc)] (__wcschr_power6): Likewise.
36923         [IS_IN (libc)] (__wcschr_power7): Likewise.
36924         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
36925         instead of wcschr.
36926         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
36927         __libc_wcschr.
36928         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
36929         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
36930         __wcschr and define as weak alias of __wcschr.  Use
36931         libc_hidden_builtin_def.
36932         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
36933         as weak alias of __wcschr.  Use libc_hidden_weak.
36934         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
36935         wcschr.
36936         * time/era.c (_nl_init_era_entries): Likewise.
36937         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
36938         variable.
36939         (test-xfail-XPG3/time.h/linknamespace): Likewise.
36940         (test-xfail-XPG4/time.h/linknamespace): Likewise.
36941
36942 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36943
36944         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
36945         format for long int variable.
36946
36947 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
36948
36949         [BZ #10672]
36950         * manual/search.texi: (Array Sort Function): Remove claim how to make
36951         qsort stable.
36952
36953 2014-12-10  Andreas Schwab  <schwab@suse.de>
36954
36955         [BZ #12847]
36956         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
36957         user-controlled locks.
36958
36959 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
36960
36961         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
36962         register.
36963
36964 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36965
36966         * configure.ac (--disable-werror): New configure option.
36967         (enable_werror): New AC_SUBST.
36968         * configure: Regenerated.
36969         * config.make.in (enable-werror): New variable.
36970         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
36971         -Wno-error=undef.
36972         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
36973         * manual/install.texi (Configuring and compiling): Document
36974         --disable-werror.
36975         * INSTALL: Regenerated.
36976         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
36977         (CFLAGS-tst-chk2.c): Likewise.
36978         (CFLAGS-tst-chk3.c): Likewise.
36979         (CFLAGS-tst-chk4.cc): Likewise.
36980         (CFLAGS-tst-chk5.cc): Likewise.
36981         (CFLAGS-tst-chk6.cc): Likewise.
36982         (CFLAGS-tst-lfschk1.c): Likewise.
36983         (CFLAGS-tst-lfschk2.c): Likewise.
36984         (CFLAGS-tst-lfschk3.c): Likewise.
36985         (CFLAGS-tst-lfschk4.cc): Likewise.
36986         (CFLAGS-tst-lfschk5.cc): Likewise.
36987         (CFLAGS-tst-lfschk6.cc): Likewise.
36988
36989         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
36990         (main): Disable -Wdeprecated-declarations around calls to
36991         register_printf_function.
36992
36993         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
36994         (do_test): Disable -Wdiv-by-zero around some calls to
36995         fwrite_unlocked and fread_unlocked.
36996
36997         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
36998         (DIAG_POP_NEEDS_COMMENT): Likewise.
36999         (_DIAG_STR1): Likewise.
37000         (_DIAG_STR): Likewise.
37001         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
37002         * stdio-common/bug21.c: Include <libc-internal.h>.
37003         (do_test): Disable -Wformat around call to sscanf.
37004         * stdio-common/scanf14.c: Include <libc-internal.h>.
37005         (main): Disable -Wformat around some calls to scanf functions.
37006
37007 2014-12-09  Torvald Riegel  <triegel@redhat.com>
37008
37009         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
37010
37011 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37012
37013         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
37014         stack variable alignment.
37015
37016 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
37017
37018         [BZ #17682]
37019         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
37020         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
37021         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
37022         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
37023         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
37024         __getrlimit instead of getrlimit.
37025         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
37026         __gettimeofday instead of gettimeofday.
37027         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
37028         Likewise.
37029         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
37030         Likewise.
37031         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37032         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
37033         Remove variable.
37034         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
37035         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
37036
37037 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37038
37039         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
37040         for wide-character tests.
37041
37042 2014-12-04  Roland McGrath  <roland@hack.frob.com>
37043
37044         * io/openat64.c: #include <libc-internal.h>
37045         (__openat64): Prototypify.  Use ignore_value on MODE.
37046         * io/openat.c: Likewise.
37047         * misc/reboot.c: #include <libc-internal.h>
37048         (reboot): Prototypify.  Use ignore_value on HOWTO.
37049         * misc/ptrace.c: #include <libc-internal.h>
37050         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
37051
37052 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
37053
37054         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
37055         XPG4, UNIX98 and XOPEN2K.
37056         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
37057         Remove variable.
37058         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
37059
37060 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37061
37062         * libio/fileops.c: Use ISO C style for function definitions.
37063         * libio/iofopen.c: Likewise.
37064         * libio/wfileops.c: Likewise.
37065
37066         [BZ #17653]
37067         * libio/fileops.c (_IO_new_file_underflow): Unset cached
37068         offset on EOF.
37069         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
37070         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
37071         (fgets_func): Function pointer to fgets and fgetws.
37072         (do_ftell_test): Add test to verify ftell value after read
37073         EOF.
37074         (do_test): Set fgets_func.
37075
37076         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
37077         O_TRUNC flag for w and w+ modes.
37078         (do_rewind_test): Likewise.
37079         (do_ftell_test): Likewise.
37080         (do_write_test): Likewise.
37081
37082         [BZ #17647]
37083         * libio/fileops.c (do_ftell): Seek only when there are
37084         unflushed writes.
37085         * libio/wfileops.c (do_ftell_wide): Likewise.
37086         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
37087         test case.
37088         (do_one_test): Call it.
37089
37090 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
37091
37092         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
37093         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
37094         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
37095         Remove variable.
37096         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
37097         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
37098         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
37099
37100 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37101
37102         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
37103         Remove variable.
37104         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
37105
37106         [BZ #17668]
37107         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
37108         as weak alias of __getifaddrs.  Use libc_hidden_weak.
37109         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37110         __freeifaddrs.  Use libc_hidden_weak.
37111         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
37112         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
37113         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37114         __freeifaddrs.  Use libc_hidden_weak.
37115         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
37116         __getifaddrs and define as weak alias of __getifaddrs.  Use
37117         libc_hidden_weak.
37118         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37119         __freeifaddrs.  Use libc_hidden_weak.
37120         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
37121         Remove variable.
37122         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
37123         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
37124
37125 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
37126
37127         [BZ #17601]
37128         * sysdeps/mips/start.S (__start): Use indirect jump to call
37129         __libc_start_main.
37130
37131 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37132
37133         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
37134
37135         * nptl/tst-mutex1.c: Include <stdbool.h>.
37136         [!ATTR] (ATTR_NULL): New macro.
37137         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
37138         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
37139         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
37140
37141         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
37142         to char *.
37143
37144         [BZ #17665]
37145         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
37146         Change conditional to [__USE_MISC].
37147
37148         [BZ #17664]
37149         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
37150         fgets_unlocked.
37151         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
37152         __fgets_unlocked.
37153         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
37154         fgets_unlocked.
37155         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
37156         Remove variable.
37157         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
37158         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
37159         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
37160         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
37161         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
37162         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
37163         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
37164         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
37165         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
37166
37167         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
37168
37169 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37170
37171         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37172         Remove strpbrk objects.
37173         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37174         (__libc_ifunc_impl_list): Remove strpbrk implementation.
37175         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
37176         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
37177         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
37178         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
37179
37180         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37181         Remove strcspn objects.
37182         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37183         (__libc_ifunc_impl_list): Remove strcspn implementation.
37184         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
37185         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
37186         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
37187         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
37188
37189         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37190         Remove strspn objetcs.
37191         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37192         (__libc_ifunc_impl_list): Remove strspn implementation.
37193         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
37194         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
37195         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
37196         * sysdeps/powerpc/powerpc64/strspn.S: New file.
37197
37198 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
37199
37200         [BZ #17581]
37201         * malloc/hooks.c
37202         (mem2mem_check): Add a terminator to the chain of checking blocks.
37203         (malloc_check_get_size): Use it here.
37204         (mem2chunk_check): Ditto.
37205
37206 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37207
37208         * sysdeps/powerpc/powerpc64/strtok.S: New file.
37209         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
37210
37211 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
37212
37213         * bits/ioctl-types.h: Indent preprocessor directives correctly.
37214
37215         * nptl/nptl-init.c: Include libc-internal.h.
37216         (__pthread_initialize_minimal_internal): Use ROUND_UP.
37217
37218         * elf/ldconfig.c (search_dir): Expand comment.
37219
37220 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
37221
37222         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
37223         variable.
37224         (linknamespace-symlist-stdlibs-tests): Likewise.
37225         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
37226         instead of $(objpfx)symlist-stdlibs.
37227         (linknamespace-libs-isoc): New variable.
37228         (linknamespace-libs): Use $(linknamespace-libs-isoc).
37229         (linknamespace-libs-ISO): New variable.
37230         (linknamespace-libs-ISO99): Likewise.
37231         (linknamespace-libs-ISO11): Likewise.
37232         (linknamespace-libs-XPG3): Likewise.
37233         (linknamespace-libs-XPG4): Likewise.
37234         (linknamespace-libs-POSIX): Likewise.
37235         (linknamespace-libs-UNIX98): Likewise.
37236         (linknamespace-libs-XOPEN2K): Likewise.
37237         (linknamespace-libs-POSIX2008): Likewise.
37238         (linknamespace-libs-XOPEN2K8): Likewise.
37239         ($(objpfx)symlist-stdlibs): Replace by
37240         $(linknamespace-symlist-stdlibs-tests).  Use
37241         $(linknamespace-libs-$*) as set of libraries.
37242         ($(linknamespace-header-tests)): Update dependencies.  Use
37243         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
37244         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
37245         * conform/linknamespace.pl: Remove comment about considering
37246         definitions of symbols from irrelevant libraries.
37247
37248 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
37249
37250         [BZ #13862]
37251         * elf/dl-tls.c: Include <atomic.h>.
37252         (oom): Remove #ifdef SHARED/#endif.
37253         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
37254         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
37255         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
37256         big enough.
37257         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
37258         * nptl/Makefile (tests): Add tst-stack4.
37259         (modules-names): Add tst-stack4mod.
37260         ($(objpfx)tst-stack4): New.
37261         (tst-stack4mod.sos): Likewise.
37262         ($(objpfx)tst-stack4.out): Likewise.
37263         ($(tst-stack4mod.sos)): Likewise.
37264         (clean): Likewise.
37265         * nptl/tst-stack4.c: New file.
37266         * nptl/tst-stack4mod.c: Likewise.
37267
37268 2014-11-27  J. Brown  <jb999@gmx.de>
37269
37270         * sysdeps/x86/bits/string.h: Add recent CPUs.
37271
37272 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37273
37274         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
37275         sigblock.
37276
37277         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
37278         feof.
37279
37280         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
37281         variable.
37282
37283 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
37284
37285         * nscd/connections.c: Include libc-internal.h because of macro
37286         usage ignore_value.
37287
37288 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37289
37290         * string/bits/string3.h (__warn_memset_zero_len): Don't
37291         declare for gcc newer than 5.0.
37292         (memset): Don't test for zero-length __LEN for gcc newer than
37293         5.0.
37294
37295 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37296
37297         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
37298         size_t for %zu format.
37299
37300         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
37301         difference, not %ju.
37302
37303 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37304
37305         * include/libc-internal.h (ignore_value): New macro.
37306         * nscd/connections.c (restart): Wrap calls to setuid and setgid
37307         with ignore_value.
37308
37309         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
37310         definition.
37311
37312         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
37313         pthread_cleanup_push to void *.
37314
37315         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
37316         Undefine.
37317
37318         [BZ #16619]
37319         [BZ #16740]
37320         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
37321         instead of 1L << 52.
37322
37323         * libio/bug-rewind.c (do_test): Check fwscanf return values.
37324         * libio/bug-rewind2.c (do_test): Likewise.
37325
37326         * debug/test-stpcpy_chk-ifunc.c: Remove file.
37327         * debug/test-strcpy_chk-ifunc.c: Likewise.
37328         * wcsmbs/test-wcschr-ifunc.c: Likewise.
37329         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
37330         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
37331         * wcsmbs/test-wcslen-ifunc.c: Likewise.
37332         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
37333         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
37334         * Rules [$(multi-arch) = no] (tests): Do not filter out
37335         $(tests-ifunc).
37336         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
37337         * debug/Makefile (tests-ifunc): Remove variable.
37338         (tests): Do not add $(tests-ifunc).
37339         * wcsmbs/Makefile (tests-ifunc): Remove variable.
37340         (tests): Do not add $(tests-ifunc).
37341         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
37342         [TEST_IFUNC]: Remove conditionals.
37343         * string/test-string.h (TEST_IFUNC): Remove macro.
37344         [TEST_IFUNC]: Remove conditionals.
37345
37346         * string/test-strchr.c [!WIDE] (L): New macro.
37347         [WIDE] (L): Likewise.
37348         (check1): Use CHAR instead of char.  Use L on string and character
37349         constants.
37350
37351 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
37352
37353         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
37354         tests.
37355         * sysdeps/powerpc/bits/atomic.h
37356         (__arch_atomic_exchange_and_add_32_acq): Add definition.
37357         (__arch_atomic_exchange_and_add_32_rel): Likewise.
37358         (atomic_exchange_and_add_acq): Likewise.
37359         (atomic_exchange_and_add_rel): Likewise.
37360         * sysdeps/powerpc/powerpc32/bits/atomic.h
37361         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37362         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37363         * sysdeps/powerpc/powerpc64/bits/atomic.h
37364         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37365         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37366
37367 2014-11-26  Torvald Riegel  <triegel@redhat.com>
37368
37369         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
37370         Change synchronization of __sched_fifo_min_prio and
37371         __sched_fifo_max_prio.
37372         * nptl/pthread_mutexattr_getprioceiling.c
37373         (pthread_mutexattr_getprioceiling): Likewise.
37374         * nptl/pthread_mutexattr_setprioceiling.c
37375         (pthread_mutexattr_setprioceiling): Likewise.
37376         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
37377         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
37378         Likewise.
37379
37380 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37381
37382         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
37383         void.
37384
37385 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37386
37387         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
37388         third argument const.
37389
37390 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37391
37392         fnmatch: work around GCC compiler warning bug with uninit var
37393         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
37394         This works around a bug with x86-64 GCC 4.9.2 and earlier
37395         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
37396         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
37397         used uninitialized in this function [-Wmaybe-uninitialized]".
37398
37399 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37400
37401         * posix/bug-regex31.c (main): Return RES not 0.
37402
37403 2014-11-25  Anton Blanchard <anton@samba.org>
37404
37405         * sysdeps/powerpc/bits/atomic.h
37406         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
37407
37408 2014-11-24  Sterling Augustine  <saugustine@google.com>
37409
37410         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
37411
37412 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
37413
37414         [BZ #17608]
37415         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
37416
37417 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
37418
37419         [BZ #17633]
37420         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
37421         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
37422         variable.
37423         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
37424         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
37425
37426 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37427
37428         * string/strncpy.c (strncpy): Improve performance by using memset.
37429
37430 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37431
37432         * string/strcpy.c (strcpy):
37433         Improve performance by using strlen and memcpy.
37434
37435 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
37436
37437         * string/strcoll_l.c (get_next_seq): __always_inline.
37438         * string/strcoll_l.c (do_compare): __always_inline.
37439
37440 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
37441
37442         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
37443         defined.
37444         * include/mqueue.h: Likewise.
37445         * include/stdlib.h: Likewise.
37446
37447         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
37448         (get_null_defines): Adjust.
37449         * sunrpc/Makefile: Adjust comment.
37450         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
37451         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
37452         (CFLAGS-interp.c): Likewise.
37453         (CFLAGS-ldconfig.c): Likewise.
37454         (CPPFLAGS-.os): Likewise.
37455         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
37456         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
37457         * extra-modules.mk (extra-modules.mk): Likewise.
37458         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
37459         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
37460         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
37461         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
37462         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
37463         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
37464         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
37465         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
37466         * iconvdata/Makefile (CPPFLAGS): Likewise.
37467         (cpp-srcs-left): Add libof for all iconvdata routines.
37468         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
37469         * include/assert.h: Likewise.
37470         * include/ctype.h: Likewise.
37471         * include/errno.h: Likewise.
37472         * include/libc-symbols.h: Likewise.
37473         * include/math.h: Likewise.
37474         * include/netdb.h: Likewise.
37475         * include/resolv.h: Likewise.
37476         * include/stdio.h: Likewise.
37477         * include/stdlib.h: Likewise.
37478         * include/string.h: Likewise.
37479         * include/sys/stat.h: Likewise.
37480         * include/wctype.h: Likewise.
37481         * intl/l10nflist.c: Likewise.
37482         * libidn/idn-stub.c: Likewise.
37483         * libio/libioP.h: Likewise.
37484         * nptl/libc_multiple_threads.c: Likewise.
37485         * nptl/pthreadP.h: Likewise.
37486         * posix/regex_internal.h: Likewise.
37487         * resolv/res_hconf.c: Likewise.
37488         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
37489         * sysdeps/arm/memmove.S: Likewise.
37490         * sysdeps/arm/sysdep.h: Likewise.
37491         * sysdeps/generic/_itoa.h: Likewise.
37492         * sysdeps/generic/symbol-hacks.h: Likewise.
37493         * sysdeps/gnu/errlist.awk: Likewise.
37494         * sysdeps/gnu/errlist.c: Likewise.
37495         * sysdeps/i386/i586/memcpy.S: Likewise.
37496         * sysdeps/i386/i586/memset.S: Likewise.
37497         * sysdeps/i386/i686/memcpy.S: Likewise.
37498         * sysdeps/i386/i686/memmove.S: Likewise.
37499         * sysdeps/i386/i686/mempcpy.S: Likewise.
37500         * sysdeps/i386/i686/memset.S: Likewise.
37501         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
37502         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37503         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
37504         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
37505         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37506         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
37507         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
37508         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37509         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
37510         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
37511         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37512         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37513         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37514         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37515         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37516         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37517         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
37518         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
37519         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
37520         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37521         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
37522         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
37523         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37524         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37525         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37526         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
37527         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
37528         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37529         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
37530         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
37531         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
37532         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
37533         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
37534         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37535         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
37536         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
37537         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37538         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37539         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
37540         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
37541         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37542         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37543         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
37544         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
37545         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37546         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37547         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
37548         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
37549         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37550         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
37551         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37552         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
37553         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
37554         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37555         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
37556         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
37557         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37558         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
37559         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
37560         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37561         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
37562         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37563         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
37564         * sysdeps/nptl/bits/libc-lock.h: Likewise.
37565         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
37566         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
37567         * sysdeps/posix/closedir.c: Likewise.
37568         * sysdeps/posix/opendir.c: Likewise.
37569         * sysdeps/posix/readdir.c: Likewise.
37570         * sysdeps/posix/rewinddir.c: Likewise.
37571         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
37572         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
37573         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
37574         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
37575         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
37576         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
37577         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
37578         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
37579         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
37580         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
37581         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
37582         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
37583         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
37584         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
37585         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
37586         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
37587         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
37588         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
37589         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
37590         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
37591         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
37592         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
37593         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
37594         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
37595         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
37596         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
37597         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
37598         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
37599         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
37600         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
37601         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
37602         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
37603         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
37604         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
37605         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
37606         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
37607         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
37608         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
37609         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
37610         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
37611         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
37612         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
37613         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
37614         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
37615         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
37616         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
37617         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
37618         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
37619         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
37620         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
37621         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
37622         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
37623         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
37624         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
37625         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
37626         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
37627         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
37628         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
37629         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
37630         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
37631         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
37632         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
37633         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
37634         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
37635         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
37636         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
37637         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
37638         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
37639         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
37640         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
37641         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
37642         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
37643         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
37644         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
37645         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
37646         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
37647         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
37648         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
37649         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
37650         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
37651         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
37652         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
37653         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
37654         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
37655         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
37656         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
37657         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
37658         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
37659         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
37660         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
37661         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
37662         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
37663         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
37664         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
37665         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
37666         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
37667         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
37668         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
37669         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
37670         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
37671         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37672         * sysdeps/unix/alpha/sysdep.S: Likewise.
37673         * sysdeps/unix/alpha/sysdep.h: Likewise.
37674         * sysdeps/unix/make-syscalls.sh: Likewise.
37675         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37676         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37677         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37678         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
37679         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
37680         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
37681         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
37682         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
37683         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
37684         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
37685         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
37686         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
37687         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37688         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
37689         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
37690         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
37691         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37692         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
37693         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
37694         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
37695         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
37696         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
37697         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
37698         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
37699         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
37700         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
37701         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
37702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
37703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
37704         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
37705         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
37706         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
37707         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
37708         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37709         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
37710         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
37711         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
37712         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37713         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
37714         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
37715         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
37716         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
37717         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
37718         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
37719         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
37720         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
37721         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37722         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
37723         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
37724         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37725         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
37726         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
37727         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37728         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
37729         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
37730         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
37731         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
37732         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37733         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
37734         * sysdeps/x86_64/memcpy.S: Likewise.
37735         * sysdeps/x86_64/memmove.c: Likewise.
37736         * sysdeps/x86_64/memset.S: Likewise.
37737         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
37738         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
37739         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
37740         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
37741         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
37742         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
37743         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
37744         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
37745         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
37746         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
37747         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
37748         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
37749         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
37750         * sysdeps/x86_64/multiarch/memset.S: Likewise.
37751         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
37752         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
37753         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
37754         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
37755         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
37756         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
37757         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
37758         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
37759         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
37760         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
37761         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
37762         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
37763         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
37764         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
37765         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
37766         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
37767         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
37768         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
37769         * sysdeps/x86_64/strcmp.S: Likewise.
37770
37771         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
37772
37773         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
37774         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
37775         * elf/rtld-Rules: Likewise.
37776         * elf/setup-vdso.h: Likewise.
37777         * include/assert.h: Likewise.
37778         * include/bits/stdlib-float.h: Likewise.
37779         * include/errno.h: Likewise.
37780         * include/sys/stat.h: Likewise.
37781         * include/unistd.h: Likewise.
37782         * sysdeps/aarch64/setjmp.S: Likewise.
37783         * sysdeps/alpha/setjmp.S: Likewise.
37784         * sysdeps/arm/__longjmp.S: Likewise.
37785         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
37786         * sysdeps/arm/setjmp.S: Likewise.
37787         * sysdeps/arm/sysdep.h: Likewise.
37788         * sysdeps/generic/_itoa.h: Likewise.
37789         * sysdeps/generic/dl-sysdep.h: Likewise.
37790         * sysdeps/generic/ldsodefs.h: Likewise.
37791         * sysdeps/i386/dl-tls.h: Likewise.
37792         * sysdeps/i386/setjmp.S: Likewise.
37793         * sysdeps/m68k/setjmp.c: Likewise.
37794         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
37795         * sysdeps/mach/hurd/opendir.c: Likewise.
37796         * sysdeps/posix/getcwd.c: Likewise.
37797         * sysdeps/posix/opendir.c: Likewise.
37798         * sysdeps/posix/profil.c: Likewise.
37799         * sysdeps/powerpc/dl-procinfo.h: Likewise.
37800         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
37801         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
37802         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
37803         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
37804         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
37805         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
37806         * sysdeps/s390/dl-tls.h: Likewise.
37807         * sysdeps/s390/s390-32/setjmp.S: Likewise.
37808         * sysdeps/s390/s390-64/setjmp.S: Likewise.
37809         * sysdeps/sh/sh3/setjmp.S: Likewise.
37810         * sysdeps/sh/sh4/setjmp.S: Likewise.
37811         * sysdeps/unix/alpha/sysdep.h: Likewise.
37812         * sysdeps/unix/arm/sysdep.S: Likewise.
37813         * sysdeps/unix/i386/sysdep.S: Likewise.
37814         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37815         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
37816         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
37817         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
37818         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37819         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
37820         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
37821         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37822         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
37823         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
37824         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
37825         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
37826         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
37827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
37828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
37829         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
37830         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37831         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37832         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
37833         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
37834         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
37835         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37836         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37837         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
37838         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37839         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
37840         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37841         * sysdeps/unix/x86_64/sysdep.S: Likewise.
37842         * sysdeps/x86_64/setjmp.S: Likewise.
37843
37844         * include/math.h: Use IS_IN instead of IS_IN_libm.
37845         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
37846         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37847         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37848         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
37849         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37850         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37851         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37852         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37853         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37854         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37855         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
37856         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
37857         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
37858         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
37859         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
37860         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
37861         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
37862         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
37863         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
37864         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
37865         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
37866         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
37867         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
37868         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
37869         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
37870         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
37871         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
37872         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
37873         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
37874         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
37875         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
37876         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
37877         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
37878         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
37879         Likewise.
37880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
37881         Likewise.
37882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
37883         Likewise.
37884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
37885         Likewise.
37886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
37887         Likewise.
37888         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
37889         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
37890         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
37891         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
37892         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
37893         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
37894         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
37895         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
37896         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
37897         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
37898         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
37899         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
37900         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
37901         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
37902         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
37903         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
37904         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
37905         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
37906         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
37907         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
37908         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
37909         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
37910         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
37911         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
37912         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
37913         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
37914         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
37915
37916         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
37917         * nptl/pthreadP.h: Likewise.
37918         * nptl_db/structs.def: Likewise.
37919         * sysdeps/arm/sysdep.h: Likewise.
37920         * sysdeps/nptl/bits/libc-lock.h: Likewise.
37921         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
37922         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
37923         * sysdeps/unix/alpha/sysdep.h: Likewise.
37924         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37925         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37926         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37927         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
37928         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
37929         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
37930         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37931         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
37932         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37933         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
37934         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
37935         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
37936         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
37937         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
37938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
37939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
37940         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
37941         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
37942         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
37943         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
37944         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
37945         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
37946         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37947         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
37948         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
37949         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
37950
37951         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
37952         * nptl/pthreadP.h: Likewise.
37953         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37954         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37955         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
37956         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
37957         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
37958         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
37959         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37960         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
37961         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
37962         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
37963         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
37964         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
37965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
37966         Likewise.
37967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
37968         Likewise.
37969         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
37970         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
37971         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
37972         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
37973         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
37974         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
37975         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
37976         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
37977
37978         * dlfcn/dladdr.c: Use IS_IN.
37979         * dlfcn/dladdr1.c: Likewise.
37980         * dlfcn/dlclose.c: Likewise.
37981         * dlfcn/dlerror.c: Likewise.
37982         * dlfcn/dlinfo.c: Likewise.
37983         * dlfcn/dlmopen.c: Likewise.
37984         * dlfcn/dlopen.c: Likewise.
37985         * dlfcn/dlsym.c: Likewise.
37986         * dlfcn/dlvsym.c: Likewise.
37987
37988         * include/ifaddrs.h: Use IS_IN.
37989         * inet/check_pf.c: Likewise.
37990         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
37991         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
37992
37993         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
37994         IS_IN_ldconfig.
37995         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
37996         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
37997
37998         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
37999         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
38000         IS_IN (libc).
38001
38002         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
38003
38004         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
38005         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
38006         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
38007         * include/libc-symbols.h (IS_IN_LIB): New macro.
38008         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
38009         * include/netdb.h: Likewise.
38010         * include/stap-probe.h: Remove all uses of IN_LIB.
38011
38012         * Makeconfig (module-cppflags-real): Define MODULE_NAME
38013         instead of IN_MODULE.
38014         * include/libc-symbols.h (IN_MODULE): Define using
38015         MODULE_NAME.
38016         (PASTE_NAME, PASTE_NAME1): New macros.
38017         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
38018         of IN_LIB.
38019         (STAP_PROBE_ASM): Likewise.
38020
38021 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38022
38023         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
38024         __mach_init in dlopened libc.
38025
38026 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
38027
38028         * sysdeps/arm/preconfigure.ac: Delete EABI check.
38029         * sysdeps/arm/preconfigure: Regenerate.
38030
38031 2014-11-21  Roland McGrath  <roland@hack.frob.com>
38032
38033         * nptl/pthread_create.c (__pthread_create_2_1): Set
38034         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
38035         when copying values from IATTR into PD.
38036
38037 2014-11-21  Will Newton  <will.newton@linaro.org>
38038             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
38039
38040         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
38041         Refactor inline-asm.  Also add comment.
38042
38043         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
38044         ElfW macro instead of hardcoded Elf64 types.
38045         (la_aarch64_gnu_pltenter): Likewise.
38046         * sysdeps/aarch64/dl-machine.h
38047         (elf_machine_runtime_setup): Use ElfW(Addr).
38048
38049         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
38050         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
38051         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
38052         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
38053         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
38054         (R_AARCH64_TLS_DTPMOD64): Rename to ..
38055         (R_AARCH64_TLS_DTPMOD): This.
38056         (R_AARCH64_TLS_DTPREL64): Rename to ...
38057         (R_AARCH64_TLS_DTPREL): This.
38058         (R_AARCH64_TLS_TPREL64): Rename to ...
38059         (R_AARCH64_TLS_TPREL): This.
38060         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
38061         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
38062         R_AARCH64_TLS_TPREL64.
38063         (elf_machine_rela): Likewise.
38064
38065 2014-11-21  Torvald Riegel  <triegel@redhat.com>
38066
38067         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
38068         by setting it to 0.  64b atomics are not supported currently.
38069
38070 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38071
38072         [BZ #16469]
38073         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
38074         search domain names.
38075
38076 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38077
38078         [BZ #16469]
38079         * NEWS: Update.
38080         * resolv/res_query.c (__libc_res_nquerydomain): Retain
38081         trailing dot.
38082         * posix/tst-getaddrinfo5.c: New.
38083         * posix/Makefile (tests): Add it.
38084
38085 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38086
38087         [BZ #14498]
38088         * NEWS: Fixed.
38089         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
38090         after parsing line but before break_if_match.
38091         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
38092         if there is a protocol mismatch.
38093
38094 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
38095
38096         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
38097         because the potential race is on the user-supplied stream.
38098
38099 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38100
38101         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
38102         string literal if not passed a buffer.
38103         * manual/job.texi (ctermid): Update reasoning, note deviation
38104         from posix, suggest mtasurace when not passed a buffer, for
38105         future non-preliminary safety notes.
38106
38107 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38108
38109         * manual/users.texi (cuserid): Fix MT-Safety note for the case
38110         of not passing it a buffer.
38111         Reported by Peng Haitao.
38112
38113 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38114
38115         * manual/Makefile ($(objpfx)stamp-summary): Require
38116         check-safety.sh to pass.
38117         * manual/check-safety.sh: Wish for verification that every
38118         @deftypefn and @deftypefun is followed by a @safety remark.
38119
38120 2014-11-20  Roland McGrath  <roland@hack.frob.com>
38121
38122         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
38123
38124         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
38125         PTHREAD_CANCEL_ASYNCHRONOUS.
38126         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
38127         send SIGCANCEL.
38128
38129         * nptl/default-sched.h: New file.
38130         * sysdeps/unix/sysv/linux/default-sched.h: New file.
38131         * nptl/pthread_create.c: Include it.
38132         (__pthread_create_2_1): Use collect_default_sched instead of making
38133         Linux syscalls here directly.
38134
38135 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38136
38137         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
38138         __pthread_once): Use C11 atomics.
38139
38140 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38141
38142         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
38143
38144 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38145
38146         * include/atomic.h (__atomic_link_error, __atomic_check_size,
38147         atomic_thread_fence_acquire, atomic_thread_fence_release,
38148         atomic_thread_fence_seq_cst, atomic_load_relaxed,
38149         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
38150         atomic_compare_exchange_weak_relaxed,
38151         atomic_compare_exchange_weak_acquire,
38152         atomic_compare_exchange_weak_release,
38153         atomic_exchange_acquire, atomic_exchange_release,
38154         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
38155         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
38156         atomic_fetch_and_acquire,
38157         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
38158
38159 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38160
38161         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
38162         USE_ATOMIC_COMPILER_BUILTINS): Define.
38163         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
38164         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38165         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
38166         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38167         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
38168         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38169         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
38170         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38171         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
38172         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38173         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
38174         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38175         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
38176         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38177         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
38178         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38179         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38180         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38181         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38182         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38183         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
38184         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38185         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38186         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38187         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
38188         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38189         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38190         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38191         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
38192         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38193         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
38194         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38195         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
38196         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38197         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
38198         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38199         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
38200         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38201         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
38202         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38203
38204 2014-11-19  Roland McGrath  <roland@hack.frob.com>
38205
38206         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
38207         the sched_priority value here.  It was already checked when the user
38208         called pthread_attr_setschedparam.
38209
38210         * nptl/tst-bad-schedattr.c: New file.
38211         * nptl/Makefile (tests): Add it.
38212
38213 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
38214             Florian Weimer  <fweimer@redhat.com>
38215             Joseph Myers  <joseph@codesourcery.com>
38216             Adam Conrad  <adconrad@0c3.net>
38217             Andreas Schwab  <schwab@suse.de>
38218             Brooks  <bmoses@google.com>
38219
38220         [BZ #17625]
38221         * wordexp-test.c (__dso_handle): Add prototype.
38222         (__register_atfork): Likewise.
38223         (__app_register_atfork): New function.
38224         (registered_forks): New global.
38225         (register_fork): New function.
38226         (test_case): Add 3 new tests for WRDE_CMDSUB.
38227         (main): Call __app_register_atfork.
38228         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
38229         fork count is non-zero fail the test.
38230         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
38231         is set.
38232         (parse_dollars): Remove check for WRDE_NOCMD.
38233         (parse_dquote): Likewise.
38234
38235 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
38236
38237         * Makeconfig (built-modules): List non-library modules to be
38238         built.
38239         (module-cppflags): Include libc-modules.h for
38240         everything except shlib-versions.v.i.
38241         (CPPFLAGS): Use it.
38242         (before-compile): Add libc-modules.h.
38243         ($(common-objpfx)libc-modules.h,
38244         $(common-objpfx)libc-modules.stmp): New targets.
38245         (common-generated): Add libc-modules.h and libc-modules.stmp.
38246         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
38247         * include/libc-symbols.h: Don't include libc-modules.h.
38248         * include/libc-modules.h: Remove file.
38249         * scripts/gen-libc-modules.awk: New script to generate
38250         libc-modules.h.
38251         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
38252         Depend on libc-modules.stmp.
38253
38254         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
38255
38256         * Makeconfig (in-module): Get value of libof set for the
38257         translation unit.
38258         (CPPFLAGS): Use $(in-module).
38259         * Makerules: Don't suffix routine names for nonlib.
38260         * include/libc-modules.h: New file.
38261         * include/libc-symbols.h: Include libc-modules.h
38262         (IS_IN): New macro to replace IS_IN_* macros.
38263         * elf/Makefile: Set libof-* for each routine.
38264         * elf/rtld-Rules: Likewise.
38265         * extra-modules.mk: Likewise.
38266         * iconv/Makefile: Likewise.
38267         * iconvdata/Makefile: Likewise.
38268         * locale/Makefile: Likewise.
38269         * malloc/Makefile: Likewise.
38270         * nss/Makefile: Likewise.
38271         * sysdeps/gnu/Makefile: Likewise.
38272         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
38273         * sysdeps/unix/sysv/linux/Makefile: Likewise.
38274         * sysdeps/s390/s390-64/Makefile: Likewise.
38275         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
38276         CPPFLAGS for nscd instead of nonlib.
38277
38278 2014-11-18  Roland McGrath  <roland@hack.frob.com>
38279
38280         * nptl/createthread.c: New file.
38281
38282         * nptl/createthread.c: Moved ...
38283         * sysdeps/unix/sysv/linux/createthread.c: ... here.
38284
38285         * nptl/createthread.c: Add proper top-line comment.
38286         (do_clone): Folded into ...
38287         (create_thread): ... here.  Take new arguments STOPPED_START and
38288         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
38289         increment __nptl_threads, do event-reporting logic, do
38290         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
38291         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
38292         resource cleanup if sched_setaffinity or sched_setscheduler fails,
38293         just send SIGCANCEL.
38294         * nptl/pthread_create.c: Forward-declare create_thread before
38295         including createthread.c.
38296         (start_thread): Use new macro START_THREAD_DEFN to replace defining
38297         declaration, and new macro START_THREAD_SELF to replace argument.
38298         Remove return statement.
38299         (report_thread_creation): New function.
38300         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
38301         synchronization logic, and __nptl_nthreads increment here, around
38302         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
38303         PD->parent_cancelhandling here, before create_thread.  When
38304         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
38305         __deallocate_stack, and ENOMEM translation here.
38306
38307 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
38308
38309         [BZ #17616]
38310         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
38311         (mptwo): Rename to __mptwo.
38312         (__inv): Use __mptwo instead of mptwo.
38313         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
38314         (mptwo): Rename to __mptwo.
38315         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
38316         of mpone and __mptwo instead of mptwo.
38317         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
38318         instead of mpone.
38319         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
38320         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
38321         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
38322         of mpone and __mptwo instead of mptwo.
38323         (__mpranred): Use __mpone instead of mpone.
38324         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
38325         variable.
38326         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38327         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38328         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38329         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38330         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38331         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38332         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38333         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38334         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38335         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38336         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38337         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38338         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38339         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38340         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38341         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
38342         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
38343         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
38344         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
38345
38346 2014-11-18  Tom de Vries  <tom@codesoucery.com>
38347
38348         * manual/signal.texi (Primitives Interrupted by Signals): In section,
38349         replace BSD Handler xref with BSD Signal Handling.
38350
38351 2014-11-17  Richard Henderson  <rth@redhat.com>
38352
38353         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
38354         (_FP_PACK_RAW_2): Remove.
38355         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
38356         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
38357         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
38358         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
38359         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
38360         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
38361         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
38362         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
38363         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
38364         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
38365         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
38366         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
38367         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
38368         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
38369         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
38370         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
38371
38372 2014-11-14  Roland McGrath  <roland@hack.frob.com>
38373
38374         * signal/signal.h [__USE_MISC]
38375         (struct sigvec): Remove type.
38376         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
38377         (sigvec): Remove declaration.
38378         * sysdeps/posix/sigvec.c: Moved ...
38379         * signal/sigvec.c: ... here, replacing old file.
38380         (struct sigvec): New type, copied from old signal.h definition.
38381         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
38382         (__sigvec): Convert definition to prototype.
38383         (sigvec): Replace weak_alias with compat_symbol.
38384         * signal/Versions (libc: GLIBC_2.21): New version set.
38385         * include/signal.h: Remove __sigvec declaration.
38386         * sysdeps/unix/bsd/sigvec.c: Remove file.
38387         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
38388         * manual/signal.texi (BSD Handler): Remove subsection.
38389         Move siginterrupt up to ...
38390         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
38391         (Blocking in BSD): Fold subsection into its parent.
38392         * NEWS: Mention sigvec removal.
38393
38394 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38395
38396         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
38397         (DLA_FMS): Make definition conditional only on [__FMA4__].
38398         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
38399         definition.
38400
38401         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
38402         Make definition conditional only on [PROF].
38403         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
38404         definition.
38405         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
38406         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
38407
38408         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
38409         !__GNUC__].
38410         * include/signal.h (__sigpause): Move declaration above call to
38411         libc_hidden_proto.
38412         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
38413         variable.
38414         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38415         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38416
38417 2014-11-14  David S. Miller  <davem@davemloft.net>
38418
38419         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
38420         Define before including <string/memcpy.c> and <string/mempcpy.c>.
38421
38422 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38423
38424         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
38425         * configure: Regenerated.
38426         * manual/install.texi (Tools for Compilation): Document a
38427         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
38428         compiler verified to work.
38429         * INSTALL: Regenerated.
38430
38431         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
38432         redeclare with asm name.
38433         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
38434         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
38435         including <string.h>.
38436         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38437         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
38438         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38439         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
38440         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38441         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
38442         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38443
38444 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
38445
38446         * stdlib/strtol.c (__strtol): Use prototype definition.
38447
38448         [BZ #17594]
38449         * stdlib/strtol.c (SYM__): New macro.
38450         (SYM__1): Likewise.
38451         (__strtol): Likewise.
38452         (strtol): Rename to __strtol and define as weak alias of
38453         __strtol.  Use libc_hidden_weak.
38454
38455 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38456
38457         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
38458         Use numbered labels in inline assembly.
38459
38460 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38461
38462         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
38463         Add setjmp LIBC_PROBE.
38464         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
38465         Likewise.
38466         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
38467         Add longjmp, longjmp_target LIBC_PROBE.
38468         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
38469         Likewise.
38470
38471 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38472
38473         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
38474         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
38475         to get rid of unused variable warning.
38476
38477 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38478
38479         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
38480         Check for unwind_backtrace ==  NULL only in SHARED case.
38481         (__backchain_backtrace): Compile only in SHARED case.
38482         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
38483         Likewise.
38484         (__backchain_backtrace): Declare as static.
38485
38486 2014-11-12  Roland McGrath  <roland@hack.frob.com>
38487
38488         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
38489         (__libc_multiple_threads_ptr): Variable moved ...
38490         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
38491
38492 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
38493
38494         * conform/GlibcConform.pm: New file.
38495         * conform/conformtest.pl: Use GlibcConform module.
38496         * conform/linknamespace.pl: New file.
38497         * conform/list-header-symbols.pl: Likewise.
38498         * conform/Makefile (linknamespace-symlists-base): New variable.
38499         (linknamespace-symlists-tests): Likewise.
38500         (linknamespace-header-base): Likewise.
38501         (linknamespace-header-tests): Likewise.
38502         (tests-special): Add new tests.
38503         ($(linknamespace-symlists-tests)): New rule.
38504         (linknamespace-libs): New variable.
38505         ($(objpfx)symlist-stdlibs): New rule.
38506         ($(linknamespace-header-tests)): Likewise.
38507         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
38508         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
38509         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
38510         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
38511         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
38512         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
38513         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
38514         (test-xfail-ISO/math.h/linknamespace): Likewise.
38515         (test-xfail-ISO/signal.h/linknamespace): Likewise.
38516         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
38517         (test-xfail-ISO/time.h/linknamespace): Likewise.
38518         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38519         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
38520         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38521         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38522         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
38523         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38524         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38525         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
38526         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38527         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38528         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
38529         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38530         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
38531         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
38532         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
38533         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38534         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
38535         (test-xfail-XPG3/search.h/linknamespace): Likewise.
38536         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
38537         (test-xfail-XPG3/time.h/linknamespace): Likewise.
38538         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
38539         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
38540         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
38541         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
38542         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
38543         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
38544         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
38545         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
38546         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38547         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
38548         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
38549         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
38550         (test-xfail-XPG4/search.h/linknamespace): Likewise.
38551         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
38552         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
38553         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
38554         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
38555         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
38556         (test-xfail-XPG4/time.h/linknamespace): Likewise.
38557         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
38558         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
38559         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
38560         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
38561         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
38562         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38563         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
38564         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
38565         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
38566         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
38567         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
38568         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
38569         (test-xfail-POSIX/time.h/linknamespace): Likewise.
38570         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
38571         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
38572         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
38573         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
38574         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
38575         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
38576         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
38577         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
38578         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
38579         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38580         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
38581         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
38582         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
38583         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
38584         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
38585         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
38586         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
38587         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
38588         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
38589         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
38590         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
38591         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
38592         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
38593         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
38594         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
38595         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
38596         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
38597         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
38598         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38599         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
38600         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
38601         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
38602         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
38603         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
38604         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
38605         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38606         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
38607         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
38608         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
38609         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
38610         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
38611         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
38612         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
38613         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
38614         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
38615         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
38616         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
38617         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
38618         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
38619         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
38620         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
38621         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38622         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
38623         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
38624         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
38625         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
38626         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
38627         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38628         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
38629         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
38630         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
38631         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
38632         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38633         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
38634         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
38635         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
38636         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
38637         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
38638         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
38639         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
38640         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
38641         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
38642         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
38643         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
38644         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
38645         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
38646         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
38647         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
38648         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
38649         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
38650         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
38651         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
38652         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
38653         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
38654         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
38655         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
38656         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
38657         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
38658         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
38659         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
38660         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
38661         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
38662         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
38663         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
38664         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
38665         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
38666         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
38667         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
38668
38669         [BZ #17589]
38670         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
38671         of fgets_unlocked.
38672
38673         [BZ #17585]
38674         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
38675         (memmem): Rename to __memmem and define as weak alias of
38676         __memmem.  Use libc_hidden_weak.
38677         (__memmem): Use libc_hidden_def.
38678         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
38679         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
38680         memmem.
38681
38682         [BZ #17582]
38683         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
38684         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
38685         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
38686         and define as weak alias of __fgets_unlocked.  Use
38687         libc_hidden_weak.
38688         (__fgets_unlocked): Use libc_hidden_def.
38689         * include/stdio.h (__fgets_unlocked): Declare.  Use
38690         libc_hidden_proto.
38691         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
38692         __fgets_unlocked instead of fgets_unlocked.
38693         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
38694         (GET_NPROCS_CONF_PARSER): Likewise.
38695         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
38696         (GET_NPROCS_CONF_PARSER): Likewise.
38697
38698         [BZ #17574]
38699         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
38700         weak alias of __wmemset.  Use libc_hidden_weak.
38701         (__wmemset): Use libc_hidden_def.
38702         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
38703         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
38704         of wmemset.
38705
38706         [BZ #17573]
38707         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
38708         with asm name __mempcpy.
38709         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
38710
38711         [BZ #17572]
38712         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
38713         and define as weak alias of __rawmemchr.
38714         (__rawmemchr): Do not define as strong alias of rawmemchr.
38715
38716         [BZ #17571]
38717         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
38718         alias of __qsort_r.
38719         (qsort): Call __qsort_r instead of qsort_r.
38720         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
38721         (__qsort_r): Declare.  Call libc_hidden_proto.
38722         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
38723         instead of qsort_r.
38724         * nscd/gai.c (__qsort_r): Define to qsort_r.
38725         * posix/tst-rfc3484.c (__qsort_r): Likewise.
38726         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
38727         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
38728
38729         [BZ #17570]
38730         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
38731         define as weak alias of __malloc_info.
38732
38733         [BZ #17584]
38734         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
38735         as weak alias of __rewinddir.  Don't use libc_hidden_def.
38736         (__rewinddir): Use libc_hidden_def.
38737         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
38738         as weak alias of __rewinddir.  Don't use libc_hidden_def.
38739         (__rewinddir): Use libc_hidden_def.
38740         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
38741         weak alias of __rewinddir.  Don't use libc_hidden_def.
38742         (__rewinddir): Use libc_hidden_def.
38743         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
38744         (__rewinddir): Use libc_hidden_proto.
38745         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
38746         rewinddir.
38747         (__getcwd): Use __rewinddir instead of rewinddir.
38748
38749         [BZ #17583]
38750         * libio/fileno.c (fileno): Rename to __fileno and define as weak
38751         alias of __fileno.  Use libc_hidden_weak.
38752         (__fileno): Use libc_hidden_def.
38753         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
38754         * libio/ftello.c (ftello): Rename to __ftello and define as weak
38755         alias of __ftello.
38756         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
38757         __ftello.
38758         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
38759         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
38760         libc_hidden_def.
38761         (fread_unlocked): Don't use libc_hidden_ver.
38762         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
38763         and define as weak alias of __fread_unlocked.  Don't use
38764         libc_hidden_def.
38765         (__fread_unlocked): Use libc_hidden_def.
38766         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
38767         (ftello): Don't use libc_hidden_proto.
38768         (__ftello): Declare.  Use libc_hidden_proto.
38769         (fread_unlocked): Don't use libc_hidden_proto.
38770         (__fread_unlocked): Declare.  Use libc_hidden_proto.
38771         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
38772         and __ftello instead of fileno, fread_unlocked and ftello.
38773
38774 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
38775
38776         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
38777         GOT12.
38778         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
38779         Likewise.
38780         (_dl_start_user): Likewise.
38781         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
38782
38783 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
38784             Siddhesh Poyarekar  <siddhesh@redhat.com>
38785
38786         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
38787         Move argv and envp down instead of moving argc up.
38788         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
38789
38790 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
38791
38792         [BZ #17506]
38793         * test-skeleton.c (main): Return successful if one of
38794         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
38795         * string/tst-strcoll-overflow.c: Define expected status.
38796
38797 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
38798
38799         [BZ #17475]
38800         * locale/iso-639.def: Define Bhili and Tulu language codes.
38801
38802 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
38803
38804         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
38805
38806 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
38807
38808         [BZ #17555]
38809         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
38810
38811 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
38812
38813         * configure.ac: Updated check of minimal required version to
38814         2.22.
38815         * manual/install.texi (Tools for Compilation): Updated version
38816         number.
38817         * configure: Regenerated.
38818         * INSTALL: Likewise.
38819
38820 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
38821
38822         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
38823         __tls_get_addr.
38824
38825 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
38826
38827         * include/sys/wait.h (__libc_waitpid): Remove declaration.
38828         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
38829         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38830         libc_hidden_weak.
38831         (waitpid): Define as alias of __waitpid.
38832         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
38833         __waitpid.
38834         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38835         libc_hidden_weak.
38836         (waitpid): Define as alias of __waitpid.
38837         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
38838         __libc_waitpid alias.
38839         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
38840         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
38841         Likewise.
38842         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
38843         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
38844         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
38845         alias.
38846         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
38847         __waitpid.
38848         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38849         libc_hidden_weak.
38850         (waitpid): Define as alias of __waitpid.
38851
38852 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
38853
38854         * manual/llio.texi: Add comment that write safety has been
38855         fixed in Linux.
38856
38857         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
38858         (localplt-build-dso): Add elf/ld.so.
38859         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
38860         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
38861         and free for ld.so.
38862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
38863         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
38864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
38865         Likewise.
38866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
38867         Likewise.
38868         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
38869         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
38870         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
38871         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
38872         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
38873         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
38874         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
38875         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
38876         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
38877         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
38878         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
38879
38880 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
38881
38882         [BZ #14132]
38883         * include/libc-symbols.h (INTUSE): Remove macro.
38884         (INTDEF): Likewise.
38885         (INTVARDEF): Likewise.
38886         (_INTVARDEF): Likewise.
38887         (INTDEF2): Likewise.
38888         (INTVARDEF2): Likewise.
38889         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
38890         rtld_hidden_def instead of INTVARDEF.
38891         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
38892         (_dl_starting_up_internal): Remove declaration.
38893         (_dl_starting_up): Use rtld_hidden_proto.
38894         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
38895         declaration.
38896         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
38897         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
38898         _dl_starting_up.
38899         * elf/dl-writev.h (_dl_writev): Likewise.
38900         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
38901         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
38902         _dl_starting_up_internal.
38903
38904 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38905
38906         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
38907         test-skeleton.c.
38908
38909 2014-11-05  Will Newton  <will.newton@linaro.org>
38910
38911         * benchtests/Makefile: (bench-malloc): Add malloc thread
38912         scalability benchmark.
38913         * benchtests/bench-malloc-threads.c: New file.
38914
38915 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
38916
38917         * sysdeps/aarch64/strchrnul.S: New file.
38918
38919 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38920
38921         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
38922         definition.
38923         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
38924         Likewise.
38925         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
38926         Likewise.
38927         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
38928         Likewise.
38929         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
38930         Likewise.
38931         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
38932         Likewise.
38933
38934 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
38935
38936         * catgets/test-gencat.c: Use test-skeleton.c.
38937         * catgets/tst-catgets.c: Likewise.
38938         * csu/tst-empty.c: Likewise.
38939         * elf/tst-audit2.c: Likewise.
38940         * elf/tst-global1.c: Likewise.
38941         * elf/tst-pathopt.c: Likewise.
38942         * elf/tst-piemod1.c: Likewise.
38943         * elf/tst-tls10.c: Likewise.
38944         * elf/tst-tls11.c: Likewise.
38945         * elf/tst-tls12.c: Likewise.
38946         * gnulib/tst-gcc.c: Likewise.
38947         * iconvdata/tst-e2big.c: Likewise.
38948         * iconvdata/tst-loading.c: Likewise.
38949         * iconv/tst-iconv1.c: Likewise.
38950         * iconv/tst-iconv2.c: Likewise.
38951         * inet/test-inet6_opt.c: Likewise.
38952         * inet/tst-gethnm.c: Likewise.
38953         * inet/tst-network.c: Likewise.
38954         * inet/tst-ntoa.c: Likewise.
38955         * intl/tst-codeset.c: Likewise.
38956         * intl/tst-gettext2.c: Likewise.
38957         * intl/tst-gettext3.c: Likewise.
38958         * intl/tst-ngettext.c: Likewise.
38959         * intl/tst-translit.c: Likewise.
38960         * io/test-stat.c: Likewise.
38961         * libio/test-fmemopen.c: Likewise.
38962         * libio/tst-freopen.c: Likewise.
38963         * libio/tst-sscanf.c: Likewise.
38964         * libio/tst-ungetwc1.c: Likewise.
38965         * libio/tst-ungetwc2.c: Likewise.
38966         * libio/tst-widetext.c: Likewise.
38967         * localedata/tst-ctype.c: Likewise.
38968         * localedata/tst-digits.c: Likewise.
38969         * localedata/tst-leaks.c: Likewise.
38970         * localedata/tst-mbswcs1.c: Likewise.
38971         * localedata/tst-mbswcs2.c: Likewise.
38972         * localedata/tst-mbswcs3.c: Likewise.
38973         * localedata/tst-mbswcs4.c: Likewise.
38974         * localedata/tst-mbswcs5.c: Likewise.
38975         * localedata/tst-setlocale.c: Likewise.
38976         * localedata/tst-trans.c: Likewise.
38977         * localedata/tst-wctype.c: Likewise.
38978         * localedata/tst-xlocale1.c: Likewise.
38979         * login/tst-grantpt.c: Likewise.
38980         * malloc/tst-calloc.c: Likewise.
38981         * malloc/tst-malloc.c: Likewise.
38982         * malloc/tst-mallocstate.c: Likewise.
38983         * malloc/tst-mcheck.c: Likewise.
38984         * malloc/tst-mtrace.c: Likewise.
38985         * malloc/tst-obstack.c: Likewise.
38986         * math/atest-exp2.c: Likewise.
38987         * math/atest-exp.c: Likewise.
38988         * math/atest-sincos.c: Likewise.
38989         * math/test-matherr.c: Likewise.
38990         * math/test-misc.c: Likewise.
38991         * math/test-powl.c: Likewise.
38992         * math/tst-definitions.c: Likewise.
38993         * misc/tst-dirname.c: Likewise.
38994         * misc/tst-efgcvt.c: Likewise.
38995         * misc/tst-fdset.c: Likewise.
38996         * misc/tst-hsearch.c: Likewise.
38997         * misc/tst-mntent2.c: Likewise.
38998         * nptl/tst-sem7.c: Likewise.
38999         * nptl/tst-sem8.c: Likewise.
39000         * nptl/tst-sem9.c: Likewise.
39001         * nss/test-netdb.c: Likewise.
39002         * posix/tst-fnmatch.c: Likewise.
39003         * posix/tst-getlogin.c: Likewise.
39004         * posix/tst-gnuglob.c: Likewise.
39005         * posix/tst-mmap.c: Likewise.
39006         * pwd/tst-getpw.c: Likewise.
39007         * resolv/tst-inet_ntop.c: Likewise.
39008         * rt/tst-timer.c: Likewise.
39009         * stdio-common/test-fseek.c: Likewise.
39010         * stdio-common/test-popen.c: Likewise.
39011         * stdio-common/test-vfprintf.c: Likewise.
39012         * stdio-common/tst-cookie.c: Likewise.
39013         * stdio-common/tst-fileno.c: Likewise.
39014         * stdio-common/tst-gets.c: Likewise.
39015         * stdio-common/tst-obprintf.c: Likewise.
39016         * stdio-common/tst-perror.c: Likewise.
39017         * stdio-common/tst-sprintf2.c: Likewise.
39018         * stdio-common/tst-sprintf3.c: Likewise.
39019         * stdio-common/tst-sprintf.c: Likewise.
39020         * stdio-common/tst-swprintf.c: Likewise.
39021         * stdio-common/tst-tmpnam.c: Likewise.
39022         * stdio-common/tst-unbputc.c: Likewise.
39023         * stdio-common/tst-wc-printf.c: Likewise.
39024         * stdlib/tst-environ.c: Likewise.
39025         * stdlib/tst-fmtmsg.c: Likewise.
39026         * stdlib/tst-limits.c: Likewise.
39027         * stdlib/tst-rand48-2.c: Likewise.
39028         * stdlib/tst-rand48.c: Likewise.
39029         * stdlib/tst-random2.c: Likewise.
39030         * stdlib/tst-random.c: Likewise.
39031         * stdlib/tst-strtol.c: Likewise.
39032         * stdlib/tst-strtoll.c: Likewise.
39033         * stdlib/tst-tls-atexit.c: Likewise.
39034         * stdlib/tst-xpg-basename.c: Likewise.
39035         * string/test-ffs.c: Likewise.
39036         * string/tst-bswap.c: Likewise.
39037         * string/tst-inlcall.c: Likewise.
39038         * string/tst-strtok.c: Likewise.
39039         * string/tst-strxfrm.c: Likewise.
39040         * sysdeps/x86_64/tst-audit10.c: Likewise.
39041         * sysdeps/x86_64/tst-audit3.c: Likewise.
39042         * sysdeps/x86_64/tst-audit4.c: Likewise.
39043         * sysdeps/x86_64/tst-audit5.c: Likewise.
39044         * time/tst-ftime_l.c: Likewise.
39045         * time/tst-getdate.c: Likewise.
39046         * time/tst-mktime3.c: Likewise.
39047         * time/tst-mktime.c: Likewise.
39048         * time/tst-posixtz.c: Likewise.
39049         * time/tst-strptime2.c: Likewise.
39050         * time/tst-strptime3.c: Likewise.
39051         * wcsmbs/tst-btowc.c: Likewise.
39052         * wcsmbs/tst-mbrtowc.c: Likewise.
39053         * wcsmbs/tst-mbsrtowcs.c: Likewise.
39054         * wcsmbs/tst-wchar-h.c: Likewise.
39055         * wcsmbs/tst-wcpncpy.c: Likewise.
39056         * wcsmbs/tst-wcrtomb.c: Likewise.
39057         * wcsmbs/tst-wcsnlen.c: Likewise.
39058         * wcsmbs/tst-wcstof.c: Likewise.
39059
39060 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
39061
39062         [BZ #14132]
39063         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
39064         INTDEF.
39065         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
39066         declaration.
39067         (_dl_mcount): Use rtld_hidden_proto.
39068         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
39069         _dl_mcount.
39070         * elf/rtld.c (_rtld_global_ro): Likewise.
39071
39072         [BZ #14132]
39073         * elf/dl-init.c (_dl_init): Don't use INTDEF.
39074         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
39075         of _dl_init_internal.
39076         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
39077         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
39078         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
39079         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
39080         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
39081         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
39082         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
39083         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
39084         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
39085         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
39086         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
39087         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
39088         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
39089         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
39090         * sysdeps/tile/dl-start.S (_start): Likewise.
39091         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
39092         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
39093
39094         [BZ #14132]
39095         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
39096         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
39097         (rtld_progname): Make macro definition unconditional.
39098         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
39099         INTDEF.
39100         (dlmopen_doit): Do not use INTUSE with _dl_argv.
39101         (dl_main): Likewise.
39102         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
39103         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
39104         instead of _dl_argv_internal.
39105         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
39106         __GI__dl_argv instead of INTUSE(_dl_argv).
39107         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
39108         __GI__dl_argv instead of _dl_argv_internal.
39109
39110         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
39111         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
39112         macro.
39113         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
39114         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
39115         New macro.
39116         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
39117         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
39118         macro.
39119         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
39120         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
39121
39122 2014-11-04  Andreas Schwab  <schwab@suse.de>
39123
39124         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
39125
39126 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39127
39128         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
39129         mtvsrd instruction in binary form.
39130
39131 2014-11-03  Andreas Schwab  <schwab@suse.de>
39132
39133         [BZ #17522]
39134         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
39135         for less than MB_LEN_MAX use a local buffer of that size.
39136         * libio/tst-fputws.c: New file.
39137         * libio/Makefile (tests): Add tst-fputws.
39138
39139 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
39140
39141         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
39142         the size of the fpu_fr.fpu_dregs[] array.
39143
39144 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
39145
39146         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
39147         (__nanosleep): Do not define as alias.
39148         (nanosleep): Define as alias of __nanosleep.
39149         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
39150         __libc_nanosleep name.
39151
39152 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39153
39154         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
39155         install.texi in comment.
39156
39157 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39158
39159         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
39160         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
39161         ... add here and use lwsync or sync ...
39162         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
39163         ... and add here using lwsync.
39164
39165 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
39166
39167         * elf/dl-machine-reject-phdr.h: New file.
39168         * elf/dl-load.c: #include that.
39169         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
39170         if that returned true.
39171
39172 2014-10-31  Roland McGrath  <roland@hack.frob.com>
39173
39174         [BZ #17496]
39175         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
39176         gen-as-const-headers chunk.  Add a big scare comment after the last
39177         safe place to touch before-compile.
39178
39179 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39180
39181         * manual/install.texi (Tools for Compilation): Update autoconf
39182         version requirements.
39183         * INSTALL: Regenerated.
39184
39185         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
39186         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
39187         (__libc_pselect): Likewise.
39188
39189         [BZ #14138]
39190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
39191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
39192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
39193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
39194
39195 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39196
39197         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
39198         correct barrier instruction.
39199         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
39200         Likewise.
39201         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
39202         Likewise.
39203
39204 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39205
39206         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
39207         after defining inlines.  Instead, just use parens to defeat macro
39208         expansion of __isctype in its declaration.
39209
39210 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39211
39212         * include/sys/uio.h (__libc_readv): Remove declaration.
39213         (__libc_writev): Likewise.
39214         * misc/readv.c (__libc_readv): Rename to __readv.
39215         (__readv): Do not define as alias.
39216         (readv): Define as alias of __readv.
39217         * misc/writev.c (__libc_writev): Rename to __writev.
39218         (__writev): Do not define as alias.
39219         (writev): Define as alias of __writev.
39220         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
39221         (__readv): Do not define as alias.
39222         (readv): Define unconditionally as alias of __readv.
39223         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
39224         (__writev): Do not define as alias.
39225         (writev): Define unconditionally as alias of __writev.
39226         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
39227         name.
39228         (writev): Do not define __libc_writev name.
39229
39230 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39231
39232         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
39233         (convert_charseq): New function, broken out of ...
39234         (use_from_charmap): ... here.  Call it.
39235         (use_to_charmap): Use convert_charseq and free instead of duplicating
39236         its code with a variable-length stack struct.
39237
39238 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39239
39240         * include/fcntl.h (__libc_creat): Remove declaration.
39241         * io/creat.c (__libc_creat): Rename to creat.
39242         (creat): Do not define as alias.
39243         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
39244         of creat instead of __libc_creat.
39245         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
39246         to creat.
39247         (creat): Do not define as alias.
39248         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
39249         __libc_creat.
39250         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
39251         __libc_creat name.
39252         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
39253         Likewise.
39254
39255 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
39256
39257         * manual/llio.texi: Add comments discussing why write() may be
39258         considered MT-unsafe on Linux.
39259
39260 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
39261
39262         * dl-load.c (local_strdup): Remove.
39263         (expand_dynamic_string_token): Use __strdup.
39264         (decompose_rpath): Likewise.
39265         (_dl_map_object): Likewise.
39266
39267 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
39268
39269         [BZ #14132]
39270         * sysdeps/generic/unwind-dw2-fde.c
39271         (__register_frame_info_bases_internal): Do not declare.
39272         (__register_frame_info_table_bases_internal): Likewise.
39273         (__deregister_frame_info_bases_internal): Likewise.
39274         (__register_frame_info_bases): Declare and use hidden_proto before
39275         definition.  Use hidden_def instead of INTDEF.
39276         (__register_frame_info_table_bases): Likewise.
39277         (__deregister_frame_info_bases): Likewise.
39278         (__register_frame_info): Do not use INTUSE.
39279         (__register_frame): Likewise.
39280         (__register_frame_info_table): Likewise.
39281         (__register_frame_table): Likewise.
39282         (__deregister_frame_info): Likewise.
39283         (__deregister_frame): Likewise.
39284
39285 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
39286
39287         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39288         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
39289         not undefine.
39290         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
39291         Likewise.
39292         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
39293         Likewise.
39294
39295 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
39296
39297         [BZ #14138]
39298         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
39299         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
39300         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
39301         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
39302         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
39303         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
39304         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
39305         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
39306         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
39307         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
39308         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
39309         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
39310         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
39311         syscall.
39312         (setfsuid): Likewise.
39313         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
39314         (setfsuid): Likewise.
39315         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
39316         (setfsuid): Likewise.
39317         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
39318         Likewise.
39319         (setfsuid): Likewise.
39320         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
39321         (setfsuid): Likewise.
39322         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
39323         Likewise.
39324         (setfsuid): Likewise.
39325
39326 2014-10-27  Andreas Schwab  <schwab@suse.de>
39327
39328         [BZ #17501]
39329         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
39330         check for Slow_SSE4_2 feature bit.
39331         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
39332         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
39333         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
39334         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
39335
39336 2014-10-24  Roland McGrath  <roland@hack.frob.com>
39337
39338         * configure.ac: Validate compiler version with a empirical test of
39339         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
39340         $CC -v output.
39341         * configure: Regenerated.
39342
39343         * inet/htons.c (htons): Prototypify.
39344         * inet/htonl.c (htonl): Likewise.
39345
39346 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39347
39348         * string/strncat.c (strncat): Improve performance by using strlen.
39349
39350 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39351
39352         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
39353
39354 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39355
39356         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
39357         Call libc_fetestexcept_aarch64.
39358
39359 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39360
39361         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
39362         Call libc_feholdexcept_aarch64.
39363
39364 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39365
39366         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
39367         Call get_rounding_mode.
39368
39369 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39370
39371         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
39372         Simplify logic.
39373
39374 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39375
39376         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
39377         Simplify logic.
39378
39379 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
39380
39381         [BZ #14138]
39382         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
39383         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
39384         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
39385         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
39386         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
39387         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
39388         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
39389         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
39390         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
39391         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
39392         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
39393         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
39394         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
39395         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
39396         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
39397         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
39398         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
39399         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
39400         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
39401         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
39402         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
39403         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
39404         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
39405         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
39406         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
39407         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
39408         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
39409         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
39410         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
39411         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
39412         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
39413         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
39414         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
39415         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
39416         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
39417         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
39418         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
39419         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
39420         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
39421         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
39422         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
39423         syscall.
39424         (geteuid): Likewise.
39425         (getgid): Likewise.
39426         (getuid): Likewise.
39427         (getresgid): Likewise.
39428         (getresuid): Likewise.
39429         (getgroups): Likewise.
39430         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
39431         (geteuid): Likewise.
39432         (getgid): Likewise.
39433         (getuid): Likewise.
39434         (getresgid): Likewise.
39435         (getresuid): Likewise.
39436         (getgroups): Likewise.
39437         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
39438         (geteuid): Likewise.
39439         (getgid): Likewise.
39440         (getuid): Likewise.
39441         (getresgid): Likewise.
39442         (getresuid): Likewise.
39443         (getgroups): Likewise.
39444         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
39445         Likewise.
39446         (geteuid): Likewise.
39447         (getgid): Likewise.
39448         (getuid): Likewise.
39449         (getresgid): Likewise.
39450         (getresuid): Likewise.
39451         (getgroups): Likewise.
39452         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
39453         (geteuid): Likewise.
39454         (getgid): Likewise.
39455         (getuid): Likewise.
39456         (getresgid): Likewise.
39457         (getresuid): Likewise.
39458         (getgroups): Likewise.
39459         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
39460         Likewise.
39461         (geteuid): Likewise.
39462         (getgid): Likewise.
39463         (getuid): Likewise.
39464         (getgroups): Likewise.
39465
39466         [BZ #14138]
39467         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
39468         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
39469         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
39470         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
39471         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
39472         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
39473         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
39474         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
39475         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
39476         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
39477         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
39478         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
39479         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
39480         __chown.
39481         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
39482         (lchown): Likewise.
39483         (fchown): Likewise.
39484         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
39485         Likewise.
39486         (lchown): Likewise.
39487         (fchown): Likewise.
39488         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
39489         (lchown): Likewise.
39490         (fchown): Likewise.
39491         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
39492         Likewise.
39493         (lchown): Likewise.
39494         (fchown): Likewise.
39495
39496 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39497
39498         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
39499         Simplify logic.
39500
39501 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39502
39503         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
39504         Cleanup logic.
39505
39506 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39507
39508         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
39509         Remove unused include.
39510
39511 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39512
39513         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
39514         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
39515         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
39516         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
39517
39518 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
39519             Helge Deller <deller@gmx.de>
39520
39521         [BZ #17508]
39522         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
39523         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
39524         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
39525
39526 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
39527
39528         [BZ #14132]
39529         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
39530         Remove macro definition.
39531         (__ashrdi3_v_glibc20): Likewise.
39532         (__lshrdi3_v_glibc20): Likewise.
39533         (__cmpdi2_v_glibc20): Likewise.
39534         (__ucmpdi2_v_glibc20): Likewise.
39535         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
39536         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39537         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39538         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39539         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39540         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
39541
39542 2014-10-22  Roland McGrath  <roland@hack.frob.com>
39543
39544         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
39545         old GNU extension [0] syntax.
39546         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
39547         alloca rather than an array member with variable length.
39548         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
39549         * nscd/nscd.c (invalidate_db): New function, broken out of ...
39550         (parse_opt): ... here.  Likewise use alloca there.
39551         Validate the -i argument before checking for rootness.
39552         (send_shutdown): New function, broken out of ...
39553         (parse_opt): ... here.
39554
39555 2014-10-22  Roland McGrath  <roland@hack.frob.com>
39556
39557         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
39558         macro to get at the _rt_local_ro field.
39559         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
39560         ([PIC] case) or _dl_hwcap ([!PIC] case).
39561         * sysdeps/arm/setjmp.S: Likewise.
39562
39563         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
39564         * sysdeps/arm/configure.ac: New check to define it.
39565         * sysdeps/arm/configure: Regenerated.
39566         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
39567         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
39568         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
39569         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
39570         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
39571         Use move/movt pair instead of a load.
39572         (LDST_GLOBAL): Macro removed.
39573         (LDR_GLOBAL): New macro replaces it.
39574         (LDR_HIDDEN): New macro.
39575         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
39576         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
39577
39578         * setjmp/tst-setjmp-static.c: New file.
39579         * setjmp/Makefile (tests): Add it.
39580         (tests-static): New variable.
39581
39582 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
39583
39584         [BZ #17485]
39585         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
39586
39587 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
39588
39589         [BZ #14132]
39590         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
39591
39592 2014-10-21  Roland McGrath  <roland@hack.frob.com>
39593
39594         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
39595
39596 2014-10-20  Roland McGrath  <roland@hack.frob.com>
39597
39598         * io/fts.c (dirent_not_directory): New function.
39599         (fts_build): Call it.
39600
39601 2014-10-20  Roland McGrath  <roland@hack.frob.com>
39602
39603         * nptl/version.c (__nptl_main): Use normal __write rather than
39604         INTERNAL_SYSCALL.
39605         (banner): Update copyright years.
39606
39607         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
39608         gettimeofday.
39609         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
39610         * nptl/pthread_cond_timedwait.c: Likewise.
39611         * nptl/pthread_mutex_timedlock.c: Likewise.
39612         * nptl/sem_timedwait.c: Likewise.
39613
39614         * sysdeps/nptl/bits/libc-lock.h
39615         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
39616         (__libc_lock_init_recursive): Return void, not 0.
39617         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
39618         (__libc_rwlock_init): Likewise.
39619         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
39620
39621 2014-10-20  Torvald Riegel  <triegel@redhat.com>
39622
39623         [BZ #15215]
39624         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
39625         (__pthread_once_slow): ... here.
39626         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
39627         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
39628
39629 2014-10-20  Torvald Riegel  <triegel@redhat.com>
39630
39631         [BZ #15215]
39632         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
39633         __PTHREAD_ONCE_FORK_GEN_INCR): New.
39634         * sysdeps/nptl/fork.c (__libc_fork): Use them.
39635         * nptl/pthread_once.c (__pthread_once): Likewise.
39636         Update comments.
39637
39638 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
39639
39640         [BZ #14138]
39641         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
39642         name.
39643         (writev): Use __libc_writev as strong name.
39644         * sysdeps/unix/sysv/linux/readv.c: Remove file.
39645         * sysdeps/unix/sysv/linux/writev.c: Likewise.
39646
39647 2014-10-17  Roland McGrath  <roland@hack.frob.com>
39648
39649         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
39650
39651         * sysdeps/i386/nptl/tls.h
39652         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
39653         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
39654         New macros.
39655         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
39656         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
39657         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
39658         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
39659         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
39660         Call CHECK_THREAD_SYSINFO instead of doing an assert.
39661
39662         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
39663         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
39664         on [__NR_futex].
39665         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
39666         broken out of ...
39667         (__pthread_mutex_init): ... here.  Call it.
39668         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
39669         Conditionalize PI cases on [__NR_futex].
39670         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
39671         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
39672         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
39673
39674         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
39675         conditional on [SIGSETXID].
39676         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
39677         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
39678         is defined.  Likewise for SIGSETXID.
39679         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
39680         Conditionalize definitions on [SIGSETXID].
39681         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
39682         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
39683         unblocking on [SIGCANCEL].
39684
39685         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
39686         [__NR_set_robust_list].
39687
39688 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
39689
39690         * string/strcoll_l.c (get_next_seq): Fix up formatting.
39691         (do_compare): Likewise.
39692
39693 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
39694
39695         [BZ #15884]
39696         * string/strcoll_l.c: Don't include stdio.h.
39697         (coll_seq): Remove members idxarr and rulearr.
39698         (get_next_seq_cached): Remove function.
39699         (get_next_seq): Likewise.
39700         (get_next_seq_nocache): Rename to get_next_seq.
39701         (do_compare): Remove function.
39702         (do_compare_nocache): Rename to do_compare.
39703         (STRCOLL): Remove weight and rules cache.
39704
39705 2014-10-16  Roland McGrath  <roland@hack.frob.com>
39706
39707         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
39708         * sysdeps/arm/sfp-machine.h: ... to here.
39709         * sysdeps/arm/Implies: Remove arm/soft-fp.
39710
39711 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
39712
39713         * conform/data/sys/utsname.h-data (*_t): Allow.
39714         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
39715         [POSIX] (WEXITED): Do not expect constant.
39716         [POSIX] (WSTOPPED): Likewise.
39717         [POSIX] (WNOHANG): Likewise.
39718         [POSIX] (WNOWAIT): Likewise.
39719         [POSIX] (siginfo_t): Do not expect type or elements.
39720         [POSIX] (pid_t): Do not expect type.
39721         [POSIX] (signal.h): Do not allow header.
39722         [POSIX] (sys/resource.h): Likewise.
39723         [POSIX] (si_*): Do not allow pattern.
39724         [POSIX] (W*): Likewise.
39725         [POSIX] (P_*): Likewise.
39726         [POSIX] (BUS_*): Likewise.
39727         [POSIX] (CLD_*): Likewise.
39728         [POSIX] (FPE_*): Likewise.
39729         [POSIX] (ILL_*): Likewise.
39730         [POSIX] (POLL_*): Likewise.
39731         [POSIX] (SEGV_*): Likewise.
39732         [POSIX] (SI_*): Likewise.
39733         [POSIX] (TRAP_*): Likewise.
39734         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
39735         variable.
39736
39737 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
39738
39739         [BZ #12926]
39740         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
39741         infinite loop when __recvmsg returns 0.
39742
39743 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
39744
39745         * CANCEL-FCT-WAIVE: Remove file.
39746         * CANCEL-FILE-WAIVE: Likewise.
39747
39748         [BZ #14132]
39749         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
39750         instead of INTVARDEF.
39751         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
39752         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
39753         rtld_hidden_data_def instead of INTVARDEF.
39754         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
39755         * elf/dl-deps.c (expand_dst): Likewise.
39756         * elf/dl-load.c (_dl_dst_count): Likewise.
39757         (_dl_dst_substitute): Likewise.
39758         (decompose_rpath): Likewise.
39759         (_dl_init_paths): Likewise.
39760         (open_path): Likewise.
39761         (_dl_map_object): Likewise.
39762         * elf/rtld.c (dl_main): Likewise.
39763         (process_dl_audit): Likewise.
39764         (process_envvars): Likewise.
39765         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
39766         Remove declaration.
39767         (__libc_enable_secure): Use rtld_hidden_proto.
39768
39769 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39770
39771         * elf/dl-load.c
39772         (add_path): New function broken out of _dl_rtld_di_serinfo.
39773         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
39774
39775 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
39776
39777         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
39778         parentheses around macro arguments.
39779         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
39780         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
39781         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
39782         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
39783         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
39784         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
39785         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
39786         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
39787         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
39788         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
39789         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
39790         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
39791         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
39792         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
39793         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
39794         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
39795         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
39796         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
39797         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
39798         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
39799         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
39800         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
39801         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
39802         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
39803         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
39804         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
39805         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
39806         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
39807         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
39808         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
39809         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
39810         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
39811         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
39812         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
39813         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
39814         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
39815         Likewise.
39816         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
39817         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
39818         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
39819         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
39820         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
39821         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
39822         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
39823         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
39824         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
39825         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
39826         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
39827         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
39828         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
39829         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
39830         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
39831         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
39832         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
39833         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
39834         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
39835         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
39836         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
39837         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
39838         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
39839         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
39840         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
39841         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
39842         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
39843         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
39844         (_FP_FRAC_SRS_1): Likewise.
39845         (_FP_FRAC_CLZ_1): Likewise.
39846         (_FP_MUL_MEAT_1_imm): Likewise.
39847         (_FP_MUL_MEAT_1_wide): Likewise.
39848         (_FP_MUL_MEAT_1_hard): Likewise.
39849         (_FP_SQRT_MEAT_1): Likewise.
39850         (_FP_FRAC_ASSEMBLE_1): Likewise.
39851         (_FP_FRAC_DISASSEMBLE_1): Likewise.
39852         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
39853         (__FP_CLZ_2): Likewise.
39854         (_FP_MUL_MEAT_2_wide): Likewise.
39855         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
39856         (_FP_MUL_MEAT_2_gmp): Likewise.
39857         (_FP_MUL_MEAT_2_120_240_double): Likewise.
39858         (_FP_SQRT_MEAT_2): Likewise.
39859         (_FP_FRAC_ASSEMBLE_2): Likewise.
39860         (_FP_FRAC_DISASSEMBLE_2): Likewise.
39861         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
39862         (_FP_FRAC_CLZ_4): Likewise.
39863         (_FP_MUL_MEAT_4_wide): Likewise.
39864         (_FP_MUL_MEAT_4_gmp): Likewise.
39865         (_FP_SQRT_MEAT_4): Likewise.
39866         (_FP_FRAC_ASSEMBLE_4): Likewise.
39867         (_FP_FRAC_DISASSEMBLE_4): Likewise.
39868         * soft-fp/op-common.h (_FP_CMP): Likewise.
39869         (_FP_CMP_EQ): Likewise.
39870         (_FP_CMP_UNORD): Likewise.
39871         (_FP_TO_INT): Likewise.
39872         (_FP_FROM_INT): Likewise.
39873         [!__FP_CLZ] (__FP_CLZ): Likewise.
39874         (_FP_DIV_HELP_imm): Likewise.
39875         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
39876         Likewise.
39877         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
39878         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
39879         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
39880         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
39881         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
39882         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
39883         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
39884         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
39885         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
39886         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
39887         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
39888         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
39889         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
39890         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
39891         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
39892         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
39893         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
39894         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
39895         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
39896         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
39897         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
39898         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
39899         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
39900         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
39901         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
39902         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
39903         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
39904         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
39905         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
39906         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
39907         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
39908         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
39909         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
39910         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
39911         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
39912         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
39913         (FP_UNPACK_RAW_SP): Likewise.
39914         (FP_PACK_RAW_S): Likewise.
39915         (FP_PACK_RAW_SP): Likewise.
39916         (FP_UNPACK_S): Likewise.
39917         (FP_UNPACK_SP): Likewise.
39918         (FP_UNPACK_SEMIRAW_S): Likewise.
39919         (FP_UNPACK_SEMIRAW_SP): Likewise.
39920         (FP_PACK_S): Likewise.
39921         (FP_PACK_SP): Likewise.
39922         (FP_PACK_SEMIRAW_S): Likewise.
39923         (FP_PACK_SEMIRAW_SP): Likewise.
39924         (_FP_SQRT_MEAT_S): Likewise.
39925         (FP_CMP_S): Likewise.
39926         (FP_CMP_EQ_S): Likewise.
39927         (FP_CMP_UNORD_S): Likewise.
39928         (FP_TO_INT_S): Likewise.
39929         (FP_FROM_INT_S): Likewise.
39930
39931         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
39932
39933         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
39934         (FP_EX_INVALID_IMZ): Likewise.
39935         (FP_EX_INVALID_IMZ_FMA): Likewise.
39936         (FP_EX_INVALID_ISI): Likewise.
39937         (FP_EX_INVALID_ZDZ): Likewise.
39938         (FP_EX_INVALID_IDI): Likewise.
39939         (FP_EX_INVALID_SQRT): Likewise.
39940         (FP_EX_INVALID_CVI): Likewise.
39941         (FP_EX_INVALID_VC): Likewise.
39942         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
39943         "invalid" exceptions.
39944         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
39945         (_FP_ADD_INTERNAL): Likewise.
39946         (_FP_MUL): Likewise.
39947         (_FP_FMA): Likewise.
39948         (_FP_DIV): Likewise.
39949         (_FP_CMP_CHECK_NAN): Likewise.
39950         (_FP_SQRT): Likewise.
39951         (_FP_TO_INT): Likewise.
39952         (FP_EXTEND): Likewise.
39953
39954 2014-10-09  Allan McRae  <allan@archlinux.org>
39955
39956         * po/fr.po: Update French translation from translation project.
39957
39958 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
39959
39960         [BZ #14132]
39961         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
39962         of INTDEF.
39963         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
39964         (__cxa_atexit): Use libc_hidden_proto.
39965         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
39966
39967         [BZ #14132]
39968         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
39969         declaration.
39970         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
39971         [!_ISOMAC] (__iswspace_l_internal): Likewise.
39972         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
39973         [!_ISOMAC] (__iswctype_internal): Likewise.
39974         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
39975         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
39976         alias.
39977         (fcntl): Remove __fcntl_internal alias.
39978         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
39979         __connect_internal alias.
39980         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
39981         Likewise.
39982
39983         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
39984         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
39985         FP_DENORM_ZERO.
39986         (_FP_CHECK_FLUSH_ZERO): New macro.
39987         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
39988         (_FP_CMP): Likewise.
39989         (_FP_CMP_EQ): Likewise.
39990         (_FP_TO_INT): Do not set inexact for subnormal arguments if
39991         FP_DENORM_ZERO.
39992         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
39993         (FP_TRUNC): Likewise.
39994
39995         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
39996         treated as invalid conversion, not as normal exponent.
39997
39998         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
39999         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
40000         (_FP_CMP_EQ): Likewise.
40001         (_FP_CMP_UNORD): Likewise.
40002         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
40003         (FP_CMP_EQ_D): Likewise.
40004         (FP_CMP_UNORD_D): Likewise.
40005         * soft-fp/extended.h (FP_CMP_E): Likewise.
40006         (FP_CMP_EQ_E): Likewise.
40007         (FP_CMP_UNORD_E): Likewise.
40008         * soft-fp/quad.h (FP_CMP_Q): Likewise.
40009         (FP_CMP_EQ_Q): Likewise.
40010         (FP_CMP_UNORD_Q): Likewise.
40011         * soft-fp/single.h (FP_CMP_S): Likewise.
40012         (FP_CMP_EQ_S): Likewise.
40013         (FP_CMP_UNORD_S): Likewise.
40014         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
40015         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
40016         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
40017         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
40018         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
40019         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
40020         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
40021         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
40022         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
40023         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
40024         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
40025         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
40026         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
40027         to FP_CMP_Q.
40028         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
40029         FP_CMP_Q.
40030         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
40031         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
40032         FP_CMP_EQ_Q.
40033         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
40034         FP_CMP_Q.
40035         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
40036         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
40037         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
40038         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
40039         FP_CMP_EQ_Q.
40040         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
40041         FP_CMP_Q.
40042         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
40043         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
40044         FP_CMP_EQ_Q.
40045         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
40046         FP_CMP_Q.
40047         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
40048         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
40049         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
40050         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
40051         FP_CMP_EQ_Q.
40052
40053         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
40054         a subnormal result, set the underflow exception if trapping on
40055         underflow is enabled.
40056         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
40057         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
40058         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
40059         redefine to 0.
40060         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
40061         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
40062         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
40063         * soft-fp/extendxftf2.c (__extendxftf2): Use
40064         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
40065
40066         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
40067         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
40068         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40069         FP_HANDLE_EXCEPTIONS.
40070         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
40071         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40072         FP_HANDLE_EXCEPTIONS.
40073         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
40074         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40075         FP_HANDLE_EXCEPTIONS.
40076         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
40077         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40078         FP_HANDLE_EXCEPTIONS.
40079
40080 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
40081
40082         [BZ #14132]
40083         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
40084         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
40085         use INTUSE.
40086         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
40087         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
40088         Remove alias.
40089         (__adjtimex): Define using libc_hidden_ver.
40090         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
40091         Remove declaration.
40092         (ntp_gettime): Call __adjtimex directly.
40093         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
40094         Remove declaration.
40095         (ntp_gettimex): Call __adjtimex directly.
40096         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
40097         __adjtimex_internal alias.
40098
40099 2014-10-08  Roland McGrath  <roland@hack.frob.com>
40100
40101         [BZ #17460]
40102         * nscd/nscd.c (more_help): Rewrite list of tables collection
40103         using xstrdup and asprintf.
40104
40105         * nscd/nscd_conf.c: Remove local xstrdup declaration.
40106
40107 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40108             Roland McGrath  <roland@hack.frob.com>
40109
40110         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
40111         (do_lookup_unique): ... local function 'enter' here; update callers.
40112
40113 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
40114
40115         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
40116         compat_symbol calls on [SHARED].
40117         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
40118         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
40119         Remove.
40120         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40121         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
40122         (oldsetrlimit): Remove.
40123         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40125         (lchown): New syscall entry.
40126         (oldsetrlimit): Remove.
40127         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40128         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
40129         (oldsetrlimit): Remove.
40130         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40131
40132         [BZ #14138]
40133         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
40134         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
40135         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
40136         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
40137         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
40138         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
40139         (fchown): Likewise.
40140         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
40141         (fchown): Likewise.
40142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
40143         Likewise.
40144
40145 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40146
40147         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
40148         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
40149         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
40150         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
40151         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
40152         Likewise.
40153         (__old_sem_post): Likewise.
40154
40155 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
40156
40157         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
40158         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
40159         HAVE_CLOCK_GETTIME_VSYSCALL macros.
40160         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
40161         Use INLINE_VSYSCALL macro.
40162         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
40163         __vdso_clock_gettime.
40164         * sysdeps/unix/sysv/linux/tile/init-first.c
40165         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
40166         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
40167         __vdso_clock_gettime.
40168
40169         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
40170         to set up frame more cleanly.
40171
40172         * sysdeps/tile/memcmp.c: New file.
40173
40174         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
40175
40176         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
40177         * sysdeps/tile/tilegx/strcasestr.c: New file.
40178         * sysdeps/tile/tilegx/strnlen.c: New file.
40179         * sysdeps/tile/tilegx/strstr.c: New file.
40180
40181         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
40182
40183 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
40184
40185         * nptl/tst-setuid3.c: Write errors to stdout.
40186
40187 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40188
40189         * elf/dl-deps.c
40190         (preload): New functions broken out of _dl_map_object_deps.
40191         (_dl_map_object_deps):  Remove a nested function. Update call sites.
40192
40193 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
40194
40195         [BZ #14138]
40196         * sysdeps/unix/sysv/linux/execve.c: Remove file.
40197         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
40198
40199 2014-10-01  Steve Ellcey  <sellcey@mips.com>
40200
40201         * sysdeps/mips/strcmp.S: New.
40202
40203 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
40204
40205         [BZ #14138]
40206         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
40207         (linkat): Likewise.
40208         (mkdirat): Likewise.
40209         (readlinkat): Likewise.
40210         (renameat): Likewise.
40211         (symlinkat): Likewise.
40212         (unlinkat): Likewise.
40213         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
40214         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
40215         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
40216         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
40217         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
40218         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
40219         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
40220
40221 2014-09-30  Will Newton  <will.newton@linaro.org>
40222
40223         * math/math.h: Define long double math functions if
40224         _LIBC_TEST is defined.
40225         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
40226
40227         * localedata/Makefile: Move assignment to tests-special
40228         into an ifdef testing run-built-tests.
40229         * timezone/Makefile: Likewise.
40230
40231 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
40232
40233         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
40234         with $(BASH) not $(SHELL).
40235
40236 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
40237             Matthew LeGendre  <legendre1@llnl.gov>
40238
40239         [BZ #17411]
40240         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
40241         l_reloc_result.
40242
40243 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40244
40245         * stdio-common/printf_fp.c
40246         (hack_digit): New function, broken out of ...
40247         (__printf_fp): ... local function here.  Update call sites.
40248         hack_digit now takes an additional parameter that is a pointer
40249         to a struct of the referenced locals.  Those locals moved inside
40250         the struct and references updated.
40251
40252 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
40253
40254         * aclocal.m4: Require autoconf 2.69.
40255         * configure: Regenerated.
40256         * sysdeps/aarch64/configure: Likewise.
40257         * sysdeps/alpha/configure: Likewise.
40258         * sysdeps/arm/armv7/configure: Likewise.
40259         * sysdeps/arm/configure: Likewise.
40260         * sysdeps/ia64/configure: Likewise.
40261         * sysdeps/mach/configure: Likewise.
40262         * sysdeps/mips/configure: Likewise.
40263         * sysdeps/s390/configure: Likewise.
40264         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
40265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
40266
40267         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
40268         file.
40269         * sysdeps/ia64/configure.ac: Likewise.
40270
40271 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
40272
40273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
40274         specify symbol version for ld.so.  Do not include entry for
40275         libpthread.
40276         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40277         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40278         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40279
40280         [BZ #14171]
40281         * Makeconfig [$(build-shared) = yes]
40282         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
40283         makefiles.
40284         [$(build-shared) = yes && $(soversions.mk-done) = t]
40285         ($(common-objpfx)gnu/lib-names.h): Remove rule.
40286         [$(build-shared) = yes && $(soversions.mk-done) = t]
40287         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
40288         to Makerules.
40289         [$(build-shared) = yes && $(soversions.mk-done) = t]
40290         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
40291         here.
40292         [$(build-shared) = yes && $(soversions.mk-done) = t]
40293         (common-generated): Don't append gnu/lib-names.h and
40294         gnu/lib-names.stmp here.
40295         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
40296         (lib-names-h-abi): New variable.
40297         [$(build-shared) = yes && $(soversions.mk-done) = t]
40298         (lib-names-stmp-abi): Likewise.
40299         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40300         abi-variants] (before-compile): Append
40301         $(common-objpfx)$(lib-names-h-abi).
40302         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40303         abi-variants] (common-generated): Append gnu/lib-names.h.
40304         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40305         abi-variants] (install-others-nosubdir): Depend on
40306         $(inst_includedir)/$(lib-names-h-abi).
40307         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40308         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
40309         [$(build-shared) = yes && $(soversions.mk-done) = t]
40310         ($(common-objpfx)$(lib-names-h-abi)): New rule.
40311         [$(build-shared) = yes && $(soversions.mk-done) = t]
40312         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
40313         [$(build-shared) = yes && $(soversions.mk-done) = t]
40314         (common-generated): Append $(lib-names-h-abi) and
40315         $(lib-names-stmp-abi).
40316         * scripts/lib-names.awk: Do not handle multi being set.
40317         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
40318         Remove variable.
40319         (abi-lp64_be-ld-soname): Likewise.
40320         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
40321         Likewise.
40322         (abi-hard-ld-soname): Likewise.
40323         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
40324         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
40325         Remove variable.
40326         (abi-o32_hard-ld-soname): Likewise.
40327         (abi-o32_soft_2008-ld-soname): Likewise.
40328         (abi-o32_hard_2008-ld-soname): Likewise.
40329         (abi-n32_soft-ld-soname): Likewise.
40330         (abi-n32_hard-ld-soname): Likewise.
40331         (abi-n32_soft_2008-ld-soname): Likewise.
40332         (abi-n32_hard_2008-ld-soname): Likewise.
40333         (abi-n64_soft-ld-soname): Likewise.
40334         (abi-n64_hard-ld-soname): Likewise.
40335         (abi-n64_soft_2008-ld-soname): Likewise.
40336         (abi-n64_hard_2008-ld-soname): Likewise.
40337         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
40338         Likewise.
40339         (abi-64-v2-ld-soname): Likewise.
40340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
40341         ld.so entries.
40342         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
40343         variable.
40344         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
40345         entry.
40346         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
40347         variable.
40348         (abi-64-ld-soname): Likewise.
40349         (abi-x32-ld-soname): Likewise.
40350         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
40351         entry.
40352         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40353
40354 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
40355
40356         [BZ #14138]
40357         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
40358         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
40359         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
40360         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
40361         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
40362         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
40363         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
40364         syscall entry for GLIBC_2.2 symbol version.
40365         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
40366         Likewise.
40367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40368         (setrlimit): Likewise.
40369         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
40370         Likewise.
40371
40372 2014-09-23  Will Newton  <will.newton@linaro.org>
40373
40374         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
40375         _LINUX_ARM_SYSDEP_H include guard too.
40376         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
40377         define.
40378
40379 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
40380
40381         * sysdeps/unix/sysv/linux/eventfd.c:
40382         Make first argument unsigned.
40383         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
40384         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
40385
40386 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
40387
40388         [BZ #16852]
40389         * socket/recvmmsg.c (recvmmsg): Drop const argument.
40390         * socket/sys/socket.h: Likewise.
40391         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
40392
40393 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40394
40395         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
40396
40397 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
40398
40399         * time/tst-ftime.c: New test.
40400         * time/Makefile (tests): Add tst-ftime.
40401
40402 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
40403
40404         * soft-fp/extended.h: Fix comment formatting.
40405         * soft-fp/op-1.h: Likewise.
40406         * soft-fp/op-2.h: Likewise.
40407         * soft-fp/op-4.h: Likewise.
40408         * soft-fp/op-8.h: Likewise.
40409         * soft-fp/op-common.h: Likewise.
40410         * soft-fp/soft-fp.h: Likewise.
40411
40412         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
40413
40414 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
40415
40416         [BZ #6652]
40417         * Makeconfig (soversions-default-setname): Remove variable.
40418         ($(common-objpfx)soversions.i): Don't pass default_setname to
40419         soversions.awk.
40420         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
40421         oldest_abi to abi-versions.awk.
40422         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
40423         * config.make.in (oldest-abi): Remove variable.
40424         * configure.ac (--enable-oldest-abi): Remove configure option.
40425         * configure: Regenerated.
40426         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
40427         text.
40428         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
40429         * scripts/soversions.awk: Do not handle default_setname variable.
40430         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
40431         variable.
40432         * sysdeps/mach/hurd/configure: Regenerated.
40433         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
40434         variable.
40435         * sysdeps/unix/sysv/linux/configure: Regenerated.
40436
40437 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40438
40439         * elf/Makefile (CFLAGS-interp.c): Remove.
40440         ($(elf-objpfx)runtime-linker.h): Generate header with linker
40441         path string.
40442         * elf/interp.c: Include generated runtime-linker.h
40443
40444         * Makerules (lib%.so): Don't include $(+interp) in
40445         prerequisites.
40446         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
40447         * dlfcn/eval.c: Remove file.
40448
40449         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
40450         macros.
40451
40452         [BZ #17266]
40453         * misc/sys/cdefs.h: Define __extern_always_inline for clang
40454         4.2 and newer.
40455
40456         [BZ #17370]
40457         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
40458
40459 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40460             Jakub Jelinek  <jakub@redhat.com>
40461
40462         [BZ #17266]
40463         * libio/stdio.h: Check definition of __fortify_function
40464         instead of __extern_always_inline to include bits/stdio2.h.
40465         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
40466         check if __extern_always_inline is defined.
40467         [__USE_MISC || __USE_XOPEN]: Likewise.
40468         [__USE_ISOC99] Likewise.
40469         * misc/sys/cdefs.h (__fortify_function): Define only if
40470         __extern_always_inline is defined.
40471         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
40472         __extern_always_inline and __extern_inline only for g++-4.3
40473         and newer or a compatible gcc.
40474
40475 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
40476
40477         [BZ #17371]
40478         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
40479         last change to handle zero prefix length.
40480
40481 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40482
40483         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
40484         _SC_REGEX_VERSION.
40485
40486         * posix/getconf.c (vars): Add _POSIX_IPV6 and
40487         _POSIX_RAW_SOCKETS.
40488
40489 2014-09-13  Allan McRae  <allan@archlinux.org>
40490
40491         * po/ru.po: Update Russian translation from translation project.
40492
40493 2014-09-12  Roland McGrath  <roland@hack.frob.com>
40494
40495         * locale/programs/locale.c (show_locale_vars): Inline local function
40496         into its sole call site.  Clean up some style nits.
40497         (print_item): New function, broken out of ...
40498         (show_info): ... local function here.  Clean up style nits.
40499
40500         * locale/programs/ld-ctype.c (set_one_default): New function, broken
40501         out of ...
40502         (set_class_defaults): ... local function set_default here.
40503         Define set_default as a macro locally to pass constant parameters.
40504         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
40505         rather than a shared local.
40506
40507         * stdlib/rpmatch.c (try): New function, broken out of ...
40508         (rpmatch): ... local function here.  Also, prototypify definition.
40509
40510 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
40511
40512         * scripts/soversions.awk: Do not handle configuration names.
40513         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
40514         vendor and os variables to soversions.awk.
40515         * configure.ac: Do not modify gnu-* host_os.
40516         * configure: Regenerated
40517         * shlib-versions: Remove first column with configuration names.
40518         * nptl/shlib-versions: Likewise.
40519         * nptl_db/shlib-versions: Likewise.
40520         * sysdeps/hppa/shlib-versions: Likewise.
40521         * sysdeps/m68k/shlib-versions: Likewise.
40522         * sysdeps/mach/hurd/shlib-versions: Likewise.
40523         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
40524         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
40525         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
40526         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
40527         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
40528         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
40529         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
40530         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
40531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
40532         Likewise.
40533         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40534         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
40535         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
40536         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
40537         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
40538         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
40539         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40540         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40541
40542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40543         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
40544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
40545         Regenerated.
40546         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
40547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
40548         Condition symbol version definitions on [HAVE_ELFV2_ABI].
40549
40550         * shlib-versions: Remove OS-specific entries.  Moved to files in
40551         sysdeps.
40552         * sysdeps/mach/hurd/shlib-versions: New file.
40553         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
40554
40555         * nptl/shlib-versions: Remove architecture-specific entries.
40556         Moved to files in sysdeps.
40557         * shlib-versions: Likewise.
40558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
40559         file.
40560         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40561         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
40562         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
40563         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
40564
40565         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
40566         (UDP_NO_CHECK6_RX): Likewise.
40567
40568 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40569
40570         * sysdeps/posix/sysconf.c (__sysconf): Spell
40571         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
40572
40573 2014-08-12  Florian Weimer  <fweimer@redhat.com>
40574
40575         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
40576         loading.
40577         * iconv/Versions (__gconv_transliterate): Export for use from
40578         gconv modules.
40579         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
40580         (struct __gconv_trans_data, __gconv_trans_fct,
40581         __gconv_trans_context_fct, __gconv_trans_query_fct,
40582         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
40583         definitions.
40584         (struct __gconv_step_data): Remove __trans member.
40585         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
40586         longer hidden.  Remove unused trans_data argument.
40587         * iconv/gconv_int.h (struct trans_struct): Remove definition.
40588         (__gconv_translit_find): Remove declaration.
40589         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
40590         prototype.
40591         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
40592         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
40593         trans_data argument.  Add hidden definition.
40594         (__gconv_translit_find): Remove.
40595         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
40596         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
40597         * iconv/skeleton.c: Remove transliteration initialization.
40598         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
40599         __gconv_step_data initialization.
40600         * libio/iofwide.c (__libio_translit_): Remove.
40601         (_IO_fwide): Adjust struct __gconv_step_data initialization.
40602         * wcsmbs/btowc.c (__btowc): Likewise.
40603         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
40604         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
40605         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
40606         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
40607         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
40608         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
40609         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
40610         * wcsmbs/wctob.c (wctob): Likewise.
40611
40612 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40613
40614         [BZ #16194]
40615         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
40616         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
40617         register usage.
40618         * sysdeps/x86/Makefile: Adjust.
40619
40620 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40621             Roland McGrath  <roland@hack.frob.com>
40622
40623         * locale/weight.h: Add include guard.
40624         (findidx): Make static rather than auto; take new parameters
40625         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
40626         * locale/weightwc.h: Likewise.
40627         * posix/fnmatch_loop.c
40628         (FCT): Change type of EXTRA from int32_t to wint_t.
40629         Don't include either header inside the function.
40630         Call FINDIDX rather than findidx, and pass new arguments.
40631         #undef FINDIDX at the end of the file.
40632         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
40633         FINDIDX before including fnmatch_loop.c for the non-wide version.
40634         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
40635         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
40636         for the wide version.
40637         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
40638         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
40639         Pass new arguments to findidx.
40640         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
40641         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
40642         Don't #include it inside the function.  Pass new arguments to findidx.
40643         * posix/regex_internal.h
40644         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
40645         (re_string_elem_size_at): Don't #include it inside the function.
40646         Pass new arguments to findidx.
40647         * string/strcoll_l.c: #include WEIGHT_H at top level.
40648         (get_next_seq): Don't #include it inside the function.
40649         Pass new arguments to findidx.
40650         (get_next_seq_nocache): Likewise.
40651         * string/strxfrm_l.c: #include WEIGHT_H at top level.
40652         (STRXFRM): Don't #include it inside the function.
40653         Pass new arguments to findidx.
40654
40655 2014-09-11  Florian Weimer  <fweimer@redhat.com>
40656
40657         [BZ #17344]
40658         * malloc/malloc.c (unlink): Turn asserts into a call to
40659         malloc_printerr.
40660
40661 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
40662
40663         [BZ #17370]
40664         * libio/wfileops (do_ftell_wide): Free OUT.
40665
40666 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
40667
40668         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
40669
40670 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
40671
40672         [BZ #17363]
40673         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
40674         group if the current group is empty.
40675
40676 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40677
40678         * benchtests/bench-memset.c (test_main): Add more test from size
40679         from 32 to 512 bytes.
40680         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40681         Add POWER8 memset object.
40682         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40683         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
40684         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
40685         implementation.
40686         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
40687         Likewise.
40688         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
40689         multiarch POWER8 memset optimization.
40690         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
40691         POWER8 memset optimization.
40692
40693         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40694         Remove bzero multiarch objects.
40695         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
40696         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
40697         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
40698         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
40699         Remove define.
40700         [__bzero]: Redefine to specific name.
40701         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
40702         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
40703         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
40704         define.
40705         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
40706         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
40707
40708 2014-09-10  Florian Weimer  <fweimer@redhat.com>
40709
40710         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
40711         warnings into errors.
40712
40713         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
40714         __cxa_thread_atexit_impl prototype.
40715
40716 2014-09-09  Steve Ellcey  <sellcey@mips.com>
40717
40718         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
40719         Fix capitalization of error message.
40720
40721 2014-09-09  Steve Ellcey  <sellcey@mips.com>
40722
40723         * sysdeps/mips/preconfigure: Modify ABI tests.
40724
40725 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
40726
40727         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
40728
40729 2014-09-07  Roland McGrath  <roland@hack.frob.com>
40730             Carlos O'Donell  <carlos@systemhalted.org>
40731
40732         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
40733         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
40734         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
40735         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
40736         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
40737         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
40738         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
40739         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
40740         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
40741         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
40742         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
40743         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
40744         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
40745         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
40746         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
40747         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
40748         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
40749         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
40750         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
40751         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
40752         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
40753         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
40754         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
40755         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
40756         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
40757         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
40758         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
40759         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
40760         Deconditionalize the code that was previously under [RESET_PID].
40761         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
40762         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
40763         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
40764         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
40765         include sysdep.h.
40766
40767 2014-09-08  Allan McRae  <allan@archlinux.org>
40768
40769         * version.h (RELEASE): Set to "development".
40770         (VERSION): Set to "2.20.90"
40771
40772 2014-09-07  Allan McRae  <allan@archlinux.org
40773
40774         * version.h (RELEASE): Set to "stable".
40775         (VERSION): Set to "2.20"
40776         * include/features.h (__GLIBC_MINOR__): Set to 20.
40777
40778         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
40779         Liebler.
40780
40781         * po/ko.po: Update Korean translation from translation project.
40782
40783 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
40784
40785         [BZ #17354]
40786         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
40787         macro for handling signed relocations.
40788
40789 2014-09-03  Florian Weimer  <fweimer@redhat.com>
40790
40791         [BZ #17325]
40792         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
40793         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
40794         assert.
40795         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
40796         * iconvdata/ibm935.c (BODY): Likewise.
40797         * iconvdata/ibm937.c (BODY): Likewise.
40798         * iconvdata/ibm939.c (BODY): Likewise.
40799         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
40800         assert.
40801         * iconvdata/Makefile (iconv-test.out): Pass module list to test
40802         script.
40803         * iconvdata/run-iconv-test.sh: New test loop for checking for
40804         decoder crashers.
40805
40806 2014-09-02  Khem Raj  <raj.khem@gmail.com>
40807
40808         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
40809         libm_hidden_ver.
40810
40811 2014-09-01  Allan McRae  <allan@archlinux.org>
40812
40813         * po/eo.po: Update Esperanto translation from translation project.
40814
40815         * po/ca.po: Update Catalan translation from translation project.
40816
40817 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40818
40819         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
40820         __proc_dostop call.
40821
40822 2014-08-27  Mark Wielaard  <mjw@redhat.com>
40823
40824         [BZ #17319]
40825         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
40826         to call set_thread_area instead of hand written asm.
40827         (__NR_set_thread_area): Removed define.
40828         (TLS_FLAG_WRITABLE): Likewise.
40829         (__ASSUME_SET_THREAD_AREA): Remove check.
40830         (TLS_EBX_ARG): Remove define.
40831         (TLS_LOAD_EBX): Likewise.
40832
40833 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40834
40835         Simplify atomicity of socket creation in bind.
40836
40837         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
40838         looking up the name after linking the file.
40839
40840 2014-08-27  Allan McRae  <allan@archlinux.org>
40841
40842         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
40843
40844 2014-08-26  Florian Weimer  <fweimer@redhat.com>
40845
40846         [BZ #17187]
40847         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
40848         trans_compare, open_translit, __gconv_translit_find):
40849         Remove module loading code.
40850
40851 2014-08-26  Allan McRae  <allan@archlinux.org>
40852
40853         * po/vi.po: Update Vietnamese translation from translation project.
40854
40855         * po/uk.po: Update Ukrainian translation from translation project.
40856
40857         * po/fr.po: Update French translation from translation project.
40858
40859         * po/ru.po: Update Russian translation from translation project.
40860
40861         * po/pl.po: Update Polish translation from translation project.
40862
40863         * po/cs.po: Update Czech translation from translation project.
40864
40865         * po/de.po: Update German translation from translation project.
40866
40867         * po/bg.po: Update Bulgarian translation from translation project.
40868
40869         * po/sv.po: Update Sweedish translation from translation project.
40870
40871         * po/nl.po: Update Dutch translation from translation project.
40872
40873         * po/es.po: Update Spanish translation from translation project.
40874
40875 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
40876
40877         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
40878
40879         * catgets/Makefile (CPPFLAGS-gencat): Remove.
40880         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
40881         (CPPFLAGS-iconvconfig): Likewise.
40882         * timezone/Makefile (CPPFLAGS-zic): Likewise.
40883
40884         * include/libc-symbols.h: Remove unnecessary check for
40885         NOT_IN_libc.
40886         * nptl/pthreadP.h: Likewise.
40887         * sysdeps/aarch64/setjmp.S: Likewise.
40888         * sysdeps/alpha/setjmp.S: Likewise.
40889         * sysdeps/arm/sysdep.h: Likewise.
40890         * sysdeps/i386/setjmp.S: Likewise.
40891         * sysdeps/m68k/setjmp.c: Likewise.
40892         * sysdeps/posix/getcwd.c: Likewise.
40893         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40894         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
40895         * sysdeps/s390/s390-32/setjmp.S: Likewise.
40896         * sysdeps/s390/s390-64/setjmp.S: Likewise.
40897         * sysdeps/sh/sh3/setjmp.S: Likewise.
40898         * sysdeps/sh/sh4/setjmp.S: Likewise.
40899         * sysdeps/unix/alpha/sysdep.h: Likewise.
40900         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
40901         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
40902         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
40903         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
40904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
40905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
40906         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
40907         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
40908         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
40909         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
40910         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
40911         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
40912         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
40913         * sysdeps/x86_64/setjmp.S: Likewise.
40914
40915 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
40916
40917         [BZ #17263]
40918         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
40919         <stdint.h>.
40920         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
40921         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
40922
40923 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
40924
40925         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
40926
40927         [BZ #17262]
40928         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
40929         and __x86_64__ when disabling x87 inline functions.
40930
40931 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
40932
40933         [BZ #17259]
40934         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
40935         asm statement with __cpuid_count.
40936
40937 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
40938
40939         * configure.ac: Change __ehdr_start code to dereference the struct.
40940         Run readelf on the output to look for relocations.
40941         * configure: Regenerated.
40942
40943 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
40944
40945         [BZ #17261]
40946         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
40947         value to 0.
40948         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
40949
40950 2014-08-12  Roland McGrath  <roland@hack.frob.com>
40951
40952         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
40953
40954 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
40955
40956         [BZ #16892]
40957         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
40958         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
40959
40960 2014-08-12  Sean Anderson  <seanga2@gmail.com>
40961
40962         * malloc/malloc.c: Fix typo in comment.
40963
40964 2014-08-09  Allan McRae  <allan@archlinux.org>
40965
40966         * Regenerate libc.po.
40967
40968 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
40969
40970         * intl/tst-gettext2.sh: Check every lang file for creation.
40971
40972 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
40973
40974         * sysdeps/aarch64/fpu/math_private.h
40975         (libc_feholdsetround_noex_aarch64_ctx): New function.
40976
40977 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
40978
40979         * sysdeps/arm/armv6/strcpy.S (strcpy):
40980         Fix performance issue in misaligned cases.
40981
40982 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40983
40984         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
40985         Move definition from termios.h.
40986         (struct termio): Likewise.
40987         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
40988         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
40989         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
40990         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
40991         Likewise.
40992         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
40993         Move definition to ioctl-types.h
40994         (struct termio): Likewise.
40995         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
40996         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
40997         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
40998         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
40999         Likewise.
41000
41001 2014-08-05  Richard Henderson  <rth@redhat.com>
41002
41003         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
41004         exceptions.
41005         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
41006         Add fraiseexcpt.
41007         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
41008         Use __feraiseexcept.
41009         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
41010         Protect libm symbols with IS_IN_libm.
41011
41012         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
41013
41014 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
41015
41016         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
41017
41018 2014-08-04  Will Newton  <will.newton@linaro.org>
41019
41020         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
41021         file.
41022
41023 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
41024
41025         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
41026         variants for each function.
41027
41028 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41029
41030         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
41031         appended ...
41032         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
41033         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
41034         appended ...
41035         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
41036         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
41037         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
41038         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
41039         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
41040         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
41041         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
41042         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
41043         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
41044         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
41045         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
41046         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
41047         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
41048         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
41049         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
41050         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
41051         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
41052         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
41053         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
41054         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
41055         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
41056         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
41057         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
41058         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
41059         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
41060         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
41061         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
41062         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
41063         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
41064         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
41065         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
41066         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
41067         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
41068         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
41069         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
41070         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
41071         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
41072         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
41073         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
41074         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
41075         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
41076         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
41077         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
41078         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
41079         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
41080         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
41081         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
41082         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
41083         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
41084         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
41085         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
41086         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
41087         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
41088         Update #include.
41089         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
41090         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
41091
41092 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41093
41094         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
41095         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
41096         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
41097         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
41098         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
41099         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
41100
41101 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41102
41103         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
41104         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
41105         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
41106         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
41107
41108 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41109
41110         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
41111         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
41112         (__libc_vfork): Define function under this name.
41113         (__vfork): Define as an alias.
41114         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
41115         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
41116
41117 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41118
41119         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
41120         that was previously under [RESET_PID].
41121         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
41122
41123 2014-08-04  Andreas Schwab  <schwab@suse.de>
41124
41125         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
41126
41127 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
41128
41129         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
41130         (main): Likewise.
41131
41132 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41133
41134         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
41135
41136 2014-08-01  Richard Henderon  <rth@redhat.com>
41137
41138         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
41139         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
41140         typo in exact zero test.
41141         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
41142         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
41143         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
41144
41145 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41146
41147         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
41148         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
41149         * sysdeps/arm/sysdep.h: ... here.
41150         [!__ASSEMBLER__]: Include <stdint.h>.
41151
41152 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
41153
41154         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
41155         (HAVE_WCTYPE_H): Likewise.
41156         (HAVE_ISWCTYPE): Likewise.
41157         (ENABLE_NLS): Likewise.
41158         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
41159         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
41160
41161         * posix/regex_internal.c: Check if DEBUG is defined and is
41162         set.
41163
41164         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
41165         (HAVE_MBSRTOWCS): Likewise.
41166         * posix/fnmatch.c: Include string.h unconditionally.
41167
41168 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
41169
41170         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
41171         reversal.
41172
41173 2014-07-31  Roland McGrath  <roland@hack.frob.com>
41174
41175         * sysdeps/generic/safe-fatal.h: New file.
41176         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
41177         * nptl/forward.c: Include it.
41178         (__pthread_unwind): Use __safe_fatal as default action, rather
41179         than a bogus use of INTERNAL_SYSCALL that could never work.
41180
41181         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
41182         * configure.ac (libc_cv_builtin_trap): New test.
41183         * configure: Regenerated.
41184         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
41185         (ABORT_INSTRUCTION): Define using __builtin_trap.
41186
41187         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
41188         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
41189         * sysdeps/nptl/nptl-signals.h: New file.
41190         * nptl/pthreadP.h: Include <nptl-signals.h>.
41191
41192 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41193
41194         * sysdeps/s390/s390-64/utf16-utf32-z9.c
41195         (ONE_DIRECTION): Define.
41196         * sysdeps/s390/s390-64/utf8-utf16-z9.c
41197         (ONE_DIRECTION): Define.
41198         * sysdeps/s390/s390-64/utf8-utf32-z9.c
41199         (ONE_DIRECTION): Define.
41200
41201 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41202
41203         * sysdeps/s390/Makefile: Delete file.
41204         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
41205         * sysdeps/s390/__longjmp.c: Delete file.
41206         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
41207         Remove fields __flags and __reserved.
41208         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
41209         and add versioning.
41210         * sysdeps/s390/rtld-__longjmp.c: Delete file.
41211         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
41212         * sysdeps/s390/rtld-setjmp.S: Likewise.
41213         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
41214         * sysdeps/s390/s390-32/__longjmp.c: ... here.
41215         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
41216         * sysdeps/s390/s390-32/setjmp.S: ... here.
41217         Add versioning.
41218         (__sigsetjmp): Remove setting __flags field.
41219         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
41220         * sysdeps/s390/s390-64/__longjmp.c: ... here.
41221         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
41222         * sysdeps/s390/s390-64/setjmp.S: ... here.
41223         Add versioning.
41224         (__sigsetjmp): Remove setting __flags field.
41225         * sysdeps/s390/setjmp.S: Delete file.
41226         * sysdeps/s390/sigjmp.c: Likewise.
41227         * sysdeps/s390/v1-longjmp.c: Likewise.
41228         * sysdeps/s390/v1-setjmp.h: Likewise.
41229         * sysdeps/s390/v1-sigjmp.c: Likewise.
41230         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
41231         Remove v1-longjmp_chk.
41232         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
41233         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
41234         Include debug/longjmp_chk.c and add versioning.
41235         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
41236         Include nptl/pt-longjmp.c and add versioning.
41237         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
41238         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
41239         Include __longjmp.c.
41240         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
41241         Move to ...
41242         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
41243         (__getcontext): Remove setting __flags field.
41244         Add versioning.
41245         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
41246         Don't restore upper high grps.
41247         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
41248         Likewise.
41249         (__swapcontext): Remove setting uc_flags field.
41250         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
41251         Delete file.
41252         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
41253         Include __longjmp.c.
41254         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
41255         Move to ...
41256         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
41257         (__getcontext): Remove setting __flags field.
41258         Add versioning.
41259         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
41260         (__swapcontext): Remove setting uc_flags field.
41261         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
41262         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
41263         Remove fields uc_high_gprs and __reserved.
41264         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
41265         New file with reverted content.
41266         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
41267         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
41268         Regenerated.
41269         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
41270         Regenerated.
41271
41272 2014-07-31  Andreas Schwab  <schwab@suse.de>
41273
41274         * config.h.in (HAVE_IFUNC): Define to 0.
41275         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
41276         definedness.
41277
41278 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
41279
41280         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41281         memmove-avx-unaligned, memcpy-avx-unaligned and
41282         mempcpy-avx-unaligned.
41283         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41284         Add tests for AVX memcpy functions.
41285         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
41286         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
41287         memcpy_chk.
41288         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
41289         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
41290         memmove_chk.
41291         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
41292         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
41293         mempcpy_chk.
41294         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
41295         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
41296         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
41297
41298 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41299
41300         [BZ #17213]
41301         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
41302         powerpc64le.
41303
41304 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
41305
41306         [BZ #16839]
41307         * manual/llio.texi: Add section about open file description locks.
41308         * manual/examples/ofdlocks.c: Example of open file description
41309         lock usage.
41310         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
41311         F_OFD_SETLK, and F_OFD_SETLKW.
41312
41313 2014-07-23  Allan McRae  <allan@archlinux.org>
41314
41315         * po/es.po: Update Spanish translation from translation project.
41316
41317 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
41318
41319         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
41320
41321 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
41322
41323         [BZ #17078]
41324         * sysdeps/arm/dl-machine.h (elf_machine_rela)
41325         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
41326         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
41327
41328 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
41329
41330         [BZ #17088]
41331         * math/fesetenv.c (__fesetenv)
41332         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
41333         * math/feupdateenv.c (__feupdateenv)
41334         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
41335
41336         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
41337         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
41338         (__ASSUME_SOCKETCALL): Do not define.
41339
41340         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
41341         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
41342         (__ASSUME_SOCKETCALL): Do not define.
41343         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
41344         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41345         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41346         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41347         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41348         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
41349         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41350         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41351
41352         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
41353         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
41354         (__ASSUME_SOCKETCALL): Do not define.
41355         (__ASSUME_IPC64): Define unconditionally.
41356         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41357         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41358         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41359         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41360         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
41361         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41362         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
41363         Likewise.
41364
41365         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
41366         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
41367         (__ASSUME_SOCKETCALL): Do not define.
41368         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
41369         (__ASSUME_FUTEX_LOCK_PI): Likewise.
41370         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41371         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
41372         (__ASSUME_REQUEUE_PI): Define unconditionally.
41373         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
41374         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
41375         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41376         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
41377         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41378         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41379
41380         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
41381         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
41382         (__ASSUME_SOCKETCALL): Do not define.
41383         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
41384         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41385         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41386         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
41387         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41388         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41389
41390         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
41391         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
41392         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41393         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
41394         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41395         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
41396         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41397         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
41398         (__ASSUME_GETCPU_SYSCALL): Likewise.
41399
41400         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
41401         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
41402         cases for individual architectures.
41403         * sysdeps/gnu/configure: Regenerated.
41404         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
41405         LIBC_SLIBDIR_RTLDDIR.
41406         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
41407         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
41408         LIBC_SLIBDIR_RTLDDIR.
41409         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
41410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
41411         LIBC_SLIBDIR_RTLDDIR.
41412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
41413         Regenerated.
41414         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
41415         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
41416         file.
41417         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
41418         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
41419         file.
41420         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
41421         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
41422         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
41423         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
41424
41425         * sysdeps/aarch64/shlib-versions: Move to ...
41426         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
41427         * sysdeps/alpha/shlib-versions: Move to ...
41428         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
41429         * sysdeps/arm/shlib-versions: Move to ...
41430         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
41431         * sysdeps/hppa/shlib-versions: Move all contents except for
41432         libgcc_s entry to ...
41433         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
41434         entry from ...
41435         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
41436         * sysdeps/ia64/shlib-versions: Move to ...
41437         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
41438         entry from ...
41439         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
41440         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
41441         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
41442         * sysdeps/microblaze/shlib-versions: Move to ...
41443         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
41444         * sysdeps/mips/shlib-versions: Move to ...
41445         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
41446         entry from ...
41447         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
41448         * sysdeps/tile/shlib-versions: Move to ...
41449         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
41450         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
41451         from ...
41452         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
41453         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
41454         entry from ...
41455         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
41456
41457 2014-07-17  Will Newton  <will.newton@linaro.org>
41458
41459         * sysdeps/arm/bits/atomic.h
41460         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
41461         (__arch_compare_and_exchange_bool_16_int): Likewise.
41462         (__arch_compare_and_exchange_bool_64_int): Likewise.
41463
41464         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
41465         into an #else block.
41466
41467 2014-07-16  Roland McGrath  <roland@hack.frob.com>
41468
41469         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
41470         just Linux configurations.  Test empirically that the compiler sets
41471         __ARM_EABI__, rather than using the tuple to decide.
41472         * sysdeps/arm/preconfigure: Regenerated.
41473         * sysdeps/unix/sysv/linux/arm/configure: File removed.
41474         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
41475         contents appended ...
41476         * sysdeps/arm/configure.ac: ... here.
41477         * sysdeps/arm/configure: Regenerated.
41478
41479 2014-07-15  Roland McGrath  <roland@hack.frob.com>
41480
41481         * nptl/pthread_kill.c: New file.
41482         * nptl/pthread_sigmask.c: New file.
41483         * nptl/pthread_sigqueue.c: New file.
41484
41485         * sysdeps/nptl/lowlevellock.h: New file.
41486         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
41487         * sysdeps/nptl/lowlevellock-futex.h: New file.
41488
41489         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
41490         Remove dead declarations.
41491
41492 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
41493
41494         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
41495         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
41496         config-cflags-avx2.
41497         * sysdeps/x86_64/configure.ac: Likewise.
41498         * sysdeps/i386/configure: Regenerated.
41499         * sysdeps/x86_64/configure: Likewise.
41500         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41501         memset-avx2 only if config-cflags-avx2 is yes.
41502         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41503         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
41504         defined.
41505         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
41506         only if HAVE_AVX2_SUPPORT is defined.
41507         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
41508
41509 2014-07-14  Alan Modra  <amodra@gmail.com>
41510
41511         [BZ #17153]
41512         * elf/elf.h (DT_PPC64_NUM): Correct value.
41513         * NEWS: Add to fixed bug list.
41514
41515 2014-07-13  Jim Meyering  <meyering@fb.com>
41516
41517         [BZ 17150]
41518         regex: don't deref NULL upon heap allocation failure
41519         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
41520         failure in one more place.
41521         To trigger the segfault, configure grep -with-included-regex,
41522         build it, and run these commands:
41523         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
41524
41525 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
41526
41527         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
41528
41529 2014-07-11  Richard Henderson  <rth@redhat.com>
41530
41531         * sysdeps/aarch64/libm-test-ulps: Update.
41532
41533 2014-07-10  Florian Weimer  <fweimer@redhat.com>
41534
41535         [BZ #17135]
41536         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
41537         * nptl/allocatestack.c (__nptl_setxid_error): New function.
41538         (__nptl_setxid): Initialize error member.  Call
41539         __nptl_setxid_error.
41540         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
41541         * nptl/descr.h (struct xid_command): Add error member.
41542         * nptl/tst-setuid3.c: New file.
41543         * nptl/Makefile (tests): Add it.
41544
41545 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41546
41547         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
41548         New define.
41549         (__lll_trylock): Use __lll_base_trylock.
41550         (__lll_cond_trylock): Likewise.
41551
41552 2014-07-10  Roland McGrath  <roland@hack.frob.com>
41553
41554         * nptl/pthread_create.c (start_thread): Use atomic_or and
41555         lll_futex_wake directly rather than lll_robust_dead.
41556         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
41557         (lll_robust_dead): Macro removed.
41558         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
41559         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
41560         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
41561         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41562         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41563         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
41564         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
41565         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41566         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
41567         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41568         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41569         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41570         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41571         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41572         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41573
41574         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
41575         Use atomic_compare_and_exchange_val_acq directly rather than
41576         lll_robust_trylock.
41577         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
41578         (__lll_robust_trylock, lll_robust_trylock): Removed.
41579         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
41580         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
41581         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41582         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41583         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
41584         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
41585         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41586         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
41587         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41588         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41589         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41590         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41591         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41592         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41593
41594 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41595
41596         * manual/locale.texi (Locale Names): New section documenting
41597         locale name syntax.  Adjust menu and node chaining accordingly.
41598         (Choosing Locale): Reference Locale Names, Locale Categories.
41599         Mention setting LC_ALL=C.  Reflect that name syntax is now
41600         documented.
41601         (Locale Categories): New section title.  Reference Locale Names.
41602         LC_ALL is an environment variable, but not a category.
41603         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
41604         description, now in Locale Name.  Reference that section.  Locale
41605         name syntax is now documented.
41606
41607 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41608
41609         [BZ #17137]
41610         * locale/findlocale.c (name_present, valid_locale_name): New
41611         functions.
41612         (_nl_find_locale): Use the loc_name variable to store name
41613         candidates.  Call name_present and valid_locale_name to check and
41614         validate locale names.  Return an error if the locale is invalid.
41615
41616 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41617
41618         * locale/setlocale.c (setlocale): Use strdup for allocating
41619         composite name copy.
41620
41621 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41622
41623         Sync up with gnulib.
41624         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
41625         [!_LIBC && ENABLE_NLS]: Include gettext.h.
41626         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
41627         and _GL_ARG_NONNULL.
41628         [USE_UNLOCKED_IO]: Include unlocked-io.h.
41629         [!_LIBC]: Include code for Windows and Cygwin.
41630         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
41631         Include prototype for int strerror_r.
41632         [!_LIBC] (is_open): New function.
41633         (flush_stdout): New function.
41634         (print_errno_message): Use it.
41635         (error): Likewise.
41636         (error_at_line): Likewise.
41637         (error_tail) Add function attribute macros.  Use
41638         __builtin_expect.
41639
41640         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
41641
41642         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
41643
41644         * io/ftw.c: Include sys/param.h unconditionally.
41645
41646         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
41647
41648         [BZ #17125]
41649         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
41650         libc_freeres_ptr.
41651         (freecache): New function to free CACHE on exit.
41652
41653         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
41654         initialization.
41655
41656 2014-07-09  David S. Miller  <davem@davemloft.net>
41657
41658         * sysdeps/sparc/fpu/libm-test-ulps: Update.
41659
41660         * sysdeps/sparc/nptl/internaltypes.h: Delete.
41661         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
41662         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
41663         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
41664         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
41665         * sysdeps/sparc/nptl/sem_init.c: Likewise.
41666         * sysdeps/sparc/nptl/sem_post.c: Likewise.
41667         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
41668         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
41669         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
41670         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
41671         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
41672         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
41673
41674 2014-07-09  Andreas Schwab  <schwab@suse.de>
41675
41676         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
41677         output.
41678         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
41679         (do_test): Likewise.
41680
41681         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
41682
41683 2014-07-09  Will Newton  <will.newton@linaro.org>
41684
41685         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
41686         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
41687         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
41688         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
41689         * sysdeps/hppa/start.S (_start): Likewise.
41690
41691 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
41692
41693         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
41694
41695         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
41696         defined.
41697
41698 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
41699
41700         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
41701         after checking that it is non-NULL.
41702
41703         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
41704
41705 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41706
41707         * sysdeps/powerpc/memmove.c: Remove file.
41708         * sysdeps/powerpc/powerpc32/power4/memcopy.h
41709         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
41710         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
41711         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
41712         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
41713         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
41714         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
41715         string memmove instead of removed powerpc one.
41716
41717         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41718         [weak_alias]: Fix compiler warning due trailing data.
41719         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
41720         [weak_alias]: Likewise.
41721         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
41722         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
41723
41724         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41725         (__libc_ifunc_impl_list): Add memmove functions.
41726
41727 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
41728
41729         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
41730         Remove code.
41731         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
41732         Likewise.
41733         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
41734         Likewise.
41735         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
41736         Likewise.
41737         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
41738         Likewise.
41739         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
41740         Likewise.
41741         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
41742         Likewise.
41743         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
41744         Likewise.
41745         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
41746         Likewise.
41747         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
41748         Likewise.
41749         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
41750         Likewise.
41751         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
41752         Likewise.
41753         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
41754         Likewise.
41755         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
41756         Likewise.
41757         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
41758         Likewise.
41759         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
41760         Likewise.
41761         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
41762         Likewise.
41763
41764 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41765
41766         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
41767         to avoid alignment traps in non-cacheable memory.
41768         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
41769
41770         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
41771         multiarch objects.
41772         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
41773         file: multiarch power7 memmove.
41774         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
41775         multiarch default memmove.
41776         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
41777         multiarch memove for powerpc32/power4.
41778
41779         * string/bcopy.c: Use full path to include memmove.c.
41780         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
41781         multiarch objects.
41782         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
41783         bcopy for powerpc64.
41784         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
41785         bcopy for powerpc64.
41786         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
41787         and memmove implementations.
41788         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
41789         optimized multiarch memmove for POWER7/powerpc64.
41790         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
41791         default multiarch memmove for powerpc64.
41792         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
41793         multiarch for powerpc64.
41794         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
41795         for POWER7/powerpc64.
41796         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
41797         memmove for POWER7/powerpc64.
41798
41799         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
41800         glibc default one.
41801
41802         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
41803         __ELF_NATIVE_CLASS equal to 64.
41804
41805 2014-07-07  Roland McGrath  <roland@hack.frob.com>
41806
41807         * sysdeps/nptl/lowlevellock.h: File removed.
41808
41809         * NEWS: NPTL is no longer an add-on!
41810         * nptl/internaltypes.h: Moved ...
41811         * sysdeps/nptl/internaltypes.h: ... here.
41812         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
41813         * sysdeps/nptl/fork.c: Likewise.
41814         * sysdeps/nptl/gai_misc.h: Likewise.
41815         * sysdeps/nptl/librt-cancellation.c: Likewise.
41816         * sysdeps/nptl/jmp-unwind.c: Likewise.
41817         * sysdeps/nptl/setxid.h: Likewise.
41818         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
41819         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
41820         * sysdeps/unix/sysv/linux/arm/Implies: New file.
41821         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
41822         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
41823         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
41824         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
41825         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
41826         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
41827         * sysdeps/unix/sysv/linux/mips/Implies: New file.
41828         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
41829         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
41830         * sysdeps/unix/sysv/linux/sh/Implies: New file.
41831         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
41832         * sysdeps/unix/sysv/linux/tile/Implies: New file.
41833         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
41834         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
41835         * nptl/Makeconfig: Moved ...
41836         * sysdeps/nptl/Makeconfig: ... here.
41837         * nptl/configure: File removed.
41838         * nptl/ANNOUNCE: File removed.
41839         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
41840         * sysdeps/unix/sysv/linux/configure: Regenerated.
41841
41842         * nptl/Makefile (routines): Add libc_pthread_init,
41843         libc_multiple_threads, register-atfork and unregister-atfork.
41844         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
41845         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
41846         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
41847         pthread-pi-defines.sym, structsem.sym.
41848         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
41849         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
41850         [$(subdir) = nptl] (tests): Add tst-setgetname.
41851         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
41852         * sysdeps/unix/sysv/linux/sigaction.c: Just include
41853         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
41854         [!LIBC_SIGACTION]: Remove aliases.
41855         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
41856         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
41857         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
41858         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
41859         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
41860         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
41861         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
41862         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
41863         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
41864         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
41865         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
41866         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
41867         __libc_allocate_rtsig_private.
41868         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
41869         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
41870         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
41871         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
41872         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
41873         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
41874         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
41875         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
41876         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
41877         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
41878         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
41879         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
41880         * nptl/internaltypes.h: ... here.
41881         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
41882         * sysdeps/nptl/jmp-unwind.c: ... here.
41883         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
41884         * nptl/libc-lowlevellock.c: ... here.
41885         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
41886         * nptl/libc_multiple_threads.c: ... here.
41887         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
41888         * nptl/libc_pthread_init.c: ... here.
41889         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
41890         * nptl/lowlevelbarrier.sym: ... here.
41891         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
41892         * nptl/lowlevelcond.sym: ... here.
41893         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
41894         * nptl/lowlevellock.c: ... here.
41895         * nptl/lowlevellock.h: Moved ...
41896         * sysdeps/nptl/lowlevellock.h: ... here.
41897         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
41898         * nptl/lowlevelrobustlock.c: ... here.
41899         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
41900         * nptl/lowlevelrobustlock.sym: ... here.
41901         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
41902         * nptl/lowlevelrwlock.sym: ... here.
41903         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
41904         * nptl/pt-fork.c: ... here.
41905         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
41906         * nptl/pthread-pi-defines.sym: ... here.
41907         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
41908         * nptl/pthread_attr_getaffinity.c: ... here.
41909         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
41910         * nptl/pthread_attr_setaffinity.c: ... here.
41911         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
41912         * nptl/pthread_mutex_cond_lock.c: ... here.
41913         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
41914         Update #include.
41915         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
41916         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
41917         * nptl/pthread_once.c: ... here, replacing old file.
41918         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
41919         * nptl/pthread_yield.c: ... here.
41920         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
41921         * nptl/register-atfork.c: ... here.
41922         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
41923         * nptl/sem_post.c: ... here.
41924         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
41925         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
41926         * nptl/sem_timedwait.c: ... here.
41927         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
41928         * nptl/sem_trywait.c: ... here.
41929         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
41930         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
41931         * nptl/sem_wait.c: ... here.
41932         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
41933         * nptl/structsem.sym: ... here.
41934         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
41935         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
41936         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
41937         * nptl/unregister-atfork.c: ... here.
41938         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
41939         * nptl/unwindbuf.sym: ... here.
41940         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
41941         * sysdeps/nptl/fork.c: ... here.
41942         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
41943         * sysdeps/nptl/fork.h: ... here.
41944         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
41945         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
41946         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
41947         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
41948         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
41949         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
41950         * sysdeps/unix/sysv/linux/getpid.c: ... here.
41951         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
41952         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
41953         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
41954         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
41955         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
41956         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
41957         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
41958         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
41959         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
41960         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
41961         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
41962         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
41963         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
41964         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
41965         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
41966         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
41967         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
41968         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
41969         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
41970         * sysdeps/unix/sysv/linux/raise.c: ... here.
41971         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
41972         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
41973         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
41974         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
41975         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
41976         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
41977         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
41978         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
41979         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
41980         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
41981         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
41982         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
41983         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
41984         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
41985         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
41986
41987 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41988
41989         * sysdeps/generic/memcopy.h: Add comment for
41990         MEMCPY_OK_FOR_FWD_MEMMOVE.
41991
41992 2014-07-04  Will Newton  <will.newton@linaro.org>
41993
41994         * string/memchr.c: Merge from gnulib.
41995         [_LIBC]: Remove conditionals.
41996         (__ptr_t): Remove define.
41997         (LONG_MAX_32_BITS): Likewise.
41998         (LONG_MAX): Likewise.
41999         (MEMCHR): Use ANSI prototype and optimize algorithm.
42000
42001         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
42002
42003 2014-07-03  Roland McGrath  <roland@hack.frob.com>
42004
42005         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
42006         (lll_futex_timed_wait_bitset): Fix syscall argument count.
42007
42008         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
42009         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
42010         in a bare environment with no <stdlib.h> installed.
42011         * sysdeps/nptl/configure: Regenerated.
42012
42013         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
42014
42015         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
42016         AC_EGREP_CPP for kernel header checks, so they only succeed if
42017         including <linux/version.h> actually works right.
42018         * sysdeps/unix/sysv/linux/configure: Regenerated.
42019
42020         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
42021         value so it's not diagnosed as unused.
42022
42023         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
42024         thing) with "ifeq ($(subdir),rt)".
42025
42026 2014-07-03  Richard Henderson  <rth@redhat.com>
42027
42028         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
42029         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
42030         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
42031
42032         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
42033         (math_force_eval): New.
42034
42035         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
42036         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
42037
42038         * sysdeps/alpha/fpu/s_round.c: Remove file.
42039         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
42040
42041         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
42042         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
42043         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
42044         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
42045         (_dl_start, print_statistics): Likewise.
42046         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
42047         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
42048
42049         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42050         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42051         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42052         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42053         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42054         (HP_SMALL_TIMING_AVAIL): Define.
42055         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42056         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
42057         (HP_SMALL_TIMING_AVAIL): Define.
42058         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42059         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42060
42061         * sysdeps/aarch64/hp-timing.h: New file.
42062
42063         * sysdeps/generic/hp-timing.h: Remove dead comment.
42064         * sysdeps/generic/hp-timing-common.h: New file.
42065         * sysdeps/alpha/hp-timing.h: Include it.
42066         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
42067         * sysdeps/i386/i686/hp-timing.h: Likewise.
42068         * sysdeps/ia64/hp-timing.h: Likewise.
42069         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
42070         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
42071         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
42072         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
42073         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
42074         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
42075         (hp_timing_t): New.
42076
42077         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
42078         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
42079         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
42080         * elf/rtld.c (_dl_start_final): Likewise.
42081         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
42082         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42083         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42084         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42085         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42086         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42087         (HP_TIMING_DIFF_INIT): Remove.
42088         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42089         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
42090         (HP_TIMING_DIFF_INIT): Remove.
42091         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42092         * sysdeps/i386/i686/hp-timing.c: Remove file.
42093         * sysdeps/x86_64/hp-timing.c: Remove file.
42094         * sysdeps/ia64/hp-timing.c: Remove file.
42095         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
42096         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
42097         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
42098         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
42099
42100         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
42101         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
42102         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
42103         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42104         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42105         (HP_TIMING_ACCUM): Remove.
42106         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42107         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
42108         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42109
42110         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
42111         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
42112         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
42113         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
42114         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
42115         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
42116         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
42117         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
42118
42119         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
42120
42121 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
42122
42123         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
42124
42125 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42126
42127         Sync up with gettext.
42128         * intl/loadmsgcat.c: Define O_BINARY if not defined.
42129         [_MSC_VER]: Include malloc.h
42130         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
42131         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
42132         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
42133         TEMP_FAILURE_RETRY.  Cast return of alloca.
42134         [!_LIBC] Call gl_rwlock_init.
42135         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
42136
42137 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42138
42139         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
42140         before checking its value.
42141
42142 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42143
42144         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
42145
42146         * debug/memcpy_chk.c: Don't include pagecopy.h.
42147         * debug/mempcpy_chk.c: Likewise.
42148         * string/memcpy.c: Likewise.
42149         * string/memmove.c: Likewise.
42150         * sysdeps/powerpc/memmove.c: Likewise.
42151         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
42152         definition of PAGE_COPY_FWD_MAYBE here...
42153         * sysdeps/generic/pagecopy.h: ... from here.
42154         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
42155
42156 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
42157             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42158
42159         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
42160         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
42161         optimizations.
42162         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42163         (__libc_ifunc_impl_list): Likewise.
42164         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
42165         multiarch strcat for PPC64.
42166         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
42167         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
42168
42169 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42170
42171         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
42172
42173 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42174
42175         * intl/loadmsgcat.c: Remove declaration of
42176         get_sysdep_segment_value.
42177         (get_sysdep_segment_value): Use ISO C style.
42178         (_nl_load_domain): Use ISO C style.  Get rid of redundant
42179         semicolon.  Fix typo and formatting in comment.
42180         (_nl_unload_domain): Use ISO C style.
42181
42182         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
42183
42184 2014-07-02  Will Newton  <will.newton@linaro.org>
42185
42186         * malloc/obstack.c: Merge from gnulib master.
42187         [HAVE_CONFIG_H]: Remove conditional code.
42188         [!_LIBC]: Include config.h.
42189         [!ELIDE_CODE]: Don't include inttypes.h, include
42190         stdint.h unconditionally.
42191         (print_and_abort): Mark as _Noreturn.
42192         (_obstack_allocated_p): Mark as __attribute_pure__.
42193         (obstack_free): Rename to __obstack_free.
42194         [!__attribute__]: Remove conditional code.
42195         * malloc/obstack.h: Merge from gnulib master.
42196         [__cplusplus]: Move conditional down.
42197         [!__attribute_pure__]: Define __attribute_pure__ here
42198         if it is not already defined.
42199         (_obstack_memory_used): Mark as __attribute_pure__.
42200         [!__obstack_free]: Define as obstack_free.
42201         [__GNUC__]: Remove check for ancient NeXT gcc.
42202
42203 2014-07-02  Will Newton  <will.newton@linaro.org>
42204             Paul Eggert  <eggert@cs.ucla.edu>
42205
42206         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
42207
42208 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42209
42210         * resolv/gethnamaddr.c: Add comment warning that the file is
42211         not maintained.
42212
42213 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
42214
42215         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
42216         entries.
42217
42218         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
42219         entry for aio_cancel and aio_cancel64.
42220         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
42221         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
42222         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
42223         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
42224         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
42225         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
42226         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
42227         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
42228         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
42229         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
42230         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
42231         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
42232         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
42233
42234 2014-07-01  Roland McGrath  <roland@hack.frob.com>
42235
42236         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
42237         * nptl/pthread_mutex_lock.c: Likewise.
42238         * nptl/pthread_mutex_timedlock.c: Likewise.
42239         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
42240
42241 2014-07-01  Richard henderson  <rth@redhat.com>
42242
42243         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
42244         (__isnan, __isnanl): Remove.
42245         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
42246
42247         * sysdeps/alpha/fpu/libm-test-ulps: Update.
42248
42249 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
42250
42251         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
42252
42253 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
42254
42255         * resolv/nss_dns/dns-host.c (getanswer_r)
42256         [MULTI_PTRS_ARE_ALIASES]: Remove code.
42257
42258 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
42259
42260         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
42261         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
42262         undefine.
42263         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
42264         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
42265
42266 2014-07-01  Roland McGrath <roland@hack.frob.com>
42267
42268         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
42269         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
42270
42271         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
42272         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
42273
42274         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
42275         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
42276         ... here.
42277         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
42278         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
42279
42280         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
42281         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
42282         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
42283         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
42284
42285         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
42286         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
42287         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
42288         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
42289         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
42290         Moved ...
42291         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
42292         ... here.
42293         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
42294         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
42295         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
42296         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
42297         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
42298         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
42299         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
42300         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
42301         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
42302         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
42303         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
42304         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
42305         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
42306         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
42307         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
42308         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
42309         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
42310         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
42311         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
42312         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
42313         ... here.
42314         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
42315         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
42316         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
42317         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
42318         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
42319         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
42320         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
42321         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
42322
42323 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
42324
42325         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
42326         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
42327         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
42328         Add sysdep.
42329
42330 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42331
42332         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42333
42334 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42335
42336         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
42337         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42338
42339         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
42340
42341         * sysdeps/arm/libm-test-ulps: Regenerated.
42342
42343 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42344             Roland McGrath <roland@hack.frob.com>
42345
42346         * test-skeleton.c (signal_handler): Kill the whole process group
42347         before killing the child individually.
42348         (main): Report any failure on `setpgid'.
42349
42350 2014-06-30  Roland McGrath  <roland@hack.frob.com>
42351
42352         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
42353         from _TLS_H to _ARM_NPTL_TLS_H.
42354         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
42355         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
42356
42357 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42358
42359         [BZ #16539]
42360         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
42361         (__expm1l): Return argument unchanged when small but not
42362         subnormal.
42363
42364         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
42365         include macro name.
42366         (_FP_UNPACK_RAW_1_P): Likewise.
42367         (_FP_PACK_RAW_1): Likewise.
42368         (_FP_PACK_RAW_1_P): Likewise.
42369         (_FP_MUL_MEAT_1_wide): Likewise.
42370         (_FP_MUL_MEAT_DW_1_hard): Likewise.
42371         (_FP_MUL_MEAT_1_hard): Likewise.
42372         (_FP_DIV_MEAT_1_imm): Likewise.
42373         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
42374         (_FP_DIV_MEAT_1_udiv): Likewise.
42375         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
42376         (_FP_UNPACK_RAW_2): Likewise.
42377         (_FP_UNPACK_RAW_2_P): Likewise.
42378         (_FP_PACK_RAW_2): Likewise.
42379         (_FP_PACK_RAW_2_P): Likewise.
42380         (_FP_MUL_MEAT_DW_2_wide): Likewise.
42381         (_FP_MUL_MEAT_2_wide): Likewise.
42382         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
42383         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
42384         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
42385         (_FP_MUL_MEAT_2_gmp): Likewise.
42386         (_FP_DIV_MEAT_2_udiv): Likewise.
42387         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
42388         (_FP_FRAC_SRL_4): Likewise.
42389         (_FP_FRAC_SRST_4): Likewise.
42390         (_FP_FRAC_SRS_4): Likewise.
42391         (_FP_UNPACK_RAW_4): Likewise.
42392         (_FP_UNPACK_RAW_4_P): Likewise.
42393         (_FP_PACK_RAW_4): Likewise.
42394         (_FP_PACK_RAW_4_P): Likewise.
42395         (_FP_MUL_MEAT_DW_4_wide): Likewise.
42396         (_FP_MUL_MEAT_4_wide): Likewise.
42397         (_FP_MUL_MEAT_4_gmp): Likewise.
42398         (umul_ppppmnnn): Likewise.
42399         (_FP_DIV_MEAT_4_udiv): Likewise.
42400         (__FP_FRAC_ADD_4): Likewise.
42401         (__FP_FRAC_SUB_3): Likewise.
42402         (__FP_FRAC_SUB_4): Likewise.
42403         (__FP_FRAC_DEC_3): Likewise.
42404         (__FP_FRAC_DEC_4): Likewise.
42405         (__FP_FRAC_ADDI_4): Likewise.
42406         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
42407         (_FP_FRAC_SRL_8): Likewise.
42408         (_FP_FRAC_SRS_8): Likewise.
42409
42410         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
42411         include macro name.
42412         (FP_UNPACK_RAW_EP): Likewise.
42413         (FP_PACK_RAW_E): Likewise.
42414         (FP_PACK_RAW_EP): Likewise.
42415         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
42416         (_FP_ISSIGNAN): Likewise.
42417         (_FP_ADD_INTERNAL): Likewise.
42418         (_FP_FMA): Likewise.
42419         (_FP_CMP): Likewise.
42420         (_FP_SQRT): Likewise.
42421         (_FP_TO_INT): Likewise.
42422         (_FP_FROM_INT): Likewise.
42423         (FP_EXTEND): Likewise.
42424         (_FP_DIV_MEAT_N_loop): Likewise.
42425
42426 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42427
42428         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
42429         throughout.
42430
42431 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
42432
42433         [BZ #17097]
42434         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
42435         result with correct sign in case of exponents that produce
42436         overflow except for X very close to 1.
42437
42438 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
42439
42440         mktime: merge #if/#ifdef usage from glibc
42441         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
42442         as that works with both Glibc's and Gnulib's style.
42443         See thread starting at Siddhesh Poyarekar's bug report at:
42444         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
42445
42446 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42447
42448         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
42449         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
42450         * sysdeps/tile/tilegx/memmove.c: Remove file.
42451
42452 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
42453
42454         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
42455         abi-name definition.
42456         * scripts/soversions.awk: Do not handle or generate ABI lines.
42457         * shlib-versions: Remove ABI entries.
42458         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
42459         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
42460
42461 2014-06-27  Roland McGrath  <roland@hack.frob.com>
42462
42463         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
42464         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
42465         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
42466         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
42467         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
42468         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
42469         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
42470         Moved ...
42471         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
42472         ... here.
42473         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
42474         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
42475         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
42476         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
42477         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
42478         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
42479         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
42480         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
42481         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
42482         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
42483         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
42484         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
42485         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
42486         Moved ...
42487         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
42488         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
42489         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
42490         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
42491         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
42492         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
42493         Moved ...
42494         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
42495         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
42496         Moved ...
42497         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
42498         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
42499         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
42500         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
42501         Moved ...
42502         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
42503         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
42504         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
42505         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
42506         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
42507         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
42508         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
42509         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
42510         Moved ...
42511         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
42512         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
42513         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
42514         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
42515         Moved ...
42516         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
42517         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
42518         Moved ...
42519         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
42520         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
42521         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
42522         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
42523         Moved ...
42524         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
42525         ... here.
42526         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
42527         Identical file removed.
42528         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
42529         Moved ...
42530         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
42531         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
42532         Identical file removed.
42533         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
42534         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
42535         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
42536         Moved ...
42537         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
42538         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
42539         Identical file removed.
42540         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
42541         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
42542         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
42543         Identical file removed.
42544         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
42545         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
42546         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
42547         Identical file removed.
42548         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
42549         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
42550         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
42551         Identical file removed.
42552         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
42553         Moved ...
42554         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
42555         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
42556         Identical file removed.
42557         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
42558         Moved ...
42559         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
42560         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
42561         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
42562         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
42563         Identical file removed.
42564         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
42565         Moved ...
42566         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
42567         ... here.
42568         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
42569         Identical file removed.
42570         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
42571         Moved ...
42572         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
42573         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
42574         Identical file removed.
42575         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
42576         Moved ...
42577         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
42578         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
42579         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
42580         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
42581         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
42582         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
42583         Moved ...
42584         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
42585         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
42586         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
42587
42588         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
42589         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
42590         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
42591         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
42592         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
42593
42594 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
42595
42596         [BZ #17092]
42597         * nscd/nscd.c (monitor_child): Return exit status of child
42598         instead of return value from wait syscall.
42599
42600 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
42601
42602         * configure.ac (libc_commonpagesize): Remove variable.
42603         (libc_relro_required): Likewise.
42604         (libc_cv_z_relro): Remove configure test.
42605         * configure: Regenerated.
42606         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
42607         variable.
42608         (libc_relro_required): Likewise.
42609         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
42610         (libc_relro_required): Likewise.
42611         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
42612         (libc_relro_required): Likewise.
42613         * sysdeps/arm/preconfigure: Regenerated.
42614         * sysdeps/ia64/preconfigure: Remove file.
42615         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
42616         variable.
42617         (libc_relro_required): Likewise.
42618
42619         [BZ #16561]
42620         [BZ #16562]
42621         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
42622         (__ieee754_yn): Set FE_TONEAREST mode internally and then
42623         recompute overflowing results in original rounding mode.
42624         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
42625         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
42626         recompute overflowing results in original rounding mode.
42627         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
42628         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42629         recompute overflowing results in original rounding mode.
42630         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
42631         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42632         recompute overflowing results in original rounding mode.
42633         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
42634         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42635         recompute overflowing results in original rounding mode.
42636         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
42637         (libc_feholdsetround_ctx): New macro.
42638         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
42639         * sysdeps/i386/fpu/libm-test-ulps: Update.
42640         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
42641
42642 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42643
42644         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
42645         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
42646         corresponding .cpsetup call.
42647
42648 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42649
42650         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
42651         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
42652         * sysdeps/arm/Makefile [$(subdir) = csu]
42653         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
42654         (static-only-routines): Add aeabi_read_tp here.
42655         (shared-only-routines): Add libc-aeabi_read_tp here.
42656         (CFLAGS-libc-start.c): Add -fexceptions here.
42657         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
42658         (sysdep_routines, static-only-routines, shared-only-routines):
42659         Don't add to these here.
42660         (CFLAGS-libc-start.c): Likewise.
42661
42662         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
42663         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
42664         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
42665         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
42666         * sysdeps/arm/Makefile [$(subdir) = rt]
42667         (librt-sysdep_routines, librt-shared-only-routines):
42668         Append rt-aeabi_unwind_cpp_pr1 here.
42669         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
42670         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
42671         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
42672         (libpthread-sysdep_routines, libpthread-shared-only-routines):
42673         Append nptl-aeabi_unwind_cpp_pr1 here.
42674         (tests): Filter out tst-cleanupx4 here.
42675         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
42676         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
42677         Don't do those here.
42678
42679 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42680
42681         * scripts/list-sources.sh: Do not handle ports specially.
42682
42683 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42684
42685         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
42686         * sysdeps/arm/feupdateenv.c: Likewise.
42687
42688         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
42689
42690 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42691
42692         * manual/texinfo.tex: Update to version 2014-05-05.10 with
42693         trailing whitespace removed.
42694         * scripts/config.guess: Update to version 2014-03-23.
42695         * scripts/config.sub: Update to version 2014-05-01
42696         * scripts/install-sh: Update to version 2013-12-25.23.
42697         * scripts/move-if-change: Update from gnulib.
42698
42699 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
42700
42701         * debug/memmove_chk.c: Remove pagecopy.h include.
42702
42703 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
42704
42705         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
42706         identical to gnulib mktime.
42707
42708 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42709
42710         * configure.ac: Do not test for machine being rs6000.  Do not test
42711         for powerpc*-*soft.
42712         * configure: Regenerated.
42713
42714         [BZ #11505]
42715         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
42716         test.
42717         * configure: Regenerated.
42718         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
42719         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
42720         Remove configure test.
42721         * sysdeps/arm/configure: Regenerated.
42722         * sysdeps/nptl/configure.ac: Do not check
42723         libc_cv_asm_cfi_directives.
42724         * sysdeps/nptl/configure: Regenerated.
42725         * sysdeps/x86_64/nptl/configure.ac: Remove file.
42726         * sysdeps/x86_64/nptl/configure: Remove generated file.
42727         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
42728         unconditional.
42729         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
42730
42731 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
42732
42733         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
42734         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
42735         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
42736         it is defined.
42737
42738         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
42739         instead of whether it is defined.
42740         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
42741         * sysdeps/hppa/dl-machine.h: Likewise.
42742         * sysdeps/ia64/dl-machine.h: Likewise.
42743         * sysdeps/m68k/dl-machine.h: Likewise.
42744         * sysdeps/microblaze/dl-machine.h: Likewise.
42745         * sysdeps/mips/dl-machine.: Likewise.
42746         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42747         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42748         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42749         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42750         * sysdeps/sh/dl-machine.h: Likewise.
42751         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42752         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42753         * sysdeps/tile/dl-machine.h: Likewise.
42754         * sysdeps/x86_64/dl-machine.h: Likewise.
42755
42756         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
42757         code.
42758         (verify_persistent_db): Likewise.
42759
42760 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42761
42762         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
42763         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
42764         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
42765         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
42766         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
42767         Moved ...
42768         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
42769         ... here.
42770         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
42771         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
42772         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
42773         Identical file removed.
42774         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
42775         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
42776         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
42777         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
42778         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
42779         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
42780         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
42781         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
42782         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
42783         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
42784         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
42785         Moved ...
42786         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
42787         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
42788         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
42789         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
42790         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
42791         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
42792         Moved ...
42793         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
42794         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
42795         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
42796         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
42797         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
42798         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
42799         Identical file removed.
42800         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
42801         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
42802         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
42803         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
42804         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
42805         Moved ...
42806         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
42807         ... here.
42808         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
42809         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
42810         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
42811         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
42812         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
42813         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
42814         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
42815         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
42816         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
42817         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
42818         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
42819         Moved ...
42820         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
42821         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
42822         Moved ...
42823         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
42824         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
42825         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
42826         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
42827         Moved ...
42828         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
42829         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
42830         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
42831
42832         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
42833         folded into ...
42834         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
42835         * sysdeps/unix/sysv/linux/s390/Versions
42836         (libpthread: GLIBC_2.19): New version set.
42837         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
42838         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
42839         (librt: GLIBC_2.3.3): New version set.
42840         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
42841         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
42842         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
42843         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
42844         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
42845         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
42846         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
42847         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
42848         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
42849         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
42850         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
42851         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
42852         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
42853         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
42854         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
42855         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
42856         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
42857         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
42858         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
42859         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
42860         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
42861         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
42862         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
42863         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
42864         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
42865         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
42866         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
42867         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
42868         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
42869         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
42870         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
42871         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
42872         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
42873         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
42874         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
42875         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
42876         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
42877         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
42878         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
42879         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
42880         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
42881         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
42882         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
42883         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
42884         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
42885
42886         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
42887         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
42888         (__libc_vfork): Define the function under this name.
42889         [!NOT_IN_libc] (__vfork): Make this an alias.
42890         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
42891         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
42892         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
42893         (__libc_vfork): Define the function under this name.
42894         [!NOT_IN_libc] (__vfork): Make this an alias.
42895         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
42896         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
42897         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
42898         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
42899         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
42900         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
42901
42902         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
42903         code that was previously under [RESET_PID].
42904         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
42905         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
42906         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
42907
42908         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
42909         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
42910         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
42911         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
42912         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
42913         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
42914         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
42915         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
42916         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
42917         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
42918         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
42919         Moved ...
42920         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
42921         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
42922         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
42923         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
42924         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
42925         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
42926         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
42927         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
42928         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
42929         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
42930         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
42931         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
42932         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
42933         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
42934         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
42935         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
42936         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
42937         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
42938         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
42939         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
42940         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
42941         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
42942         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
42943         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
42944         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
42945         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
42946         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
42947         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
42948         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
42949
42950 2014-06-25  Roland McGrath  <roland@hack.frob.com>
42951
42952         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
42953         that was previously under [RESET_PID].
42954         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
42955
42956 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
42957
42958         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
42959         not undefine and redefine.
42960         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
42961         [O_CLOEXEC]: Make code unconditional.
42962         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
42963         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
42964         <kernel-features.h>.
42965         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
42966         conditional variable definition.
42967         (shm_open) [O_CLOEXEC]: Make code unconditional.
42968         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
42969         code.
42970
42971         * configure.ac (USE_REGPARMS): Don't define here.
42972         * configure: Regenerated.
42973         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
42974         * sysdeps/i386/configure: Regenerated.
42975
42976         * nptl/createthread.c: Don't include kernel-features.h.
42977         * nptl/pthread_cancel.c: Likewise.
42978         * nptl/pthread_condattr_setclock.c: Likewise.
42979         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
42980         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
42981         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
42982         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
42983         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
42984         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
42985         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
42986         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
42987         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
42988         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
42989         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
42990         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
42991         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
42992         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
42993         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
42994         * nscd/gai.c: Likewise.
42995         * nss/nss_db/db-open.c: Likewise.
42996         * sysdeps/generic/ldsodefs.h: Likewise.
42997         * sysdeps/sh/nptl/tls.h: Likewise.
42998         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
42999         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
43000         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
43001         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
43002         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
43003         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
43004         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
43005         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
43006         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
43007         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
43008         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
43009         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
43010         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
43011         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
43012         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
43013         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
43014         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
43015         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
43016         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
43017         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
43018         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
43019         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
43020         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
43021         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
43022         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
43023         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
43024         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
43025         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
43026         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
43027         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
43028         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
43029         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
43030         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
43031         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
43032         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
43033         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
43034         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
43035         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
43036         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
43037         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
43038         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
43039         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
43040         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
43041         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
43042         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
43043         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
43044         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
43045         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
43046         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
43047         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
43048         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
43049         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
43050         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
43051         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
43052         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
43053         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
43054         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
43055         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
43056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
43057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
43058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
43059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
43060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
43061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
43062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
43063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
43064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
43065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
43066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
43067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
43068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
43069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
43070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
43072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
43073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
43074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
43075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
43076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
43077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
43078         * sysdeps/unix/sysv/linux/pread.c: Likewise.
43079         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
43080         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
43081         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
43082         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
43083         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
43084         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
43085         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
43086         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
43087         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
43088         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
43089         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
43090         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
43091         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
43092         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
43093         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
43094         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
43095         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
43096         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
43097         * sysdeps/unix/sysv/linux/system.c: Likewise.
43098         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
43099         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
43100         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
43101         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
43102         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
43103         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
43104         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
43105
43106         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
43107         * configure: Regenerated.
43108         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
43109
43110         * configure.ac (base_machine): Do not set specially for particular
43111         machines here.
43112         * configure: Regenerated.
43113         * sysdeps/powerpc/preconfigure: Move machine and base_machine
43114         settings from configure.ac.
43115         * sysdeps/i386/preconfigure: New file.
43116         * sysdeps/s390/preconfigure: Likewise.
43117         * sysdeps/sh/preconfigure: Likewise.
43118         * sysdeps/sparc/preconfigure: Likewise.
43119
43120 2014-06-25  Roland McGrath  <roland@hack.frob.com>
43121
43122         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
43123         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
43124         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
43125         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
43126         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
43127         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
43128         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
43129         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
43130         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
43131         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
43132         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
43133         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
43134         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
43135         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
43136         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
43137         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
43138         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
43139         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
43140         * sysdeps/sparc/sparc64/Makefile: ... appended here.
43141
43142         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
43143         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
43144         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
43145         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
43146         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
43147         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
43148         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
43149         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
43150         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
43151         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
43152         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
43153         * sysdeps/sparc/sparc32/sem_post.c: ... here.
43154         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
43155         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
43156         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
43157         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
43158         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
43159         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
43160         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
43161         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
43162         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
43163         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
43164         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
43165         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
43166         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
43167         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
43168         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
43169         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
43170         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
43171         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
43172         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
43173         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
43174         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
43175         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
43176         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
43177         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
43178         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
43179         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
43180
43181         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
43182         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
43183         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
43184         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
43185         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
43186         Moved ...
43187         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
43188         ... here.
43189         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
43190         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
43191         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
43192         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
43193         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
43194         Moved ...
43195         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
43196         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
43197         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
43198         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
43199         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
43200         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
43201         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
43202         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
43203         Moved ...
43204         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
43205         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
43206         Moved ...
43207         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
43208         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
43209         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
43210         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
43211         Moved ...
43212         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
43213         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
43214         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
43215         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
43216         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
43217         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
43218         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
43219         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
43220         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
43221         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
43222         Moved ...
43223         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
43224         ... here.
43225         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
43226         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
43227         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
43228         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
43229         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
43230         Moved ...
43231         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
43232         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
43233         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
43234         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
43235         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
43236         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
43237         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
43238         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
43239         Moved ...
43240         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
43241         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
43242         Moved ...
43243         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
43244         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
43245         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
43246         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
43247         Moved ...
43248         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
43249         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
43250         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
43251         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
43252         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
43253
43254 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43255
43256         * timezone/checktab.awk: Update from tzcode 2014e.
43257         * timezone/private.h: Likewise.
43258         * timezone/tzfile.h: Likewise.
43259         * timezone/zdump.c: Likewise.
43260         * timezone/zic.c: Likewise.
43261
43262         * sysdeps/unix/sysv/linux/kernel-features.h
43263         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
43264         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
43265         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
43266         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
43267         Remove conditional code.
43268
43269 2014-06-25  Will Newton  <will.newton@linaro.org>
43270
43271         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
43272         (_dl_arm_cap_flags): Add HWCAP2 values.
43273         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
43274         (_DL_HWCAP_COUNT): Increase to 37.
43275         (_DL_HWCAP_LAST): New define.
43276         (_DL_HWCAP2_LAST): New define.
43277         (_dl_procinfo): Add support for printing
43278         AT_HWCAP2 entries.
43279         (_dl_string_hwcap): Use _dl_hwcap_string.
43280
43281 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43282
43283         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43284
43285 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43286
43287         * README: Do not mention ports directory.
43288
43289         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
43290         Remove macro.
43291         * sysdeps/unix/sysv/linux/futimes.c: Do not include
43292         <kernel-features.h>.
43293         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
43294         conditional variable definition.
43295         (__futimes): Update comment.
43296         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
43297         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
43298
43299         [BZ #16560]
43300         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
43301         arguments close to 0.
43302         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
43303         Likewise.
43304         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
43305         Likewise.
43306         * math/auto-libm-test-in: Add more tests of exp10.
43307         * math/auto-libm-test-out: Regenerated.
43308         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43309
43310         * sysdeps/unix/sysv/linux/kernel-features.h
43311         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
43312         * sysdeps/unix/sysv/linux/readv.c: Do not include
43313         <kernel-features.h>.
43314         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43315         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43316         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43317         unconditional.
43318         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43319         conditional code.
43320         * sysdeps/unix/sysv/linux/writev.c: Do not include
43321         <kernel-features.h>.
43322         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43323         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43324         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43325         unconditional.
43326         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43327         conditional code.
43328
43329 2014-06-25  Will Newton  <will.newton@linaro.org>
43330
43331         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
43332         comment changes throughout the file.  Remove checks
43333         for HAVE_*_H definitions that are not required.
43334         (__gen_tempname): Call abort if an unknown kind value is
43335         passed.
43336
43337 2014-06-25  Andreas Schwab  <schwab@suse.de>
43338
43339         [BZ #17086]
43340         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
43341         scalbln, scalblnf, scalblnl in libc.
43342
43343 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
43344
43345         [BZ #17086]
43346         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
43347         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
43348         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
43349
43350 2014-06-24  Roland McGrath  <roland@hack.frob.com>
43351
43352         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
43353         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
43354         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
43355         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
43356         Update #include.
43357         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
43358         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
43359         Update #include.
43360         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
43361         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
43362         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
43363         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
43364         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
43365         * sysdeps/x86/bits/pthreadtypes.h: ... here.
43366         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
43367         * sysdeps/x86/bits/semaphore.h: ... here.
43368         * sysdeps/x86/nptl/elide.h: Moved ...
43369         * sysdeps/x86/elide.h: ... here.
43370         * sysdeps/x86_64/nptl/Implies: File removed.
43371         * sysdeps/i386/nptl/Implies: File removed.
43372
43373 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
43374
43375         [BZ #16539]
43376         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
43377         return the argument for normal arguments with exponent below -64.
43378         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
43379         Likewise.
43380         * math/auto-libm-test-in: Add another test of expm1.
43381         * math/auto-libm-test-out: Regenerated.
43382
43383         [BZ #16287]
43384         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
43385         calling __erfcl for arguments at least 16.
43386         * math/auto-libm-test-in: Add more tests of erf.
43387         * math/auto-libm-test-out: Regenerated.
43388
43389         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
43390         individual architectures.
43391         * sysdeps/unix/sysv/linux/configure: Regenerated.
43392         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
43393         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
43394         * sysdeps/unix/sysv/linux/powerpc/configure.ac
43395         (ldd_rewrite_script): Define variable.
43396         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
43397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
43398         file.
43399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
43400         generated file.
43401         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
43402         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
43403         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
43404         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
43405         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
43406         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
43407         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
43408         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
43409
43410 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43411
43412         [BZ #17084]
43413         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
43414         Rename member __data.d to __data.__elision_data.
43415
43416 2014-06-24  Wilco  <wdijkstr@arm.com>
43417
43418         * NEWS: Add 16918 to fixed bug list.
43419
43420 2014-06-24  Wilco  <wdijkstr@arm.com>
43421
43422         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
43423
43424 2014-06-24  Wilco  <wdijkstr@arm.com>
43425
43426         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
43427         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
43428         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
43429         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
43430         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
43431         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
43432         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
43433         Use _FPU_MASK_RM.
43434
43435 2014-06-24  Wilco  <wdijkstr@arm.com>
43436
43437         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
43438
43439 2014-06-24  Wilco  <wdijkstr@arm.com>
43440
43441         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
43442         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
43443         * sysdeps/arm/fesetround.c (fesetround): Remove space.
43444         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
43445
43446 2014-06-24  Wilco  <wdijkstr@arm.com>
43447
43448         [BZ #16918]
43449         * sysdeps/arm/feupdateenv.c (feupdateenv):
43450         Rewrite to reduce FPSCR accesses and fix return value.
43451
43452 2014-06-24  Wilco  <wdijkstr@arm.com>
43453
43454         * sysdeps/arm/fclrexcpt.c (feclearexcept):
43455         Optimize to avoid unnecessary FPSCR writes.
43456         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
43457         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
43458         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
43459         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
43460
43461 2014-06-24  Wilco  <wdijkstr@arm.com>
43462
43463         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
43464         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
43465         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
43466         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
43467         Call libc_fetestexcept_vfp.
43468         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
43469         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
43470         __SOFTFP__ ifdef so that they can be built for softfp.
43471
43472 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43473
43474         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
43475         argument type signed char.
43476
43477         * Makerules (check-abi): Dump diff of symlist if the test
43478         fails.
43479
43480 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43481
43482         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
43483         using abort.
43484
43485         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
43486         Remove unused variable ST.
43487
43488 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
43489
43490         [BZ #16354]
43491         [BZ #17061]
43492         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
43493         small arguments before calling __expm1.
43494         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
43495         small arguments before calling __expm1f.
43496         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
43497         small arguments before calling __expm1l.
43498         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
43499         Likewise.
43500         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
43501         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
43502         spurious underflow for some cosh tests.
43503         * math/auto-libm-test-out: Regenerated.
43504         * sysdeps/i386/fpu/libm-test-ulps: Update.
43505
43506         [BZ #17050]
43507         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
43508         (__ieee754_y1): Set errno if return value overflows.
43509         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
43510         (__ieee754_y1f): Set errno if return value overflows.
43511         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
43512         (__ieee754_y1l): Set errno if return value overflows.
43513         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
43514         (__ieee754_y1l): Set errno if return value overflows.
43515         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
43516         * math/auto-libm-test-out: Regenerated.
43517
43518         * math/gen-auto-libm-tests.c: Document use of
43519         ignore-zero-inf-sign.
43520         (input_flag_type): Add value flag_ignore_zero_inf_sign.
43521         (input_flags): Add ignore-zero-inf-sign.
43522         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
43523         * math/gen-libm-test.pl (generate_testfile): Handle
43524         ignore-zero-inf-sign.
43525         * math/auto-libm-test-in: Mark some cpow tests with
43526         ignore-zero-inf-sign and some with xfail-rounding.
43527         * math/auto-libm-test-out: Regenerated.
43528         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
43529         * sysdeps/i386/fpu/libm-test-ulps: Update.
43530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43531
43532         [BZ #16315]
43533         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
43534         overflowing or underflowing operations take place with sign of
43535         result.
43536         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
43537         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
43538         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
43539         (__ieee754_pow): Recompute overflowing and underflowing results in
43540         original rounding mode.
43541         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
43542         (__powl_helper): Allow negative argument X and scale negated value
43543         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
43544         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
43545         overflowing or underflowing operations take place with sign of
43546         result.
43547         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
43548         Include <math.h>.
43549         * math/auto-libm-test-in: Add more tests of pow.
43550         * math/auto-libm-test-out: Regenerated.
43551         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
43552         (pow_tonearest_test_data): Remove.
43553         (pow_test_tonearest): Likewise.
43554         (pow_towardzero_test_data): Likewise.
43555         (pow_test_towardzero): Likewise.
43556         (pow_downward_test_data): Likewise.
43557         (pow_test_downward): Likewise.
43558         (pow_upward_test_data): Likewise.
43559         (pow_test_upward): Likewise.
43560         (main): Don't call removed functions.
43561         * sysdeps/i386/fpu/libm-test-ulps: Update.
43562         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43563
43564 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43565
43566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
43567         Moved ...
43568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
43569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
43570         Moved ...
43571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
43572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
43573         Moved ...
43574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
43575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
43576         Moved ...
43577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
43578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
43579         File removed.
43580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
43581         File removed.
43582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
43583         File removed.
43584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
43585         File removed.
43586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
43587         File removed.
43588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
43589         File removed.
43590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
43591         File removed.
43592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
43593         File removed.
43594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
43595         File removed.
43596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
43597         File removed.
43598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
43599         File removed.
43600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
43601         File removed.
43602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
43603         Moved ...
43604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
43605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
43606         Moved ...
43607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
43608         ... here.
43609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
43610         Moved ...
43611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
43612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
43613         Moved ...
43614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
43615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
43616         Moved ...
43617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
43618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
43619         Moved ...
43620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
43621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
43622         Moved ...
43623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
43624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
43625         Moved ...
43626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
43627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
43628         Moved ...
43629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
43630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
43631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
43632         ... here.
43633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
43634         Moved ...
43635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
43636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
43637         Moved ...
43638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
43639         ... here.
43640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
43641         Moved ...
43642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
43643         ... here.
43644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
43645         Moved ...
43646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
43647         ... here.
43648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
43649         Moved ...
43650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
43651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
43652         Moved ...
43653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
43654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
43655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
43656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
43657         Moved ...
43658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
43659         ... here.
43660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
43661         Moved ...
43662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
43663         ... here.
43664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
43665         Moved ...
43666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
43667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
43668         Moved ...
43669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
43670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
43671         Moved ...
43672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
43673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
43674         Moved ...
43675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
43676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
43677         Moved ...
43678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
43679         ... here.
43680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
43681         Moved ...
43682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
43683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
43684         Moved ...
43685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
43686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
43687         Moved ...
43688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
43689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
43690         Moved ...
43691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
43692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
43693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
43694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
43695         Moved ...
43696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
43697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
43698         Moved ...
43699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
43700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
43701         Moved ...
43702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
43703         ... here.
43704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
43705         Moved ...
43706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
43707         ... here.
43708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
43709         Moved ...
43710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
43711         ... here.
43712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
43713         Moved ...
43714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
43715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
43716         Moved ...
43717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
43718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
43719         Moved ...
43720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
43721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
43722         Moved ...
43723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
43724         ... here.
43725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
43726         Moved ...
43727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
43728         ... here.
43729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
43730         Moved ...
43731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
43732         ... here.
43733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
43734         Moved ...
43735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
43736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
43737         Moved ...
43738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
43739
43740 2014-06-23  Will Newton  <will.newton@linaro.org>
43741             Wilco  <wdijkstr@arm.com>
43742
43743         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
43744         implementation.  Include get-rounding-mode.h.
43745         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
43746         [!libc_feholdsetround_noex_ctx]: Define
43747         libc_feholdsetround_noex_ctx.
43748         [!libc_feholdsetround_noexf_ctx]: Define
43749         libc_feholdsetround_noexf_ctx.
43750         [!libc_feholdsetround_noexl_ctx]: Define
43751         libc_feholdsetround_noexl_ctx.
43752         (libc_feholdsetround_ctx): New function.
43753         (libc_feresetround_ctx): New function.
43754         (libc_feholdsetround_noex_ctx): New function.
43755         (libc_feresetround_noex_ctx): New function.
43756
43757 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43758
43759         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
43760         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
43761         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
43762         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
43763         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
43764         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
43765
43766         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
43767         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
43768         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
43769         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
43770         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
43771         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
43772         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
43773         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
43774         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
43775         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
43776         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
43777         Moved ...
43778         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
43779         ... here.
43780         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
43781         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
43782         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
43783         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
43784         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
43785         Moved ...
43786         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
43787         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
43788         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
43789         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
43790         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
43791         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
43792         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
43793         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
43794         Moved ...
43795         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
43796         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
43797         Moved ...
43798         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
43799         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
43800         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
43801         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
43802         Moved ...
43803         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
43804         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
43805         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
43806         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
43807         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
43808         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
43809         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
43810         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
43811         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
43812         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
43813         Moved ...
43814         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
43815         ... here.
43816         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
43817         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
43818         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
43819         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
43820         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
43821         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
43822         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
43823         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
43824         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
43825         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
43826         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
43827         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
43828         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
43829         Moved ...
43830         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
43831         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
43832         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
43833         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
43834         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
43835         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
43836         Moved ...
43837         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
43838         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
43839         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
43840         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
43841         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
43842
43843         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
43844         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
43845         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
43846         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
43847         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
43848         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
43849         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
43850         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
43851         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
43852         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
43853         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
43854         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
43855         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
43856         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
43857         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
43858         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
43859         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
43860         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
43861         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
43862         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
43863         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
43864         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
43865         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
43866         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
43867         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
43868         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
43869         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
43870         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
43871
43872 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
43873
43874         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
43875         (FALLOC_FL_COLLAPSE_RANGE): New macro.
43876         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
43877         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
43878         (IPV6_PMTUDISC_INTERFACE): Likewise.
43879         (IPV6_PMTUDISC_OMIT): Likewise.
43880
43881 2014-06-23  Andreas Schwab  <schwab@suse.de>
43882
43883         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
43884         Remove unused errout label.
43885
43886 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43887
43888         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
43889         macro: hardware supports Vector Crypto instructions.
43890
43891 2014-06-23  Will Newton  <will.newton@linaro.org>
43892
43893         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
43894         rather than __builtin_expect.
43895
43896         * elf/dl-lookup.c (undefined_msg): Remove variable.
43897         (_dl_lookup_symbol_x): Replace undefined_msg with string
43898         literal.
43899
43900         * elf/dl-lookup.c (do_lookup_unique): New function.
43901         (do_lookup_x): Move STB_GNU_UNIQUE handling code
43902         to a separate function.
43903
43904 2014-06-23  Andreas Schwab  <schwab@suse.de>
43905
43906         [BZ #17079]
43907         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
43908         before reading the next line.
43909
43910 2014-06-23  Will Newton  <will.newton@linaro.org>
43911
43912         * test-skeleton.c (signal_handler): Use printf and %m
43913         rather than perror.  Use printf rather than fprintf to
43914         stderr.  Use puts rather than fputs to stderr.
43915         (main): Likewise.
43916
43917 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
43918
43919         * nscd/nscd.c (thread_info_t): Remove typedef.
43920         (thread_info): Remove variable.
43921
43922 2014-06-21  Allan McRae  <allan@archlinux.org>
43923
43924         * NEWS: Mention CVE-2014-4043.
43925
43926 2014-06-20  Roland McGrath  <roland@hack.frob.com>
43927
43928         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
43929         * nptl/smp.h: ... here.
43930
43931         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
43932
43933         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
43934         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
43935         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
43936         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
43937
43938         * nptl/allocatestack.c: Include <stack-aliasing.h>.
43939         * nptl/stack-aliasing.h: New file.
43940         * sysdeps/i386/i686/stack-aliasing.h: New file.
43941         * sysdeps/i386/i686/nptl/Makefile: File removed.
43942         * sysdeps/x86_64/stack-aliasing.h: New file.
43943         * sysdeps/x86_64/nptl/Makefile
43944         (CFLAGS-pthread_create.c): Variable removed.
43945
43946         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
43947         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
43948         old file.
43949         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
43950         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
43951         old file.
43952
43953 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
43954
43955         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43956         (__ASSUME_SIGFRAME_V2): Remove macro.
43957         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
43958         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
43959         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
43960         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
43961         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
43962         Declare as function.  Remove conditional macro definitions.
43963         (__default_rt_sa_restorer): Likewise.
43964         (__default_sa_restorer_v1): Remove declaration.
43965         (__default_sa_restorer_v2): Likewise.
43966         (__default_rt_sa_restorer_v1): Likewise.
43967         (__default_rt_sa_restorer_v2): Likewise.
43968         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
43969         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
43970         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
43971
43972 2014-06-20  Roland McGrath  <roland@hack.frob.com>
43973
43974         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
43975         (libpthread-routines): Add sysdep.
43976         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
43977         * sysdeps/unix/sysv/linux/sparc/Versions
43978         (libpthread: GLIBC_2.3.3): New version set.
43979         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
43980         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
43981         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
43982         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
43983         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
43984         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
43985         Moved ...
43986         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
43987         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
43988         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
43989         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
43990         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
43991         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
43992         * sysdeps/sparc/nptl/sem_init.c: ... here.
43993         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
43994         * sysdeps/sparc/nptl/sem_post.c: ... here.
43995         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
43996         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
43997         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
43998         * sysdeps/sparc/nptl/sem_wait.c: ... here.
43999         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
44000         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
44001         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
44002         (libpthread-routines): Add cpu_relax.
44003         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
44004         File removed.
44005         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
44006         (librt: GLIBC_2.3.3): New version set.
44007         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
44008         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
44009         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
44010         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
44011         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
44012         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
44013         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
44014         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
44015         Moved ...
44016         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
44017         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
44018         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
44019         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
44020         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
44021         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
44022         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
44023         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
44024         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
44025         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
44026         Moved ...
44027         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
44028         Update #include.
44029         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
44030         Moved ...
44031         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
44032         Update #include.
44033         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
44034         Moved ...
44035         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
44036         Update #include.
44037         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
44038         Moved ...
44039         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
44040         Update #include.
44041         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
44042         Moved ...
44043         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
44044         Update #include.
44045         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
44046         Moved ...
44047         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
44048         Update #include.
44049         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
44050         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
44051         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
44052         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
44053         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
44054         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
44055         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
44056         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
44057         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
44058         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
44059         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
44060         Moved ...
44061         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
44062         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
44063         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
44064         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
44065         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
44066
44067 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44068
44069         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
44070         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
44071         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
44072         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
44073         * nscd/nscd.c: Likewise.
44074         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
44075         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
44076         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
44077         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
44078
44079         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
44080         <kernel-features.h>.
44081         (init_mq_netlink): Remove conditional have_sock_cloexec
44082         definitions.  Remove code conditional on have_sock_cloexec < 0.
44083         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
44084         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
44085         * sysdeps/unix/sysv/linux/opensock.c: Do not include
44086         <kernel-features.h>.
44087         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
44088         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
44089
44090 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44091
44092         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44093         Add tests for memset_chk and memset.
44094
44095         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
44096         with AVX2_Usable.
44097
44098 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44099
44100         [BZ #16046]
44101         * elf/tst-dl-iter-static.c: New file.
44102         * elf/Makefile (tests-static): Add tst-dl-iter-static.
44103
44104         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
44105         error.
44106
44107 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44108
44109         * sysdeps/unix/sysv/linux/kernel-features.h
44110         (__ASSUME_F_GETOWN_EX): Remove macro.
44111         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
44112         <kernel-features.h>.
44113         (miss_F_GETOWN_EX): Remove variable or macro.
44114         (do_fcntl): Do not check miss_F_GETOWN_EX.
44115         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
44116
44117         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
44118         Remove macro.
44119         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
44120         [!__ASSUME_AT_RANDOM]: Remove conditional code.
44121         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
44122
44123         * sysdeps/unix/sysv/linux/kernel-features.h
44124         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
44125         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
44126         [ADJ_OFFSET_SS_READ]: Make code unconditional.
44127         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
44128
44129 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44130
44131         [BZ #17075]
44132         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
44133         Fix calculation of the symbol's value.
44134         * sysdeps/arm/tst-armtlsdescloc.c: New file.
44135         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
44136         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
44137         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
44138         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
44139         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
44140         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
44141         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
44142         (modules-names): Add `tst-armtlsdescmod',
44143         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
44144         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
44145         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44146         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
44147         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
44148         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44149         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
44150         ($(objpfx)tst-armtlsdescloc): New dependency.
44151         ($(objpfx)tst-armtlsdescextnow): Likewise.
44152         ($(objpfx)tst-armtlsdescextlazy): Likewise.
44153         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
44154         TLS scheme support.
44155         * sysdeps/arm/configure: Regenerate.
44156
44157 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44158
44159         * include/fcntl.h (__atfct_seterrno): Remove prototype.
44160         (__atfct_seterrno_2): Likewise.
44161         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
44162         <kernel-features.h>.
44163         (__ASSUME_ATFCTS): Do not undefine and redefine.
44164         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
44165         (__have_atfcts): Remove conditional definition.
44166         (__fxstatat([__NR_fstatat64]: Make code unconditional.
44167         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
44168         unreachable if [__ASSUME_ATFCTS].
44169         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
44170         not undefine and redefine.
44171         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
44172         <kernel-features.h>.
44173         (faccessat) [__NR_faccessat]: Make code unconditional.
44174         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
44175         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
44176         <kernel-features.h>.
44177         (fchmodat) [__NR_fchmodat]: Make code unconditional.
44178         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44179         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
44180         <kernel-features.h>.
44181         (fchownat) [__NR_fchownat]: Make code unconditional.
44182         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
44183         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
44184         <kernel-features.h>.
44185         (futimesat) [__NR_futimesat]: Make code unconditional.
44186         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
44187         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
44188         <kernel-features.h>.
44189         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44190         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44191         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
44192         <kernel-features.h>.
44193         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
44194         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44195         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
44196         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
44197         <kernel-features.h>.
44198         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
44199         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44200         * sysdeps/unix/sysv/linux/linkat.c: Do not include
44201         <kernel-features.h>.
44202         (linkat) [__NR_linkat]: Make code unconditional.
44203         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44204         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
44205         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
44206         <kernel-features.h>.
44207         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
44208         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44209         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
44210         <kernel-features.h>.
44211         (mkdirat) [__NR_mkdirat]: Make code unconditional.
44212         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
44213         * sysdeps/unix/sysv/linux/openat.c: Do not include
44214         <kernel-features.h>.
44215         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
44216         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
44217         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
44218         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
44219         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
44220         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
44221         <kernel-features.h>.
44222         (readlinkat) [__NR_readlinkat]: Make code unconditional.
44223         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
44224         result of INLINE_SYSCALL directly, not via int variable.
44225         * sysdeps/unix/sysv/linux/renameat.c: Do not include
44226         <kernel-features.h>.
44227         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
44228         (renameat) [__NR_renameat]: Make code unconditional.
44229         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
44230         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
44231         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
44232         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
44233         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
44234         (__ASSUME_ATFCTS): Do not undefine and redefine.
44235         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
44236         <kernel-features.h>.
44237         (symlinkat) [__NR_symlinkat]: Make code unconditional.
44238         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44239         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
44240         <kernel-features.h>.
44241         (unlinkat) [__NR_unlinkat]: Make code unconditional.
44242         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44243         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
44244         (__ASSUME_ATFCTS): Do not undefine and redefine.
44245         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
44246         <kernel-features.h>.
44247         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44248         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44249         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
44250         <kernel-features.h>.
44251         (__xmknodat) [__NR_mknodat]: Make code unconditional.
44252         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44253
44254 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44255
44256         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
44257
44258 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
44259
44260         [BZ #17069]
44261         * posix/regcomp.c (parse_reg_exp): Deallocate partially
44262         constructed tree before returning error.
44263         * posix/bug-regexp36.c: Expand test case.
44264
44265 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
44266
44267         [BZ #6803]
44268         * math/libm-test.inc (scalbln_test_date):
44269         Add errno expectations.
44270         * math/w_scalblnf.c: New File.
44271         Add wrapper which checks for setting errno to ERANGE.
44272         Add weak_alias for corresponding scalbln function.
44273         * math/w_scalbln.c: Likewise.
44274         * math/w_scalblnl.c: Likewise.
44275         * math/Makefile (libm-calls): Add w_scalbln.
44276         * sysdeps/ieee754/flt-32/s_scalblnf.c:
44277         Remove weak_alias for corresponding scalbln function.
44278         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
44279         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
44280         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
44281         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
44282         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
44283         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
44284         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
44285         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
44286         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
44287         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
44288         Remove long_double_symbol for scalblnl function in libm, libc.
44289         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
44290         Add wrapper which checks for setting errno to ERANGE.
44291         Add long_double_symbol for scalblnl function in libm, libc.
44292         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
44293         Remove long_double_symbol for scalblnl in libm.
44294         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
44295         Add wrapper which checks for setting errno to ERANGE.
44296         Add long_double_symbol for scalblnl function in libm.
44297         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
44298         Do not use wrapper because of own implementation.
44299
44300 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
44301
44302         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
44303         3 bytes for __pad1 for x32.
44304         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
44305
44306 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
44307             H.J. Lu  <hongjiu.lu@intel.com>
44308
44309         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
44310         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
44311         * sysdeps/x86_64/multiarch/memset.S: Likewise.
44312         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
44313         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
44314
44315 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
44316
44317         [BZ #17069]
44318         * posix/regcomp.c (parse_expression): Deallocate partially
44319         constructed tree before returning error.
44320         * posix/Makefile.c (tests): Add bug-regex36.
44321         (generated): Add bug-regex36.mtrace.
44322         (tests-special): Add $(objpfx)bug-regex36-mem.out
44323         (bug-regex36-ENV): New variable.
44324         ($(objpfx)bug-regex36-mem.out): New rule.
44325         * posix/bug-regex36.c: New file.
44326
44327 2014-06-19  Will Newton  <will.newton@linaro.org>
44328
44329         * malloc/malloc.c (systrim): If extra is zero then return
44330         early.
44331
44332 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44333
44334         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
44335
44336 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
44337
44338         * sysdeps/aarch64/strchr.S: New file.
44339
44340 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44341
44342         [BZ #17022]
44343         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
44344         from arguments -2 or below.
44345         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
44346         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
44347
44348 2014-06-18  Andreas Schwab  <schwab@suse.de>
44349
44350         [BZ #17062]
44351         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
44352         of a bracket expr not to run off the end of the string.
44353         * posix/Makefile (tests): Add tst-fnmatch3.
44354         * posix/tst-fnmatch3.c: New file.
44355
44356 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44357
44358         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
44359         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
44360         [$(cross-compiling) = no]: Likewise.
44361         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
44362         [$(cross-compiling) = no]: Likewise.
44363
44364 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
44365
44366         [BZ #17031]
44367         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
44368         double, adjusted for any remainder from the high double.
44369         * math/libm-test.inc (nearbyint): Add tests.
44370         (rint): Likewise.
44371
44372 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44373
44374         * nptl/sysdeps/powerpc/Makefile: Moved ...
44375         * sysdeps/powerpc/nptl/Makefile: ... here.
44376         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
44377         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
44378         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
44379         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
44380         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
44381         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
44382         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
44383         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
44384         * nptl/sysdeps/powerpc/tls.h: Moved ...
44385         * sysdeps/powerpc/nptl/tls.h: ... here.
44386
44387 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
44388
44389         [BZ #16681]
44390         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
44391         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
44392         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
44393         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
44394         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
44395         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
44396         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
44397         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
44398         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
44399
44400 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
44401
44402         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
44403
44404 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
44405
44406         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
44407         defined operator.
44408
44409         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
44410         $TIMEOUTFACTOR.
44411
44412 2014-06-16  Florian Weimer  <fweimer@redhat.com>
44413
44414         [BZ #17058]
44415         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
44416         non-executed part of the test.
44417
44418 2014-06-16  Andreas Schwab  <schwab@suse.de>
44419
44420         * string/bits/string2.h (strdup, strndup): Update feature guard.
44421
44422 2014-06-14  David S. Miller  <davem@davemloft.net>
44423
44424         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44425
44426 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
44427
44428         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
44429         that was previously under [RESET_PID].
44430         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
44431
44432         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
44433         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
44434         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
44435         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
44436         (__libc_vfork): New strong alias.
44437         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
44438
44439 2014-06-14 Andi Kleen  <ak@linux.intel.com>
44440
44441         * sysdeps/generic/elide.h: New file.
44442
44443 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
44444
44445         * Makefile (installed-headers): Adjust path of pthread.h header.
44446
44447 2014-06-13  Roland McGrath  <roland@hack.frob.com>
44448
44449         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
44450         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
44451         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
44452         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
44453
44454         * nptl/sysdeps/s390/Makefile: Moved ...
44455         * sysdeps/s390/nptl/Makefile: ... here.
44456         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
44457         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
44458         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
44459         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
44460         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
44461         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
44462         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
44463         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
44464         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
44465         * sysdeps/s390/nptl/pthreaddef.h: ... here.
44466         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
44467         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
44468         * nptl/sysdeps/s390/tls.h: Moved ...
44469         * sysdeps/s390/nptl/tls.h: ... here.
44470
44471         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
44472         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
44473
44474 2014-06-13  David S. Miller  <davem@davemloft.net>
44475
44476         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
44477         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
44478         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
44479         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
44480         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
44481         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
44482         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
44483         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
44484         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
44485         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
44486         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
44487         Remove RESET_PID cpp guards.
44488         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
44489         Remove RESET_PID cpp guards.
44490         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
44491
44492 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
44493
44494         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
44495         __sp to uintptr_t.
44496
44497 2014-06-13  Andi Kleen  <ak@linux.intel.com>
44498
44499         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
44500         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
44501         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
44502         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
44503         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
44504         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
44505         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
44506         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
44507         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
44508         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
44509         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
44510         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
44511         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
44512         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
44513         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
44514         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
44515         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
44516         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
44517         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
44518         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
44519
44520         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
44521         (pthread_rwlock_rdlock): Add elision.
44522         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
44523         (pthread_rwlock_wrlock): Add elision.
44524         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
44525         (pthread_rwlock_trywrlock): Add elision.
44526         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
44527         (pthread_rwlock_tryrdlock): Add elision.
44528         * nptl/pthread_rwlock_unlock.c: Include elide.h.
44529         (pthread_rwlock_tryrdlock): Add elision unlock.
44530         * nptl/sysdeps/pthread/pthread.h:
44531         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
44532         (PTHREAD_RWLOCK_INITIALIZER,
44533         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
44534         Handle new elision field.
44535         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
44536         * sysdeps/arm/nptl/bits/pthreadtypes.h
44537         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44538         * sysdeps/sh/nptl/bits/pthreadtypes.h
44539         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44540         * sysdeps/tile/nptl/bits/pthreadtypes.h
44541         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44542         * sysdeps/a/nptl/bits/pthreadtypes.h
44543         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44544         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
44545         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44546         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
44547         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44548         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
44549         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44550         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
44551         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44552         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
44553         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44554         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
44555         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44556         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
44557         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44558         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
44559         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44560         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
44561         (elision_init): Set try_xbegin to zero when no RTM.
44562         * sysdeps/x86/nptl/bits/pthreadtypes.h
44563         (pthread_rwlock_t): Change __pad1 to __rwelision.
44564         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44565
44566 2014-06-13  Andi Kleen  <ak@linux.intel.com>
44567
44568         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
44569         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
44570         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
44571         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
44572
44573 2014-06-13  Meador Inge  <meadori@codesourcery.com>
44574
44575         [BZ #16996]
44576         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
44577         that the cached result has been set before returning it.
44578
44579 2014-06-12  Roland McGrath  <roland@hack.frob.com>
44580
44581         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
44582         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
44583         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
44584         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
44585         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
44586         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
44587
44588         * nptl/sysdeps/sparc/Makefile: Moved ...
44589         * sysdeps/sparc/nptl/Makefile: ... here.
44590         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
44591         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
44592         * nptl/sysdeps/sparc/tls.h: Moved ...
44593         * sysdeps/sparc/nptl/tls.h: ... here.
44594         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
44595         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
44596         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
44597         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
44598         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
44599         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
44600         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
44601         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
44602         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
44603         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
44604         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
44605         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
44606         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
44607         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
44608         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
44609         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
44610         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
44611         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
44612         Update #include.
44613         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
44614         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
44615         Update #include.
44616         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
44617         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
44618         Update #include.
44619         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
44620         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
44621         Update #include.
44622
44623         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
44624
44625         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
44626         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
44627
44628         * sysdeps/pthread/posix-timer.h: Include <list.h>.
44629         (struct list_links): Type removed.
44630         (struct thread_node, struct timer_node): Replace struct list_links
44631         with struct list_head.
44632         (list_unlink_ip): Likewise.
44633         * sysdeps/pthread/timer_routines.c
44634         (timer_free_list, thread_free_list, thread_active_list): Likewise.
44635         (list_append, list_insbefore): Likewise.
44636         (list_init): Function removed.
44637         (thread_init, init_module): Use INIT_LIST_HEAD instead.
44638         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
44639         * sysdeps/pthread/Makefile: ... here, new file.
44640
44641         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
44642         * sysdeps/nptl/Implies: ... here.
44643         * sysdeps/unix/sysv/linux/Implies: Add nptl.
44644         * nptl/sysdeps/pthread/list.h: Moved ...
44645         * include/list.h: ... here.
44646         * nptl/sysdeps/pthread/createthread.c: Moved ...
44647         * nptl/createthread.c: ... here.
44648         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
44649         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
44650         * nptl/pt-longjmp.c: ... here.
44651         * nptl/sysdeps/pthread/Makefile: Moved ...
44652         * sysdeps/nptl/Makefile: ... here.
44653         * nptl/sysdeps/pthread/Subdirs: Moved ...
44654         * sysdeps/nptl/Subdirs: ... here.
44655         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
44656         * sysdeps/nptl/aio_misc.h: ... here.
44657         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
44658         * sysdeps/nptl/bits/libc-lock.h: ... here.
44659         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
44660         * sysdeps/nptl/bits/libc-lockP.h: ... here.
44661         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
44662         * sysdeps/nptl/bits/stdio-lock.h: ... here.
44663         * nptl/sysdeps/pthread/configure: Moved ...
44664         * sysdeps/nptl/configure: ... here.
44665         * nptl/sysdeps/pthread/configure.ac: Moved ...
44666         * sysdeps/nptl/configure.ac: ... here.
44667         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
44668         * sysdeps/nptl/gai_misc.h: ... here.
44669         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
44670         * sysdeps/nptl/librt-cancellation.c: ... here.
44671         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
44672         * sysdeps/nptl/malloc-machine.h: ... here.
44673         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
44674         * sysdeps/nptl/pthread-functions.h: ... here.
44675         * nptl/sysdeps/pthread/pthread.h: Moved ...
44676         * sysdeps/nptl/pthread.h: ... here.
44677         * nptl/sysdeps/pthread/setxid.h: Moved ...
44678         * sysdeps/nptl/setxid.h: ... here.
44679         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
44680         * sysdeps/nptl/sigfillset.c: ... here.
44681         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
44682         * sysdeps/nptl/tcb-offsets.h: ... here.
44683         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
44684         * sysdeps/nptl/tst-mqueue8x.c: ... here.
44685         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
44686         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
44687         * nptl/sysdeps/pthread/allocalim.h: Moved ...
44688         * sysdeps/pthread/allocalim.h: ... here.
44689         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
44690         * sysdeps/pthread/bits/sigthread.h: ... here.
44691         * nptl/sysdeps/pthread/flockfile.c: Moved ...
44692         * sysdeps/pthread/flockfile.c: ... here.
44693         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
44694         * sysdeps/pthread/ftrylockfile.c: ... here.
44695         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
44696         * sysdeps/pthread/funlockfile.c: ... here.
44697         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
44698         * sysdeps/pthread/posix-timer.h: ... here.
44699         * nptl/sysdeps/pthread/timer_create.c: Moved ...
44700         * sysdeps/pthread/timer_create.c: ... here.
44701         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
44702         * sysdeps/pthread/timer_delete.c: ... here.
44703         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
44704         * sysdeps/pthread/timer_getoverr.c: ... here.
44705         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
44706         * sysdeps/pthread/timer_gettime.c: ... here.
44707         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
44708         * sysdeps/pthread/timer_routines.c: ... here.
44709         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
44710         * sysdeps/pthread/timer_settime.c: ... here.
44711         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
44712         * sysdeps/pthread/tst-timer.c: ... here.
44713         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
44714         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
44715
44716         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
44717         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
44718
44719         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
44720         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
44721         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
44722         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
44723         Update #include target.
44724         * nptl/sysdeps/i386/i686/Makefile: Moved ...
44725         * sysdeps/i386/i686/nptl/Makefile: ... here.
44726         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
44727         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
44728         Update #include target.
44729         * nptl/sysdeps/i386/i686/tls.h: Moved ...
44730         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
44731         * nptl/sysdeps/i386/Makefile: Moved ...
44732         * sysdeps/i386/nptl/Makefile: ... here.
44733         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
44734         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
44735         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
44736         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
44737         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
44738         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
44739         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
44740         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
44741         * sysdeps/i386/nptl/pthreaddef.h: ... here.
44742         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
44743         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
44744         * nptl/sysdeps/i386/tls.h: Moved ...
44745         * sysdeps/i386/nptl/tls.h: ... here.
44746
44747         * sysdeps/sh/Makefile [$(subdir) = csu]
44748         (gen-as-const-headers): Add tcb-offsets.sym.
44749         * nptl/sysdeps/sh/Makefile: File removed.
44750         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
44751         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
44752         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
44753         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
44754         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
44755         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
44756         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
44757         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
44758         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
44759         * sysdeps/sh/nptl/pthreaddef.h: ... here.
44760         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
44761         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
44762         * nptl/sysdeps/sh/tls.h: Moved ...
44763         * sysdeps/sh/nptl/tls.h: ... here.
44764         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
44765         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
44766         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
44767         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
44768         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
44769         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
44770         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
44771         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
44772         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
44773         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
44774         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
44775         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
44776         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
44777         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
44778         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
44779         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
44780         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
44781         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
44782         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
44783         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
44784         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
44785         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
44786         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
44787         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
44788         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
44789         Moved ...
44790         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
44791         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
44792         Moved ...
44793         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
44794         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
44795         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
44796         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
44797         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
44798         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
44799         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
44800         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
44801         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
44802         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
44803         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
44804         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
44805         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
44806         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
44807         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
44808         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
44809         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
44810         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
44811         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
44812
44813 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
44814
44815         * posix/spawn_faction_addopen.c: Include string.h.
44816
44817 2014-06-11  Roland McGrath  <roland@hack.frob.com>
44818
44819         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
44820         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
44821         * nptl/sysdeps/x86_64/Makefile: Moved ...
44822         * sysdeps/x86_64/nptl/Makefile: ... here.
44823         * nptl/sysdeps/x86_64/configure: Moved ...
44824         * sysdeps/x86_64/nptl/configure: ... here.
44825         * nptl/sysdeps/x86_64/configure.ac: Moved ...
44826         * sysdeps/x86_64/nptl/configure.ac: ... here.
44827         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
44828         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
44829         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
44830         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
44831         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
44832         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
44833         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
44834         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
44835         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
44836         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
44837         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
44838         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
44839         * nptl/sysdeps/x86_64/tls.h: Moved ...
44840         * sysdeps/x86_64/nptl/tls.h: ... here.
44841         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
44842         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
44843         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
44844         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
44845
44846         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
44847
44848 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44849
44850         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44851
44852 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
44853
44854         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
44855         type.
44856         [POSIX] (off_t): Likewise.
44857         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
44858         [POSIX] (S_ISBLK): Require macro.
44859         [POSIX] (S_ISCHR): Likewise.
44860         [POSIX] (S_ISDIR): Likewise.
44861         [POSIX] (S_ISFIFO): Likewise.
44862         [POSIX] (S_ISREG): Likewise.
44863         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
44864         optional-macro.
44865         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
44866         type.
44867         [POSIX] (time_t): Likewise.
44868         [POSIX] (timer_t): Likewise.
44869
44870 2014-06-11  Florian Weimer  <fweimer@redhat.com>
44871
44872         [BZ #17048]
44873         * posix/spawn_int.h (struct __spawn_action): Make the path string
44874         non-const to support deallocation.
44875         * posix/spawn_faction_addopen.c
44876         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
44877         * posix/spawn_faction_destroy.c
44878         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
44879         path in all spawn_do_open actions.
44880         * posix/tst-spawn.c (do_test): Exercise the copy operation in
44881         posix_spawn_file_actions_addopen.
44882
44883 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
44884
44885         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
44886         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
44887         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
44888         conditional code always true.
44889         (__libc_vfork): New alias.
44890
44891 2014-06-11  Roland McGrath  <roland@hack.frob.com>
44892
44893         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44894         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
44895
44896         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
44897
44898         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44899         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
44900
44901         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
44902         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
44903
44904         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44905         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
44906
44907 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
44908
44909         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
44910         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
44911         multiarch strcmp for PPC64.
44912         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
44913         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
44914         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
44915         multiarch optimizations.
44916         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
44917         (__libc_ifunc_impl_list): Likewise.
44918
44919 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
44920
44921         * benchtests/scripts/validate_benchout.py: New script.
44922         * benchtests/Makefile (bench-func): Call it.
44923         * benchtests/scripts/benchout.schema.json: New file.
44924
44925 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
44926
44927         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
44928         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
44929         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
44930         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
44931         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
44932         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
44933         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
44934         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
44935         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
44936         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
44937         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
44938         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
44939         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
44940         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
44941         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
44942         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
44943         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
44944         Moved ...
44945         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
44946         ... here.
44947         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
44948         Moved ...
44949         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
44950         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
44951         Moved ...
44952         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
44953         ... here.
44954         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
44955         Moved ...
44956         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
44957         ... here.
44958         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
44959         Moved ...
44960         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
44961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
44962         Moved ...
44963         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
44964         ... here.
44965         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
44966         Moved ...
44967         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
44968         ... here.
44969         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
44970         Moved ...
44971         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
44972         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
44973         Moved ...
44974         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
44975         ... here.
44976         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
44977         Moved ...
44978         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
44979         ... here.
44980         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
44981         Moved ...
44982         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
44983         ... here.
44984         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
44985         Moved ...
44986         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
44987         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
44988         Moved ...
44989         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
44990         ... here.
44991         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
44992         Moved ...
44993         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
44994         ... here.
44995         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
44996         Moved ...
44997         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
44998         ... here.
44999         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
45000         Moved ...
45001         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
45002         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
45003         Moved ...
45004         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
45005         ... here.
45006         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
45007         Moved ...
45008         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
45009         ... here.
45010         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
45011         Moved ...
45012         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
45013         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
45014         Moved ...
45015         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
45016         ... here.
45017         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
45018         Moved ...
45019         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
45020         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
45021         Moved ...
45022         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
45023         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
45024         Moved ...
45025         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
45026         ... here.
45027         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
45028         Moved ...
45029         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
45030         ... here.
45031         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
45032         Moved ...
45033         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
45034         ... here.
45035         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
45036         Moved ...
45037         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
45038         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
45039         Moved ...
45040         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
45041         ... here.
45042         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
45043         Moved ...
45044         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
45045         ... here.
45046         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
45047         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
45048         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
45049         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
45050         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
45051         Moved ...
45052         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
45053         ... here.
45054         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
45055         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
45056         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
45057         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
45058         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
45059         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
45060         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
45061         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
45062         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
45063         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
45064         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
45065         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
45066         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
45067         Moved ...
45068         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
45069         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
45070         Moved ...
45071         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
45072         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
45073         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
45074         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
45075         Moved ...
45076         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
45077         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
45078         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
45079         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
45080         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
45081         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
45082         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
45083
45084 2014-06-10  Wilco  <wdijkstr@arm.com>
45085
45086         * math/test-fenv-return.c: New file.
45087         * math/Makefile: Add new test test-fenv-return.
45088
45089 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
45090
45091         [BZ #17042]
45092         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
45093         when x - 1 is zero.
45094         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
45095         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
45096         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
45097         0.0L for an argument of 1.0L.
45098         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
45099         Likewise.
45100         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
45101         value when x - 1 is zero.
45102         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
45103         * sysdeps/i386/fpu/libm-test-ulps: Update.
45104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45105
45106 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
45107
45108         [BZ #15119]
45109         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
45110
45111 2014-06-09  Roland McGrath  <roland@hack.frob.com>
45112
45113         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
45114         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
45115
45116 2014-06-09  Roland McGrath  <roland@hack.frob.com>
45117
45118         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45119         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
45120
45121         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45122         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
45123
45124         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45125         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
45126
45127         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45128         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
45129
45130         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
45131         if not already defined.
45132         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
45133         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
45134         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
45135         (TLS_INIT_TP): Use it.
45136         (TLS_DEFINE_INIT_TP): New macro.
45137         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
45138
45139 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
45140
45141         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
45142         constant.
45143         [POSIX] (IXANY): Likewise.
45144         [POSIX] (OLCUC): Likewise.
45145         [POSIX || POSIX2008] (CBAUD): Do not allow.
45146         [POSIX || POSIX2008] (DEFECHO): Likewise.
45147         [POSIX || POSIX2008] (ECHOCTL): Likewise.
45148         [POSIX || POSIX2008] (ECHOKE): Likewise.
45149         [POSIX || POSIX2008] (ECHOPRT): Likewise.
45150         [POSIX || POSIX2008] (EXTA): Likewise.
45151         [POSIX || POSIX2008] (EXTB): Likewise.
45152         [POSIX || POSIX2008] (FLUSHO): Likewise.
45153         [POSIX || POSIX2008] (LOBLK): Likewise.
45154         [POSIX || POSIX2008] (PENDIN): Likewise.
45155         [POSIX || POSIX2008] (SWTCH): Likewise.
45156         [POSIX || POSIX2008] (VDISCARD): Likewise.
45157         [POSIX || POSIX2008] (VDSUSP): Likewise.
45158         [POSIX || POSIX2008] (VLNEXT): Likewise.
45159         [POSIX || POSIX2008] (VREPRINT): Likewise.
45160         [POSIX || POSIX2008] (VSTATUS): Likewise.
45161         [POSIX || POSIX2008] (VWERASE): Likewise.
45162         (B*): Change to B[0123456789]*.
45163         * conform/data/time.h-data [POSIX || UNIX98]
45164         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
45165         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
45166         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
45167         [POSIX] (tm_*): Do not allow.
45168
45169 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
45170
45171         * Makefile (install): Don't set LANGUAGE.
45172         * Makefile.in (install): Likewise.
45173         * assert/Makefile (test-assert-ENV): Remove variable.
45174         (test-assert-perr-ENV): Likewise.
45175         * elf/Makefile (neededtest4-ENV): Likewise.
45176         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
45177         [$(cross-compiling) = no]: Don't set LANGUAGE.
45178         * io/ftwtest-sh (LANG): Remove variable.
45179         * libio/Makefile (tst-widetext-ENV): Likewise.
45180         * manual/install.texi (Running make install): Don't refer to
45181         environment settings for make install.
45182         * INSTALL: Regenerated.
45183         * nptl/tst-tls6.sh: Don't set LANG.
45184         * posix/globtest.sh (LANG): Remove variable.
45185         * string/Makefile (tester-ENV): Likewise.
45186         (inl-tester-ENV): Likewise.
45187         (noinl-tester-ENV): Likewise.
45188         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
45189         [$(cross-compiling) = no]: Don't set LANGUAGE.
45190         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
45191         without explicit environment settings.
45192
45193 2014-06-06  Roland McGrath  <roland@hack.frob.com>
45194
45195         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
45196         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
45197         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
45198         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
45199
45200 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
45201
45202         * crypt/crypt-private.h [DOS]: Add some includes taken from the
45203         other files in the crypt directory.
45204         * crypt/crypt.c: Remove duplicate includes.
45205         * crypt/crypt-entry.c: Likewise.
45206         * crypt/crypt_util.c: Likewise.
45207
45208 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
45209
45210         * Makeconfig (run-program-env): New variable.
45211         (run-program-prefix-before-env): Likewise.
45212         (run-program-prefix-after-env): Likewise.
45213         (run-program-prefix): Define in terms of new variables.
45214         (built-program-cmd-before-env): New variable.
45215         (built-program-cmd-after-env): Likewise.
45216         (built-program-cmd): Define in terms of new variables.
45217         (test-program-prefix-before-env): New variable.
45218         (test-program-prefix-after-env): Likewise.
45219         (test-program-prefix): Define in terms of new variables.
45220         (test-program-cmd-before-env): New variable.
45221         (test-program-cmd-after-env): Likewise.
45222         (test-program-cmd): Define in terms of new variables.
45223         * Rules (make-test-out): Use $(run-program-env).
45224         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
45225         (help): Do not mention environment variables.  Mention
45226         --timeoutfactor option.
45227         (timeoutfactor): New variable.
45228         (blacklist_exports): Remove function.
45229         (exports): Remove variable.
45230         (command): Do not include ${exports}.
45231         * manual/install.texi (Configuring and compiling): Do not mention
45232         test wrappers preserving environment variables.  Mention that last
45233         assignment to a variable must take precedence.
45234         * INSTALL: Regenerated.
45235         * benchtests/Makefile (run-bench): Use $(run-program-env).
45236         * catgets/Makefile ($(objpfx)test1.cat): Use
45237         $(built-program-cmd-before-env), $(run-program-env) and
45238         $(built-program-cmd-after-env).
45239         ($(objpfx)test2.cat): Do not specify environment variables
45240         explicitly.
45241         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
45242         $(run-program-env) and $(built-program-cmd-after-env).
45243         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
45244         $(run-program-env) and $(test-program-cmd-after-env).
45245         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
45246         explicitly.
45247         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
45248         run_program_env and test_program_cmd_after_env arguments.
45249         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
45250         * elf/tst-pathopt.sh: Use run_program_env argument.
45251         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
45252         $(test-wrapper-env) and $(run-program-env).
45253         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
45254         run_program_env arguments.
45255         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
45256         * intl/Makefile ($(objpfx)tst-gettext.out): Use
45257         $(test-program-prefix-before-env), $(run-program-env) and
45258         $(test-program-prefix-after-env).
45259         ($(objpfx)tst-gettext2.out): Likewise.
45260         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
45261         run_program_env and test_program_prefix_after_env arguments.
45262         * intl/tst-gettext2.sh: Likewise.
45263         * intl/tst-gettext4.sh: Do not set environment variables
45264         explicitly.
45265         * intl/tst-gettext6.sh: Likewise.
45266         * intl/tst-translit.sh: Likewise.
45267         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
45268         $(test-program-prefix-before-env), $(run-program-env) and
45269         $(test-program-prefix-after-env).
45270         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
45271         run_program_env and test_program_prefix_after_env arguments.
45272         * math/Makefile (run-regen-ulps): Use $(run-program-env).
45273         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
45274         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
45275         explicitly with each use of ${test_wrapper_env}.
45276         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
45277         $(test-program-prefix-before-env), $(run-program-env) and
45278         $(test-program-prefix-after-env).
45279         * posix/tst-getconf.sh: Do not set environment variables
45280         explicitly.
45281         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
45282         run_program_env and test_program_prefix_after_env arguments.
45283         * stdio-common/tst-printf.sh: Do not set environment variables
45284         explicitly.
45285         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
45286         $(test-program-prefix-before-env), $(run-program-env) and
45287         $(test-program-prefix-after-env).
45288         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
45289         run_program_env and test_program_prefix_after_env arguments.
45290         Split $test calls into $test_pre and $test.
45291         * timezone/Makefile (build-testdata): Use
45292         $(built-program-cmd-before-env), $(run-program-env) and
45293         $(built-program-cmd-after-env).
45294
45295 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45296
45297         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
45298         strlen for non SHARED builds.
45299
45300 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45301
45302         * nptl/allocatestack.c (check_list): Inlined function...
45303         (__reclaim_stacks): ... here.
45304
45305 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45306
45307         [BZ #15698]
45308         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
45309         memory overrun.
45310
45311 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
45312
45313         * Rules (make-test-out): Include
45314         LOCPATH=$(common-objpfx)localedata in default environment.
45315         * debug/Makefile (tst-chk1-ENV): Remove variable.
45316         (tst-chk2-ENV): Likewise.
45317         (tst-chk3-ENV): Likewise.
45318         (tst-chk4-ENV): Likewise.
45319         (tst-chk5-ENV): Likewise.
45320         (tst-chk6-ENV): Likewise.
45321         (tst-lfschk1-ENV): Likewise.
45322         (tst-lfschk2-ENV): Likewise.
45323         (tst-lfschk3-ENV): Likewise.
45324         (tst-lfschk4-ENV): Likewise.
45325         (tst-lfschk5-ENV): Likewise.
45326         (tst-lfschk6-ENV): Likewise.
45327         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
45328         (tst-iconv7-ENV): Likewise.
45329         * intl/Makefile (LOCPATH-ENV): Likewise.
45330         (tst-codeset-ENV): Likewise.
45331         (tst-gettext3-ENV): Likewise.
45332         (tst-gettext5-ENV): Likewise.
45333         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
45334         (tst-fopenloc-ENV): Likewise.
45335         (tst-fgetws-ENV): Remove variable.
45336         (tst-ungetwc1-ENV): Likewise.
45337         (tst-ungetwc2-ENV): Likewise.
45338         (bug-ungetwc2-ENV): Likewise.
45339         (tst-swscanf-ENV): Likewise.
45340         (bug-ftell-ENV): Likewise.
45341         (tst-fgetwc-ENV): Likewise.
45342         (tst-fseek-ENV): Likewise.
45343         (tst-ftell-partial-wide-ENV): Likewise.
45344         (tst-ftell-active-handler-ENV): Likewise.
45345         (tst-ftell-append-ENV): Likewise.
45346         * posix/Makefile (tst-fnmatch-ENV): Likewise.
45347         (tst-regexloc-ENV): Likewise.
45348         (bug-regex1-ENV): Likewise.
45349         (tst-regex-ENV): Likewise.
45350         (tst-regex2-ENV): Likewise.
45351         (bug-regex5-ENV): Likewise.
45352         (bug-regex6-ENV): Likewise.
45353         (bug-regex17-ENV): Likewise.
45354         (bug-regex18-ENV): Likewise.
45355         (bug-regex19-ENV): Likewise.
45356         (bug-regex20-ENV): Likewise.
45357         (bug-regex22-ENV): Likewise.
45358         (bug-regex23-ENV): Likewise.
45359         (bug-regex25-ENV): Likewise.
45360         (bug-regex26-ENV): Likewise.
45361         (bug-regex30-ENV): Likewise.
45362         (bug-regex32-ENV): Likewise.
45363         (bug-regex33-ENV): Likewise.
45364         (bug-regex34-ENV): Likewise.
45365         (bug-regex35-ENV): Likewise.
45366         (tst-rxspencer-ENV): Likewise.
45367         (tst-rxspencer-no-utf8-ENV): Likewise.
45368         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
45369         (tst-sscanf-ENV): Likewise.
45370         (tst-swprintf-ENV): Likewise.
45371         (tst-swscanf-ENV): Likewise.
45372         (test-vfprintf-ENV): Likewise.
45373         (scanf13-ENV): Likewise.
45374         (bug14-ENV): Likewise.
45375         (tst-grouping-ENV): Likewise.
45376         * stdlib/Makefile (tst-strtod-ENV): Likewise.
45377         (tst-strtod3-ENV): Likewise.
45378         (tst-strtod4-ENV): Likewise.
45379         (tst-strtod5-ENV): Likewise.
45380         (testmb2-ENV): Likewise./
45381         * string/Makefile (tst-strxfrm-ENV): Likewise.
45382         (tst-strxfrm2-ENV): Likewise.
45383         (bug-strcoll1-ENV): Likewise.
45384         (test-strcasecmp-ENV): Likewise.
45385         (test-strncasecmp-ENV): Likewise.
45386         * time/Makefile (tst-strptime-ENV): Likewise.
45387         (tst-ftime_l-ENV): Likewise.
45388         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
45389         (tst-mbrtowc-ENV): Likewise.
45390         (tst-wcrtomb-ENV): Likewise.
45391         (tst-mbrtowc2-ENV): Likewise.
45392         (tst-c16c32-1-ENV): Likewise.
45393         (tst-mbsnrtowcs-ENV): Likewise.
45394
45395 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45396
45397         * manual/resource.texi (How to get information about the memory
45398         subsystem?): Fix typo.
45399         Reported by Peon de la Parra Ivan <peon@keba.com>
45400
45401 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
45402
45403         [BZ #16882]
45404         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
45405         (pthread_spin_lock): Branch out of spin loop to proper location.
45406         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
45407         (pthread_spin_lock): Likewise.
45408
45409         * nptl/tst-spin4.c: New test.
45410         * nptl/Makefile (tests): Add tst-spin4.
45411
45412 2014-06-03  Andreas Schwab  <schwab@suse.de>
45413
45414         [BZ #15946]
45415         * resolv/res_send.c (send_dg): Reload file descriptor after
45416         calling reopen.
45417
45418 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
45419
45420         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45421
45422 2014-06-03  Richard Henderson  <rth@redhat.com>
45423
45424         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
45425         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
45426         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
45427         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
45428         in the SAVE_PID block.
45429         (__libc_vfork): New alias.
45430         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
45431
45432         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
45433         child in registers, not on the stack.  Remove RESET_PID conditionals.
45434         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
45435
45436 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
45437
45438         * sysdeps/aarch64/libm-test-ulps: Regenerate.
45439
45440 2014-06-03  Wilco  <wdijkstr@arm.com>
45441
45442         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
45443         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
45444         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
45445         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
45446         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
45447         Likewise.
45448
45449 2014-06-03  Wilco  <wdijkstr@arm.com>
45450
45451         * sysdeps/aarch64/fpu/math_private.h
45452         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
45453         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
45454         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
45455         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
45456         Fix declarations.
45457
45458 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
45459
45460         * crypt/crypt-private.h: Include ufc-crypt.h.
45461         (__b64_from_24bit): Declare extern.
45462         * crypt/crypt_util.c(__b64_from_24bit): New function.
45463         (b64t): New static const variable.
45464         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
45465         (b64t): Remove variable.
45466         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
45467         * crypt/sha256-crypt.c: Include crypt-private.h.
45468         (b64t): Remove variable.
45469         (__sha256_crypt_r): Remove b64_from_24bit and replace
45470         with __b64_from_24bit.
45471         * crypt/sha512-crypt.c: Likewise.
45472
45473 2014-06-02  Roland McGrath  <roland@hack.frob.com>
45474
45475         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
45476         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
45477         Label the code __libc_vfork rather than __vfork.
45478         [!NOT_IN_libc] (vfork): Define as weak alias.
45479         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
45480         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
45481         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
45482
45483 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45484
45485         * malloc/malloc.c (malloc_info): Fix format specifier for
45486         n_mmaps.
45487
45488 2014-06-02  Wilco  <wdijkstr@arm.com>
45489
45490         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
45491         FPCR write.
45492
45493 2014-06-02  Wilco  <wdijkstr@arm.com>
45494
45495         [BZ #17009]
45496         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
45497         Rewrite to reduce FPCR/FPSR accesses.
45498
45499 2014-06-01  David S. Miller  <davem@davemloft.net>
45500
45501         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45502
45503 2014-05-31  David S. Miller  <davem@davemloft.net>
45504
45505         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
45506         to occur in round to nearest mode when |x| >= 2.0
45507
45508 2014-05-30  Richard Henderson  <rth@twiddle.net>
45509
45510         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
45511         (PSEUDO_RET_NOERRNO): Remove.
45512         (ret): Don't redefine.
45513         (ret_NOERRNO): Define in terms of ret.
45514         (ret_ERRVAL): Likewise.
45515
45516         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
45517         use of PSEUDO_RET; perform the error check directly.
45518
45519 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
45520
45521         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
45522         with __int128_t.
45523
45524 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45525
45526         * malloc/malloc (malloc_info): Fix formatting.
45527
45528 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45529             Roland McGrath  <roland@hack.frob.com>
45530
45531         * malloc/malloc (malloc_info): Also print mmapped statistics.
45532
45533 2014-05-30  Roland McGrath  <roland@hack.frob.com>
45534
45535         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
45536         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
45537
45538 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
45539
45540         * malloc/malloc.c (malloc_info): Inline mi_arena.
45541
45542 2014-05-29  Richard Henderson  <rth@twiddle.net>
45543
45544         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
45545         Remove comma before expanding ASM_ARGS_##nr.
45546         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
45547         Make _x0 a strict output; make _x8 a strict input; adjust expansion
45548         of ASM_ARGS_##nr.
45549         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
45550         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
45551         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
45552         (ASM_ARGS_1): Add leading comma.
45553
45554         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
45555         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
45556         to __errno_location.
45557         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
45558         Remove the expected plt for __errno_location.
45559
45560         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45561         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
45562         call to __read_tp.
45563
45564         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45565         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
45566         it and break it down.
45567         (DOCARGS_0, DOCARGS_1): Do nothing.
45568         (DOCARGS_2): Update to store into the new stack frame.
45569         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
45570         (UNDOCARGS_1): Update to restore from the new stack frame.
45571         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
45572         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
45573
45574         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45575         (SINGLE_THREAD_P): New parameter for result regno.
45576         (PSEUDO): Update to match; use cbz instead of beq.
45577
45578         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45579         Use ENTRY to define the _nocancel entry point.  Share the syscall
45580         and syscall error check paths with the cancel path.
45581         (PSEUDO_END): New.
45582
45583         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
45584         whitespace; tabs before and after asm mnemonics.
45585
45586 2014-05-29  Eric Wong  <normalperson@yhbt.net>
45587
45588         [BZ #15132]
45589         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45590         Call fstat64 or stat64 internally, depending on arguments passed.
45591         Replace stat buffer argument with file descriptor argument.
45592         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
45593         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
45594         Pass fd to __internal_statvfs instead of calling fstat64.
45595         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
45596         Pass fd to __internal_statvfs64 instead of calling fstat64.
45597         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
45598         Pass -1 to __internal_statvfs instead of calling stat64.
45599         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
45600         Pass -1 to __internal_statvfs64 instead of calling stat64.
45601
45602 2014-05-28  Roland McGrath  <roland@hack.frob.com>
45603
45604         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
45605         that was previously under [RESET_PID].
45606         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
45607
45608         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
45609         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
45610
45611 2014-05-27  Roland McGrath  <roland@hack.frob.com>
45612
45613         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
45614
45615         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
45616         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
45617
45618 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
45619
45620         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
45621
45622 2014-05-27  Andreas Schwab  <schwab@suse.de>
45623
45624         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
45625         TLS_INIT_TP macro.
45626         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
45627         * elf/rtld.c (init_tls, dl_main): Likewise.
45628         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
45629         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
45630         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
45631         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
45632         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
45633         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
45634         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
45635         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
45636         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
45637         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
45638         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
45639         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
45640         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
45641         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
45642         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
45643         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
45644         * sysdeps/generic/tls.h: Update description.
45645
45646 2014-05-27  Will Newton  <will.newton@linaro.org>
45647
45648         [BZ #16990]
45649         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
45650         and restore r2 rather than just restoring.
45651
45652 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
45653
45654         [BZ #16724]
45655         * libio/tst-ftell-append.c: New test case.
45656         * libio/Makefile (tests): Add test case.
45657         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
45658         append mode.
45659         * libio/wfileops.c (do_ftell_wide): Likewise.
45660
45661 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45662
45663         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45664
45665         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
45666         ...
45667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
45668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
45669         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
45670         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
45671         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
45672         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
45673         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
45674         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
45675         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
45676         Moved ...
45677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
45678         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
45679         Moved ...
45680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
45681         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
45682         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
45683         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
45684         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
45685         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
45686         ...
45687         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
45688         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
45689         Moved ...
45690         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
45691         here.
45692         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
45693         ...
45694         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
45695         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
45696         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
45697
45698         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
45699         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
45700         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
45701         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
45702
45703         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
45704         merge into ...
45705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
45706         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
45707         ...
45708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
45709         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
45710         ...
45711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
45712         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
45713         Moved ...
45714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
45715         here.
45716         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
45717         Moved ...
45718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
45719         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
45720         Moved ...
45721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
45722
45723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
45724         conditional [RESET_PID].
45725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
45726         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
45727         removed.
45728         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
45729         removed.
45730
45731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
45732         <tcb-offsets.h>.
45733         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
45734         (__libc_vfork): New strong alias.
45735         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
45736         removed.
45737         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
45738         Removed.
45739
45740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
45741         <tcb-offsets.h>.
45742         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
45743         (__libc_vfork): New strong alias.
45744         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
45745         removed.
45746         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
45747         removed.
45748
45749 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
45750
45751         * malloc/malloc.c (mi_arena): New function.
45752         (malloc_info): Remove nested function mi_arena. Call non-nosted
45753         function mi_arena.
45754
45755 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45756
45757         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
45758         by insrwi.
45759         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
45760         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
45761         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
45762         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
45763         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
45764         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
45765         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
45766
45767 2014-05-26  Andreas Schwab  <schwab@suse.de>
45768
45769         [BZ #16984]
45770         * locale/programs/repertoire.c (repertoire_read): Add slash
45771         between I18NPATH element and file name.
45772         * locale/programs/locfile.c (locfile_read): Likewise.
45773
45774 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
45775
45776         * nptl/pthread_mutexattr_settype.c
45777         (__pthread_mutexattr_settype):
45778         Disable lock elision for PTHREAD_MUTEX_NORMAL.
45779
45780 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
45781
45782         * nptl/tst-mutex5 (do_test):
45783         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
45784
45785 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45786
45787         * benchtests/README: Document 'init' directive.
45788         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
45789         BENCH_INIT.
45790         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
45791         (parse_file): Recognize 'init' directive.
45792
45793 2014-05-26  Kyle McMartin  <kyle@redhat.com>
45794
45795         [BZ #16796]
45796         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
45797         alignment of struct pthread.
45798
45799 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45800
45801         [BZ #16878]
45802         * nscd/netgroupcache.c (addgetnetgrentX): Look for
45803         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
45804         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
45805         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
45806
45807 2014-05-25  Richard Henderson  <rth@twiddle.net>
45808
45809         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45810         (SINGLE_THREAD_P_PIC): Remove.
45811         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
45812         (SINGLE_THREAD_P_PIC): Remove.
45813
45814         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
45815         branch to syscall error ...
45816         (PSEUDO): ... here.
45817         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
45818         from __local_syscall_error to .Lsyscall_error.
45819         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
45820         (SYSCALL_ERROR): Update label name.
45821
45822         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45823         Do not use DOARGS/UNDOARGS.
45824         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
45825         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
45826         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
45827         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
45828         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
45829
45830         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
45831         block comment.
45832
45833         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
45834         define if !NOT_IN_libc.
45835         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
45836         define with non-default symbol versions.
45837
45838 2014-05-23  Richard Henderson  <rth@twiddle.net>
45839
45840         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
45841         (vfork, __vfork): Define via compat_symbol.
45842
45843         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
45844         [!HAVE_IFUNC] (vfork_compat): Remove.
45845         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
45846
45847 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
45848
45849         [BZ #16978]
45850         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
45851         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
45852         variable.
45853
45854 2014-05-23  Richard Henderson  <rth@twiddle.net>
45855
45856         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
45857         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
45858         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
45859         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
45860
45861         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
45862         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
45863         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
45864         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
45865         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
45866         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
45867         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
45868         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
45869         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
45870         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
45871         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
45872         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
45873         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
45874         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
45875         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
45876         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
45877         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
45878         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
45879         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
45880         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
45881         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
45882         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
45883         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
45884         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
45885         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
45886         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
45887         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
45888         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
45889         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
45890         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
45891         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
45892         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
45893         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
45894         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
45895         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
45896         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
45897         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
45898         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
45899         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
45900         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
45901         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
45902         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
45903         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
45904         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
45905         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
45906         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
45907         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
45908         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
45909         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
45910         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
45911         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
45912         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
45913         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
45914         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
45915         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
45916         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
45917
45918         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
45919         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
45920         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
45921         before exiting on error.
45922         (__libc_vfork): New strong alias.
45923         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
45924         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
45925
45926         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
45927         that was previously under [RESET_PID].
45928         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
45929
45930         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
45931
45932 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
45933
45934         [BZ #16977]
45935         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
45936         value when x - 1 is zero.
45937         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
45938         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
45939         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
45940         0.0L for an argument of 1.0L.
45941         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
45942         Likewise.
45943         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
45944         value when x - 1 is zero.
45945         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
45946         * sysdeps/i386/fpu/libm-test-ulps: Update.
45947         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45948
45949 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
45950
45951         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
45952         alphasort and versionsort.
45953
45954 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45955
45956         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
45957         macro.
45958         [copysignf]: Likewise.
45959
45960 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
45961
45962         * crypt/md5-crypt.c: Fix formatting.
45963
45964 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
45965
45966         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
45967         (b64_from_24bit): New function.
45968
45969 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45970
45971         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
45972         libc_hidden_builtin_def to ifunc.
45973         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
45974         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
45975
45976 2014-05-21  Roland McGrath  <roland@hack.frob.com>
45977
45978         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
45979         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
45980
45981 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
45982
45983         * nscd/Depend (linuxthreads): Remove.
45984         (nptl): Add.
45985         * resolv/Depend (linuxthreads): Remove.
45986         * rt/Depend (linuxthreads): Remove.
45987
45988         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
45989         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
45990         $(common-objpfx)elf/.
45991         (link-libc-before-gnulib): Likewise.
45992         (elfobjdir): Remove variable.
45993         * Makefile (install): Use $(elf-objpfx) instead of
45994         $(common-objpfx)elf/.
45995         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
45996         $(elfobjdir)/.
45997         (link-libc-deps): Likewise.
45998         ($(common-objpfx)libc.so): Likewise.
45999         ($(common-objpfx)linkobj/libc.so): Likewise.
46000         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
46001         instead of $(common-objpfx)elf/.
46002         (symbolic-link-list): Likewise.
46003         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
46004         [$(cross-compiling) = no]: Likewise.
46005         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
46006         $(elfobjdir)/.
46007         (static-gnulib-arch): Likewise.
46008         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
46009         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
46010         $(common-objpfx)elf/.
46011
46012 2014-05-21  Richard Henderson  <rth@redhat.com>
46013
46014         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
46015         (SINGLE_THREAD_P): Use the correct width load.  Fold
46016         into the ldr offset.
46017
46018         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
46019         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
46020
46021 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
46022
46023         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
46024         (libgcc_s_resume): Use __attribute_used__.
46025         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
46026         Likewise.
46027
46028 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46029
46030         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
46031         optimization when used with float constants.
46032
46033         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46034
46035 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
46036
46037         [BZ #16915]
46038         * locale/nl_langinfo_l.c: Make direct reference to every
46039         _nl_current_CATEGORY symbol.
46040         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
46041         (tests-static): Add tst-langinfo-static.
46042         (tests-special): Add tst-langinfo-static.out.
46043         ($(objpfx)tst-langinfo.out): Redirect output.
46044         ($(objpfx)tst-langinfo-static.out): New.
46045         * localedata/tst-langinfo.sh: Send output to stdout.
46046         * localedata/tst-langinfo-static.c: New file.
46047
46048         [BZ #16965]
46049         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
46050         when the shift amount is modulo the limb size.
46051
46052 2014-05-20  Richard Henderson  <rth@redhat.com>
46053
46054         [BZ #16967]
46055         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
46056         Change type of sa_flags from unsigned int to int.
46057
46058         [BZ #16966]
46059         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
46060
46061         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
46062
46063 2014-05-20  Will Newton  <will.newton@linaro.org>
46064
46065         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
46066         Test the return value of the system call in the nocancel case.
46067
46068 2014-05-20  Will Newton  <will.newton@linaro.org>
46069             Yvan Roux  <yvan.roux@linaro.org>
46070
46071         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
46072         #include of asm/ptrace.h.
46073         (PTRACE_GET_THREAD_AREA): Remove #undef.
46074         (PTRACE_GETHBPREGS): Likewise.
46075         (PTRACE_SETHBPREGS): Likewise.
46076         (struct user_regs_struct): New structure.
46077         (struct user_fpsimd_struct): New structure.
46078         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
46079         #include of asm/ptrace.h and second #include of sys/user.h.
46080         (PTRACE_GET_THREAD_AREA): Remove #undef.
46081         (PTRACE_GETHBPREGS): Likewise.
46082         (PTRACE_SETHBPREGS): Likewise.
46083         (ELF_NGREG): Use new struct user_regs_struct.
46084         (elf_fpregset_t): Use new struct user_fpsimd_struct.
46085
46086 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46087
46088         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
46089         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
46090
46091 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
46092
46093         [BZ #16958]
46094         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
46095         membar to avoid block loads/stores to overlap previous stores.
46096
46097 2014-05-17  Richard Henderson  <rth@redhat.com>
46098
46099         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
46100         Create the __##syscall_name##_nocancel entry point.
46101         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
46102         Remove; let the sysdep-cancel.h code create it.
46103
46104 2014-05-17  David S. Miller  <davem@davemloft.net>
46105
46106         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
46107         Protect with __USE_GNU.
46108         (TIOCSET_TEMPT): Likewise.
46109         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
46110         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
46111         these are already provided in bits/ioctl-types.h
46112
46113 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46114
46115         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
46116         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
46117
46118         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
46119         Use wait4 regardless of [__NR_waitpid].
46120
46121 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
46122
46123         PR libgcc/60166
46124         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
46125         (_FP_NANSIGN_Q): Set the quiet bit.
46126
46127 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
46128
46129         * benchtests/Makefile
46130         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
46131         not $(common-objpfx)math/libm.so.
46132         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
46133         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
46134         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
46135         $(common-objpfx)dlfcn/libdl.so.
46136         ($(objpfx)tst-audit8): Depend on $(libm), not
46137         $(common-objpfx)math/libm.so.
46138         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
46139         not $(common-objpfx)dlfcn/libdl.so.
46140         * math/Makefile
46141         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
46142         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
46143         [$(build-shared) = yes].
46144         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
46145         $(common-objpfx)nptl/libpthread.so.
46146         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
46147         $(common-objpfx)math/libm.so$(libm.so-version) or
46148         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
46149         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
46150         $(common-objpfx)dlfcn/libdl.so.
46151         * setjmp/Makefile (link-libm): Remove variable.
46152         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
46153         * stdio-common/Makefile (link-libm): Remove variable.
46154         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
46155         * stdlib/Makefile (link-libm): Remove variable.
46156         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
46157         ($(objpfx)tst-strtod-round): Likewise.
46158         ($(objpfx)tst-tininess): Likewise.
46159         ($(objpfx)tst-strtod-underflow): Likewise.
46160         ($(objpfx)tst-strtod6): Likewise.
46161         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
46162         $(libdl), not $(common-objpfx)nptl/libpthread.so and
46163         $(common-objpfx)dlfcn/libdl.so.
46164
46165 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46166
46167         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
46168         BSD terminal modes definitions.
46169
46170 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46171
46172         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
46173         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
46174
46175         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
46176         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
46177         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
46178         Don't do #include_next.
46179         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
46180         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
46181         Don't do #include_next.
46182         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
46183         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
46184         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
46185         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
46186
46187 2014-05-16  Allan McRae  <allan@archlinux.org>
46188
46189         * po/sv.po: Update Swedish translation from translation project.
46190
46191         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
46192         in sed expression.
46193
46194 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
46195
46196         [BZ #16917]
46197         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
46198         errno if the TIOCGPTN ioctl fails with an error different than
46199         EINVAL.
46200         * login/tst-ptsname.c: New file.
46201         * login/Makefile (tests): Add tst-ptsname.
46202
46203         [BZ #16943]
46204         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
46205         and prlimit64.
46206
46207 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
46208
46209         [BZ #16849]
46210         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
46211         herrno to return EAI_AGAIN.
46212
46213 2014-05-14  Roland McGrath  <roland@hack.frob.com>
46214
46215         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
46216         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
46217         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
46218         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
46219         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
46220         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
46221         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
46222         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
46223         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
46224         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
46225         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
46226         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
46227         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
46228         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
46229         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
46230         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
46231         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
46232         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
46233         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
46234         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
46235         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
46236         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
46237         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
46238         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
46239         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
46240         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
46241         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
46242         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
46243         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
46244         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
46245         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
46246         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
46247         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
46248         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
46249         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
46250         Moved ...
46251         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
46252         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
46253         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
46254         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
46255         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
46256         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
46257         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
46258         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
46259         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
46260         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
46261         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
46262         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
46263         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
46264         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
46265         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
46266         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
46267         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
46268         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
46269         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
46270         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
46271         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
46272         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
46273         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
46274         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
46275         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
46276         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
46277         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
46278         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
46279         Moved ...
46280         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
46281         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
46282         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
46283         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
46284         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
46285         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
46286         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
46287         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
46288         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
46289         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
46290         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
46291         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
46292         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
46293         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
46294         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
46295         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
46296         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
46297         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
46298         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
46299         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
46300         Moved ...
46301         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
46302         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
46303         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
46304
46305         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
46306         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
46307         (libpthread-sysdep_routines): Add elision-related stuff here instead.
46308         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
46309         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
46310         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
46311         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
46312         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
46313         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
46314         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
46315         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
46316         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
46317         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
46318         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
46319         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
46320         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
46321         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
46322         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
46323         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
46324         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
46325         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
46326         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
46327         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
46328         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
46329         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
46330         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
46331         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
46332         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
46333         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
46334         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
46335         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
46336
46337         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
46338         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
46339
46340         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
46341         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
46342         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
46343         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
46344         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
46345         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
46346         Moved ...
46347         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
46348         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
46349         Moved ...
46350         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
46351         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
46352         Moved ...
46353         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
46354         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
46355         Moved ...
46356         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
46357         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
46358         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
46359         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
46360         Moved ...
46361         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
46362         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
46363         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
46364         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
46365         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
46366         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
46367         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
46368         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
46369         Moved ...
46370         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
46371         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46372         Moved ...
46373         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46374         ... here.
46375         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
46376         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
46377         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
46378         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
46379         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46380         Moved ...
46381         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46382         ... here.
46383         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
46384         Moved ...
46385         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
46386         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
46387         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
46388         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
46389         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
46390         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
46391         Moved ...
46392         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
46393         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
46394         Moved ...
46395         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
46396         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
46397         Moved ...
46398         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
46399         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
46400         Moved ...
46401         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
46402         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
46403         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
46404         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
46405         Moved ...
46406         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
46407         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
46408         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
46409         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
46410         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
46411         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
46412         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
46413         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
46414         Moved ...
46415         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
46416         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46417         Moved ...
46418         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46419         ... here.
46420         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
46421         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
46422         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
46423         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
46424         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46425         Moved ...
46426         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46427         ... here.
46428         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
46429         Moved ...
46430         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
46431         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
46432         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
46433         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
46434         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
46435         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
46436         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
46437         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
46438         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
46439         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
46440         Moved ...
46441         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
46442         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
46443         Moved ...
46444         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
46445         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
46446         Moved ...
46447         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
46448         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
46449         Moved ...
46450         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
46451         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
46452         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
46453         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
46454         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
46455         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
46456         Moved ...
46457         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
46458         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
46459         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
46460         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
46461         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
46462         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
46463         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
46464         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
46465         Moved ...
46466         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
46467         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
46468         Moved ...
46469         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
46470         ... here.
46471         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
46472         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
46473         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
46474         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
46475         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
46476         Moved ...
46477         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
46478         ... here.
46479         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
46480         Moved ...
46481         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
46482         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
46483         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
46484         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
46485         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
46486         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
46487         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
46488         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
46489         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
46490         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
46491         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
46492
46493         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
46494         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
46495
46496         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
46497         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
46498
46499         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
46500         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
46501         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
46502         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
46503         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
46504         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
46505         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
46506         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
46507         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
46508         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
46509         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
46510         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
46511         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
46512         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
46513         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
46514         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
46515         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
46516         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
46517         Moved ...
46518         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
46519         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
46520         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
46521         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
46522         Moved ...
46523         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
46524         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
46525         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
46526         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
46527         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
46528         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
46529         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
46530         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
46531         Moved ...
46532         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
46533         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
46534         Moved ...
46535         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
46536         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
46537         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
46538         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
46539         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
46540         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
46541         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
46542         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
46543         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
46544         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
46545         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
46546         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
46547         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
46548         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
46549         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
46550         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
46551         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
46552
46553         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
46554         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
46555         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
46556         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
46557         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
46558
46559         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
46560         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
46561         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
46562         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
46563         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
46564         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
46565         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
46566         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
46567         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
46568         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
46569
46570         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
46571         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
46572
46573         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
46574         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
46575         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
46576         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
46577         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
46578         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
46579         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
46580         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
46581         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
46582         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
46583         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
46584         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
46585         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
46586         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
46587         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
46588         Update #include.
46589         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
46590         Likewise.
46591         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
46592         Likewise.
46593         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
46594         Likewise.
46595         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
46596         Likewise.
46597         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
46598         Likewise.
46599         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
46600         Likewise.
46601         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
46602         Likewise.
46603         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
46604         Likewise.
46605         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
46606         Likewise.
46607         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
46608         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
46609         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
46610         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
46611         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
46612         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
46613         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
46614         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
46615         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
46616         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
46617         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
46618         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
46619         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
46620         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
46621         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
46622
46623         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
46624         that was previously under [RESET_PID].
46625         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
46626         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
46627         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
46628
46629         * sysdeps/i386/nptl/Implies: New file.
46630         * sysdeps/x86_64/nptl/Implies: New file.
46631         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
46632         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
46633         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
46634         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
46635
46636         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
46637         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46638         (__libc_vfork): New strong alias.
46639         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
46640         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
46641
46642         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
46643         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46644         (__libc_vfork): New strong alias.
46645         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
46646         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
46647
46648         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
46649         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46650         (__libc_vfork): New strong alias.
46651         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
46652         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
46653         * nptl/pt-vfork.c: New file.
46654         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
46655         (libpthread: GLIBC_2.20): New version set (empty).
46656
46657 2014-05-14  Will Newton  <will.newton@linaro.org>
46658
46659         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
46660         rather than #if.
46661
46662 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
46663
46664         [BZ #16564]
46665         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
46666         arguments with exponent 65 or above.
46667         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
46668         arguments 0x1p113L or above.
46669         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
46670         to arguments 0x1p107L or above.
46671         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
46672         positive arguments with exponent 65 or above.
46673         * math/auto-libm-test-in: Add more tests of log1p.
46674         * math/auto-libm-test-out: Regenerated.
46675
46676         [BZ #16928]
46677         * math/s_cacos.c (__cacos): Ensure zero real part of result from
46678         non-finite arguments is +0.
46679         * math/s_cacosf.c (__cacosf): Likewise.
46680         * math/s_cacosl.c (__cacosl): Likewise.
46681         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
46682         * sysdeps/i386/fpu/libm-test-ulps: Update.
46683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46684
46685         [BZ #16927]
46686         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
46687         value.
46688         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
46689         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
46690         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
46691         for explicit high bit of mantissa when testing for argument equal
46692         to 1.
46693         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
46694         * sysdeps/i386/fpu/libm-test-ulps: Update.
46695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46696
46697         [BZ #16516]
46698         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
46699         (__erf): Scale by 16 instead of 8 in potentially underflowing
46700         case.  Ensure exception if result actually underflows.
46701         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
46702         (__erff): Scale by 16 instead of 8 in potentially underflowing
46703         case.  Ensure exception if result actually underflows.
46704         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
46705         (efx8): Remove variable.
46706         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46707         case.  Ensure exception if result actually underflows.
46708         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
46709         (efx8): Remove variable.
46710         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46711         case.  Ensure exception if result actually underflows.
46712         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
46713         (efx8): Remove variable.
46714         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46715         case.  Ensure exception if result actually underflows.
46716         * math/auto-libm-test-in: Add more tests of erf.
46717         * math/auto-libm-test-out: Regenerated.
46718
46719 2014-05-14  Andreas Schwab  <schwab@suse.de>
46720
46721         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
46722         Remove code conditionalized on USE___THREAD.
46723
46724         * config.h.in (HAVE_PT_CHOWN): Define as 0.
46725         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
46726         not definedness.
46727
46728 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
46729
46730         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
46731         Define unconditionally.
46732         (__ASSUME_O_CLOEXEC): Likewise.
46733         (__ASSUME_SOCK_CLOEXEC): Likewise.
46734         (__ASSUME_IN_NONBLOCK): Likewise.
46735         (__ASSUME_PIPE2): Likewise.
46736         (__ASSUME_EVENTFD2): Likewise.
46737         (__ASSUME_SIGNALFD4): Likewise.
46738         (__ASSUME_DUP3): Likewise.
46739         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
46740         (__ASSUME_DUP3): Do not define.
46741         (__ASSUME_EVENTFD2): Likewise.
46742         (__ASSUME_IN_NONBLOCK): Likewise.
46743         (__ASSUME_O_CLOEXEC): Likewise.
46744         (__ASSUME_PIPE2): Likewise.
46745         (__ASSUME_SIGNALFD4): Likewise.
46746         (__ASSUME_SOCK_CLOEXEC): Likewise.
46747         (__ASSUME_UTIMES): Undefine.
46748         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
46749         (__ASSUME_UTIMES): Do not define.
46750         (__ASSUME_O_CLOEXEC): Likewise.
46751         (__ASSUME_SOCK_CLOEXEC): Likewise.
46752         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
46753         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
46754         0x020621].
46755         (__ASSUME_PIPE2): Likewise.
46756         (__ASSUME_EVENTFD2): Likewise.
46757         (__ASSUME_SIGNALFD4): Likewise.
46758         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
46759         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
46760         Do not define.
46761         (__ASSUME_EVENTFD2): Likewise.
46762         (__ASSUME_SIGNALFD4): Likewise.
46763         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
46764         (__ASSUME_32BITUIDS): Likewise.
46765         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
46766         (__ASSUME_IPC64): Likewise.
46767         (__ASSUME_ST_INO_64_BIT): Likewise.
46768         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
46769         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
46770         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
46771         (__ASSUME_UTIMES): Do not define.
46772         (__ASSUME_PSELECT): Likewise.
46773         (__ASSUME_PPOLL): Likewise.
46774         (__ASSUME_O_CLOEXEC): Likewise.
46775         (__ASSUME_SOCK_CLOEXEC): Likewise.
46776         (__ASSUME_IN_NONBLOCK): Likewise.
46777         (__ASSUME_PIPE2): Likewise.
46778         (__ASSUME_EVENTFD2): Likewise.
46779         (__ASSUME_SIGNALFD4): Likewise.
46780         (__ASSUME_DUP3): Likewise.
46781         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
46782         (__ASSUME_UTIMES): Likewise.
46783         (__ASSUME_O_CLOEXEC): Likewise.
46784         (__ASSUME_SOCK_CLOEXEC): Likewise.
46785         (__ASSUME_IN_NONBLOCK): Likewise.
46786         (__ASSUME_PIPE2): Likewise.
46787         (__ASSUME_EVENTFD2): Likewise.
46788         (__ASSUME_SIGNALFD4): Likewise.
46789         (__ASSUME_DUP3): Likewise.
46790         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
46791         (__ASSUME_UTIMES): Likewise.
46792         (__ASSUME_O_CLOEXEC): Likewise.
46793         (__ASSUME_SOCK_CLOEXEC): Likewise.
46794         (__ASSUME_IN_NONBLOCK): Likewise.
46795         (__ASSUME_PIPE2): Likewise.
46796         (__ASSUME_EVENTFD2): Likewise.
46797         (__ASSUME_SIGNALFD4): Likewise.
46798         (__ASSUME_DUP3): Likewise.
46799         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
46800         Likewise.
46801         (__ASSUME_UTIMES): Likewise.
46802         (__ASSUME_EVENTFD2): Likewise.
46803         (__ASSUME_SIGNALFD4): Likewise.
46804         * sysdeps/unix/sysv/linux/tile/kernel-features.h
46805         (__ASSUME_O_CLOEXEC): Likewise.
46806         (__ASSUME_SOCK_CLOEXEC): Likewise.
46807         (__ASSUME_IN_NONBLOCK): Likewise.
46808         (__ASSUME_PIPE2): Likewise.
46809         (__ASSUME_EVENTFD2): Likewise.
46810         (__ASSUME_SIGNALFD4): Likewise.
46811         (__ASSUME_DUP3): Likewise.
46812         (__ASSUME_UTIMES): Undefine.
46813
46814         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
46815         feclearexcept.  Remove symbol versioning code.
46816         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
46817         symbol versioning code.
46818         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
46819         symbol versioning code.
46820         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
46821         feupdateenv.  Remove symbol versioning code.
46822         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
46823         fegetexceptflag.  Remove symbol versioning code.
46824         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
46825         fesetexceptflag.  Remove symbol versioning code.
46826         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
46827         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
46828         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
46829         (__posix_fadvise64_l32): Remove prototype.
46830         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
46831         code.
46832
46833 2014-05-13  Roland McGrath  <roland@hack.frob.com>
46834
46835         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
46836         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
46837         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
46838         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
46839
46840 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
46841
46842         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
46843         current working directory
46844
46845 2014-05-13  Roland McGrath  <roland@hack.frob.com>
46846
46847         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
46848         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
46849         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
46850         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
46851         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
46852         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
46853         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
46854         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
46855         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
46856         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
46857         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
46858         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
46859         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
46860         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
46861         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
46862         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
46863         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
46864         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
46865         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
46866         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
46867         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
46868         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
46869         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
46870         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
46871         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
46872         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
46873         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
46874         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
46875         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
46876         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
46877         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
46878         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
46879         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
46880         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
46881         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
46882         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
46883         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
46884         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
46885         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
46886         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
46887         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
46888         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
46889
46890         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
46891         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
46892
46893         * sysdeps/unix/sysv/linux/arm/Makefile
46894         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
46895         Add rt-aeabi_unwind_cpp_pr1.
46896         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
46897         Add nptl-aeabi_unwind_cpp_pr1.
46898         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
46899         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
46900         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
46901         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
46902         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
46903         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
46904
46905         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
46906         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
46907         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
46908         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
46909
46910         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
46911         Deconditionalize the code that was previously under [RESET_PID].
46912         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
46913
46914         * sysdeps/generic/exit-thread.h: New file.
46915         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
46916         * include/unistd.h (__exit_thread): Remove declaration.
46917         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
46918         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
46919         * csu/libc-start.c: Include <exit-thread.h>.
46920         (LIBC_START_MAIN): Pass no argument to __exit_thread.
46921         * nptl/pthread_create.c: Include <exit-thread.h>.
46922         (start_thread): Call __exit_thread in place of __exit_thread_inline.
46923         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
46924         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
46925         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
46926         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
46927         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
46928         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
46929         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
46930         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
46931         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
46932         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
46933         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
46934         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
46935         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
46936         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
46937         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
46938         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
46939
46940 2014-05-13  Andreas Schwab  <schwab@suse.de>
46941
46942         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
46943
46944 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
46945
46946         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
46947         (__ASSUME_UTIMES): Do not condition on kernel version.
46948         (__ASSUME_PSELECT): Define unconditionally.
46949         (__ASSUME_PPOLL): Likewise.
46950         (__ASSUME_ATFCTS): Likewise.
46951         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
46952         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
46953         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
46954         (__ASSUME_UTIMENSAT): Define unconditionally.
46955         (__ASSUME_PRIVATE_FUTEX): Likewise.
46956         (__ASSUME_FALLOCATE): Likewise.
46957         (__ASSUME_O_CLOEXEC): Likewise.
46958         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
46959         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
46960         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
46961         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
46962         (__ASSUME_IN_NONBLOCK): Likewise.
46963         (__ASSUME_PIPE2): Likewise.
46964         (__ASSUME_EVENTFD2): Likewise.
46965         (__ASSUME_SIGNALFD4): Likewise.
46966         (__ASSUME_DUP3): Likewise.
46967         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
46968         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
46969         (__ASSUME_AT_RANDOM): Likewise.
46970         (__ASSUME_PREADV): Likewise.
46971         (__ASSUME_PWRITEV): Likewise.
46972         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
46973         (__ASSUME_F_GETOWN_EX): Define unconditionally.
46974         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
46975         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
46976         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
46977         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
46978         (__ASSUME_O_CLOEXEC): Define unconditionally.
46979         (__ASSUME_PSELECT): Do not undefine conditionally.
46980         (__ASSUME_PPOLL): Likewise.
46981         (__ASSUME_ATFCTS): Likewise.
46982         (__ASSUME_SET_ROBUST_LIST): Likewise.
46983         (__ASSUME_UTIMENSAT): Likewise.
46984         (__ASSUME_FDATASYNC): Define unconditionally.
46985         * sysdeps/unix/sysv/linux/arm/kernel-features.h
46986         (__ASSUME_SIGFRAME_V2): Likewise.
46987         )__ASSUME_EVENTFD2): Likewise.
46988         (__ASSUME_SIGNALFD4): Likewise.
46989         (__ASSUME_PSELECT): Do not undefine conditionally.
46990         (__ASSUME_PPOLL): Likewise.
46991         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
46992         (__ASSUME_PSELECT): Define unconditionally.
46993         (__ASSUME_PPOLL): Likewise.
46994         (__ASSUME_O_CLOEXEC): Likewise.
46995         (__ASSUME_SOCK_CLOEXEC): Likewise.
46996         (__ASSUME_IN_NONBLOCK): Likewise.
46997         (__ASSUME_PIPE2): Likewise.
46998         (__ASSUME_EVENTFD2): Likewise.
46999         (__ASSUME_SIGNALFD4): Likewise.
47000         (__ASSUME_DUP3): Likewise.
47001         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
47002         (__ASSUME_O_CLOEXEC): Likewise.
47003         (__ASSUME_SOCK_CLOEXEC): Likewise.
47004         (__ASSUME_IN_NONBLOCK): Likewise.
47005         (__ASSUME_PIPE2): Likewise.
47006         (__ASSUME_EVENTFD2): Likewise.
47007         (__ASSUME_SIGNALFD4): Likewise.
47008         (__ASSUME_DUP3): Likewise.
47009         * sysdeps/unix/sysv/linux/mips/kernel-features.h
47010         (__ASSUME_EVENTFD2): Likewise.
47011         (__ASSUME_SIGNALFD4): Likewise.
47012         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
47013
47014 2014-05-12  Andreas Schwab  <schwab@suse.de>
47015
47016         [BZ #16932]
47017         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
47018         (_nss_nis_gethostbyname4_r): Return error if item length is larger
47019         than maximum RPC packet size.
47020         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
47021         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
47022         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
47023         (_nss_nis_getservbyport_r): Likewise.
47024
47025 2014-05-12  Will Newton  <will.newton@linaro.org>
47026
47027         * malloc/Makefile (tests): Add tst-mallopt.
47028         * malloc/tst-mallopt.c: New file.
47029
47030 2014-05-09  Roland McGrath  <roland@hack.frob.com>
47031
47032         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
47033         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
47034
47035 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47036
47037         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
47038         (tst-tlsmod6.so): Likewise.
47039
47040 2014-05-09  Roland McGrath  <roland@hack.frob.com>
47041
47042         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
47043
47044 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
47045
47046         [BZ #16064]
47047         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
47048         and <dl-procinfo.h>.
47049         (__fegetenv): Save SSE state in envp->__eip if supported.
47050         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
47051         envp->__eip if supported.
47052         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
47053         and <dl-procinfo.h>.
47054         (__fesetenv): Always set __eip, __cs_selector, __opcode,
47055         __data_offset and __data_selector in environment to 0.  Set SSE
47056         state if supported.
47057         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
47058         test-fenv-sse.
47059         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
47060         -mfpmath=sse.
47061         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
47062
47063 2014-05-09  Will Newton  <will.newton@linaro.org>
47064
47065         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
47066         and libc_relro_required for ARM.
47067         * sysdeps/arm/preconfigure: Regenerate.
47068
47069 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
47070             Stefan Liebler  <stli@linux.vnet.ibm.com>
47071
47072         * config.make.in (enable-lock-elision): New Makefile variable.
47073         * configure.ac: Likewise.
47074         * configure: Regenerate.
47075         * sysdeps/s390/configure.ac:
47076         Add check for gcc transactions support.
47077         * sysdeps/s390/configure: Regenerate.
47078         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
47079         Build elision files if enabled.
47080         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
47081         Add lock elision support for s390.
47082         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
47083         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
47084         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
47085         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
47086         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
47087         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
47088         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
47089         Likewise.
47090         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
47091         Likewise.
47092         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
47093         Likewise.
47094         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
47095         Likewise.
47096         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
47097         (__lll_timedlock_elision, __lll_lock_elision)
47098         (__lll_unlock_elision, __lll_trylock_elision)
47099         (lll_timedlock_elision, lll_lock_elision)
47100         (lll_unlock_elision, lll_trylock_elision): Add.
47101         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47102         (pthread_mutex_t): Add lock elision support for s390.
47103
47104 2014-05-14  Wilco  <wdijkstr@arm.com>
47105
47106         * sysdeps/arm/fclrexcpt.c: Cleanup.
47107         * sysdeps/arm/fedisblxcpt.c: Cleanup.
47108         * sysdeps/arm/feenablxcpt.c: Cleanup.
47109         * sysdeps/arm/fegetenv.c: Cleanup.
47110         * sysdeps/arm/fegetexcept.c: Cleanup.
47111         * sysdeps/arm/fegetround.c: Cleanup.
47112         * sysdeps/arm/feholdexcpt.c: Cleanup.
47113         * sysdeps/arm/fesetenv.c: Cleanup.
47114         * sysdeps/arm/fesetround.c: Cleanup.
47115         * sysdeps/arm/feupdateenv.c: Cleanup.
47116         * sysdeps/arm/fgetexcptflg.c: Cleanup.
47117         * sysdeps/arm/fraiseexcpt.c: Cleanup.
47118         * sysdeps/arm/fsetexcptflg.c: Cleanup.
47119         * sysdeps/arm/ftestexcept.c: Cleanup.
47120         * sysdeps/arm/get-rounding-mode.h: Cleanup.
47121         * sysdeps/arm/setfpucw.c: Cleanup.
47122
47123 2014-05-09  Will Newton  <will.newton@linaro.org>
47124
47125         * sysdeps/arm/armv7/strcmp.S: New file.
47126         * NEWS: Mention addition of ARMv7 optimized strcmp.
47127
47128 2014-05-08  Roland McGrath  <roland@hack.frob.com>
47129
47130         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
47131         look for %.ac rather than %.in.
47132
47133         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
47134         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
47135         * sysdeps/mach/hurd/configure: Regenerated.
47136         * sysdeps/unix/sysv/linux/configure: Regenerated.
47137
47138         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
47139
47140 2014-05-07  Steve Ellcey  <sellcey@mips.com>
47141
47142         [BZ #16922]
47143         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
47144         (LONG_SUB): Ditto.
47145         (PTR_SUB): Ditto.
47146
47147 2014-05-07  Andreas Schwab  <schwab@suse.de>
47148
47149         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
47150         when skipping over non-matching result from nscd.
47151
47152 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
47153
47154         [BZ #16876]
47155         * nptl/sockperf.c (client): Check socket return value.
47156
47157         [BZ #16877]
47158         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
47159         nscd security class.
47160
47161 2014-05-06  Roland McGrath  <roland@hack.frob.com>
47162
47163         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
47164         * sysdeps/arm/unwind.h: ... here.
47165
47166 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
47167
47168         [BZ #16916]
47169         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
47170         Define.
47171
47172 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
47173
47174         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
47175         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
47176         multiarch strncpy for PPC64.
47177         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
47178         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
47179         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
47180         multiarch optimizations.
47181         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
47182         (__libc_ifunc_impl_list): Likewise.
47183         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
47184         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
47185         multiarch stpncpy for PPC64.
47186         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
47187         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
47188
47189 2014-05-06  Andreas Schwab  <schwab@suse.de>
47190
47191         [BZ #16912]
47192         * gmon/mcount.c (_MCOUNT_DECL): Use
47193         atomic_compare_and_exchange_bool_acq instead of
47194         catomic_compare_and_exchange_bool_acq.
47195
47196 2014-05-05  Roland McGrath  <roland@hack.frob.com>
47197
47198         * elf/Makefile (others, install-bin): Remove pldd.
47199         (pldd-modules): Variable removed.
47200         ($(objpfx)pldd): Target removed.
47201         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
47202         (others, install-bin): Append pldd here.
47203         ($(objpfx)pldd): New target.
47204
47205         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
47206         to 0, so the first #if test emitted later doesn't see it undefined.
47207         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
47208         * sysdeps/gnu/errlist.c: Regenerated.
47209
47210 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47211
47212         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
47213         [libc_hidden_builtin_def]: Define to empty value.
47214         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
47215         [libc_hidden_builtin_def]: Likewise.
47216         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
47217         [libc_hidden_builtin_def]: Likewise.
47218         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
47219         [libc_hidden_builtin_def]: Likewise.
47220         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
47221         __redirect_memcpy and define ifunc as default hidden symbol.
47222         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
47223         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
47224
47225 2014-05-04  Adam Conrad  <adconrad@0c3.net>
47226
47227         * locale/iso-4217.def: Reintroduce XDR currency.
47228
47229 2014-05-04  Allan McRae  <allan@archlinux.org>
47230
47231         * po/eo.po: Update Esperanto translation from translation project.
47232
47233 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
47234
47235         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
47236         and FEATURE_INDEX_MAX to 1.
47237         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
47238
47239 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47240
47241         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
47242         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
47243         * iconvdata/big5.c (ONE_DIRECTION): Define.
47244         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
47245         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
47246         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
47247         * iconvdata/cp932.c (ONE_DIRECTION): Define.
47248         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
47249         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
47250         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
47251         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
47252         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
47253         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
47254         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
47255         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
47256         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
47257         * iconvdata/gbk.c (ONE_DIRECTION): Define.
47258         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
47259         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
47260         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
47261         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
47262         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
47263         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
47264         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
47265         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
47266         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
47267         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
47268         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
47269         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
47270         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
47271         * iconvdata/iso646.c (ONE_DIRECTION): Define.
47272         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
47273         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
47274         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
47275         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
47276         * iconvdata/johab.c (ONE_DIRECTION): Define.
47277         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
47278         * iconvdata/sjis.c (ONE_DIRECTION): Define.
47279         * iconvdata/t.61.c (ONE_DIRECTION): Define.
47280         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
47281         * iconvdata/tscii.c (ONE_DIRECTION): Define.
47282         * iconvdata/uhc.c (ONE_DIRECTION): Define.
47283         * iconvdata/unicode.c (ONE_DIRECTION): Define.
47284         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
47285         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
47286         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
47287
47288 2014-05-01  Roland McGrath  <roland@hack.frob.com>
47289
47290         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
47291         (_IO_JUMPS_OFFSET): Define to 0.
47292
47293         * nptl/sysdeps/pthread/bits/libc-lock.h
47294         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
47295         (__libc_lock_define_initialized_recursive): Always define using
47296         initializer.  Modern compilers treat uninitialized (implicit zero) and
47297         explicit zero initializers the same (i.e. put the datum in bss).
47298
47299 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47300
47301         * nscd/nscd-client.h: Include <string.h>.
47302
47303 2014-05-01  David S. Miller  <davem@davemloft.net>
47304
47305         [BZ #16885]
47306         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
47307         multiple zero bytes exist at the end of a string.
47308         Reported by Aurelien Jarno <aurelien@aurel32.net>
47309
47310         * string/test-strcmp.c (check): Add explicit test for situations where
47311         there are multiple zero bytes after the first.
47312
47313 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47314
47315         [BZ #16890]
47316         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
47317         when compiling wprintf.
47318         * stdio-common/tstdiomisc.c (t3): New function.
47319         (main): Call it.
47320
47321 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47322
47323         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
47324         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
47325         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
47326         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
47327
47328 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47329
47330         * stdlib/longlong.h: Updated from GCC.
47331
47332 2014-05-01  Will Newton  <will.newton@linaro.org>
47333             Bernard Ogden  <bernie.ogden@linaro.org>
47334
47335         * NEWS: Update fixed bug list.
47336
47337         [BZ #15119]
47338         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
47339
47340 2014-04-30  David S. Miller  <davem@davemloft.net>
47341
47342         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
47343         (libc_feholdexcept_setround_sparc_ctx): New function.
47344         (libc_fesetenv_sparc_ctx): Likewise.
47345         (libc_feupdateenv_sparc_ctx): Likewise.
47346         (libc_feholdsetround_sparc_ctx): Likewise.
47347         (libc_feholdexcept_setround_ctx): Define.
47348         (libc_feholdexcept_setroundf_ctx): Likewise.
47349         (libc_feholdexcept_setroundl_ctx): Likewise.
47350         (libc_fesetenv_ctx): Likewise.
47351         (libc_fesetenvf_ctx): Likewise.
47352         (libc_fesetenvl_ctx): Likewise.
47353         (libc_feupdateenv_ctx): Likewise.
47354         (libc_feupdateenvf_ctx): Likewise.
47355         (libc_feupdateenvl_ctx): Likewise.
47356         (libc_feresetround_ctx): Likewise.
47357         (libc_feresetroundf_ctx): Likewise.
47358         (libc_feresetroundl_ctx): Likewise.
47359         (libc_feholdsetround_ctx): Likewise.
47360         (libc_feholdsetroundf_ctx): Likewise.
47361         (libc_feholdsetroundl_ctx): Likewise.
47362
47363         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47364         with __USE_GNU instead of XOPEN cpp guards.
47365
47366         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
47367         0.
47368
47369         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47370         with XOPEN cpp guards.
47371
47372 2014-04-30  Julian Brown  <julian@codesourcery.com>
47373
47374         [BZ #16888]
47375         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
47376         handling.
47377
47378 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
47379
47380         [BZ #9894]
47381         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
47382         Change to 2.6.32.
47383         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
47384         * sysdeps/unix/sysv/linux/configure: Regenerated.
47385         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
47386         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
47387         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
47388         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
47389         * README: Update reference to required Linux kernel version.
47390         * manual/install.texi (Linux): Update reference to required Linux
47391         kernel headers version.
47392         * INSTALL: Regenerated.
47393
47394         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
47395         header inclusion.
47396         [POSIX] (limits.h): Likewise.
47397         [POSIX] (math.h): Likewise.
47398         [POSIX] (sys/wait.h): Likewise.
47399         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
47400         function.
47401         [POSIX] (stddef.h): Do not allow header inclusion.
47402
47403 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47404
47405         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
47406
47407 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
47408
47409         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
47410         Return immediately after lll_futex_wake.
47411
47412 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47413
47414         [BZ #16791]
47415         * nscd/nscd-client.h (datahead_init_common): Initialize entire
47416         structure.
47417         (datahead_init_pos): Call datahead_init_common early.
47418         (datahead_init_neg): Likewise.
47419
47420         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
47421         datahead_init_neg): New functions.
47422         * nscd/aicache.c (addhstaiX): Use them.
47423         * nscd/grpcache.c (cache_addgr): Likewise.
47424         * nscd/hstcache.c (cache_addhst): Likewise.
47425         * nscd/initgrcache.c (addinitgroupsX): Likewise.
47426         * nscd/netgroupcache.c (do_notfound): Likewise.
47427         (addgetnetgrentX): Likewise.
47428         (addinnetgrX): Likewise.
47429         * nscd/pwdcache.c (cache_addpw): Likewise.
47430         * nscd/servicescache.c (cache_addserv): Likewise.
47431
47432 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47433             Atsushi Onoe  <atsushi@onoe.org>
47434
47435         [BZ #14308]
47436         [BZ #12994]
47437         [BZ #13651]
47438         * resolv/res_query.c (__libc_res_nsearch): Return if at least
47439         one response is valid.
47440         * resolv/res_send.c (send_dg): Check for validity of other
47441         response if the current response is a referral.
47442
47443 2014-04-29  Steve Ellcey  <sellcey@mips.com>
47444
47445         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
47446
47447 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
47448
47449         [BZ #16823]
47450         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
47451         Always divide by positive zero when computing -Inf result.
47452         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
47453         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
47454
47455 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47456
47457         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
47458         FPSCR if value do not change.
47459         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
47460         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
47461         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
47462         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
47463         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
47464         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
47465         function.
47466
47467 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
47468
47469         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
47470         * sysdeps/unix/sysv/linux/hppa: Move directory from
47471         ports/systeps/unix/sysv/linux/hppa.
47472         * README: Update listing for hppa-*-linux-gnu.
47473
47474 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
47475
47476         [BZ #16754]
47477         * manual/stdio.texi (Hook functions): Fix types of stream hook
47478         functions.
47479         [BZ #16854]
47480         * socket/sys/socket.h: Fix typo in comment.
47481
47482 2014-04-28  Wilco  <wdijkstr@arm.com>
47483
47484         * sysdeps/arm/fenv_private.h: New file.
47485         * sysdeps/arm/math_private.h: New file.
47486         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
47487
47488 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
47489
47490         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
47491         with __int128_t.
47492         (La_x86_64_retval): Likewise.
47493
47494 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
47495
47496         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
47497         fpsr if value didn't change.
47498         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
47499         to fpcr if value didn't change.
47500         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
47501         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
47502         fpsr or fpcr if value didn't change.
47503         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
47504         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
47505         fpcr if value didn't change.
47506         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
47507         to fpsr if value didn't change.
47508
47509 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
47510
47511         * nptl/tst-sem3.c: Use test-skeleton.c
47512         (main): Rename to do_test.  Use return instead of
47513         exit.
47514         * nptl/tst-sem4.c: Use test-skeleton.c
47515         (main): Rename to do_test.
47516
47517 2014-04-22  David S. Miller  <davem@davemloft.net>
47518
47519         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
47520         (struct sigaction): New struct member __glibc_reserved0, change
47521         type of sa_flags to int.
47522
47523 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
47524
47525         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
47526         (COUNT_LEADING_ZEROS_0): Define for AArch64.
47527
47528 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47529
47530         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
47531         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
47532
47533 2014-04-22  Will Newton  <will.newton@linaro.org>
47534             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
47535
47536         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
47537         (__longjmp): Add longjmp and longjmp_target SystemTap
47538         probes.
47539         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
47540         (__sigsetjmp): Add setjmp SystemTap probe.
47541
47542 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
47543
47544         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
47545         match manual order.
47546
47547 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47548
47549         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
47550
47551         * sysdeps/powerpc/fpu/fenv_private.h
47552         (libc_feholdexcept_setroundl_ctx): Define to
47553         libc_feholdexcept_setround_ppc_ctx.
47554         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
47555         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
47556         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
47557         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
47558
47559 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
47560
47561         * sysdeps/aarch64/math-tests.h: New file.
47562
47563 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
47564
47565         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
47566         New.
47567         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47568         Check and set bit_AVX2_Usable.
47569         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
47570         macro.
47571         (bit_AVX2): Likewise.
47572         (index_AVX2_Usable): Likewise.
47573         (CPUID_AVX2): Likewise.
47574         (HAS_AVX2): Likewise.
47575
47576 2014-04-17  Will Newton  <will.newton@linaro.org>
47577
47578         * manual/setjmp.texi (System V contexts): Add note that
47579         calling setcontext on a context created by a call to a
47580         signal handler is undefined.  Update text to note that
47581         setcontext from a signal handler is possible but not
47582         recommended.
47583
47584         [BZ #16629]
47585         * stdlib/tst-setcontext.c: Include signal.h.
47586         (main): Check that the signal stack before and
47587         after swapcontext is the same.
47588
47589         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
47590         Re-implement to restore registers in user code and avoid
47591         rt_sigreturn system call.
47592
47593 2014-04-17  Wilco  <wdijkstr@arm.com>
47594
47595         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
47596         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
47597         * math/test-fenv.c: Skip exception trap tests on targets which only
47598         support non-stop mode.
47599
47600 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
47601             Wilco Dijkstra  <wilco.dijkstra@arm.com>
47602
47603         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
47604         (libc_feholdsetround_aarch64_ctx)
47605         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
47606         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
47607         (libc_feresetround_ctx, libc_feresetroundf_ctx)
47608         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
47609         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
47610         (libc_feresetround_noexl_ctx): Define.
47611
47612 2014-04-16  Richard Henderson  <rth@redhat.com>
47613
47614         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
47615
47616         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
47617         unwind tables.
47618
47619         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
47620         const from the non-libc, non-ldso copy.
47621
47622         * sysdeps/alpha/libm-test-ulps: Regenerate.
47623
47624 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
47625             Wilco Dijkstra  <wilco.dijkstra@arm.com>
47626
47627         * sysdeps/aarch64/fpu/math_private.h: New file.
47628
47629 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
47630
47631         * sysdeps/aarch64/libm-test-ulps: Regenerate.
47632
47633 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
47634
47635         [BZ #16275]
47636         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
47637         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
47638         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
47639         Intel MPX bound registers before _dl_profile_fixup.
47640         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
47641         registers after _dl_profile_fixup.  Save and restore bound
47642         registers bnd0/bnd1 when calling _dl_call_pltexit.
47643         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
47644         (LR_BND_OFFSET): Likewise.
47645         (LRV_BND0_OFFSET): Likewise.
47646         (LRV_BND1_OFFSET): Likewise.
47647
47648 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47649
47650         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
47651         to...
47652         * sysdeps/mach/hurd/i386/tls.h: ... here.
47653         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
47654         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
47655         fields.
47656
47657 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47658
47659         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
47660
47661 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
47662
47663         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
47664
47665 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
47666
47667         [BZ #14770]
47668         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
47669         * sysdeps/s390/configure: Regenerate.
47670
47671         [BZ #16824]
47672         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
47673         Set round-to-nearest internally to reduce error accumulation.
47674
47675 2014-04-16  Alan Modra  <amodra@gmail.com>
47676
47677         [BZ #16740]
47678         [BZ #16619]
47679         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
47680         * math/libm-test.inc (frexp_test_data): Add tests.
47681         * NEWS: Update fixed bug list.
47682
47683 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
47684
47685         * benchtests/Makefile: Depend on libraries in build directory.
47686         (bench-math): Separate out math tests.
47687         (bench-pthread): Separate out pthread tests.
47688         (bench): Include math and pthread tests.
47689
47690 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
47691
47692         [BZ #16831]
47693         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
47694         _dl_debug_initialize.
47695
47696         * configure.ac: Remove SELinux header check.
47697         * configure: Regenerate.
47698         * nscd/selinux.c (perms): Array of const char* to permission names.
47699         (nscd_request_avc_has_perm): Call security_deny_unknown to find
47700         default policy. Call string_to_security_class and string_to_av_perm to
47701         translate strings. Enforce default policy and call avs_has_perm with
47702         results of translated strings.
47703
47704 2014-04-13  David S. Miller  <davem@davemloft.net>
47705
47706         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47707
47708 2014-04-12  Allan McRae  <allan@archlinux.org>
47709
47710         [BZ #16838]
47711         * manual/string.texi (Collation Functions): Fix qsort argument
47712         order in example.
47713         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
47714
47715 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
47716
47717         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
47718         Make the test a no-op if there are no exceptions defined.
47719
47720 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
47721
47722         * elf/Makefile (tests): make tst-dlopen-aout conditional on
47723         enable-hardcoded-path-in-tests
47724
47725 2014-04-11  Will Newton  <will.newton@linaro.org>
47726
47727         * benchtests/Makefile (extra-objs): Add json-lib.o.
47728         (bench-func): Tidy up JSON output.
47729         * benchtests/bench-skeleton.c: Include json-lib.h.
47730         (main): Use JSON library functions to do output of
47731         benchmark results.
47732         * benchtests/bench-timing-type.c (main): Output the
47733         timing type simply, leaving formatting to the user.
47734         * benchtests/json-lib.c: New file.
47735         * benchtests/json-lib.h: Likewise.
47736
47737 2014-04-11  Torvald Riegel  <triegel@redhat.com>
47738
47739         [BZ #15215]
47740         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
47741         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
47742         memory barriers.  Add comments.
47743         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
47744         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
47745         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
47746         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
47747         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
47748         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
47749
47750 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
47751
47752         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
47753         * sysdeps/s390/s390-64/configure.ac: ... this ...
47754         * sysdeps/s390/configure.ac: ... to here.
47755         * sysdeps/s390/s390-32/configure: Delete file.
47756         * sysdeps/s390/s390-64/configure: Delete file.
47757         * sysdeps/s390/configure: Regenerate.
47758
47759 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
47760
47761         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
47762
47763 2014-04-11  Will Newton  <will.newton@linaro.org>
47764
47765         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
47766         to zero if it is not defined elsewhere.  (mtrim): Test
47767         the value of MALLOC_DEBUG with #if rather than #ifdef.
47768
47769 2014-04-10 Torvald Riegel  <triegel@redhat.com>
47770
47771         * benchtests/pthread_once-inputs: New file.
47772         * benchtests/pthread_once-source.c: New file.
47773         * benchtests/README: Update documentation.
47774
47775 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
47776             H.J. Lu  <hongjiu.lu@intel.com>
47777
47778         [BZ #16275]
47779         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
47780         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
47781         * sysdeps/x86_64/configure: Regenerated.
47782         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
47783         macro.
47784         (REGISTER_SAVE_RAX): Likewise.
47785         (REGISTER_SAVE_RCX): Likewise.
47786         (REGISTER_SAVE_RDX): Likewise.
47787         (REGISTER_SAVE_RSI): Likewise.
47788         (REGISTER_SAVE_RDI): Likewise.
47789         (REGISTER_SAVE_R8): Likewise.
47790         (REGISTER_SAVE_R9): Likewise.
47791         (REGISTER_SAVE_BND0): Likewise.
47792         (REGISTER_SAVE_BND1): Likewise.
47793         (REGISTER_SAVE_BND2): Likewise.
47794         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
47795         bound registers when calling _dl_fixup.
47796
47797 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47798
47799         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
47800         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
47801         of its definition.
47802         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
47803         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
47804         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
47805         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
47806         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
47807         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
47808         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
47809
47810 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
47811
47812         [BZ #15514]
47813         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
47814         pathconf(_PC_NAME_MAX).
47815
47816 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47817
47818         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
47819         Remove macro usage.
47820         (__PTHREAD_SPINS): Move definition to ...
47821         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
47822         (__PTHREAD_SPINS): ... here.
47823         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47824         (__PTHREAD_SPIN): Likewise.
47825         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
47826         (__PTHREAD_SPIN): Likewise.
47827         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
47828         (__PTHREAD_SPIN): Likewise.
47829         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
47830         (__PTHREAD_SPIN): Likewise.
47831         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
47832         (__PTHREAD_SPIN): Likewise.
47833         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
47834         (__PTHREAD_SPIN): Likewise.
47835         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
47836         (__PTHREAD_SPIN): Likewise.
47837         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
47838         (__PTHREAD_SPIN): Likewise.
47839         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
47840         (__PTHREAD_SPIN): Likewise.
47841         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
47842         (__PTHREAD_SPIN): Likewise.
47843         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
47844         (__PTHREAD_SPIN): Likewise.
47845         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
47846         (__PTHREAD_SPIN): Likewise.
47847
47848         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
47849         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
47850         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
47851         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
47852         imply folder.
47853         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
47854         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
47855         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
47856         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
47857         correct imply path.
47858         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
47859         strlen symbol for non multi-arch builds.
47860         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
47861         missing hidden_def and weak_alias.
47862
47863 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
47864
47865         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
47866
47867 2014-04-07  Will Newton  <will.newton@linaro.org>
47868
47869         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
47870         and contents.  [!_LIBC] Remove #ifndef and contents.
47871         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
47872         * string/memccpy.c (__memccpy): Use ANSI prototype.
47873         * string/memfrob.c (memfrob): Likewise.
47874         * string/strcoll.c (STRCOLL): Likewise.
47875         * string/strlen.c (strlen): Likewise.
47876         * string/strtok.c (STRTOK): Likewise.
47877         * string/strcat.c: Remove unused #include of memcopy.h.
47878         (strcat): Use ANSI prototype.
47879         * string/strchr.c: Remove unused #include of memcopy.h.
47880         (strchr): Use ANSI prototype.
47881         * string/strcmp.c: Remove unused #include of memcopy.h.
47882         (strcmp): Use ANSI prototype.
47883         * string/strcpy.c: Remove unused #include of memcopy.h.
47884         (strcpy): Use ANSI prototype.
47885
47886 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47887
47888         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
47889         * config.make.in (config-extra-cppflags): Set it from
47890         libc_extra_cppflags.
47891         * configure.ac (libc_extra_cflags): Make it accumulate over
47892         configure fragments.
47893         (libc_extra_cppflags): New flag.
47894         * configure. Regenerate.
47895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
47896         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
47897         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
47898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
47899
47900         [BZ #16815]
47901         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
47902         result for FE_DOWNWARD rounding mode.
47903         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
47904         Likewise.
47905         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47906
47907 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
47908
47909         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
47910         in function argument name.
47911
47912 2014-04-03  David Svoboda  <svoboda@cert.org>
47913
47914         [BZ #5666]
47915         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
47916         explicitly.
47917
47918 2014-04-03  Roland McGrath  <roland@hack.frob.com>
47919
47920         * elf/dl-unmap-segments.h: New file.
47921         * sysdeps/generic/ldsodefs.h
47922         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
47923         * elf/dl-close.c: Include <dl-unmap-segments.h>.
47924         * elf/dl-fptr.c: Likewise.
47925         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
47926         * sysdeps/aarch64/tlsdesc.c: Likewise.
47927         * sysdeps/arm/tlsdesc.c: Likewise.
47928         * sysdeps/i386/tlsdesc.c: Likewise.
47929         * sysdeps/tile/dl-runtime.c: Likewise.
47930         * sysdeps/x86_64/tlsdesc.c: Likewise.
47931         * elf/dl-load.h: New file.
47932         * elf/dl-load.c: Include it.
47933         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
47934         Macros moved to dl-load.h.
47935         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
47936         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
47937         Use _dl_unmap_segments in place of __munmap.
47938         Break out segment-mapping loop into ...
47939         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
47940
47941 2014-04-03  Will Newton  <will.newton@linaro.org>
47942
47943         * elf/dl-lookup.c (do_lookup_x): Remove comment
47944         referring to nested function and move variable
47945         declarations down to before first use.
47946
47947 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
47948
47949         [BZ #16799]
47950         [BZ #16800]
47951         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
47952         with 0 numerator.
47953         * math/s_catanf.c (__catanf): Likewise.
47954         * math/s_catanh.c (__catanh): Likewise.
47955         * math/s_catanhf.c (__catanhf): Likewise.
47956         * math/s_catanhl.c (__catanhl): Likewise.
47957         * math/s_catanl.c (__catanl): Likewise.
47958         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
47959         by positive zero when computing -Inf result.
47960         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
47961         (catanh_test): Likewise.
47962         * sysdeps/i386/fpu/libm-test-ulps: Update.
47963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47964
47965         [BZ #16789]
47966         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
47967         instead of using underflowing value in computing result.
47968         * math/s_clog10.c (__clog10): Likewise.
47969         * math/s_clog10f.c (__clog10f): Likewise.
47970         * math/s_clog10l.c (__clog10l): Likewise.
47971         * math/s_clogf.c (__clogf): Likewise.
47972         * math/s_clogl.c (__clogl): Likewise.
47973         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
47974         (clog10_test): Likewise.
47975         * sysdeps/i386/fpu/libm-test-ulps: Update.
47976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47977
47978 2014-04-02  Alan Modra  <amodra@gmail.com>
47979
47980         [BZ #16739]
47981         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
47982         output when value is near a power of two.  Use int64_t for lx and
47983         remove casts.  Use decimal rather than hex exponent constants.
47984         Don't use long double multiplication when double will suffice.
47985         * math/libm-test.inc (nextafter_test_data): Add tests.
47986         * NEWS: Add 16739 and 16786 to bug list.
47987
47988         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
47989
47990         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
47991
47992 2014-04-01  Will Newton  <will.newton@linaro.org>
47993
47994         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
47995         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
47996
47997 2014-04-01  Florian Weimer  <fweimer@redhat.com>
47998
47999         [BZ #13347]
48000         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
48001         * nptl/tst-setuid2.c: New file.
48002         * nptl/Makefile (xtests): Add tst-setuid2.
48003
48004 2014-04-01  Alan Modra  <amodra@gmail.com>
48005
48006         [BZ #16786]
48007         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
48008
48009 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
48010
48011         [BZ #6803]
48012         [BZ #6804]
48013         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
48014         set errno as appropriate.
48015         * math/w_scalbf.c (__scalbf): Likewise.
48016         * math/w_scalbl.c (__scalbl): Likewise.
48017         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
48018         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
48019         * math/libm-test.inc (scalb_test_data): Add errno expectations.
48020         Add more NaN tests.
48021
48022         [BZ #16349]
48023         * math/w_atan2.c: Include <errno.h>.
48024         (__atan2): Set errno for result underflowing to zero.
48025         * math/w_atan2f.c: Include <errno.h>.
48026         (__atan2f): Set errno for result underflowing to zero.
48027         * math/w_atan2l.c: Include <errno.h>.
48028         (__atan2l): Set errno for result underflowing to zero.
48029         * math/auto-libm-test-in: Don't allow missing errno for some atan2
48030         tests.
48031         * math/auto-libm-test-out: Regenerated.
48032
48033 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48034
48035         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
48036         Encode instruction correctly in little endian.
48037         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
48038         Likewise.
48039         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
48040         Likewise.
48041         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
48042         Likewise.
48043         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
48044         Likewise.
48045
48046 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
48047
48048         [BZ #9894]
48049         * sysdeps/unix/sysv/linux/kernel-features.h
48050         [__sparc__ && !__arch64__ && !__sparc_v9__]
48051         (__ASSUME_SET_ROBUST_LIST): Do not define.
48052         [__sparc__ && !__arch64__ && !__sparc_v9__]
48053         (__ASSUME_FUTEX_LOCK_PI): Likewise.
48054         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
48055         Likewise.
48056         * sysdeps/unix/sysv/linux/arm/kernel-features.h
48057         (__ASSUME_FUTEX_LOCK_PI): Undefine.
48058         (__ASSUME_REQUEUE_PI): Likewise.
48059         (__ASSUME_SET_ROBUST_LIST): Likewise.
48060         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
48061         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
48062         Undefine.
48063         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48064         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
48065         Likewise.
48066         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
48067         Likewise.
48068         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
48069         Likewise.
48070         * sysdeps/unix/sysv/linux/mips/kernel-features.h
48071         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
48072         Undefine.
48073         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
48074         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
48075         Likewise.
48076
48077         [BZ #16648]
48078         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48079         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
48080         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
48081
48082 2014-03-31  Will Newton  <will.newton@linaro.org>
48083
48084         * benchtests/Makefile (bench): Add ffs and ffsll to list
48085         of tests.
48086         * benchtests/ffs-inputs: New file.
48087         * benchtests/ffsll-inputs: Likewise.
48088
48089 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
48090
48091         [BZ #16770]
48092         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
48093         too large before casting to int.
48094         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
48095         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
48096         * math/libm-test.inc (scalb_test_data): Add more tests.
48097
48098 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
48099
48100         * benchtests/Makefile (DETAILED_OPT): New make option.
48101         (bench-func): Run benchmark program with -d if DETAILED_OPT is
48102         set.
48103         * benchtests/bench-skeleton.c: Include stdbool.h.
48104         (main): Store and print timings per input.
48105         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
48106         member to each argument value.
48107         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
48108         (_print_arg_data): Initialize per-input timing to 0.
48109
48110         * benchtests/Makefile (timing-type): New binary.
48111         (bench-clean): Also remove bench-timing-type.
48112         (bench): New target for timing-type.
48113         (bench-func): Print output in JSON format.
48114         * benchtests/bench-skeleton.c (main): Print output in JSON
48115         format.
48116         * benchtests/bench-timing-type.c: New file.
48117         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
48118         (TIMING_PRINT_STATS): Remove.
48119         * benchtests/scripts/bench.py (_print_arg_data): Store variant
48120         name separately.
48121
48122         * benchtests/bench-modf.c: Remove.
48123         * benchtests/modf-inputs: New inputs file.
48124
48125 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
48126
48127         [BZ #16362]
48128         * math/s_clog10.c (M_PI_LOG10E): New macro.
48129         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
48130         imaginary parts are 0.
48131         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
48132         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
48133         imaginary parts are 0.
48134         * math/s_clog10l.c (M_PI_LOG10El): New macro.
48135         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
48136         imaginary parts are 0.
48137         * math/libm-test.inc (clog10_test_data): Update expected results
48138         for when real and imaginary parts are 0.
48139
48140 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
48141
48142         * elf/dl-load.c: Finish conversion of __builtin_expect into
48143         __glibc_{un}likely.
48144
48145 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
48146
48147         [BZ #16348]
48148         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
48149         1+x for argument with exponent below -67.
48150         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
48151         Likewise.
48152         * math/auto-libm-test-in: Add more tests of exp.
48153         * math/auto-libm-test-out: Regenerated.
48154
48155 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48156
48157         [BZ #16759]
48158         * inet/getnetgrent_r.c (get_nonempty_val): New function.
48159         (nscd_getnetgrent): Use it.
48160
48161         [BZ #16760]
48162         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
48163         of stpcpy.
48164
48165 2014-03-27  Andi Kleen  <ak@linux.intel.com>
48166
48167         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
48168         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48169         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48170         (lll_robust_unlock): Remove out of line section. Use cfi
48171         intrinsics.
48172         (LLL_STUB_UNWIND_INFO*): Remove.
48173         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
48174         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48175         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48176         (lll_robust_unlock): Remove out of line section. Use cfi
48177         intrinsics.
48178         (LLL_STUB_UNWIND_INFO*): Remove.
48179
48180 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48181
48182         [BZ #16758]
48183         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
48184         blank values.
48185
48186 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
48187
48188         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
48189
48190 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
48191
48192         [BZ #16198]
48193         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
48194         fnstenv.
48195         * math/test-fenv-preserve.c: New file.
48196         * math/Makefile (tests): Add test-fenv-preserve.
48197
48198 2014-03-26  Will Newton <will.newton@linaro.org>
48199
48200         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
48201
48202 2014-03-25  Roland McGrath  <roland@hack.frob.com>
48203
48204         * scripts/versionlist.awk: Partition the version sets and emit all
48205         GLIBC_* (sorted) before all others (sorted).
48206
48207 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48208
48209         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
48210         GLIBC_2.2.5 version.
48211
48212 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48213
48214         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
48215         calls.
48216
48217         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
48218         previous change.
48219
48220         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48221
48222 2014-03-25  Andreas Schwab  <schwab@suse.de>
48223
48224         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
48225         label to be used after in6ailist is initialized.
48226
48227 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48228
48229         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
48230         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48231
48232 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48233
48234         [BZ #16357]
48235         [BZ #16599]
48236         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
48237         min_plus_half.
48238         (fp_formats): Update initializers.
48239         (init_fp_formats): Initialize new field.
48240         (output_for_one_input_case): Allow underflow for results up to
48241         min_plus_half.
48242         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
48243         * math/auto-libm-test-in: Don't mark some underflows from asin and
48244         atanh as spurious.
48245         * math/auto-libm-test-out: Regenerated.
48246         * sysdeps/i386/fpu/libm-test-ulps: Update.
48247         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48248
48249 2014-03-25  Andreas Schwab  <schwab@suse.de>
48250
48251         * libio/Makefile (tst-ftell-partial-wide-ENV)
48252         (tst-ftell-active-handler-ENV): Define.
48253
48254 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
48255
48256         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
48257
48258 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48259
48260         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
48261
48262 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48263
48264         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
48265         * sysdeps/x86_64/fpu/multiarch/e_exp.c
48266         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
48267
48268 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48269
48270         [BZ #16634]
48271         * elf/dl-load.c (open_verify): Add mode parameter.
48272         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
48273         (open_path): Change from boolean 'secure' to complete flag 'mode'
48274         (_dl_map_object): Adjust.
48275         * elf/Makefile (tests): Add tst-dlopen-aout.
48276         * elf/tst-dlopen-aout.c: New test.
48277
48278 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
48279
48280         [BZ #16714]
48281         * sysdeps/unix/sysv/linux/s390/bits/stat.h
48282         (struct stat): Rename member pad0 to __glibc_reserved0.
48283
48284         [BZ #16712]
48285         * sysdeps/s390/s390-32/bits/wordsize.h
48286         (__WORDSIZE32_SIZE_ULONG): New define.
48287         * sysdeps/s390/s390-64/bits/wordsize.h
48288         (__WORDSIZE32_SIZE_ULONG): Likewise.
48289         * sysdeps/generic/stdint.h (SIZE_MAX):
48290         Define as UL if __WORDSIZE32_SIZE_ULONG.
48291
48292         [BZ #16713]
48293         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
48294         (__glibc_reserved0): New variable.
48295         (sa_flags): Change type to int.
48296
48297         * posix/Makefile (before-compile): Use += before-compile instead
48298         of a :=.
48299
48300         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
48301         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48302
48303 2014-03-20  Andreas Schwab  <schwab@suse.de>
48304
48305         [BZ #16743]
48306         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
48307         non-matching result from nscd.
48308
48309 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48310
48311         * scripts/bench.py: Moved to ...
48312         * benchtests/scripts/bench.py: ... here.
48313         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
48314
48315 2014-03-24  Andreas Schwab  <schwab@suse.de>
48316
48317         [BZ #16002]
48318         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
48319         alloca_account and account alloca use for struct in6ailist.
48320
48321 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48322
48323         [BZ #16284]
48324         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
48325         rounding mode to recompute results that overflow to infinity or
48326         underflow to zero.
48327         * math/auto-libm-test-in: Don't mark tests as expected to fail for
48328         bug 16284.
48329         * math/auto-libm-test-out: Regenerated.
48330         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
48331         (ccosh_test): Likewise.
48332         (csin_test_data): Use plus_oflow.
48333         (csin_test): Use ALL_RM_TEST.
48334         (csinh_test_data): Use plus_oflow.
48335         (csinh_test): Use ALL_RM_TEST.
48336         * sysdeps/i386/fpu/libm-test-ulps: Update.
48337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48338
48339 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
48340
48341         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
48342         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
48343         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
48344
48345         [BZ #16731]
48346         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
48347         when x - 1 is zero.
48348         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
48349         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
48350         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
48351         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
48352         argument is 1.
48353         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
48354         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
48355         zero.
48356         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
48357         * sysdeps/i386/fpu/libm-test-ulps: Update.
48358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48359
48360 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
48361
48362         * scripts/bench.pl: Remove file.
48363         * scripts/bench.py: New benchmark script.
48364         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
48365         * benchtests/README: Mention python dependency.
48366         * scripts/pylintrc: New file.
48367         * scripts/pylint: New file.
48368
48369         * bits/mathdef.h: Use #ifdef instead of #if.
48370         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
48371         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48372         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
48373         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48374         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
48375         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48376
48377 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48378             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48379
48380         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
48381         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
48382         and strpbrk-ppc64 objects.
48383         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48384         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
48385         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
48386         multiarch strpbrk for POWER7.
48387         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
48388         multiarch strpbrk for PPC64.
48389         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
48390         ifunc selector.
48391         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
48392         strpbrk for POWER7.
48393
48394 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48395
48396         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
48397         (atan_test): Likewise.
48398         (atanh_test_data): Use NO_TEST_INLINE for two tests.
48399         (atanh_test): Use ALL_RM_TEST.
48400         (atan2_test_data): Likewise.
48401         (cabs_test): Likewise.
48402         (cacosh_test): Likewise.
48403         (carg_test): Likewise.
48404         (casin_test): Likewise.
48405         (casinh_test): Likewise.
48406         (cbrt_test): Likewise.
48407         (csqrt_test): Likewise.
48408         (erf_test): Likewise.
48409         (erfc_test): Likewise.
48410         (pow10_test): Likewise.
48411         (exp2_test): Likewise.
48412         (hypot_test): Likewise.
48413         (j0_test): Likewise.
48414         (j1_test): Likewise.
48415         (lgamma_test): Likewise.
48416         (gamma_test): Likewise.
48417         (sincos_test): Likewise.
48418         (tanh_test): Likewise.
48419         (y0_test): Likewise.
48420         (y1_test): Likewise.
48421         * sysdeps/i386/fpu/libm-test-ulps: Update.
48422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48423
48424 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48425
48426         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
48427         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
48428         and strcspn-ppc64 objects.
48429         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48430         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
48431         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
48432         multiarch strcspn for POWER7.
48433         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
48434         multiarch strcspn for PPC64.
48435         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
48436         ifunc selector.
48437         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
48438         strcspn for POWER7.
48439
48440 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48441
48442         * math/gen-libm-test.pl (generate_testfile): Expect only function
48443         name as argument to AUTO_TESTS_* and pass results for all rounding
48444         modes to parse_args.
48445         (parse_auto_input): Separate inputs of automatic tests from
48446         outputs before storing in %auto_tests.
48447         * math/libm-test.inc (acos_test_data): Update call to
48448         AUTO_TESTS_f_f.
48449         (acos_test): Use ALL_RM_TEST.
48450         (acos_tonearest_test_data): Remove.
48451         (acos_test_tonearest): Likewise.
48452         (acos_towardzero_test_data): Likewise.
48453         (acos_test_towardzero): Likewise.
48454         (acos_downward_test_data): Likewise.
48455         (acos_test_downward): Likewise.
48456         (acos_upward_test_data): Likewise.
48457         (acos_test_upward): Likewise.
48458         (acosh_test_data): Update call to AUTO_TESTS_f_f.
48459         (asin_test_data): Likewise.
48460         (asin_test): Use ALL_RM_TEST.
48461         (asin_tonearest_test_data): Remove.
48462         (asin_test_tonearest): Likewise.
48463         (asin_towardzero_test_data): Likewise.
48464         (asin_test_towardzero): Likewise.
48465         (asin_downward_test_data): Likewise.
48466         (asin_test_downward): Likewise.
48467         (asin_upward_test_data): Likewise.
48468         (asin_test_upward): Likewise.
48469         (asinh_test_data): Update call to AUTO_TESTS_f_f.
48470         (atan_test_data): Likewise.
48471         (atanh_test_data): Likewise.
48472         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
48473         (cabs_test_data): Update call to AUTO_TESTS_c_f.
48474         (carg_test_data): Likewise.
48475         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
48476         (ccos_test_data): Update call to AUTO_TESTS_c_c.
48477         (ccosh_test_data): Likewise.
48478         (cexp_test_data): Likewise.
48479         (clog_test_data): Likewise.
48480         (clog10_test_data): Likewise.
48481         (cos_test_data): Update call to AUTO_TESTS_f_f.
48482         (cos_test): Use ALL_RM_TEST.
48483         (cos_tonearest_test_data): Remove.
48484         (cos_test_tonearest): Likewise.
48485         (cos_towardzero_test_data): Likewise.
48486         (cos_test_towardzero): Likewise.
48487         (cos_downward_test_data): Likewise.
48488         (cos_test_downward): Likewise.
48489         (cos_upward_test_data): Likewise.
48490         (cos_test_upward): Likewise.
48491         (cosh_test_data): Update call to AUTO_TESTS_f_f.
48492         (cosh_test): Use ALL_RM_TEST.
48493         (cosh_tonearest_test_data): Remove.
48494         (cosh_test_tonearest): Likewise.
48495         (cosh_towardzero_test_data): Likewise.
48496         (cosh_test_towardzero): Likewise.
48497         (cosh_downward_test_data): Likewise.
48498         (cosh_test_downward): Likewise.
48499         (cosh_upward_test_data): Likewise.
48500         (cosh_test_upward): Likewise.
48501         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
48502         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
48503         (ctan_test_data): Likewise.
48504         (ctan_test): Use ALL_RM_TEST.
48505         (ctan_tonearest_test_data): Remove.
48506         (ctan_test_tonearest): Likewise.
48507         (ctan_towardzero_test_data): Likewise.
48508         (ctan_test_towardzero): Likewise.
48509         (ctan_downward_test_data): Likewise.
48510         (ctan_test_downward): Likewise.
48511         (ctan_upward_test_data): Likewise.
48512         (ctan_test_upward): Likewise.
48513         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
48514         (ctanh_test): Use ALL_RM_TEST.
48515         (ctanh_tonearest_test_data): Remove.
48516         (ctanh_test_tonearest): Likewise.
48517         (ctanh_towardzero_test_data): Likewise.
48518         (ctanh_test_towardzero): Likewise.
48519         (ctanh_downward_test_data): Likewise.
48520         (ctanh_test_downward): Likewise.
48521         (ctanh_upward_test_data): Likewise.
48522         (ctanh_test_upward): Likewise.
48523         (erf_test_data): Update call to AUTO_TESTS_f_f.
48524         (erfc_test_data): Likewise.
48525         (exp_test_data): Likewise.
48526         (exp_test): Use ALL_RM_TEST.
48527         (exp_tonearest_test_data): Remove.
48528         (exp_test_tonearest): Likewise.
48529         (exp_towardzero_test_data): Likewise.
48530         (exp_test_towardzero): Likewise.
48531         (exp_downward_test_data): Likewise.
48532         (exp_test_downward): Likewise.
48533         (exp_upward_test_data): Likewise.
48534         (exp_test_upward): Likewise.
48535         (exp10_test_data): Update call to AUTO_TESTS_f_f.
48536         (exp10_test): Use ALL_RM_TEST.
48537         (exp10_tonearest_test_data): Remove.
48538         (exp10_test_tonearest): Likewise.
48539         (exp10_towardzero_test_data): Likewise.
48540         (exp10_test_towardzero): Likewise.
48541         (exp10_downward_test_data): Likewise.
48542         (exp10_test_downward): Likewise.
48543         (exp10_upward_test_data): Likewise.
48544         (exp10_test_upward): Likewise.
48545         (exp2_test_data): Update call to AUTO_TESTS_f_f.
48546         (expm1_test_data): Likewise.
48547         (expm1_test): Use ALL_RM_TEST.
48548         (expm1_tonearest_test_data): Remove.
48549         (expm1_test_tonearest): Likewise.
48550         (expm1_towardzero_test_data): Likewise.
48551         (expm1_test_towardzero): Likewise.
48552         (expm1_downward_test_data): Likewise.
48553         (expm1_test_downward): Likewise.
48554         (expm1_upward_test_data): Likewise.
48555         (expm1_test_upward): Likewise.
48556         (fma_test_data): Update call to AUTO_TESTS_fff_f.
48557         (fma_test): Use ALL_RM_TEST.
48558         (fma_towardzero_test_data): Remove.
48559         (fma_test_towardzero): Likewise.
48560         (fma_downward_test_data): Likewise.
48561         (fma_test_downward): Likewise.
48562         (fma_upward_test_data): Likewise.
48563         (fma_test_upward): Likewise.
48564         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
48565         (j0_test_data): Update call to AUTO_TESTS_f_f.
48566         (j1_test_data): Likewise.
48567         (jn_test_data): Update call to AUTO_TESTS_if_f.
48568         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
48569         (log_test_data): Update call to AUTO_TESTS_f_f.
48570         (log10_test_data): Likewise.
48571         (log1p_test_data): Likewise.
48572         (log2_test_data): Likewise.
48573         (pow_test_data): Update call to AUTO_TESTS_ff_f.
48574         (pow_tonearest_test_data): Likewise.
48575         (sin_test_data): Update call to AUTO_TESTS_f_f.
48576         (sin_test): Use ALL_RM_TEST.
48577         (sin_tonearest_test_data): Remove.
48578         (sin_test_tonearest): Likewise.
48579         (sin_towardzero_test_data): Likewise.
48580         (sin_test_towardzero): Likewise.
48581         (sin_downward_test_data): Likewise.
48582         (sin_test_downward): Likewise.
48583         (sin_upward_test_data): Likewise.
48584         (sin_test_upward): Likewise.
48585         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
48586         (sinh_test_data): Update call to AUTO_TESTS_f_f.
48587         (sinh_test): Use ALL_RM_TEST.
48588         (sinh_tonearest_test_data): Remove.
48589         (sinh_test_tonearest): Likewise.
48590         (sinh_towardzero_test_data): Likewise.
48591         (sinh_test_towardzero): Likewise.
48592         (sinh_downward_test_data): Likewise.
48593         (sinh_test_downward): Likewise.
48594         (sinh_upward_test_data): Likewise.
48595         (sinh_test_upward): Likewise.
48596         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
48597         (sqrt_test): Use ALL_RM_TEST.
48598         (sqrt_tonearest_test_data): Remove.
48599         (sqrt_test_tonearest): Likewise.
48600         (sqrt_towardzero_test_data): Likewise.
48601         (sqrt_test_towardzero): Likewise.
48602         (sqrt_downward_test_data): Likewise.
48603         (sqrt_test_downward): Likewise.
48604         (sqrt_upward_test_data): Likewise.
48605         (sqrt_test_upward): Likewise.
48606         (tan_test_data): Update call to AUTO_TESTS_f_f.
48607         (tan_test): Use ALL_RM_TEST.
48608         (tan_tonearest_test_data): Remove.
48609         (tan_test_tonearest): Likewise.
48610         (tan_towardzero_test_data): Likewise.
48611         (tan_test_towardzero): Likewise.
48612         (tan_downward_test_data): Likewise.
48613         (tan_test_downward): Likewise.
48614         (tan_upward_test_data): Likewise.
48615         (tan_test_upward): Likewise.
48616         (tanh_test_data): Update call to AUTO_TESTS_f_f.
48617         (tgamma_test_data): Likewise.
48618         (y0_test_data): Likewise.
48619         (y1_test_data): Likewise.
48620         (yn_test_data): Update call to AUTO_TESTS_if_f.
48621         (main): Do not call removed functions.
48622
48623 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
48624
48625         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
48626         (ldexp_test_data): Remove.
48627         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
48628         scalbn_test_data.
48629         (scalb_test): Use ALL_RM_TEST.
48630
48631 2014-03-19  Andreas Schwab  <schwab@suse.de>
48632
48633         * nscd/nscd.service: Also invalidate netgroup cache on reload.
48634
48635 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
48636
48637         [BZ #16649]
48638         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
48639         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
48640         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
48641         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48642         (__ASSUME_PREADV): Undefine.
48643         (__ASSUME_PWRITEV): Likewise.
48644
48645 2014-03-18  Roland McGrath  <roland@hack.frob.com>
48646
48647         * bits/mman-linux.h: Add comment about non-Linux use.
48648         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
48649         bits/mman-linux.h resting place.
48650
48651         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
48652         * bits/mman-linux.h: ... here.
48653
48654 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48655
48656         * conform/conformtest.pl: Add standard definition when calling C
48657         preprocessor on data files.
48658         (checknamespace): Remove unused variable.
48659
48660 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
48661
48662         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
48663         minus_oflow, plus_uflow and minus_uflow in expected results.
48664         * math/libm-test.inc (scalbn_test_data): Add more tests of
48665         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
48666         minus_uflow.
48667         (scalbn_test): Use ALL_RM_TEST.
48668         (scalbln_test_data): Add more tests of negative arguments.  Use
48669         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
48670         (scalbln_test): Use ALL_RM_TEST.
48671
48672 2014-03-18  Roland McGrath  <roland@hack.frob.com>
48673
48674         * scripts/abilist.awk: Ignore symbols marked with .hidden.
48675
48676 2014-03-18  Will Newton  <will.newton@linaro.org>
48677
48678         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
48679         inaccurate comment.
48680
48681 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
48682
48683         * Makerules [!subdir] (check-abi): Exit with error status if a
48684         test failed.
48685
48686 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
48687
48688         * math/libm-test.inc (nearbyint_test_data): Include all tests used
48689         for rint.  Include results for all rounding modes.
48690         (nearbyint_test): Use ALL_RM_TEST.
48691         (rint_test_data): Include all tests used for nearbyint.
48692
48693 2014-03-17  Will Newton  <will.newton@linaro.org>
48694
48695         * nptl/sysdeps/pthread/pthread.h: Revert previous
48696         change.
48697
48698         * sysdeps/generic/ldsodefs.h: Revert previous
48699         change.
48700
48701         * libio/genops.c: Revert previous change.
48702         * libio/libioP.h: Likewise.
48703         * stdio-common/vfprintf.c: Likewise.
48704
48705         * sysdeps/generic/math_private.h: Revert previous
48706         change.
48707
48708         * sysdeps/generic/math_private.h: Check whether
48709         HAVE_RM_CTX is defined with #ifdef rather
48710         than #if.
48711
48712         * argp/argp-fmtstream.h: Check whether
48713         __STRICT_ANSI__ is defined with #ifdef rather
48714         than #if.
48715         * argp/argp.h: Likewise.
48716
48717         * libio/genops.c: Check whether
48718         _IO_JUMPS_OFFSET is defined with #ifdef rather
48719         than #if.
48720         * libio/libioP.h: Likewise.
48721         * stdio-common/vfprintf.c: Likewise.
48722
48723         * sysdeps/generic/ldsodefs.h: Check whether
48724         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
48725         than #if.
48726
48727         * nptl/sysdeps/pthread/pthread.h: Check
48728         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
48729         its value.
48730
48731 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48732
48733         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
48734         setting O_APPEND.
48735         * libio/tst-ftell-active-handler.c (do_append_test): Add a
48736         test case.
48737
48738         [BZ #16680]
48739         * libio/fileops.c (_IO_file_open): Seek to end of file but
48740         don't cache the offset.
48741         (get_file_offset): Remove function.
48742         (do_ftell): Use cached offset when available.
48743         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
48744         don't cache the offset.
48745         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
48746         case.
48747         (do_one_test): Call it.
48748         (do_ftell_test): Fix up expected old offset for a+ mode.
48749         * libio/wfileops.c (do_ftell_wide): Used cached offset when
48750         available.
48751
48752         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
48753         up test status with function return status.
48754         (do_write_test): Likewise.
48755         (do_append_test): Likewise.
48756
48757         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
48758         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
48759         Remove.
48760
48761 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
48762
48763         * math/gen-libm-test.pl (parse_args): Handle results specified for
48764         each rounding mode separately.
48765         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
48766         tests and results from lrint_tonearest_test_data,
48767         lrint_towardzero_test_data, lrint_downward_test_data and
48768         lrint_upward_test_data.
48769         (lrint_test): Use ALL_RM_TEST.
48770         (lrint_tonearest_test_data): Remove.
48771         (lrint_test_tonearest): Likewise.
48772         (lrint_towardzero_test_data): Likewise.
48773         (lrint_test_towardzero): Likewise.
48774         (lrint_downward_test_data): Likewise.
48775         (lrint_test_downward): Likewise.
48776         (lrint_upward_test_data): Likewise.
48777         (lrint_test_upward): Likewise.
48778         (llrint_test_data): Merge in per-rounding-mode tests and results
48779         from llrint_tonearest_test_data, llrint_towardzero_test_data,
48780         llrint_downward_test_data and llrint_upward_test_data.
48781         (llrint_test): Use ALL_RM_TEST.
48782         (llrint_tonearest_test_data): Remove.
48783         (llrint_test_tonearest): Likewise.
48784         (llrint_towardzero_test_data): Likewise.
48785         (llrint_test_towardzero): Likewise.
48786         (llrint_downward_test_data): Likewise.
48787         (llrint_test_downward): Likewise.
48788         (llrint_upward_test_data): Likewise.
48789         (llrint_test_upward): Likewise.
48790         (rint_test_data): Merge in per-rounding-mode tests and results
48791         from rint_tonearest_test_data, rint_towardzero_test_data,
48792         rint_downward_test_data and rint_upward_test_data.  Add
48793         per-rounding-mode results for tests not in those arrays.
48794         (rint_test): Use ALL_RM_TEST.
48795         (rint_tonearest_test_data): Remove.
48796         (rint_test_tonearest): Likewise.
48797         (rint_towardzero_test_data): Likewise.
48798         (rint_test_towardzero): Likewise.
48799         (rint_downward_test_data): Likewise.
48800         (rint_test_downward): Likewise.
48801         (rint_upward_test_data): Likewise.
48802         (rint_test_upward): Likewise.
48803         (main): Don't call removed functions.
48804
48805 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48806
48807         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
48808         "Compiled on ..." crapola.  It is anti-useful.
48809
48810 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
48811
48812         * scripts/evaluate-test.sh: Handle fourth argument to determine
48813         whether test run should stop on failure.
48814         * Makeconfig (stop-on-test-failure): New variable.
48815         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
48816         $(stop-on-test-failure).
48817         * Makefile (tests): Give a summary of results from testing and
48818         exit with failure status if they include an ERROR or FAIL.
48819         (xtests): Likewise.
48820         * manual/install.texi (Configuring and compiling): Mention
48821         stop-on-test-failure=y.
48822         * INSTALL: Regenerated.
48823
48824 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48825
48826         * scripts/versionlist.awk: New file.
48827         * Makerules [$(build-shared) = yes]
48828         (postclean-generated): Add Versions.def, not Versions.def.v and
48829         Versions.def.v.i.
48830         ($(common-objpfx)Versions.def.v.i): Target removed.
48831         ($(common-objpfx)Versions.def): New target.
48832         ($(common-objpfx)Versions.all): Depend on that rather that
48833         $(common-objpfx)Versions.def.v.
48834         * Versions.def: File removed.
48835
48836         * Makeconfig (+gccwarn): Add -Wundef.
48837         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
48838         a dl-sysdep.h breaking its contract.
48839         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
48840         * include/stackinfo.h: New file.
48841         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
48842         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
48843         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
48844         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
48845         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
48846         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
48847         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48848         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48849         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48850         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48851         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48852         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
48853         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48854         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48855         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48856
48857 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48858
48859         [BZ #16707]
48860         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
48861         implementation.
48862         * math/libm-test.inc (round_test_data): Add more tests.
48863
48864         [BZ #16706]
48865         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
48866         implementation.
48867         * math/libm-test.inc (nearbyint_test_data): Add more tests.
48868
48869         [BZ #16701]
48870         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
48871         implementation.
48872         * math/libm-test.inc (ceil_test_data): Add more tests.
48873
48874         * math/libm-test.inc (trunc_test_data): Add more tests related to
48875         BZ#16414.
48876
48877 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48878
48879         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
48880         with #if rather than #ifdef.
48881         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
48882
48883 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
48884
48885         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
48886         first.  Disable AVX-512 GCC support if assembler doesn't support
48887         it.
48888         * sysdeps/x86_64/configure: Regenerated.
48889
48890 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
48891
48892         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
48893         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
48894         (__old_pthread_attr_setstack): Likewise.
48895         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
48896         [!_STACK_GROWS_DOWN]: Likewise.
48897
48898 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
48899
48900         * config.make.in (have-bash2): Delete.
48901         * configure.ac (libc_cv_have_bash2): Delete.
48902         * configure: Regenerate.
48903         * elf/Makefile (common-ldd-rewrite): Rename to ...
48904         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
48905         (sh-ldd-rewrite): Delete.
48906         (bash-ldd-rewrite): Delete.
48907         (have-bash2): Delete checks.
48908         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
48909         ldd-rewrite.
48910
48911         * config.make.in (have-ksh): Delete.
48912         (KSH): Delete.
48913         * configure.ac (libc_cv_have_ksh): Delete.
48914         * configure: Regenerate.
48915
48916         * elf/Makefile: Delete $(have-ksh) check.
48917         ($(objpfx)sotruss): Change KSH to BASH.
48918         * elf/sotruss.ksh: Rename to ...
48919         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
48920         function style to match POSIX.  Drop ksh vim mode setting.
48921
48922         * manual/time.texi (Specifying the Time Zone with TZ): Change
48923         Tuesday to Thursday.
48924
48925         * debug/tst-longjmp_chk2.c: Update header comment.
48926         (stackoverflow_handler): Add comment.  Call assert on pass value.
48927
48928 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
48929
48930         [BZ #16194]
48931         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
48932         (HAVE_AVX512_ASM_SUPPORT): Likewise.
48933         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
48934         (La_x86_64_vector): Add zmm.
48935         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
48936         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
48937         ($(objpfx)tst-audit10): New target.
48938         ($(objpfx)tst-audit10.out): Likewise.
48939         (tst-audit10-ENV): New.
48940         (AVX512-CFLAGS): Likewise.
48941         (CFLAGS-tst-audit10.c): Likewise.
48942         (CFLAGS-tst-auditmod10a.c): Likewise.
48943         (CFLAGS-tst-auditmod10b.c): Likewise.
48944         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
48945         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
48946         * sysdeps/x86_64/configure: Regenerated.
48947         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
48948         AVX-512 zmm register support.
48949         (_dl_x86_64_save_sse): Likewise.
48950         (_dl_x86_64_restore_sse): Likewise.
48951         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
48952         size vector registers.
48953         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
48954         (ZMM_SIZE): Likewise.
48955         * sysdeps/x86_64/tst-audit10.c: New file.
48956         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
48957         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
48958
48959 2014-03-13  Roland McGrath  <roland@hack.frob.com>
48960
48961         * configure.ac (HAVE_EHDR_START): New check.
48962         * configure: Regenerated.
48963         * config.h.in (HAVE_EHDR_START): New #undef.
48964         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
48965         assuming the lowest-addressed segment maps the start of the file.
48966
48967 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
48968
48969         * INSTALL: Regenerated.
48970
48971 2014-03-13  Will Newton  <will.newton@linaro.org>
48972
48973         * manual/setjmp.texi (System V contexts): Improve
48974         clarity and grammar of documentation.
48975
48976 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
48977
48978         [BZ #16381]
48979         * elf/Makefile (tests): Add tst-pie2.
48980         (tests-pie): Add tst-pie2.
48981         * elf/tst-pie2.c: New file.
48982         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
48983         for ET_EXEC.
48984         * elf/rtld.c (map_doit): Load executable as lt_executable.
48985         (dl_main): Likewise.
48986
48987 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
48988
48989         [BZ #16642]
48990         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48991         (__ASSUME_PSELECT): Undefine.
48992
48993 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48994
48995         [BZ #16689]
48996         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
48997         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
48998         static build.
48999         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
49000         selector for static builds.
49001
49002 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49003
49004         [BZ #16695]
49005         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
49006         key in the buffer.
49007
49008 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49009
49010         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
49011         IFUNC selector for static builds.
49012
49013 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
49014
49015         * sysdeps/mips/math_private.h [__mips_hard_float]
49016         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
49017         libc_feresetround_mips_ctx.
49018         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
49019         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
49020         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
49021
49022         [BZ #16677]
49023         * math/s_nextafter.c (__nextafter): Do not return value from
49024         overflowing computation.
49025         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
49026         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
49027         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
49028         Likewise.
49029         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
49030         Likewise.
49031         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
49032         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
49033
49034 2014-03-11  Roland McGrath  <roland@hack.frob.com>
49035
49036         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
49037         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
49038         Move sfi_sp use from the load-multiple (that no longer sets sp) to
49039         the new mov targetting sp.
49040
49041 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49042
49043         [BZ #16683]
49044         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
49045         Define it for static builds as well.
49046         (NO_BZERO_IMPL): Likewise.
49047
49048 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
49049
49050         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
49051         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
49052         multiarch strspn for PPC64.
49053         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
49054         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
49055         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49056         (__libc_ifunc_impl_list): Likewise.
49057         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
49058         multiarch optimizations
49059         * string/strspn.c (strspn): Using macro to redefine symbol name.
49060
49061 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
49062             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49063
49064         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
49065         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
49066         multiarch strncat for PPC64.
49067         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
49068         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
49069         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49070         (__libc_ifunc_impl_list): Likewise.
49071         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
49072         multiarch optimizations
49073
49074 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49075
49076         [BZ #16639]
49077         * nscd/nscd.service: Make service type forking.
49078
49079 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49080
49081         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
49082         sign in non default rounding modes.
49083         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
49084
49085 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
49086
49087         * math/libm-test.inc (ALL_RM_TEST): New macro.
49088         (ceil_test): Use ALL_RM_TEST.
49089         (cimag_test): Likewise.
49090         (conj_test): Likewise.
49091         (copysign_test): Likewise.
49092         (cproj_test): Likewise.
49093         (creal_test): Likewise.
49094         (fabs_test): Likewise.
49095         (floor_test): Likewise.
49096         (fmax_test): Likewise.
49097         (fmin_test): Likewise.
49098         (fmod_test): Likewise.
49099         (fpclassify_test): Likewise.
49100         (frexp_test): Likewise.
49101         (ilogb_test): Likewise.
49102         (isfinite_test): Likewise.
49103         (finite_test): Likewise.
49104         (isgreater_test): Likewise.
49105         (isgreaterequal_test): Likewise.
49106         (isinf_test): Likewise.
49107         (isless_test): Likewise.
49108         (islessequal_test): Likewise.
49109         (islessgreater_test): Likewise.
49110         (isnan_test): Likewise.
49111         (isnormal_test): Likewise.
49112         (issignaling_test): Likewise.
49113         (isunordered_test): Likewise.
49114         (logb_test): Likewise.
49115         (logb_downward_test_data): Remove.
49116         (logb_test_downward): Likewise.
49117         (lround_test): Use ALL_RM_TEST.
49118         (llround_test): Likewise.
49119         (modf_test): Likewise.
49120         (nexttoward_test): Likewise.
49121         (remainder_test): Likewise.
49122         (drem_test): Likewise.
49123         (remainder_tonearest_test_data): Likewise.
49124         (remainder_test_tonearest): Likewise.
49125         (drem_test_tonearest): Likewise.
49126         (remainder_towardzero_test_data): Likewise.
49127         (remainder_test_towardzero): Likewise.
49128         (drem_test_towardzero): Likewise.
49129         (remainder_downward_test_data): Likewise.
49130         (remainder_test_downward): Likewise.
49131         (drem_test_downward): Likewise.
49132         (remainder_upward_test_data): Likewise.
49133         (remainder_test_upward): Likewise.
49134         (drem_test_upward): Likewise.
49135         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
49136         (round_test): Use ALL_RM_TEST.
49137         (signbit_test): Likewise.
49138         (trunc_test): Likewise.
49139         (significand_test): Likewise.
49140         (main): Don't call removed functions.
49141
49142 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49143
49144         [BZ #16674]
49145         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
49146         || __USE_XOPEN2K8].
49147         (ILL_ILLOPN): Likewise.
49148         (ILL_ILLADR): Likewise.
49149         (ILL_ILLTRP): Likewise.
49150         (ILL_PRVOPC): Likewise.
49151         (ILL_PRVREG): Likewise.
49152         (ILL_COPROC): Likewise.
49153         (ILL_BADSTK): Likewise.
49154         (FPE_INTDIV): Likewise.
49155         (FPE_INTOVF): Likewise.
49156         (FPE_FLTDIV): Likewise.
49157         (FPE_FLTOVF): Likewise.
49158         (FPE_FLTUND): Likewise.
49159         (FPE_FLTRES): Likewise.
49160         (FPE_FLTINV): Likewise.
49161         (FPE_FLTSUB): Likewise.
49162         (SEGV_MAPERR): Likewise.
49163         (SEGV_ACCERR): Likewise.
49164         (BUS_ADRALN): Likewise.
49165         (BUS_ADRERR): Likewise.
49166         (BUS_OBJERR): Likewise.
49167         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49168         (TRAP_TRACE): Likewise.
49169         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49170         __USE_XOPEN2K8].
49171         (CLD_KILLED): Likewise.
49172         (CLD_DUMPED): Likewise.
49173         (CLD_TRAPPED): Likewise.
49174         (CLD_STOPPED): Likewise.
49175         (CLD_CONTINUED): Likewise.
49176         (POLL_IN): Likewise.
49177         (POLL_OUT): Likewise.
49178         (POLL_MSG): Likewise.
49179         (POLL_ERR): Likewise.
49180         (POLL_PRI): Likewise.
49181         (POLL_HUP): Likewise.
49182         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
49183         Likewise.
49184         (ILL_ILLOPN): Likewise.
49185         (ILL_ILLADR): Likewise.
49186         (ILL_ILLTRP): Likewise.
49187         (ILL_PRVOPC): Likewise.
49188         (ILL_PRVREG): Likewise.
49189         (ILL_COPROC): Likewise.
49190         (ILL_BADSTK): Likewise.
49191         (FPE_INTDIV): Likewise.
49192         (FPE_INTOVF): Likewise.
49193         (FPE_FLTDIV): Likewise.
49194         (FPE_FLTOVF): Likewise.
49195         (FPE_FLTUND): Likewise.
49196         (FPE_FLTRES): Likewise.
49197         (FPE_FLTINV): Likewise.
49198         (FPE_FLTSUB): Likewise.
49199         (SEGV_MAPERR): Likewise.
49200         (SEGV_ACCERR): Likewise.
49201         (BUS_ADRALN): Likewise.
49202         (BUS_ADRERR): Likewise.
49203         (BUS_OBJERR): Likewise.
49204         (BUS_MCEERR_AR): Likewise.
49205         (BUS_MCEERR_AO): Likewise.
49206         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49207         (TRAP_TRACE): Likewise.
49208         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49209         __USE_XOPEN2K8].
49210         (CLD_KILLED): Likewise.
49211         (CLD_DUMPED): Likewise.
49212         (CLD_TRAPPED): Likewise.
49213         (CLD_STOPPED): Likewise.
49214         (CLD_CONTINUED): Likewise.
49215         (POLL_IN): Likewise.
49216         (POLL_OUT): Likewise.
49217         (POLL_MSG): Likewise.
49218         (POLL_ERR): Likewise.
49219         (POLL_PRI): Likewise.
49220         (POLL_HUP): Likewise.
49221         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
49222         (ILL_ILLOPN): Likewise.
49223         (ILL_ILLADR): Likewise.
49224         (ILL_ILLTRP): Likewise.
49225         (ILL_PRVOPC): Likewise.
49226         (ILL_PRVREG): Likewise.
49227         (ILL_COPROC): Likewise.
49228         (ILL_BADSTK): Likewise.
49229         (FPE_INTDIV): Likewise.
49230         (FPE_INTOVF): Likewise.
49231         (FPE_FLTDIV): Likewise.
49232         (FPE_FLTOVF): Likewise.
49233         (FPE_FLTUND): Likewise.
49234         (FPE_FLTRES): Likewise.
49235         (FPE_FLTINV): Likewise.
49236         (FPE_FLTSUB): Likewise.
49237         (SEGV_MAPERR): Likewise.
49238         (SEGV_ACCERR): Likewise.
49239         (BUS_ADRALN): Likewise.
49240         (BUS_ADRERR): Likewise.
49241         (BUS_OBJERR): Likewise.
49242         (BUS_MCEERR_AR): Likewise.
49243         (BUS_MCEERR_AO): Likewise.
49244         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49245         (TRAP_TRACE): Likewise.
49246         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49247         __USE_XOPEN2K8].
49248         (CLD_KILLED): Likewise.
49249         (CLD_DUMPED): Likewise.
49250         (CLD_TRAPPED): Likewise.
49251         (CLD_STOPPED): Likewise.
49252         (CLD_CONTINUED): Likewise.
49253         (POLL_IN): Likewise.
49254         (POLL_OUT): Likewise.
49255         (POLL_MSG): Likewise.
49256         (POLL_ERR): Likewise.
49257         (POLL_PRI): Likewise.
49258         (POLL_HUP): Likewise.
49259         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
49260         Likewise.
49261         (ILL_ILLOPN): Likewise.
49262         (ILL_ILLADR): Likewise.
49263         (ILL_ILLTRP): Likewise.
49264         (ILL_PRVOPC): Likewise.
49265         (ILL_PRVREG): Likewise.
49266         (ILL_COPROC): Likewise.
49267         (ILL_BADSTK): Likewise.
49268         (ILL_BADIADDR): Likewise.
49269         (ILL_BREAK): Likewise.
49270         (FPE_INTDIV): Likewise.
49271         (FPE_INTOVF): Likewise.
49272         (FPE_FLTDIV): Likewise.
49273         (FPE_FLTOVF): Likewise.
49274         (FPE_FLTUND): Likewise.
49275         (FPE_FLTRES): Likewise.
49276         (FPE_FLTINV): Likewise.
49277         (FPE_FLTSUB): Likewise.
49278         (FPE_DECOVF): Likewise.
49279         (FPE_DECDIV): Likewise.
49280         (FPE_DECERR): Likewise.
49281         (FPE_INVASC): Likewise.
49282         (FPE_INVDEC): Likewise.
49283         (SEGV_MAPERR): Likewise.
49284         (SEGV_ACCERR): Likewise.
49285         (SEGV_PSTKOVF): Likewise.
49286         (BUS_ADRALN): Likewise.
49287         (BUS_ADRERR): Likewise.
49288         (BUS_OBJERR): Likewise.
49289         (BUS_MCEERR_AR): Likewise.
49290         (BUS_MCEERR_AO): Likewise.
49291         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49292         (TRAP_TRACE): Likewise.
49293         (TRAP_BRANCH): Likewise.
49294         (TRAP_HWBKPT): Likewise.
49295         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49296         __USE_XOPEN2K8].
49297         (CLD_KILLED): Likewise.
49298         (CLD_DUMPED): Likewise.
49299         (CLD_TRAPPED): Likewise.
49300         (CLD_STOPPED): Likewise.
49301         (CLD_CONTINUED): Likewise.
49302         (POLL_IN): Likewise.
49303         (POLL_OUT): Likewise.
49304         (POLL_MSG): Likewise.
49305         (POLL_ERR): Likewise.
49306         (POLL_PRI): Likewise.
49307         (POLL_HUP): Likewise.
49308         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
49309         (ILL_ILLOPN): Likewise.
49310         (ILL_ILLADR): Likewise.
49311         (ILL_ILLTRP): Likewise.
49312         (ILL_PRVOPC): Likewise.
49313         (ILL_PRVREG): Likewise.
49314         (ILL_COPROC): Likewise.
49315         (ILL_BADSTK): Likewise.
49316         (FPE_INTDIV): Likewise.
49317         (FPE_INTOVF): Likewise.
49318         (FPE_FLTDIV): Likewise.
49319         (FPE_FLTOVF): Likewise.
49320         (FPE_FLTUND): Likewise.
49321         (FPE_FLTRES): Likewise.
49322         (FPE_FLTINV): Likewise.
49323         (FPE_FLTSUB): Likewise.
49324         (SEGV_MAPERR): Likewise.
49325         (SEGV_ACCERR): Likewise.
49326         (BUS_ADRALN): Likewise.
49327         (BUS_ADRERR): Likewise.
49328         (BUS_OBJERR): Likewise.
49329         (BUS_MCEERR_AR): Likewise.
49330         (BUS_MCEERR_AO): Likewise.
49331         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49332         (TRAP_TRACE): Likewise.
49333         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49334         __USE_XOPEN2K8].
49335         (CLD_KILLED): Likewise.
49336         (CLD_DUMPED): Likewise.
49337         (CLD_TRAPPED): Likewise.
49338         (CLD_STOPPED): Likewise.
49339         (CLD_CONTINUED): Likewise.
49340         (POLL_IN): Likewise.
49341         (POLL_OUT): Likewise.
49342         (POLL_MSG): Likewise.
49343         (POLL_ERR): Likewise.
49344         (POLL_PRI): Likewise.
49345         (POLL_HUP): Likewise.
49346         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
49347         (ILL_ILLOPN): Likewise.
49348         (ILL_ILLADR): Likewise.
49349         (ILL_ILLTRP): Likewise.
49350         (ILL_PRVOPC): Likewise.
49351         (ILL_PRVREG): Likewise.
49352         (ILL_COPROC): Likewise.
49353         (ILL_BADSTK): Likewise.
49354         (FPE_INTDIV): Likewise.
49355         (FPE_INTOVF): Likewise.
49356         (FPE_FLTDIV): Likewise.
49357         (FPE_FLTOVF): Likewise.
49358         (FPE_FLTUND): Likewise.
49359         (FPE_FLTRES): Likewise.
49360         (FPE_FLTINV): Likewise.
49361         (FPE_FLTSUB): Likewise.
49362         (SEGV_MAPERR): Likewise.
49363         (SEGV_ACCERR): Likewise.
49364         (BUS_ADRALN): Likewise.
49365         (BUS_ADRERR): Likewise.
49366         (BUS_OBJERR): Likewise.
49367         (BUS_MCEERR_AR): Likewise.
49368         (BUS_MCEERR_AO): Likewise.
49369         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49370         (TRAP_TRACE): Likewise.
49371         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49372         __USE_XOPEN2K8].
49373         (CLD_KILLED): Likewise.
49374         (CLD_DUMPED): Likewise.
49375         (CLD_TRAPPED): Likewise.
49376         (CLD_STOPPED): Likewise.
49377         (CLD_CONTINUED): Likewise.
49378         (POLL_IN): Likewise.
49379         (POLL_OUT): Likewise.
49380         (POLL_MSG): Likewise.
49381         (POLL_ERR): Likewise.
49382         (POLL_PRI): Likewise.
49383         (POLL_HUP): Likewise.
49384         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
49385         (ILL_ILLOPN): Likewise.
49386         (ILL_ILLADR): Likewise.
49387         (ILL_ILLTRP): Likewise.
49388         (ILL_PRVOPC): Likewise.
49389         (ILL_PRVREG): Likewise.
49390         (ILL_COPROC): Likewise.
49391         (ILL_BADSTK): Likewise.
49392         (FPE_INTDIV): Likewise.
49393         (FPE_INTOVF): Likewise.
49394         (FPE_FLTDIV): Likewise.
49395         (FPE_FLTOVF): Likewise.
49396         (FPE_FLTUND): Likewise.
49397         (FPE_FLTRES): Likewise.
49398         (FPE_FLTINV): Likewise.
49399         (FPE_FLTSUB): Likewise.
49400         (SEGV_MAPERR): Likewise.
49401         (SEGV_ACCERR): Likewise.
49402         (BUS_ADRALN): Likewise.
49403         (BUS_ADRERR): Likewise.
49404         (BUS_OBJERR): Likewise.
49405         (BUS_MCEERR_AR): Likewise.
49406         (BUS_MCEERR_AO): Likewise.
49407         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49408         (TRAP_TRACE): Likewise.
49409         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49410         __USE_XOPEN2K8].
49411         (CLD_KILLED): Likewise.
49412         (CLD_DUMPED): Likewise.
49413         (CLD_TRAPPED): Likewise.
49414         (CLD_STOPPED): Likewise.
49415         (CLD_CONTINUED): Likewise.
49416         (POLL_IN): Likewise.
49417         (POLL_OUT): Likewise.
49418         (POLL_MSG): Likewise.
49419         (POLL_ERR): Likewise.
49420         (POLL_PRI): Likewise.
49421         (POLL_HUP): Likewise.
49422         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
49423         (ILL_ILLOPN): Likewise.
49424         (ILL_ILLADR): Likewise.
49425         (ILL_ILLTRP): Likewise.
49426         (ILL_PRVOPC): Likewise.
49427         (ILL_PRVREG): Likewise.
49428         (ILL_COPROC): Likewise.
49429         (ILL_BADSTK): Likewise.
49430         (ILL_DBLFLT): Likewise.
49431         (ILL_HARDWALL): Likewise.
49432         (FPE_INTDIV): Likewise.
49433         (FPE_INTOVF): Likewise.
49434         (FPE_FLTDIV): Likewise.
49435         (FPE_FLTOVF): Likewise.
49436         (FPE_FLTUND): Likewise.
49437         (FPE_FLTRES): Likewise.
49438         (FPE_FLTINV): Likewise.
49439         (FPE_FLTSUB): Likewise.
49440         (SEGV_MAPERR): Likewise.
49441         (SEGV_ACCERR): Likewise.
49442         (BUS_ADRALN): Likewise.
49443         (BUS_ADRERR): Likewise.
49444         (BUS_OBJERR): Likewise.
49445         (BUS_MCEERR_AR): Likewise.
49446         (BUS_MCEERR_AO): Likewise.
49447         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49448         (TRAP_TRACE): Likewise.
49449         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49450         __USE_XOPEN2K8].
49451         (CLD_KILLED): Likewise.
49452         (CLD_DUMPED): Likewise.
49453         (CLD_TRAPPED): Likewise.
49454         (CLD_STOPPED): Likewise.
49455         (CLD_CONTINUED): Likewise.
49456         (POLL_IN): Likewise.
49457         (POLL_OUT): Likewise.
49458         (POLL_MSG): Likewise.
49459         (POLL_ERR): Likewise.
49460         (POLL_PRI): Likewise.
49461         (POLL_HUP): Likewise.
49462         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
49463         (ILL_ILLOPN): Likewise.
49464         (ILL_ILLADR): Likewise.
49465         (ILL_ILLTRP): Likewise.
49466         (ILL_PRVOPC): Likewise.
49467         (ILL_PRVREG): Likewise.
49468         (ILL_COPROC): Likewise.
49469         (ILL_BADSTK): Likewise.
49470         (FPE_INTDIV): Likewise.
49471         (FPE_INTOVF): Likewise.
49472         (FPE_FLTDIV): Likewise.
49473         (FPE_FLTOVF): Likewise.
49474         (FPE_FLTUND): Likewise.
49475         (FPE_FLTRES): Likewise.
49476         (FPE_FLTINV): Likewise.
49477         (FPE_FLTSUB): Likewise.
49478         (SEGV_MAPERR): Likewise.
49479         (SEGV_ACCERR): Likewise.
49480         (BUS_ADRALN): Likewise.
49481         (BUS_ADRERR): Likewise.
49482         (BUS_OBJERR): Likewise.
49483         (BUS_MCEERR_AR): Likewise.
49484         (BUS_MCEERR_AO): Likewise.
49485         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49486         (TRAP_TRACE): Likewise.
49487         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49488         __USE_XOPEN2K8].
49489         (CLD_KILLED): Likewise.
49490         (CLD_DUMPED): Likewise.
49491         (CLD_TRAPPED): Likewise.
49492         (CLD_STOPPED): Likewise.
49493         (CLD_CONTINUED): Likewise.
49494         (POLL_IN): Likewise.
49495         (POLL_OUT): Likewise.
49496         (POLL_MSG): Likewise.
49497         (POLL_ERR): Likewise.
49498         (POLL_PRI): Likewise.
49499         (POLL_HUP): Likewise.
49500         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
49501         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
49502
49503         [BZ #16670]
49504         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
49505         before #include of <time.h>.
49506         [!__USE_XOPEN2K] (__need_timespec): Likewise.
49507         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
49508         (test-xfail-UNIX98/sched.h/conform): Likewise.
49509
49510 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
49511
49512         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
49513         error absence of trapping exception support.
49514         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
49515
49516 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49517
49518         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
49519         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
49520         * timezone/Makefile (testdata): Move definition above include of
49521         Rules.
49522         (test-zones): New variable.
49523         (tests-special): Add zone files.
49524         (build-testdata): Use $(evaluate-test).
49525
49526         * elf/Makefile (tests-special): Rename tests to end with .out.
49527         ($(objpfx)noload-mem): Likewise.
49528         ($(objpfx)tst-leaks1-mem): Likewise.
49529         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
49530         * iconv/Makefile (xtests-special): Change test-iconvconfig to
49531         $(objpfx)test-iconvconfig.out.
49532         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
49533         set -e inside subshell and redirect output to file.
49534         * iconvdata/Makefile (generated): Rename tests to end with .out.
49535         Correct type.
49536         (tests-special): Rename tests to end with .out.
49537         ($(objpfx)mtrace-tst-loading): Likewise.
49538         * intl/Makefile (generated): Likewise.
49539         (tests-special): Likewise.
49540         ($(objpfx)mtrace-tst-gettext): Likewise.
49541         * misc/Makefile (generated): Likewise.
49542         (tests-special): Likewise.
49543         ($(objpfx)tst-error1-mem): Likewise.
49544         * nptl/Makefile (tests-special): Likewise.
49545         ($(objpfx)tst-stack3-mem): Likewise.
49546         (generated): Likewise.
49547         * posix/Makefile (generated): Likewise.
49548         (tests-special): Likewise.
49549         (xtests-special): Likewise.
49550         ($(objpfx)tst-fnmatch-mem): Likewise.
49551         ($(objpfx)bug-regex2-mem): Likewise.
49552         ($(objpfx)bug-regex14-mem): Likewise.
49553         ($(objpfx)bug-regex21-mem): Likewise.
49554         ($(objpfx)bug-regex31-mem): Likewise.
49555         ($(objpfx)tst-vfork3-mem): Likewise.
49556         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
49557         ($(objpfx)tst-pcre-mem): Likewise.
49558         ($(objpfx)tst-boost-mem): Likewise.
49559         ($(objpfx)bug-ga2-mem): Likewise.
49560         ($(objpfx)bug-glob2-mem): Likewise.
49561         * resolv/Makefile (generate): Likewise.
49562         (tests-special): Likewise.
49563         (xtests-special): Likewise.
49564         (generated): Likewise.
49565         ($(objpfx)mtrace-tst-leaks): Likewise.
49566         ($(objpfx)mtrace-tst-leaks2): Likewise.
49567
49568         * scripts/merge-test-results.sh: New file.
49569         * Makefile (tests-special-notdir): New variable.
49570         (tests): Run merge-test-results.sh.
49571         (xtests): Likewise.
49572         * Rules (tests-special-notdir): New variable.
49573         (xtests-special-notdir): Likewise.
49574         (tests): Run merge-test-results.sh
49575         (xtests): Likewise.
49576
49577         * Makeconfig (test-xfail-name): New variable.
49578         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
49579         compute variable name for expected failures.
49580         * conform/Makefile (conformtest-headers-data): New variable.
49581         (conformtest-standards): Likewise.
49582         (conformtest-headers-ISO): Likewise.
49583         (conformtest-headers-ISO99): Likewise.
49584         (conformtest-headers-ISO11): Likewise.
49585         (conformtest-headers-POSIX): Likewise.
49586         (conformtest-headers-XPG3): Likewise.
49587         (conformtest-headers-XPG4): Likewise.
49588         (conformtest-headers-UNIX98): Likewise.
49589         (conformtest-headers-XOPEN2K): Likewise.
49590         (conformtest-headers-POSIX2008): Likewise.
49591         (conformtest-headers-XOPEN2K8): Likewise.
49592         (conformtest-header-list-base): Likewise.
49593         (conformtest-header-list-tests): Likewise.
49594         (conformtest-header-base): Likewise.
49595         (conformtest-header-tests): Likewise.
49596         (tests-special): Add $(conformtest-header-list-tests).  If
49597         [$(fast-check) && !$(cross-compiling)], add
49598         $(conformtest-header-tests) instead of
49599         $(objpfx)run-conformtest.out.
49600         (generated): Add $(conformtest-header-list-base).  If
49601         [$(fast-check) && !$(cross-compiling)], add
49602         $(conformtest-header-base).  Remove previous setting.
49603         ($(conformtest-header-list-tests)): New target.
49604         (test-xfail-run-conformtest): Remove variable.
49605         ($(objpfx)run-conformtest.out): Remove target.
49606         (test-xfail-ISO11/complex.h/conform): New variable.
49607         (test-xfail-ISO11/stdalign.h/conform): Likewise.
49608         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
49609         (test-xfail-XPG3/varargs.h/conform): Likewise.
49610         (test-xfail-XPG4/varargs.h/conform): Likewise.
49611         (test-xfail-UNIX98/varargs.h/conform): Likewise.
49612         (test-xfail-XPG4/ndbm.h/conform): Likewise.
49613         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
49614         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
49615         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
49616         (test-xfail-XPG3/fcntl.h/conform): Likewise.
49617         (test-xfail-XPG3/ftw.h/conform): Likewise.
49618         (test-xfail-XPG3/grp.h/conform): Likewise.
49619         (test-xfail-XPG3/langinfo.h/conform): Likewise.
49620         (test-xfail-XPG3/limits.h/conform): Likewise.
49621         (test-xfail-XPG3/pwd.h/conform): Likewise.
49622         (test-xfail-XPG3/search.h/conform): Likewise.
49623         (test-xfail-XPG3/signal.h/conform): Likewise.
49624         (test-xfail-XPG3/stdio.h/conform): Likewise.
49625         (test-xfail-XPG3/stdlib.h/conform): Likewise.
49626         (test-xfail-XPG3/string.h/conform): Likewise.
49627         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
49628         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
49629         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
49630         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
49631         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
49632         (test-xfail-XPG3/sys/types.h/conform): Likewise.
49633         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
49634         (test-xfail-XPG3/termios.h/conform): Likewise.
49635         (test-xfail-XPG3/time.h/conform): Likewise.
49636         (test-xfail-XPG3/unistd.h/conform): Likewise.
49637         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
49638         (test-xfail-XPG4/fcntl.h/conform): Likewise.
49639         (test-xfail-XPG4/langinfo.h/conform): Likewise.
49640         (test-xfail-XPG4/netdb.h/conform): Likewise.
49641         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
49642         (test-xfail-XPG4/signal.h/conform): Likewise.
49643         (test-xfail-XPG4/stdio.h/conform): Likewise.
49644         (test-xfail-XPG4/stdlib.h/conform): Likewise.
49645         (test-xfail-XPG4/stropts.h/conform): Likewise.
49646         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
49647         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
49648         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
49649         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
49650         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
49651         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
49652         (test-xfail-XPG4/sys/time.h/conform): Likewise.
49653         (test-xfail-XPG4/sys/types.h/conform): Likewise.
49654         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
49655         (test-xfail-XPG4/termios.h/conform): Likewise.
49656         (test-xfail-XPG4/ucontext.h/conform): Likewise.
49657         (test-xfail-XPG4/unistd.h/conform): Likewise.
49658         (test-xfail-XPG4/utmpx.h/conform): Likewise.
49659         (test-xfail-POSIX/sched.h/conform): Likewise.
49660         (test-xfail-POSIX/signal.h/conform): Likewise.
49661         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
49662         (test-xfail-POSIX/tar.h/conform): Likewise.
49663         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
49664         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
49665         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
49666         (test-xfail-UNIX98/netdb.h/conform): Likewise.
49667         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
49668         (test-xfail-UNIX98/sched.h/conform): Likewise.
49669         (test-xfail-UNIX98/signal.h/conform): Likewise.
49670         (test-xfail-UNIX98/stdio.h/conform): Likewise.
49671         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
49672         (test-xfail-UNIX98/stropts.h/conform): Likewise.
49673         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
49674         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
49675         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
49676         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
49677         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
49678         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
49679         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
49680         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
49681         (test-xfail-UNIX98/unistd.h/conform): Likewise.
49682         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
49683         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
49684         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
49685         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
49686         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
49687         (test-xfail-XOPEN2K/math.h/conform): Likewise.
49688         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
49689         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
49690         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
49691         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
49692         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
49693         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
49694         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
49695         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
49696         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
49697         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
49698         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
49699         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
49700         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
49701         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
49702         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
49703         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
49704         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
49705         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
49706         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
49707         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
49708         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
49709         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
49710         (test-xfail-POSIX2008/signal.h/conform): Likewise.
49711         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
49712         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
49713         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
49714         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
49715         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
49716         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
49717         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
49718         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
49719         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
49720         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
49721         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
49722         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
49723         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
49724         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
49725         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
49726         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
49727         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
49728         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
49729         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
49730         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
49731         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
49732         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
49733         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
49734         (conformtest-cc-flags): Likewise.
49735         ($(conformtest-header-tests): New target.
49736         * conform/check-header-lists.sh: New file.
49737         * conform/run-conformtest.sh: Remove.
49738
49739         * conform/conformtest.pl: Allow ' and \ in values given for
49740         constants.
49741         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
49742         inclusion.
49743         [POSIX] (sys/types.h): Likewise.
49744         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
49745         inclusion.
49746         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
49747         inclusion.
49748         * conform/data/signal.h-data (SIGIO): Remove expectation.
49749         [XPG3] (SIGBUS): Do not expect.
49750         [POSIX || XPG3] (SIGPOLL): Likewise.
49751         [POSIX || XPG3] (SIGPROF): Likewise.
49752         [POSIX || XPG3] (SIGSYS): Likewise.
49753         [XPG3] (SIGTRAP): Likewise.
49754         [POSIX || XPG3] (SIGURG): Likewise.
49755         [POSIX || XPG3] (SIGVTALRM): Likewise.
49756         [POSIX || XPG3] (SIGXCPU): Likewise.
49757         [POSIX || XPG3] (SIGXFSZ): Likewise.
49758         [POSIX] (SA_SIGINFO): Expect.
49759         [XPG3] (siginfo_t): Do not expect type or contents.
49760         [POSIX] (si_pid): Do not expect element.
49761         [POSIX] (si_uid): Likewise.
49762         [POSIX] (si_addr): Likewise.
49763         [POSIX] (si_status): Likewise.
49764         [POSIX] (si_band): Likewise.
49765         [XPG4] (si_value): Likewise.
49766         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
49767         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
49768         [POSIX || XPG3] (ILL_ILLADR): Likewise.
49769         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
49770         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
49771         [POSIX || XPG3] (ILL_PRVREG): Likewise.
49772         [POSIX || XPG3] (ILL_COPROC): Likewise.
49773         [POSIX || XPG3] (ILL_BADSTK): Likewise.
49774         [POSIX || XPG3] (FPE_INTDIV): Likewise.
49775         [POSIX || XPG3] (FPE_INTOVF): Likewise.
49776         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
49777         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
49778         [POSIX || XPG3] (FPE_FLTUND): Likewise.
49779         [POSIX || XPG3] (FPE_FLTRES): Likewise.
49780         [POSIX || XPG3] (FPE_FLTINV): Likewise.
49781         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
49782         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
49783         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
49784         [POSIX || XPG3] (BUS_ADRALN): Likewise.
49785         [POSIX || XPG3] (BUS_ADRERR): Likewise.
49786         [POSIX || XPG3] (BUS_OBJERR): Likewise.
49787         [POSIX || XPG3] (CLD_EXITED): Likewise.
49788         [POSIX || XPG3] (CLD_KILLED): Likewise.
49789         [POSIX || XPG3] (CLD_DUMPED): Likewise.
49790         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
49791         [POSIX || XPG3] (CLD_STOPPED): Likewise.
49792         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
49793         [POSIX || XPG3] (POLL_IN): Likewise.
49794         [POSIX || XPG3] (POLL_OUT): Likewise.
49795         [POSIX || XPG3] (POLL_MSG): Likewise.
49796         [POSIX || XPG3] (POLL_ERR): Likewise.
49797         [POSIX || XPG3] (POLL_PRI): Likewise.
49798         [POSIX || XPG3] (POLL_HUP): Likewise.
49799         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
49800         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
49801         (SIG*): Do not allow.
49802         [XPG3] (si_*): Likewise.
49803         [XPG3] (SI_*): Likewise.
49804         [XPG3 || XPG4] (sigev_*): Likewise.
49805         [XPG3 || XPG4] (SIGEV_*): Likewise.
49806         [XPG3 || XPG4] (sival_*): Likewise.
49807         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
49808         [POSIX || XPG3] (BUS_*): Likewise.
49809         [POSIX || XPG3] (CLD_*): Likewise.
49810         [POSIX || XPG3] (FPE_*): Likewise.
49811         [POSIX || XPG3] (ILL_*): Likewise.
49812         [POSIX || XPG3] (POLL_*): Likewise.
49813         [POSIX || XPG3] (SEGV_*): Likewise.
49814         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
49815         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
49816         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
49817         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
49818         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
49819         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
49820         Specify type and value.
49821         (TVERSLEN): Likewise.
49822         (REGTYPE): Likewise.
49823         (AREGTYPE): Likewise.
49824         (LNKTYPE): Likewise.
49825         (SYMTYPE): Likewise.
49826         (CHRTYPE): Likewise.
49827         (BLKTYPE): Likewise.
49828         (DIRTYPE): Likewise.
49829         (FIFOTYPE): Likewise.
49830         (CONTTYPE): Likewise.
49831         (TSUID): Likewise.
49832         (TSGID): Likewise.
49833         (TSVTX): Likewise.
49834         (TUREAD): Likewise.
49835         (TUWRITE): Likewise.
49836         (TUEXEC): Likewise.
49837         (TGREAD): Likewise.
49838         (TGWRITE): Likewise.
49839         (TGEXEC): Likewise.
49840         (TOREAD): Likewise.
49841         (TOWRITE): Likewise.
49842         (TOEXEC): Likewise.
49843         [POSIX] (TSVTX): Expect constant.
49844
49845 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
49846
49847         * Makefile (tests): Change dependencies to ....
49848         (tests-special): ... additions to this variable.
49849         (tests): Depend on $(tests-special).
49850         * Makerules (check-abi-list): New variable.
49851         (check-abi): Depend on $(check-abi-list).
49852         [$(subdir) = elf] (tests-special): Add
49853         $(objpfx)check-abi-libc.out.
49854         [$(build-shared) = yes && subdir] (tests-special): Add
49855         $(check-abi-list).
49856         [$(build-shared) = yes && subdir] (tests): Do not depend on
49857         check-abi.
49858         * Rules (tests): Depend on $(tests-special).
49859         (xtests): Depend on $(xtests-special).
49860         * catgets/Makefile (tests): Change dependencies to ....
49861         (tests-special): ... additions to this variable.
49862         * conform/Makefile (tests): Change dependencies to ....
49863         (tests-special): ... additions to this variable.
49864         * elf/Makefile (tests): Change dependencies to ....
49865         (tests-special): ... additions to this variable.
49866         * grp/Makefile (tests): Change dependencies to ....
49867         (tests-special): ... additions to this variable.
49868         * iconv/Makefile (xtests): Change dependencies to ....
49869         (xtests-special): ... additions to this variable.
49870         * iconvdata/Makefile (tests): Change dependencies to ....
49871         (tests-special): ... additions to this variable.
49872         * intl/Makefile (tests): Change dependencies to ....
49873         (tests-special): ... additions to this variable.  Also add
49874         $(objpfx)tst-gettext.out.
49875         * io/Makefile (tests): Change dependencies to ....
49876         (tests-special): ... additions to this variable.
49877         * libio/Makefile (tests): Change dependencies to ....
49878         (tests-special): ... additions to this variable.
49879         * malloc/Makefile (tests): Change dependencies to ....
49880         (tests-special): ... additions to this variable.
49881         * misc/Makefile (tests): Change dependencies to ....
49882         (tests-special): ... additions to this variable.
49883         * nptl/Makefile (tests): Change dependencies to ....
49884         (tests-special): ... additions to this variable.
49885         * nptl_db/Makefile (tests): Change dependencies to ....
49886         (tests-special): ... additions to this variable.
49887         * posix/Makefile (tests): Change dependencies to ....
49888         (tests-special): ... additions to this variable.
49889         (xtests): Change dependencies to ....
49890         (xtests-special): ... additions to this variable.
49891         * resolv/Makefile (tests): Change dependencies to ....
49892         (tests-special): ... additions to this variable.
49893         (xtests): Change dependencies to ....
49894         (xtests-special): ... additions to this variable.
49895         * stdio-common/Makefile (tests): Change dependencies to ....
49896         (tests-special): ... additions to this variable.
49897         (do-tst-unbputc): Remove target.
49898         (do-tst-printf): Likewise.
49899         * stdlib/Makefile (tests): Change dependencies to ....
49900         (tests-special): ... additions to this variable.
49901         * string/Makefile (tests): Change dependencies to ....
49902         (tests-special): ... additions to this variable.
49903         * sysdeps/x86/Makefile (tests): Change dependencies to ....
49904         (tests-special): ... additions to this variable.
49905
49906         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
49907         whole file.
49908         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
49909         whole file.
49910         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
49911         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
49912
49913         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
49914         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
49915         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
49916         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
49917         * conform/data/libgen.h-data [XPG3]: Likewise.
49918         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
49919         * conform/data/ndbm.h-data [XPG3]: Likewise.
49920         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
49921         * conform/data/netdb.h-data [XPG3]: Likewise.
49922         * conform/data/netinet/in.h-data [XPG3]: Likewise.
49923         * conform/data/poll.h-data [XPG3]: Likewise.
49924         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
49925         * conform/data/strings.h-data [XPG3]: Likewise.
49926         * conform/data/stropts.h-data [XPG3]: Likewise.
49927         * conform/data/sys/mman.h-data [XPG3]: Likewise.
49928         * conform/data/sys/resource.h-data [XPG3]: Likewise.
49929         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
49930         Likewise.
49931         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
49932         * conform/data/sys/time.h-data [XPG3]: Likewise.
49933         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
49934         * conform/data/sys/uio.h-data [XPG3]: Likewise.
49935         * conform/data/sys/un.h-data [XPG3]: Likewise.
49936         * conform/data/syslog.h-data [XPG3]: Likewise.
49937         * conform/data/ucontext.h-data [XPG3]: Likewise.
49938         * conform/data/utmpx.h-data [XPG3]: Likewise.
49939         * conform/data/varargs.h-data [UNIX98]: Enable file.
49940
49941         * manual/Makefile (INSTALL_INFO): Remove variable setting.
49942
49943         * math/libm-test.inc (struct test_f_f_data): Move expected results
49944         into structure for each rounding mode.
49945         (struct test_ff_f_data): Likewise.
49946         (struct test_ff_f_data_nexttoward): Likewise.
49947         (struct test_fi_f_data): Likewise.
49948         (struct test_fl_f_data): Likewise.
49949         (struct test_if_f_data): Likewise.
49950         (struct test_fff_f_data): Likewise.
49951         (struct test_c_f_data): Likewise.
49952         (struct test_f_f1_data): Likewise.
49953         (struct test_fF_f1_data): Likewise.
49954         (struct test_ffI_f1_data): Likewise.
49955         (struct test_c_c_data): Likewise.
49956         (struct test_cc_c_data): Likewise.
49957         (struct test_f_i_data): Likewise.
49958         (struct test_ff_i_data): Likewise.
49959         (struct test_f_l_data): Likewise.
49960         (struct test_f_L_data): Likewise.
49961         (struct test_fFF_11_data): Likewise.
49962         (RM_): New macro.
49963         (RM_FE_DOWNWARD): Likewise.
49964         (RM_FE_TONEAREST): Likewise.
49965         (RM_FE_TOWARDZERO): Likewise.
49966         (RM_FE_UPWARD): Likewise.
49967         (RUN_TEST_LOOP_f_f): Update references to expected results.
49968         (RUN_TEST_LOOP_2_f): Likewise.
49969         (RUN_TEST_LOOP_fff_f): Likewise.
49970         (RUN_TEST_LOOP_c_f): Likewise.
49971         (RUN_TEST_LOOP_f_f1): Likewise.
49972         (RUN_TEST_LOOP_fF_f1): Likewise.
49973         (RUN_TEST_LOOP_fI_f1): Likewise.
49974         (RUN_TEST_LOOP_ffI_f1): Likewise.
49975         (RUN_TEST_LOOP_c_c): Likewise.
49976         (RUN_TEST_LOOP_cc_c): Likewise.
49977         (RUN_TEST_LOOP_f_i): Likewise.
49978         (RUN_TEST_LOOP_f_i_tg): Likewise.
49979         (RUN_TEST_LOOP_ff_i_tg): Likewise.
49980         (RUN_TEST_LOOP_f_b): Likewise.
49981         (RUN_TEST_LOOP_f_b_tg): Likewise.
49982         (RUN_TEST_LOOP_f_l): Likewise.
49983         (RUN_TEST_LOOP_f_L): Likewise.
49984         (RUN_TEST_LOOP_fFF_11): Likewise.
49985         * math/gen-libm-test.pl (parse_args): Output four copies of
49986         expected results for each test.
49987
49988         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
49989         (__ASSUME_UTIMES): Remove.
49990         * sysdeps/unix/sysv/linux/tile/kernel-features.h
49991         (__ASSUME_UTIMES): Likewise.
49992
49993         * math/gen-auto-libm-tests.c: Update comment on output format.
49994         (output_for_one_input_case): Generate before-rounding and
49995         after-rounding information as conditions on output flags not
49996         floating-point format.
49997         * math/auto-libm-test-out: Regenerated.
49998         * math/gen-libm-test.pl (cond_value): New function.
49999         (or_cond_value): Use cond_value.
50000         (generate_testfile): Handle conditional exceptions.
50001
50002 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
50003
50004         * math/libm-test.inc (max_valid_error): New variable.
50005         (init_max_error): Take new argument specifying whether function
50006         results are exactly determined.  Set max_valid_error and bound
50007         other variables for errors based on this argument.
50008         (set_max_error): Do not record results above max_valid_error.
50009         (check_float_internal): Only accept errors of up to 0.5ulps if
50010         also at most max_valid_error.
50011         (START): Take new argument EXACT and pass it to init_max_error.
50012         (acos_test): Update call to START.
50013         (acos_test_tonearest): Likewise.
50014         (acos_test_towardzero): Likewise.
50015         (acos_test_downward): Likewise.
50016         (acos_test_upward): Likewise.
50017         (acosh_test): Likewise.
50018         (asin_test): Likewise.
50019         (asin_test_tonearest): Likewise.
50020         (asin_test_towardzero): Likewise.
50021         (asin_test_downward): Likewise.
50022         (asin_test_upward): Likewise.
50023         (asinh_test): Likewise.
50024         (atan_test): Likewise.
50025         (atanh_test): Likewise.
50026         (atan2_test): Likewise.
50027         (cabs_test): Likewise.
50028         (cacos_test): Likewise.
50029         (cacosh_test): Likewise.
50030         (carg_test): Likewise.
50031         (casin_test): Likewise.
50032         (casinh_test): Likewise.
50033         (catan_test): Likewise.
50034         (catanh_test): Likewise.
50035         (cbrt_test): Likewise.
50036         (ccos_test): Likewise.
50037         (ccosh_test): Likewise.
50038         (ceil_test): Likewise.
50039         (cexp_test): Likewise.
50040         (cimag_test): Likewise.
50041         (clog_test): Likewise.
50042         (clog10_test): Likewise.
50043         (conj_test): Likewise.
50044         (copysign_test): Likewise.
50045         (cos_test): Likewise.
50046         (cos_test_tonearest): Likewise.
50047         (cos_test_towardzero): Likewise.
50048         (cos_test_downward): Likewise.
50049         (cos_test_upward): Likewise.
50050         (cosh_test): Likewise.
50051         (cosh_test_tonearest): Likewise.
50052         (cosh_test_towardzero): Likewise.
50053         (cosh_test_downward): Likewise.
50054         (cosh_test_upward): Likewise.
50055         (cpow_test): Likewise.
50056         (cproj_test): Likewise.
50057         (creal_test): Likewise.
50058         (csin_test): Likewise.
50059         (csinh_test): Likewise.
50060         (csqrt_test): Likewise.
50061         (ctan_test): Likewise.
50062         (ctan_test_tonearest): Likewise.
50063         (ctan_test_towardzero): Likewise.
50064         (ctan_test_downward): Likewise.
50065         (ctan_test_upward): Likewise.
50066         (ctanh_test): Likewise.
50067         (ctanh_test_tonearest): Likewise.
50068         (ctanh_test_towardzero): Likewise.
50069         (ctanh_test_downward): Likewise.
50070         (ctanh_test_upward): Likewise.
50071         (erf_test): Likewise.
50072         (erfc_test): Likewise.
50073         (exp_test): Likewise.
50074         (exp_test_tonearest): Likewise.
50075         (exp_test_towardzero): Likewise.
50076         (exp_test_downward): Likewise.
50077         (exp_test_upward): Likewise.
50078         (exp10_test): Likewise.
50079         (exp10_test_tonearest): Likewise.
50080         (exp10_test_towardzero): Likewise.
50081         (exp10_test_downward): Likewise.
50082         (exp10_test_upward): Likewise.
50083         (pow10_test): Likewise.
50084         (exp2_test): Likewise.
50085         (expm1_test): Likewise.
50086         (expm1_test_tonearest): Likewise.
50087         (expm1_test_towardzero): Likewise.
50088         (expm1_test_downward): Likewise.
50089         (expm1_test_upward): Likewise.
50090         (fabs_test): Likewise.
50091         (fdim_test): Likewise.
50092         (floor_test): Likewise.
50093         (fma_test): Likewise.
50094         (fma_test_towardzero): Likewise.
50095         (fma_test_downward): Likewise.
50096         (fma_test_upward): Likewise.
50097         (fmax_test): Likewise.
50098         (fmin_test): Likewise.
50099         (fmod_test): Likewise.
50100         (fpclassify_test): Likewise.
50101         (frexp_test): Likewise.
50102         (hypot_test): Likewise.
50103         (ilogb_test): Likewise.
50104         (isfinite_test): Likewise.
50105         (finite_test): Likewise.
50106         (isgreater_test): Likewise.
50107         (isgreaterequal_test): Likewise.
50108         (isinf_test): Likewise.
50109         (isless_test): Likewise.
50110         (islessequal_test): Likewise.
50111         (islessgreater_test): Likewise.
50112         (isnan_test): Likewise.
50113         (isnormal_test): Likewise.
50114         (issignaling_test): Likewise.
50115         (isunordered_test): Likewise.
50116         (j0_test): Likewise.
50117         (j1_test): Likewise.
50118         (jn_test): Likewise.
50119         (ldexp_test): Likewise.
50120         (lgamma_test): Likewise.
50121         (gamma_test): Likewise.
50122         (lrint_test): Likewise.
50123         (lrint_test_tonearest): Likewise.
50124         (lrint_test_towardzero): Likewise.
50125         (lrint_test_downward): Likewise.
50126         (lrint_test_upward): Likewise.
50127         (llrint_test): Likewise.
50128         (llrint_test_tonearest): Likewise.
50129         (llrint_test_towardzero): Likewise.
50130         (llrint_test_downward): Likewise.
50131         (llrint_test_upward): Likewise.
50132         (log_test): Likewise.
50133         (log10_test): Likewise.
50134         (log1p_test): Likewise.
50135         (log2_test): Likewise.
50136         (logb_test): Likewise.
50137         (logb_test_downward): Likewise.
50138         (lround_test): Likewise.
50139         (llround_test): Likewise.
50140         (modf_test): Likewise.
50141         (nearbyint_test): Likewise.
50142         (nextafter_test): Likewise.
50143         (nexttoward_test): Likewise.
50144         (pow_test): Likewise.
50145         (pow_test_tonearest): Likewise.
50146         (pow_test_towardzero): Likewise.
50147         (pow_test_downward): Likewise.
50148         (pow_test_upward): Likewise.
50149         (remainder_test): Likewise.
50150         (drem_test): Likewise.
50151         (remainder_test_tonearest): Likewise.
50152         (drem_test_tonearest): Likewise.
50153         (remainder_test_towardzero): Likewise.
50154         (drem_test_towardzero): Likewise.
50155         (remainder_test_downward): Likewise.
50156         (drem_test_downward): Likewise.
50157         (remainder_test_upward): Likewise.
50158         (drem_test_upward): Likewise.
50159         (remquo_test): Likewise.
50160         (rint_test): Likewise.
50161         (rint_test_tonearest): Likewise.
50162         (rint_test_towardzero): Likewise.
50163         (rint_test_downward): Likewise.
50164         (rint_test_upward): Likewise.
50165         (round_test): Likewise.
50166         (scalb_test): Likewise.
50167         (scalbn_test): Likewise.
50168         (scalbln_test): Likewise.
50169         (signbit_test): Likewise.
50170         (sin_test): Likewise.
50171         (sin_test_tonearest): Likewise.
50172         (sin_test_towardzero): Likewise.
50173         (sin_test_downward): Likewise.
50174         (sin_test_upward): Likewise.
50175         (sincos_test): Likewise.
50176         (sinh_test): Likewise.
50177         (sinh_test_tonearest): Likewise.
50178         (sinh_test_towardzero): Likewise.
50179         (sinh_test_downward): Likewise.
50180         (sinh_test_upward): Likewise.
50181         (sqrt_test): Likewise.
50182         (sqrt_test_tonearest): Likewise.
50183         (sqrt_test_towardzero): Likewise.
50184         (sqrt_test_downward): Likewise.
50185         (sqrt_test_upward): Likewise.
50186         (tan_test): Likewise.
50187         (tan_test_tonearest): Likewise.
50188         (tan_test_towardzero): Likewise.
50189         (tan_test_downward): Likewise.
50190         (tan_test_upward): Likewise.
50191         (tanh_test): Likewise.
50192         (tgamma_test): Likewise.
50193         (trunc_test): Likewise.
50194         (y0_test): Likewise.
50195         (y1_test): Likewise.
50196         (yn_test): Likewise.
50197         (significand_test): Likewise.
50198
50199         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
50200         individual tests in comment.
50201         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
50202         (prev_max_error): New variable.
50203         (prev_real_max_error): Likewise.
50204         (prev_imag_max_error): Likewise.
50205         (compare_ulp_data): Don't refer to test names in comment.
50206         (find_test_ulps): Remove function.
50207         (find_function_ulps): Likewise.
50208         (find_complex_function_ulps): Likewise.
50209         (init_max_error): Take function name as argument.  Look up ulps
50210         for that function.
50211         (print_ulps): Remove function.
50212         (print_max_error): Use prev_max_error instead of calling
50213         find_function_ulps.
50214         (print_complex_max_error): Use prev_real_max_error and
50215         prev_imag_max_error instead of calling find_complex_function_ulps.
50216         (check_float_internal): Take max_ulp parameter instead of calling
50217         find_test_ulps.  Don't call print_ulps.
50218         (check_float): Update call to check_float_internal.
50219         (check_complex): Update calls to check_float_internal.
50220         (START): Pass argument to init_max_error.
50221         * math/gen-libm-test.pl (%results): Don't include "kind"
50222         information.
50223         (parse_ulps): Don't handle ulps of individual tests.
50224         (print_ulps_file): Likewise.
50225         (output_ulps): Likewise.
50226         * math/README.libm-test: Update.
50227         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
50228         individual tests.
50229         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
50230         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
50231         * sysdeps/arm/libm-test-ulps: Likewise.
50232         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
50233         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
50234         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
50235         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
50236         * sysdeps/microblaze/libm-test-ulps: Likewise.
50237         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
50238         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
50239         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
50240         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
50241         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50242         * sysdeps/sh/libm-test-ulps: Likewise.
50243         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
50244         * sysdeps/tile/libm-test-ulps: Likewise.
50245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50246
50247 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
50248
50249         * math/libm-test.inc (print_complex_max_error): Check separately
50250         whether real and imaginary errors are within allowed range and
50251         pass 0 to print_complex_function_ulps instead of value within
50252         allowed range.
50253
50254 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
50255
50256         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
50257         formatting.
50258         (get_handles_fopen): Likewise.
50259         (do_write_test): Likewise.
50260
50261         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
50262
50263         * libio/fileops.c (do_ftell): Use cached offset when
50264         available.
50265         * libio/iofwide.c (do_ftell_wide): Likewise.
50266         * libio/iofdopen.c (_IO_new_fdopen): Don't use
50267         _IO_file_attach.
50268         * libio/wfileops.c (_IO_fwide): Don't cache offset.
50269
50270         [BZ #16532]
50271         * libio/libioP.h (get_file_offset): New function.
50272         * libio/fileops.c (get_file_offset): Likewise.
50273         (do_ftell): Likewise.
50274         (_IO_new_file_seekoff): Split out ftell logic.
50275         * libio/wfileops.c (do_ftell_wide): Likewise.
50276         (_IO_wfile_seekoff): Split out ftell logic.
50277         * libio/tst-ftell-active-handler.c: New test case.
50278         * libio/Makefile (tests): Add it.
50279
50280 2014-03-03  Roland McGrath  <roland@hack.frob.com>
50281
50282         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
50283         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
50284
50285 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
50286
50287         [BZ #16639]
50288         * nscd/connections.c (nscd_init): Call do_exit.
50289         (start_threads): Call do_exit and notify_parent.
50290         (begin_drop_privileges): Call do_exit.
50291         (finish_drop_privileges): Likewise.
50292         * nscd/selinux.c (preserve_capabilities): Likewise.
50293         (install_real_capabilities): Likewise.
50294         (nscd_selinux_enabled): Likewise.
50295         (avc_create_thread): Likewise.
50296         (avc_alloc_lock): Likewise.
50297         (nscd_avc_init): Likewise.
50298         * nscd/nscd.c (parent_fd): New static variable.
50299         (main): Create a pipe between parent and child processes.
50300         Skip closing parent_fd.
50301         (monitor_child): New function.
50302         (do_exit): Likewise.
50303         (notify_parent): Likewise.
50304         * nscd/nscd.h (notify_parent): Likewise.
50305         (do_exit): Likewise.
50306
50307 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
50308
50309         * malloc/malloc.c (__libc_calloc): Revert last change.
50310
50311 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50312
50313         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50314
50315 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
50316
50317         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
50318         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
50319         implementation.
50320         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
50321         (__libc_ifunc_impl_list): Likewise.
50322         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
50323         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
50324         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
50325         * string/strrchr.c: Define STRRCHR.
50326
50327 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
50328
50329         * benchtest/bench-strtok.c (simple_strtok): Delete.
50330         (strtok_string): Use as benchmark.
50331         * string/strtok (STRTOK): New macro.
50332
50333 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
50334
50335         * manual/threads.texi: Add header and standard comments to all
50336         functions.
50337
50338         * elf/dl-lookup.c (check_match): New function.
50339         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
50340         (do_lookup_x): Remove nested function check_match. Use non-nested
50341         function check_match.
50342
50343 2014-02-28  Roland McGrath  <roland@hack.frob.com>
50344
50345         * csu/Makefile (generated, before-compile): Use += rather than =.
50346         * catgets/Makefile (generated, generated-dirs): Likewise.
50347         * debug/Makefile (generated): Likewise.
50348         * dlfcn/Makefile (generated): Likewise.
50349         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
50350         * iconvdata/Makefile (before-compile, generated): Likewise.
50351         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
50352         * libio/Makefile (generated): Likewise.
50353         * malloc/Makefile (generated): Likewise.
50354         * manual/Makefile (generated, generated-dirs): Likewise.
50355         * misc/Makefile (generated): Likewise.
50356         * posix/Makefile (generated): Likewise.
50357         * resolv/Makefile (generated): Likewise.
50358         * sunrpc/Makefile (generated, generated-dirs): Likewise.
50359         * timezone/Makefile (generated, generated-dirs): Likewise.
50360
50361         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
50362
50363 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50364
50365         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
50366         power8 implementation.
50367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
50368         file: POWER8 llround ifunc implementation.
50369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
50370         (__lllround): Add POWER8 implementation.
50371         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
50372         POWER8 llround implementation.
50373
50374         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
50375         power8 implementation.
50376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
50377         file: POWER8 llrint ifunc implementation.
50378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
50379         Add POWER8 implementation.
50380         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
50381         POWER8 llrint implementation.
50382
50383         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
50384         power8 implementation.
50385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
50386         file: POWER8 finite ifunc implementation.
50387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
50388         Add POWER8 implementation.
50389         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
50390         Likewise.
50391         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
50392         POWER8 finite implementation.
50393         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
50394
50395         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
50396         power8 implementation.
50397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
50398         file: POWER8 isinf ifunc implementation.
50399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
50400         POWER8 implementation.
50401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
50402         Likewise.
50403         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
50404         isinf implementation.
50405         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
50406
50407         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
50408         (INIT_ARCH): Add hwcap2 initialization.
50409         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
50410         power8 implementation.
50411         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
50412         file: POWER8 isnan ifunc implementation.
50413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
50414         POWER8 implementation.
50415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
50416         Likewise.
50417         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
50418         isnan implementation.
50419         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
50420
50421 2014-02-27  Joey Ye  <joey.ye@arm.com>
50422
50423         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
50424         (_FP_NANFRAC_Q): Set to zero.
50425
50426 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50427
50428         [BZ #16623]
50429         * math/auto-libm-test-in: New test inputs.
50430         * math/auto-libm-test-out: Regenerate.
50431         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
50432         and DA.
50433         (__cos): Likewise.
50434         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
50435
50436 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
50437
50438         * scripts/evaluate-test.sh: Take new argument indicating whether
50439         failure is expected.
50440         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
50441         indicating whether failure is expected.
50442         * conform/Makefile (test-xfail-run-conformtest): New variable.
50443         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
50444         level.
50445         * posix/Makefile (test-xfail-annexc): New variable.
50446         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
50447
50448 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
50449
50450         * argp/Makefile: Include Makeconfig immediately after defining
50451         subdir.
50452         * assert/Makefile: Likewise.
50453         * benchtests/Makefile: Likewise.
50454         * catgets/Makefile: Likewise.
50455         * conform/Makefile: Likewise.
50456         * crypt/Makefile: Likewise.
50457         * csu/Makefile: Likewise.
50458         (all): Remove target.
50459         * ctype/Makefile: Include Makeconfig immediately after defining
50460         subdir.
50461         * debug/Makefile: Likewise.
50462         * dirent/Makefile: Likewise.
50463         * dlfcn/Makefile: Likewise.
50464         * gmon/Makefile: Likewise.
50465         * gnulib/Makefile: Likewise.
50466         * grp/Makefile: Likewise.
50467         * gshadow/Makefile: Likewise.
50468         * hesiod/Makefile: Likewise.
50469         * hurd/Makefile: Likewise.
50470         (all): Remove target.
50471         * iconvdata/Makefile: Include Makeconfig immediately after
50472         defining subdir.
50473         * inet/Makefile: Likewise.
50474         * intl/Makefile: Likewise.
50475         * io/Makefile: Likewise.
50476         * libio/Makefile: Likewise.
50477         (all): Remove target.
50478         * locale/Makefile: Include Makeconfig immediately after defining
50479         subdir.
50480         * login/Makefile: Likewise.
50481         * mach/Makefile: Likewise.
50482         (all): Remove target.
50483         * malloc/Makefile: Include Makeconfig immediately after defining
50484         subdir.
50485         (all): Remove target.
50486         * manual/Makefile: Include Makeconfig immediately after defining
50487         subdir.
50488         * math/Makefile: Likewise.
50489         * misc/Makefile: Likewise.
50490         * nis/Makefile: Likewise.
50491         * nss/Makefile: Likewise.
50492         * po/Makefile: Likewise.
50493         (all): Remove target.
50494         * posix/Makefile: Include Makeconfig immediately after defining
50495         subdir.
50496         * pwd/Makefile: Likewise.
50497         * resolv/Makefile: Likewise.
50498         * resource/Makefile: Likewise.
50499         * rt/Makefile: Likewise.
50500         * setjmp/Makefile: Likewise.
50501         * shadow/Makefile: Likewise.
50502         * signal/Makefile: Likewise.
50503         * socket/Makefile: Likewise.
50504         * soft-fp/Makefile: Likewise.
50505         * stdio-common/Makefile: Likewise.
50506         * stdlib/Makefile: Likewise.
50507         * streams/Makefile: Likewise.
50508         * string/Makefile: Likewise.
50509         * sunrpc/Makefile: Likewise.
50510         (all): Remove target.
50511         * sysvipc/Makefile: Include Makeconfig immediately after defining
50512         subdir.
50513         * termios/Makefile: Likewise.
50514         * time/Makefile: Likewise.
50515         * timezone/Makefile: Likewise.
50516         (all): Remove target.
50517         * wcsmbs/Makefile: Include Makeconfig immediately after defining
50518         subdir.
50519         * wctype/Makefile: Likewise.
50520
50521 2014-02-26  Steve Ellcey  <sellcey@mips.com>
50522
50523         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
50524         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
50525         (libc_feholdexcept_setround_mips): Ditto.
50526         (libc_feholdsetround): New.
50527         (libc_feholdsetroundf): New.
50528         (libc_feholdsetroundl): New.
50529         (libc_feupdateenv_test_mips): New.
50530         (libc_feupdateenv_test): New.
50531         (libc_feupdateenv_testf): New.
50532         (libc_feupdateenv_testl): New.
50533         (libc_feresetround): New.
50534         (libc_feresetroundf): New.
50535         (libc_feresetroundl): New.
50536         (libc_fetestexcept_mips): New.
50537         (libc_fetestexcept): New.
50538         (libc_fetestexceptf): New.
50539         (libc_fetestexceptl): New.
50540         (HAVE_RM_CTX): New.
50541         (libc_feholdexcept_setround_mips_ctx): New.
50542         (libc_feholdexcept_setround_ctx): New.
50543         (libc_feholdexcept_setroundf_ctx): New.
50544         (libc_feholdexcept_setroundl_ctx): New.
50545         (libc_fesetenv_mips_ctx): New.
50546         (libc_fesetenv_ctx): New.
50547         (libc_fesetenv_ctxf): New.
50548         (libc_fesetenv_ctxl): New.
50549         (libc_feupdateenv_mips_ctx): New.
50550         (libc_feupdateenv_ctx): New.
50551         (libc_feupdateenvf_ctx): New.
50552         (libc_feupdateenvl_ctx): New.
50553         (libc_feholdsetround_mips_ctx): New.
50554         (libc_feholdsetround_ctx): New.
50555         (libc_feholdsetroundf_ctx): New.
50556         (libc_feholdsetroundl_ctx): New.
50557         (libc_feresetround_mips_ctx): New.
50558         (libc_feresetround_ctx): New.
50559         (libc_feresetroundf_ctx): New.
50560         (libc_feresetroundl_ctx): New.
50561
50562 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
50563
50564         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
50565
50566         * manual/ipc.texi: New file.
50567         * manual/Makefile (chapters): Add ipc.
50568         * manual/job.texi: Add "Inter-Process Communication" to next.
50569         * manual/process.texi: Add "Inter-Process Communication" to prev.
50570
50571 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50572
50573         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50574
50575 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
50576
50577         * malloc/malloc.c (__libc_calloc): Simplify implementation.
50578
50579         * manual/arith.texi: Fix spaces after sentences.
50580         * manual/charset.texi: Likewise.
50581         * manual/errno.texi: Likewise.
50582         * manual/install.texi: Likewise.
50583         * manual/llio.texi: Likewise.
50584         * manual/locale.texi: Likewise.
50585         * manual/maint.texi: Likewise.
50586         * manual/math.texi: Likewise.
50587         * manual/memory.texi: Likewise.
50588         * manual/message.texi: Likewise.
50589         * manual/probes.texi: Likewise.
50590         * manual/resource.texi: Likewise.
50591         * manual/signal.texi: Likewise.
50592         * manual/socket.texi: Likewise.
50593         * manual/stdio.texi: Likewise.
50594         * manual/string.texi: Likewise.
50595         * manual/time.texi: Likewise.
50596         * manual/users.texi: Likewise.
50597
50598 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
50599
50600         [BZ #16632]
50601         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
50602         _DEFAULT_SOURCE is defined.
50603
50604 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
50605             Carlos O'Donell  <carlos@redhat.com>
50606
50607         [BZ #16613]
50608         * elf/dl-tls.c (_dl_count_modids): New function.
50609         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
50610         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
50611         audit library and increment generation counter.
50612         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
50613         * elf/tst-audit9.c: New file.
50614         * elf/tst-auditmod9a.c: New file.
50615         * elf/tst-auditmod9b.c: New file.
50616         * elf/Makefile: Add rules to build and run tst-audit9.
50617
50618 2014-02-25  Florian Weimer  <fweimer@redhat.com>
50619
50620         [BZ #15347]
50621         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
50622
50623 2014-02-25  Will Newton  <will.newton@linaro.org>
50624
50625         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
50626         (__longjmp): Restore sp and lr before restoring callee
50627         saved registers.  Add longjmp and longjmp_target
50628         SystemTap probe point.
50629         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
50630         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
50631         Define to zero to match jmpbuf layout.
50632         * sysdeps/arm/setjmp.S: Include stap-probe.h.
50633         (__sigsetjmp): Save sp and lr before saving callee
50634         saved registers.  Add setjmp SystemTap probe point.
50635
50636 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
50637
50638         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
50639
50640 2014-02-24  Andreas Schwab  <schwab@suse.de>
50641
50642         [BZ #15804]
50643         * elf/pldd.c (wait_for_ptrace_stop): New function.
50644         (main): Call it after attaching.
50645
50646 2014-02-22  Roland McGrath  <roland@hack.frob.com>
50647
50648         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
50649         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
50650         Versions files is now verboten.
50651         * hurd/Versions (libc: GLIBC_2.0):
50652         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
50653         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
50654         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
50655         * mach/Versions: Likewise.
50656
50657         * csu/Versions: Remove unused %include.
50658         * resolv/Versions: Likewise.
50659
50660 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
50661
50662         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
50663         ($(objpfx)check-local-headers.out): Likewise.
50664         ($(objpfx)begin-end-check.out): Likewise.
50665         * Makerules (check-abi-%.out): Likewise.
50666         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
50667         ($(objpfx)test2.cat): Likewise.
50668         ($(objpfx)de/libc.cat): Likewise.
50669         ($(objpfx)test-gencat.out): Likewise.
50670         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
50671         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
50672         ($(objpfx)noload-mem): Likewise.
50673         ($(objpfx)tst-pathopt.out): Likewise.
50674         ($(objpfx)tst-rtld-load-self.out): Likewise.
50675         ($(objpfx)tst-array1-cmp.out): Likewise.
50676         ($(objpfx)tst-array1-static-cmp.out): Likewise.
50677         ($(objpfx)tst-array2-cmp.out): Likewise.
50678         ($(objpfx)tst-array3-cmp.out): Likewise.
50679         ($(objpfx)tst-array4-cmp.out): Likewise.
50680         ($(objpfx)tst-array5-cmp.out): Likewise.
50681         ($(objpfx)tst-array5-static-cmp.out): Likewise.
50682         ($(objpfx)check-textrel.out): Likewise.
50683         ($(objpfx)check-execstack.out): Likewise.
50684         ($(objpfx)check-localplt.out): Likewise.
50685         ($(objpfx)order2-cmp.out): Likewise.
50686         ($(objpfx)tst-leaks1-mem): Likewise.
50687         ($(objpfx)tst-leaks1-static-mem): Likewise.
50688         ($(objpfx)tst-initorder-cmp.out): Likewise.
50689         ($(objpfx)tst-initorder2-cmp.out): Likewise.
50690         ($(objpfx)tst-unused-dep.out): Likewise.
50691         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
50692         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
50693         * iconv/Makefile (test-iconvconfig): Likewise.
50694         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
50695         ($(objpfx)iconv-test.out): Likewise.
50696         ($(objpfx)tst-tables.out): Likewise.
50697         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
50698         ($(objpfx)tst-gettext.out): Likewise.
50699         ($(objpfx)tst-translit.out): Likewise.
50700         ($(objpfx)tst-gettext2.out): Likewise.
50701         ($(objpfx)tst-gettext4.out): Likewise.
50702         ($(objpfx)tst-gettext6.out): Likewise.
50703         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
50704         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
50705         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
50706         ($(objpfx)tst-fopenloc-mem.out): Likewise.
50707         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
50708         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
50709         * posix/Makefile ($(objpfx)globtest.out): Likewise.
50710         ($(objpfx)wordexp-tst.out): Likewise.
50711         ($(objpfx)annexc.out): Likewise.
50712         ($(objpfx)tst-fnmatch-mem): Likewise.
50713         ($(objpfx)bug-regex2-mem): Likewise.
50714         ($(objpfx)bug-regex14-mem): Likewise.
50715         ($(objpfx)bug-regex21-mem): Likewise.
50716         ($(objpfx)bug-regex31-mem): Likewise.
50717         ($(objpfx)tst-vfork3-mem): Likewise.
50718         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
50719         ($(objpfx)tst-pcre-mem): Likewise.
50720         ($(objpfx)tst-boost-mem): Likewise.
50721         ($(objpfx)tst-getconf.out): Likewise.
50722         ($(objpfx)bug-ga2-mem): Likewise.
50723         ($(objpfx)bug-glob2-mem): Likewise.
50724         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
50725         ($(objpfx)mtrace-tst-leaks2): Likewise.
50726         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
50727         ($(objpfx)tst-printf.out): Likewise.
50728         ($(objpfx)tst-setvbuf1.out): Likewise.
50729         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
50730         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
50731         ($(objpfx)tst-fmtmsg.out): Likewise.
50732         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
50733         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
50734
50735         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
50736         * bits/sigaction.h [__USE_MISC]: Likewise.
50737         * bits/waitstatus.h: Update #endif comments.
50738         * ctype/ctype.h: Likewise.
50739         * dirent/dirent.h: Likewise.
50740         [__USE_MISC]: Remove redundant conditionals.
50741         * grp/grp.h: Update #endif comments.
50742         [__USE_GNU]: Remove redundant conditionals.
50743         [__USE_MISC]: Likewise.
50744         * inet/netinet/in.h [__USE_GNU]: Likewise.
50745         * io/sys/stat.h [__USE_MISC]: Likewise.
50746         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
50747         * libio/bits/stdio.h: Update #endif comments.
50748         [__USE_MISC]: Remove redundant conditionals.
50749         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
50750         * libio/stdio.h: Update #endif comments.
50751         [__USE_MISC]: Remove redundant conditionals.
50752         * math/bits/math-finite.h [__USE_MISC]: Likewise.
50753         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
50754         * math/math.h: Update #else and #endif comments.
50755         [__USE_MISC]: Remove redundant conditionals.
50756         * misc/sys/uio.h: Update #endif comments.
50757         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
50758         * posix/glob.h [__USE_MISC]: Likewise.
50759         * posix/sys/types.h: Update #endif comments.
50760         [__USE_MISC]: Remove redundant conditionals.
50761         * posix/sys/wait.h: Update #endif comments.
50762         [__USE_MISC]: Remove redundant conditionals.
50763         * posix/unistd.h: Update #endif comments.
50764         [__USE_MISC]: Remove redundant conditionals.
50765         * pwd/pwd.h [__USE_GNU]: Likewise.
50766         [__USE_MISC]: Likewise.
50767         * resolv/netdb.h [__USE_GNU]: Likewise.
50768         * signal/signal.h: Update #endif comments.
50769         [__USE_MISC]: Remove redundant conditionals.
50770         * stdlib/stdlib.h: Update #else and #endif comments.
50771         [__USE_MISC]: Remove redundant conditionals.
50772         [__USE_GNU]: Likewise.
50773         * string/bits/string2.h [__USE_MISC]: Likewise.
50774         * string/string.h: Update #endif comments.
50775         [__USE_MISC]: Remove redundant conditionals.
50776         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
50777         Likewise.
50778         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
50779         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
50780         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
50781         Likewise.
50782         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
50783         Likewise.
50784         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
50785         comments.
50786         [__USE_MISC]: Remove redundant conditionals.
50787         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
50788         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
50789         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
50790         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
50791         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
50792         Likewise.
50793         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
50794         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
50795         Likewise.
50796         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
50797         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
50798         Likewise.
50799         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
50800         Likewise.
50801         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
50802         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
50803         Likewise.
50804         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
50805         Likewise.
50806         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
50807         * sysdeps/x86/bits/string.h: Update #endif comments.
50808         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
50809         conditionals.
50810         * time/sys/time.h: Update #endif comments.
50811         * time/time.h: Likewise.
50812         [__USE_MISC]: Remove redundant conditionals.
50813
50814 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
50815
50816         [BZ #16600]
50817         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
50818
50819 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
50820
50821         * Versions.def (librt): Add GLIBC_2.17.
50822
50823 2014-02-21  Adam Conrad  <adconrad@0c3.net>
50824
50825         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
50826         synonym for _SYS_AUXV_H to allow direct inclusion.
50827         * sysdeps/sparc/bits/hwcap.h: Likewise.
50828         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
50829         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
50830         * sysdeps/sparc/sysdep.h: Likewise.
50831
50832 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50833
50834         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
50835
50836 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
50837
50838         * benchtests/bench-strrchr.c: Print length instead of position.
50839
50840 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
50841
50842         [BZ #16611]
50843         * sysdeps/unix/sysv/linux/kernel-features.h
50844         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
50845         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
50846         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
50847         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
50848         Likewise.
50849         [__i386__ || __powerpc__ || __sh__ || __sparc__]
50850         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50851         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
50852         (__ASSUME_SENDMMSG): Define instead of using previous
50853         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
50854         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50855         (__ASSUME_SENDMMSG_SYSCALL): Define.
50856         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50857         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
50858         Likewise.
50859         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50860         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50861         Likewise.
50862         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50863         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50864         Likewise.
50865         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
50866         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
50867         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
50868         [__ASSUME_SENDMMSG]: Change conditionals to
50869         [__ASSUME_SENDMMSG_SOCKETCALL].
50870         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50871         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
50872         Define.
50873         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50874         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
50875         Likewise.
50876         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
50877         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
50878         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
50879         [!__ASSUME_SENDMMSG]: Change conditional to
50880         [!__ASSUME_SENDMMSG_SOCKETCALL].
50881         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50882         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50883         Define.
50884
50885         [BZ #16610]
50886         * sysdeps/unix/sysv/linux/kernel-features.h
50887         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
50888         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
50889         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
50890         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
50891         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
50892         [__i386__ || __sparc__]
50893         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50894         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
50895         (__ASSUME_RECVMMSG): Define instead of using previous
50896         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
50897         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50898         (__ASSUME_RECVMMSG_SYSCALL): Define.
50899         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50900         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50901         Likewise.
50902         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50903         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50904         Likewise.
50905         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50906         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50907         Likewise.
50908         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
50909         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
50910         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
50911         [__ASSUME_RECVMMSG]: Change condition to
50912         [__ASSUME_RECVMMSG_SOCKETCALL].
50913         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50914         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50915         Define.
50916         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50917         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50918         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50919         Likewise.
50920         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
50921         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
50922         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
50923         [!__ASSUME_RECVMMSG]: Change condition to
50924         [!__ASSUME_RECVMMSG_SOCKETCALL].
50925         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50926         (__ASSUME_RECVMMSG_SYSCALL): Define.
50927
50928         [BZ #16609]
50929         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
50930         __powerpc__ || __s390__ || __sh__ || __sparc__]
50931         (__ASSUME_SOCKETCALL): Define.
50932         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
50933         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
50934         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
50935         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
50936         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
50937         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
50938         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
50939         (__ASSUME_ACCEPT4): Define instead of using previous
50940         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
50941         __powerpc__ || __sparc__ || __s390__)] condition.
50942         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50943         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
50944         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
50945         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
50946         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
50947         [!__ASSUME_ACCEPT4]: Change condition to
50948         [!__ASSUME_ACCEPT4_SOCKETCALL].
50949         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50950         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
50951         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
50952         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50953         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
50954         __ASSUME_ACCEPT4_SYSCALL.
50955         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
50956         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
50957         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50958         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
50959         __ASSUME_ACCEPT4_SYSCALL.
50960         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
50961         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
50962         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
50963         [__ASSUME_ACCEPT4]: Change condition to
50964         [__ASSUME_ACCEPT4_SOCKETCALL].
50965         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
50966         (__ASSUME_SOCKETCALL): Define.
50967         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
50968         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50969         (__ASSUME_SOCKETCALL): Define.
50970         (__ASSUME_ACCEPT4): Remove.
50971         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
50972         Define.
50973         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50974         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
50975         Likewise.
50976         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50977         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
50978
50979         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
50980         macro.
50981         (HWCAP_ARM_LPAE): Likewise.
50982         (HWCAP_ARM_EVTSTRM): Likewise.
50983         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
50984         Add vpfd32, lpae and evtstrm.
50985         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
50986         Increase to 22.
50987
50988 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
50989
50990         * math/auto-libm-test-in: Add tests of clog10.
50991         * math/auto-libm-test-out: Regenerated.
50992         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
50993         * sysdeps/i386/fpu/libm-test-ulps: Update.
50994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50995
50996 2014-02-18  Andreas Schwab  <schwab@suse.de>
50997
50998         [BZ #16574]
50999         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
51000         Store non-zero if the second buffer was newly allocated.
51001         (send_dg): Likewise.
51002         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
51003         to send_vc and send_dg.
51004         (res_nsend): Pass NULL for ansp2_malloced.
51005         * resolv/res_query.c (__libc_res_nquery): Add parameter
51006         answerp2_malloced and pass it down to __libc_res_nsend.
51007         (res_nquery): Pass additional NULL to __libc_res_nquery.
51008         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
51009         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
51010         second answer buffer if answerp2_malloced was set.
51011         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
51012         (__libc_res_nquerydomain): Add parameter
51013         answerp2_malloced and pass it down to __libc_res_nquery.
51014         (res_nquerydomain): Pass additional NULL to
51015         __libc_res_nquerydomain.
51016         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
51017         additional NULL to __libc_res_nsend and __libc_res_nquery.
51018         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
51019         additional NULL to __libc_res_nsearch.
51020         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
51021         parameter of __libc_res_nsearch to check for separately allocated
51022         second buffer.
51023         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
51024         __libc_res_nquery.
51025         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
51026         additional NULL to __libc_res_nquery.
51027         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
51028         __libc_res_nsearch.
51029         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
51030         * include/resolv.h: Update prototypes of __libc_res_nquery,
51031         __libc_res_nsearch, __libc_res_nsend.
51032
51033 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
51034
51035         * math/auto-libm-test-in: Add tests of fma.
51036         * math/auto-libm-test-out: Regenerated.
51037         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
51038         (fma_towardzero_test_data): Likewise.
51039         (fma_downward_test_data): Likewise.
51040         (fma_upward_test_data): Likewise.
51041         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
51042         mpc_mode.
51043         (rounding_modes): Add values for new field.
51044         (func_calc_method): Add value mpfr_fff_f.
51045         (func_calc_desc): Add mpfr_fff_f union field.
51046         (test_function): Add field exact_args.
51047         (FUNC): Add macro argument EXACT_ARGS.
51048         (FUNC_mpfr_f_f): Update call to FUNC.
51049         (FUNC_mpfr_f_f): Likewise.
51050         (FUNC_mpfr_ff_f): Likewise.
51051         (FUNC_mpfr_if_f): Likewise.
51052         (FUNC_mpc_c_f): Likewise.
51053         (FUNC_mpc_c_c): Likewise.
51054         (test_functions): Add fma.  Update calls to FUNC.
51055         (handle_input_arg): Add argument exact_args.
51056         (add_test): Update call to handle_input_arg.
51057         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
51058         (output_for_one_input_case): Update call to calc_generic_results.
51059         Recalculate exact zero results in each rounding mode.
51060
51061         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
51062         non-negative before setting low bit.
51063         * math/auto-libm-test-in: Mark one asin test possibly having
51064         spurious underflow.
51065         * math/auto-libm-test-out: Regenerated.
51066         * sysdeps/i386/fpu/libm-test-ulps: Update.
51067         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51068
51069 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
51070
51071         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
51072         * sysdeps/unix/sysv/linux/microblaze: Move directory from
51073         ports/sysdeps/unix/sysv/linux/microblaze.
51074         * README: Add missing listing for microblaze*-*-linux-gnu.
51075
51076 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
51077
51078         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
51079         duplicate code
51080
51081 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
51082
51083         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
51084         * sysdeps/unix/sysv/linux/ia64: Move directory from
51085         ports/sysdeps/unix/sysv/linux/ia64.
51086         * README: Update listing for ia64-*-linux-gnu.
51087
51088 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
51089             Joseph Myers  <joseph@codesourcery.com>
51090
51091         * Makeconfig (test-name): New variable.
51092         (evaluate-test): Likewise.
51093         * Makerules (do-test-clean): Remove .test-result files.
51094         (common-mostlyclean): Likewise.
51095         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
51096         * scripts/evaluate-test.sh: New file.
51097
51098 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
51099
51100         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
51101         separate $(objpfx)tst-fopenloc-cmp.out and
51102         $(objpfx)tst-fopenloc-mem.out targets.
51103         (tests): Update dependencies.
51104         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
51105         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
51106         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
51107         (tst-rxspencer-no-utf8-ARGS): New variable.
51108         (tst-rxspencer-no-utf8-ENV): Likewise.
51109         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
51110         instead of $(objpfx)tst-rxspencer-mem.
51111         ($(objpfx)tst-rxspencer-mem): Change target to
51112         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
51113         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
51114         * posix/tst-rxspencer-no-utf8.c: New file.
51115
51116         * elf/Makefile ($(objpfx)order.out): Remove rule.
51117         [$(run-built-tests) = yes] (tests): Depend on
51118         $(objpfx)order-cmp.out.
51119         ($(objpfx)order-cmp.out): New rule.
51120         [$(run-built-tests) = yes] (tests): Depend on
51121         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
51122         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
51123         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
51124         $(objpfx)tst-array5-static-cmp.out.
51125         ($(objpfx)tst-array1.out): Remove rule.
51126         ($(objpfx)tst-array1-cmp.out): New rule.
51127         ($(objpfx)tst-array1-static.out): Remove rule.
51128         ($(objpfx)tst-array1-static-cmp.out): New rule.
51129         ($(objpfx)tst-array2.out): Remove rule.
51130         ($(objpfx)tst-array2-cmp.out): New rule.
51131         ($(objpfx)tst-array3.out): Remove rule.
51132         ($(objpfx)tst-array3-cmp.out): New rule.
51133         ($(objpfx)tst-array4.out): Remove rule.
51134         ($(objpfx)tst-array4-cmp.out): New rule.
51135         ($(objpfx)tst-array5.out): Remove rule.
51136         ($(objpfx)tst-array5-cmp.out): New rule.
51137         ($(objpfx)tst-array5-static.out): Remove rule.
51138         ($(objpfx)tst-array5-static-cmp.out): New rule.
51139         [$(run-built-tests) = yes] (tests): Depend on
51140         $(objpfx)order2-cmp.out.
51141         ($(objpfx)order2.out): Remove rule.
51142         ($(objpfx)order2-cmp.out): New rule.
51143         ($(objpfx)tst-initorder.out): Remove rule.
51144         [$(run-built-tests) = yes] (tests): Depend on
51145         $(objpfx)tst-initorder-cmp.out.
51146         ($(objpfx)tst-initorder-cmp.out): New rule.
51147         ($(objpfx)tst-initorder2.out): Remove rule.
51148         [$(run-built-tests) = yes] (tests): Depend on
51149         $(objpfx)tst-initorder2-cmp.out.
51150         ($(objpfx)tst-initorder2-cmp.out): New rule.
51151         [$(run-built-tests) = yes] (tests): Depend on
51152         $(objpfx)tst-unused-dep-cmp.out.
51153         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
51154         ($(objpfx)tst-unused-dep-cmp.out): New rule.
51155         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
51156         on $(objpfx)tst-setvbuf1-cmp.out.
51157         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
51158         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
51159         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
51160         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
51161         ($(objpfx)tst-svc.out): Remove rule.
51162         ($(objpfx)tst-svc-cmp.out): New rule.
51163
51164 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
51165
51166         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
51167         * ctype/ctype.h [__USE_MISC]: Likewise.
51168         * dirent/dirent.h [__USE_MISC]: Likewise.
51169         * grp/grp.h [__USE_MISC]: Likewise.
51170         * io/fcntl.h [__USE_MISC]: Likewise.
51171         * io/sys/stat.h [__USE_MISC]: Likewise.
51172         * libio/stdio.h [__USE_MISC]: Likewise.
51173         * posix/unistd.h [__USE_MISC]: Likewise.
51174         * pwd/pwd.h [__USE_MISC]: Likewise.
51175         * stdlib.h [__USE_MISC]: Likewise.
51176         * string/bits/string2.h [__USE_MISC]: Likewise.
51177         * string/string.h [__USE_MISC]: Likewise.
51178         * time/time.h [__USE_MISC]: Likewise.
51179
51180 2014-02-13  Andreas Schwab  <schwab@suse.de>
51181
51182         [BZ #16574]
51183         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
51184         second answer buffer if it was separately allocated.
51185
51186 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
51187
51188         * sysdeps/mips/math-tests.h: Include <features.h>.
51189         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51190         (ROUNDING_TESTS_long_double): Do not define.
51191         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51192         (EXCEPTION_TESTS_long_double): Likewise.
51193         * sysdeps/mips/mips64/libm-test-ulps: Update.
51194
51195         * include/features.h (__USE_BSD): Remove macro definitions.
51196         (__USE_SVID): Likewise.
51197         (_BSD_SOURCE): Likewise.
51198         (_SVID_SOURCE): Likewise.
51199         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
51200         from definition of _DEFAULT_SOURCE.
51201         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
51202         [_DEFAULT_SOURCE].
51203         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
51204         * bits/mman.h [__USE_BSD]: Likewise.
51205         * bits/termios.h [__USE_BSD]: Likewise.
51206         * bits/waitstatus.h [__USE_BSD]: Likewise.
51207         * ctype/ctype.h [__USE_SVID]: Likewise.
51208         * dirent/dirent.h [__USE_BSD]: Likewise.
51209         * grp/grp.h [__USE_SVID]: Likewise.
51210         [__USE_BSD]: Likewise.
51211         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
51212         * io/fcntl.h [__USE_BSD]: Likewise.
51213         * io/ftw.h [__USE_BSD]: Likewise.
51214         * io/sys/stat.h [__USE_BSD]: Likewise.
51215         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
51216         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
51217         * libio/stdio.h [__USE_SVID]: Likewise.
51218         [__USE_BSD]: Likewise.
51219         * math/math.h [__USE_SVID]: Likewise.
51220         [__USE_BSD]: Likewise.
51221         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
51222         * misc/bits/syslog.h [__USE_BSD]: Likewise.
51223         * misc/search.h [__USE_SVID]: Likewise.
51224         * misc/sys/mman.h [__USE_BSD]: Likewise.
51225         * misc/sys/syslog.h [__USE_BSD]: Likewise.
51226         * misc/sys/uio.h [__USE_BSD]: Likewise.
51227         * posix/bits/unistd.h [__USE_BSD]: Likewise.
51228         * posix/glob.h [__USE_BSD]: Likewise.
51229         * posix/regex.h [__USE_BSD]: Likewise.
51230         * posix/sys/types.h [__USE_BSD]: Likewise.
51231         [__USE_SVID]: Likewise.
51232         * posix/sys/utsname.h [__USE_SVID]: Likewise.
51233         * posix/sys/wait.h [__USE_BSD]: Likewise.
51234         [__USE_SVID]: Likewise.
51235         * posix/unistd.h [__USE_BSD]: Likewise.
51236         [__USE_SVID]: Likewise.
51237         * pwd/pwd.h [__USE_SVID]: Likewise.
51238         * resolv/netdb.h [__USE_BSD]: Likewise.
51239         * setjmp/setjmp.h [__USE_BSD]: Likewise.
51240         * signal/signal.h [__USE_BSD]: Likewise.
51241         [__USE_SVID]: Likewise.
51242         * socket/sys/socket.h [__USE_BSD]: Likewise.
51243         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
51244         * stdlib/stdlib.h [__USE_BSD]: Likewise.
51245         [__USE_SVID]: Likewise.
51246         * string/bits/string2.h [__USE_BSD]: Likewise.
51247         [__USE_SVID]: Likewise.
51248         * string/bits/string3.h [__USE_BSD]: Likewise.
51249         * string/endian.h [__USE_BSD]: Likewise.
51250         * string/string.h [__USE_SVID]: Likewise.
51251         [__USE_BSD]: Likewise.
51252         * string/strings.h [__USE_BSD]: Likewise.
51253         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
51254         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
51255         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
51256         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
51257         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
51258         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
51259         Likewise.
51260         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
51261         Likewise.
51262         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
51263         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
51264         Likewise.
51265         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
51266         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
51267         Likewise.
51268         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
51269         Likewise.
51270         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
51271         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
51272         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
51273         Likewise.
51274         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
51275         Likewise.
51276         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
51277         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
51278         * termios/termios.h [__USE_BSD]: Likewise.
51279         * time/sys/time.h [__USE_BSD]: Likewise.
51280         * time/time.h [__USE_BSD]: Likewise.
51281         [__USE_SVID]: Likewise.
51282
51283         * Makefile (subdir_targets): Remove subdir_lint.out.
51284
51285         * stdio-common/Makefile (do-tst-unbputc): Remove target.
51286         (do-tst-printf): Likewise.
51287         (tests): Depend directly on $(objpfx)tst-unbputc.out and
51288         $(objpfx)tst-printf.out.
51289
51290         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
51291
51292         * Makerules (check-abi-%): Change target to
51293         $(objpfx)check-abi-%.out.
51294         (check-abi target): Update dependencies.
51295         (check-abi-pattern variable): Redirect output of diff to $@.
51296         (check-abi variable): Likewise.
51297         * elf/Makefile (check-abi): Update dependencies.
51298
51299         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
51300         unused.
51301         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
51302         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
51303         subnormal range.
51304         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
51305         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
51306         value has largest subnormal exponent.
51307         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
51308         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
51309         * sysdeps/aarch64/soft-fp/sfp-machine.h
51310         (_FP_TININESS_AFTER_ROUNDING): New macro.
51311         * sysdeps/alpha/soft-fp/sfp-machine.h
51312         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51313         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51314         Likewise.
51315         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
51316         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51317         * sysdeps/mips/soft-fp/sfp-machine.h
51318         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51319         * sysdeps/powerpc/soft-fp/sfp-machine.h
51320         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51321         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51322         Likewise.
51323         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
51324         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51325         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
51326         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51327         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51328         Likewise.
51329
51330 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
51331
51332         [BZ #16545]
51333         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
51334         model 1.
51335
51336 2014-02-12  Richard Henderson  <rth@redhat.com>
51337
51338         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
51339         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
51340         * sysdeps/unix/sysv/linux/alpha: Move directory from
51341         ports/sysdeps/unix/sysv/linux/alpha.
51342         * README: Update listing for alpha-*-linux-gnu.
51343
51344 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
51345
51346         * include/features.h: Update comment documenting feature test
51347         macros.
51348         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
51349         _DEFAULT_SOURCE.
51350         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
51351         (_SVID_SOURCE): Likewise.
51352         (_DEFAULT_SOURCE): Update description of default features.
51353         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
51354         with _GNU_SOURCE.
51355         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
51356         (S_ISVTX): Likewise.
51357         * manual/math.texi (Mathematical Constants): Likewise.
51358         * manual/signal.texi (Interrupted Primitives): Likewise.
51359         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
51360         * math/test-matherr.c (_SVID_SOURCE): Do not define.
51361         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
51362         Don't refer to _SVID_SOURCE in warning text.
51363
51364         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51365
51366         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
51367         already defined.
51368         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
51369         * sysdeps/mips/dl-lookup.c: Remove.
51370         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
51371
51372 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
51373
51374         [BZ #16447]
51375         * math/auto-libm-test-in: Add testcase for expl.
51376         * math/auto-libm-test-out: Regenerate.
51377         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
51378         calculation of unsafe.
51379         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
51380
51381 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
51382
51383         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
51384         * sysdeps/unix/sysv/linux/aarch64: Move directory from
51385         ports/sysdeps/unix/sysv/linux/aarch64.
51386         * README: Update listing for aarch64*-*-linux-gnu.
51387
51388 2014-02-11  Will Newton  <will.newton@linaro.org>
51389
51390         * manual/probes.texi (Mathematical Function Probes): Use
51391         "triggered" instead of "hit".
51392
51393         * manual/probes.texi (Internal Probes): Add documentation
51394         of setjmp, longjmp and longjmp_target probes.
51395
51396         * include/stap-probe.h: Add comment about probe argument
51397         format.
51398
51399         * malloc/mtrace.c (attribute_hidden): Remove unused macro
51400         definition.  (tr_where, tr_freehook, tr_mallochook,
51401         tr_reallochook, tr_memalignhook): Use ANSI protoype.
51402
51403 2014-02-11  David S. Miller  <davem@davemloft.net>
51404
51405         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
51406         processing int_tests.
51407
51408 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
51409
51410         * sysdeps/mips: Move directory from ports/sysdeps/mips.
51411         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
51412         * sysdeps/unix/sysv/linux/mips: Move directory from
51413         ports/sysdeps/unix/sysv/linux/mips.
51414         * README: Update listing for mips-*-linux-gnu and
51415         mips64-*-linux-gnu.
51416
51417 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
51418
51419         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
51420         * sysdeps/unix/sysv/linux/m68k: Move directory from
51421         ports/sysdeps/unix/sysv/linux/m68k.
51422         * README: Update listing for m68k-*-linux-gnu.
51423
51424 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
51425
51426         * sysdeps/tile: Move directory from ports/sysdeps/tile.
51427         * sysdeps/unix/sysv/linux/generic: Move directory from
51428         ports/sysdeps/unix/sysv/linux/generic.
51429         * sysdeps/unix/sysv/linux/tile: Move directory from
51430         ports/sysdeps/unix/sysv/linux/tile.
51431         * README: Update listing for tile*-*-linux-gnu.
51432
51433 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
51434
51435         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
51436         __builtin_expect.
51437         * benchtests/bench-memmem.c (simple_memmem): Likewise.
51438         * catgets/open_catalog.c (__open_catalog): Likewise.
51439         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
51440         * debug/confstr_chk.c: Likewise.
51441         * debug/fread_chk.c (__fread_chk): Likewise.
51442         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
51443         * debug/getgroups_chk.c: Likewise.
51444         * debug/mbsnrtowcs_chk.c: Likewise.
51445         * debug/mbsrtowcs_chk.c: Likewise.
51446         * debug/mbstowcs_chk.c: Likewise.
51447         * debug/memcpy_chk.c: Likewise.
51448         * debug/memmove_chk.c: Likewise.
51449         * debug/mempcpy_chk.c: Likewise.
51450         * debug/memset_chk.c: Likewise.
51451         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
51452         * debug/strcat_chk.c (__strcat_chk): Likewise.
51453         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
51454         * debug/strncat_chk.c (__strncat_chk): Likewise.
51455         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
51456         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
51457         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
51458         * debug/wcpncpy_chk.c: Likewise.
51459         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
51460         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
51461         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
51462         * debug/wcsncpy_chk.c: Likewise.
51463         * debug/wcsnrtombs_chk.c: Likewise.
51464         * debug/wcsrtombs_chk.c: Likewise.
51465         * debug/wcstombs_chk.c: Likewise.
51466         * debug/wmemcpy_chk.c: Likewise.
51467         * debug/wmemmove_chk.c: Likewise.
51468         * debug/wmempcpy_chk.c: Likewise.
51469         * debug/wmemset_chk.c: Likewise.
51470         * dirent/scandirat.c (SCANDIRAT): Likewise.
51471         * dlfcn/dladdr1.c (dladdr1): Likewise.
51472         * dlfcn/dladdr.c (dladdr): Likewise.
51473         * dlfcn/dlclose.c (dlclose_doit): Likewise.
51474         * dlfcn/dlerror.c (__dlerror): Likewise.
51475         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
51476         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
51477         * dlfcn/dlopen.c (dlopen_doit): Likewise.
51478         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
51479         * dlfcn/dlsym.c (dlsym_doit): Likewise.
51480         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
51481         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
51482         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
51483         Likewise.
51484         * elf/dl-conflict.c: Likewise.
51485         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
51486         * elf/dl-dst.h: Likewise.
51487         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
51488         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
51489         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
51490         * elf/dl-init.c (call_init, _dl_init): Likewise.
51491         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
51492         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
51493         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
51494         Likewise.
51495         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
51496         Likewise.
51497         * elf/dl-minimal.c (__libc_memalign): Likewise.
51498         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
51499         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
51500         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
51501         * elf/dl-sym.c (do_sym): Likewise.
51502         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
51503         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
51504         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
51505         * elf/dl-writev.h (_dl_writev): Likewise.
51506         * elf/ldconfig.c (search_dir): Likewise.
51507         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
51508         (dl_main): Likewise.
51509         * elf/setup-vdso.h (setup_vdso): Likewise.
51510         * grp/compat-initgroups.c (compat_call): Likewise.
51511         * grp/fgetgrent.c (fgetgrent): Likewise.
51512         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
51513         * grp/putgrent.c (putgrent): Likewise.
51514         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
51515         Likewise.
51516         * hurd/hurdinit.c: Likewise.
51517         * iconvdata/8bit-gap.c (struct): Likewise.
51518         * iconvdata/ansi_x3.110.c : Likewise.
51519         * iconvdata/big5.c : Likewise.
51520         * iconvdata/big5hkscs.c : Likewise.
51521         * iconvdata/cp1255.c: Likewise.
51522         * iconvdata/cp1258.c : Likewise.
51523         * iconvdata/cp932.c : Likewise.
51524         * iconvdata/euc-cn.c: Likewise.
51525         * iconvdata/euc-jisx0213.c : Likewise.
51526         * iconvdata/euc-jp.c: Likewise.
51527         * iconvdata/euc-jp-ms.c : Likewise.
51528         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
51529         * iconvdata/gb18030.c : Likewise.
51530         * iconvdata/gbbig5.c (const): Likewise.
51531         * iconvdata/gbgbk.c: Likewise.
51532         * iconvdata/gbk.c : Likewise.
51533         * iconvdata/ibm1364.c : Likewise.
51534         * iconvdata/ibm930.c : Likewise.
51535         * iconvdata/ibm932.c: Likewise.
51536         * iconvdata/ibm933.c : Likewise.
51537         * iconvdata/ibm935.c : Likewise.
51538         * iconvdata/ibm937.c : Likewise.
51539         * iconvdata/ibm939.c : Likewise.
51540         * iconvdata/ibm943.c: Likewise.
51541         * iconvdata/iso_11548-1.c: Likewise.
51542         * iconvdata/iso-2022-cn.c : Likewise.
51543         * iconvdata/iso-2022-cn-ext.c : Likewise.
51544         * iconvdata/iso-2022-jp-3.c: Likewise.
51545         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
51546         * iconvdata/iso-2022-kr.c : Likewise.
51547         * iconvdata/iso646.c (gconv_end): Likewise.
51548         * iconvdata/iso_6937-2.c : Likewise.
51549         * iconvdata/iso_6937.c : Likewise.
51550         * iconvdata/iso8859-1.c: Likewise.
51551         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
51552         * iconvdata/shift_jisx0213.c : Likewise.
51553         * iconvdata/sjis.c : Likewise.
51554         * iconvdata/t.61.c : Likewise.
51555         * iconvdata/tcvn5712-1.c : Likewise.
51556         * iconvdata/tscii.c: Likewise.
51557         * iconvdata/uhc.c : Likewise.
51558         * iconvdata/unicode.c (gconv_end): Likewise.
51559         * iconvdata/utf-16.c (gconv_end): Likewise.
51560         * iconvdata/utf-32.c (gconv_end): Likewise.
51561         * iconvdata/utf-7.c (base64): Likewise.
51562         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
51563         * iconv/gconv_close.c (__gconv_close): Likewise.
51564         * iconv/gconv_open.c (__gconv_open): Likewise.
51565         * iconv/gconv_simple.c (internal_ucs4_loop_single)
51566         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
51567         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
51568         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
51569         (ucs4le_internal_loop_single): Likewise.
51570         * iconv/iconv.c (iconv): Likewise.
51571         * iconv/iconv_close.c: Likewise.
51572         * iconv/loop.c (SINGLE): Likewise.
51573         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
51574         * include/atomic.h: Likewise.
51575         * inet/inet6_option.c (option_alloc): Likewise.
51576         * intl/bindtextdom.c (set_binding_values): Likewise.
51577         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
51578         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
51579         * intl/localealias.c (read_alias_file): Likewise.
51580         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
51581         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
51582         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
51583         * libio/fmemopen.c (fmemopen): Likewise.
51584         * libio/iofgets.c (_IO_fgets): Likewise.
51585         * libio/iofgets_u.c (fgets_unlocked): Likewise.
51586         * libio/iofgetws.c (fgetws): Likewise.
51587         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
51588         * libio/iogetdelim.c (_IO_getdelim): Likewise.
51589         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
51590         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
51591         * locale/findlocale.c (_nl_find_locale): Likewise.
51592         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
51593         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
51594         Likewise.
51595         * locale/setlocale.c (setlocale): Likewise.
51596         * login/programs/pt_chown.c (main): Likewise.
51597         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
51598         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
51599         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
51600         (mmap, mmap64, mremap, munmap): Likewise.
51601         * math/e_exp2l.c: Likewise.
51602         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
51603         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
51604         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
51605         * math/s_catan.c (__catan): Likewise.
51606         * math/s_catanf.c (__catanf): Likewise.
51607         * math/s_catanh.c (__catanh): Likewise.
51608         * math/s_catanhf.c (__catanhf): Likewise.
51609         * math/s_catanhl.c (__catanhl): Likewise.
51610         * math/s_catanl.c (__catanl): Likewise.
51611         * math/s_ccosh.c (__ccosh): Likewise.
51612         * math/s_ccoshf.c (__ccoshf): Likewise.
51613         * math/s_ccoshl.c (__ccoshl): Likewise.
51614         * math/s_cexp.c (__cexp): Likewise.
51615         * math/s_cexpf.c (__cexpf): Likewise.
51616         * math/s_cexpl.c (__cexpl): Likewise.
51617         * math/s_clog10.c (__clog10): Likewise.
51618         * math/s_clog10f.c (__clog10f): Likewise.
51619         * math/s_clog10l.c (__clog10l): Likewise.
51620         * math/s_clog.c (__clog): Likewise.
51621         * math/s_clogf.c (__clogf): Likewise.
51622         * math/s_clogl.c (__clogl): Likewise.
51623         * math/s_csin.c (__csin): Likewise.
51624         * math/s_csinf.c (__csinf): Likewise.
51625         * math/s_csinh.c (__csinh): Likewise.
51626         * math/s_csinhf.c (__csinhf): Likewise.
51627         * math/s_csinhl.c (__csinhl): Likewise.
51628         * math/s_csinl.c (__csinl): Likewise.
51629         * math/s_csqrt.c (__csqrt): Likewise.
51630         * math/s_csqrtf.c (__csqrtf): Likewise.
51631         * math/s_csqrtl.c (__csqrtl): Likewise.
51632         * math/s_ctan.c (__ctan): Likewise.
51633         * math/s_ctanf.c (__ctanf): Likewise.
51634         * math/s_ctanh.c (__ctanh): Likewise.
51635         * math/s_ctanhf.c (__ctanhf): Likewise.
51636         * math/s_ctanhl.c (__ctanhl): Likewise.
51637         * math/s_ctanl.c (__ctanl): Likewise.
51638         * math/w_pow.c: Likewise.
51639         * math/w_powf.c: Likewise.
51640         * math/w_powl.c: Likewise.
51641         * math/w_scalb.c (sysv_scalb): Likewise.
51642         * math/w_scalbf.c (sysv_scalbf): Likewise.
51643         * math/w_scalbl.c (sysv_scalbl): Likewise.
51644         * misc/error.c (error_tail): Likewise.
51645         * misc/pselect.c (__pselect): Likewise.
51646         * nis/nis_callback.c (__nis_create_callback): Likewise.
51647         * nis/nis_call.c (__nisfind_server): Likewise.
51648         * nis/nis_creategroup.c (nis_creategroup): Likewise.
51649         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
51650         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
51651         * nis/nis_getservlist.c (nis_getservlist): Likewise.
51652         * nis/nis_lookup.c (nis_lookup): Likewise.
51653         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
51654         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
51655         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
51656         * nis/nis_xdr.c (xdr_endpoint): Likewise.
51657         * nis/nss_compat/compat-grp.c (getgrent_next_file)
51658         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
51659         * nis/nss_compat/compat-initgroups.c (add_group)
51660         (internal_getgrent_r): Likewise.
51661         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
51662         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
51663         * nis/nss_compat/compat-spwd.c (getspent_next_file)
51664         (internal_getspnam_r): Likewise.
51665         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
51666         (_nss_nis_getaliasbyname_r): Likewise.
51667         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
51668         (_nss_nis_getntohost_r): Likewise.
51669         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
51670         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
51671         (_nss_nis_getgrgid_r): Likewise.
51672         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
51673         (internal_nis_gethostent_r, internal_gethostbyname2_r)
51674         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
51675         (_nss_nis_gethostbyname4_r): Likewise.
51676         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
51677         (initgroups_netid): Likewise.
51678         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
51679         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
51680         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
51681         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
51682         (_nss_nis_getprotobynumber_r): Likewise.
51683         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
51684         (_nss_nis_getsecretkey): Likewise.
51685         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
51686         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
51687         (_nss_nis_getpwuid_r): Likewise.
51688         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
51689         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
51690         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
51691         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
51692         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
51693         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
51694         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
51695         Likewise.
51696         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
51697         (_nss_nisplus_getntohost_r): Likewise.
51698         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
51699         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
51700         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
51701         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
51702         Likewise.
51703         * nis/nss_nisplus/nisplus-initgroups.c
51704         (_nss_nisplus_initgroups_dyn): Likewise.
51705         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
51706         (_nss_nisplus_getnetbyaddr_r): Likewise.
51707         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
51708         (_nss_nisplus_getprotobynumber_r): Likewise.
51709         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
51710         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
51711         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
51712         Likewise.
51713         * nis/nss_nisplus/nisplus-service.c
51714         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
51715         (_nss_nisplus_getservbyport_r): Likewise.
51716         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
51717         (_nss_nisplus_getspnam_r): Likewise.
51718         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
51719         Likewise.
51720         * nscd/aicache.c (addhstaiX): Likewise.
51721         * nscd/cache.c (cache_search, prune_cache): Likewise.
51722         * nscd/connections.c (register_traced_file, send_ro_fd)
51723         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
51724         (main_loop_epoll): Likewise.
51725         * nscd/grpcache.c (addgrbyX): Likewise.
51726         * nscd/hstcache.c (addhstbyX): Likewise.
51727         * nscd/initgrcache.c (addinitgroupsX): Likewise.
51728         * nscd/mem.c (gc, mempool_alloc): Likewise.
51729         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
51730         (addinnetgrX): Likewise.
51731         * nscd/nscd-client.h (__nscd_acquire_maplock)
51732         (__nscd_drop_map_ref): Likewise.
51733         * nscd/nscd_getai.c (__nscd_getai): Likewise.
51734         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
51735         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
51736         Likewise.
51737         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
51738         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
51739         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
51740         (__nscd_get_map_ref): Likewise.
51741         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
51742         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
51743         Likewise.
51744         * nscd/pwdcache.c (addpwbyX): Likewise.
51745         * nscd/selinux.c (preserve_capabilities): Likewise.
51746         * nscd/servicescache.c (addservbyX): Likewise.
51747         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
51748         * posix/fnmatch.c (fnmatch): Likewise.
51749         * posix/getopt.c (_getopt_internal_r): Likewise.
51750         * posix/glob.c (glob, glob_in_dir): Likewise.
51751         * posix/wordexp.c (exec_comm_child): Likewise.
51752         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
51753         (getanswer_r, gaih_getanswer_slice): Likewise.
51754         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
51755         * resolv/res_init.c: Likewise.
51756         * resolv/res_mkquery.c (res_nmkquery): Likewise.
51757         * resolv/res_query.c (__libc_res_nquery): Likewise.
51758         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
51759         Likewise.
51760         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
51761         * stdio-common/perror.c (perror): Likewise.
51762         * stdio-common/printf_fp.c (___printf_fp): Likewise.
51763         * stdio-common/tmpnam.c (tmpnam): Likewise.
51764         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
51765         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
51766         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
51767         Likewise.
51768         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
51769         * stdlib/putenv.c (putenv): Likewise.
51770         * stdlib/setenv.c (__add_to_environ): Likewise.
51771         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
51772         * stdlib/strtol_l.c (INTERNAL): Likewise.
51773         * string/memmem.c (memmem): Likewise.
51774         * string/strerror.c (strerror): Likewise.
51775         * string/strnlen.c (__strnlen): Likewise.
51776         * string/test-memmem.c (simple_memmem): Likewise.
51777         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
51778         * sunrpc/pm_getport.c (__get_socket): Likewise.
51779         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
51780         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
51781         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
51782         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
51783         Likewise.
51784         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
51785         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
51786         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
51787         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
51788         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
51789         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
51790         Likewise.
51791         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
51792         Likewise.
51793         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
51794         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
51795         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
51796         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
51797         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
51798         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
51799         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
51800         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
51801         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
51802         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
51803         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
51804         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
51805         Likewise.
51806         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
51807         Likewise.
51808         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
51809         Likewise.
51810         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
51811         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
51812         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
51813         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
51814         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
51815         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
51816         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
51817         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
51818         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
51819         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
51820         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
51821         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
51822         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
51823         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
51824         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
51825         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
51826         Likewise.
51827         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
51828         Likewise.
51829         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
51830         Likewise.
51831         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
51832         Likewise.
51833         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
51834         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
51835         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
51836         Likewise.
51837         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
51838         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
51839         * sysdeps/posix/opendir.c (__opendirat): Likewise.
51840         * sysdeps/posix/sleep.c: Likewise.
51841         * sysdeps/posix/tempname.c: Likewise.
51842         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
51843         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
51844         Likewise.
51845         * sysdeps/powerpc/powerpc32/dl-machine.h
51846         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
51847         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
51848         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
51849         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
51850         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
51851         Likewise.
51852         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
51853         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
51854         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
51855         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
51856         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
51857         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
51858         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
51859         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
51860         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
51861         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
51862         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
51863         (elf_machine_lazy_rel): Likewise.
51864         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
51865         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
51866         (elf_machine_lazy_rel): Likewise.
51867         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
51868         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
51869         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
51870         * sysdeps/unix/grantpt.c (grantpt): Likewise.
51871         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
51872         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
51873         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
51874         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
51875         Likewise.
51876         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
51877         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
51878         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
51879         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
51880         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
51881         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51882         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
51883         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
51884         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
51885         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51886         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
51887         Likewise.
51888         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
51889         (__posix_fallocate64_l64): Likewise.
51890         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
51891         (posix_fallocate): Likewise.
51892         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
51893         Likewise.
51894         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
51895         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
51896         (getifaddrs_internal): Likewise.
51897         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
51898         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
51899         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
51900         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
51901         * sysdeps/unix/sysv/linux/posix_fallocate64.c
51902         (__posix_fallocate64_l64): Likewise.
51903         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
51904         Likewise.
51905         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
51906         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
51907         (__get_clockfreq): Likewise.
51908         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
51909         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
51910         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
51911         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
51912         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
51913         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
51914         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
51915         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
51916         Likewise.
51917         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
51918         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
51919         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
51920         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
51921         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
51922         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
51923         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
51924         Likewise.
51925         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
51926         (posix_fallocate): Likewise.
51927         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
51928         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
51929         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
51930         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
51931         (elf_machine_rela, elf_machine_rela_relative)
51932         (elf_machine_lazy_rel): Likewise.
51933         * time/asctime.c (asctime_internal): Likewise.
51934         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
51935         * time/tzset.c (__tzset_parse_tz): Likewise.
51936         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
51937         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
51938         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
51939         * wcsmbs/wcsmbsload.h: Likewise.
51940
51941         [BZ #15894]
51942         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
51943
51944         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
51945         (arena_get2): Remove THREAD_STATS conditionals.
51946         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
51947         (__malloc_stats, int): Likewise.
51948
51949 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
51950
51951         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
51952         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
51953
51954         * manual/setjmp.texi: Fix typos/grammar errors.
51955
51956         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
51957         Only return early when n is <= 0.  Delete unused return statement.
51958
51959         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
51960         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
51961         * debug/tst-longjmp_chk3.c: New file.
51962
51963         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
51964         (test_main): Replace code with set_fortify_handler call.
51965         * debug/test-strcpy_chk.c: Likewise.
51966         * debug/tst-chk1.c: Likewise.
51967         * debug/tst-longjmp_chk.c: Likewise.
51968         * test-skeleton.c: Include fcntl.h & paths.h
51969         (set_fortify_handler): Define.
51970
51971         * debug/tst-longjmp_chk.c: Add header comment and include
51972         ../test-skeleton.c.
51973         (do_test): Mark static.
51974         (TEST_FUNCTION): Define.
51975
51976         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
51977         (IP_PMTUDISC_INTERFACE): Likewise.
51978         (IP_MULTICAST_IF): Likewise.
51979         (IP_MULTICAST_TTL): Likewise.
51980         (IP_MULTICAST_LOOP): Likewise.
51981         (IP_ADD_MEMBERSHIP): Likewise.
51982         (IP_DROP_MEMBERSHIP): Likewise.
51983         (IP_UNBLOCK_SOURCE): Likewise.
51984         (IP_BLOCK_SOURCE): Likewise.
51985         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
51986         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
51987         (IP_MSFILTER): Likewise.
51988         (MCAST_JOIN_GROUP): Likewise.
51989         (MCAST_BLOCK_SOURCE): Likewise.
51990         (MCAST_UNBLOCK_SOURCE): Likewise.
51991         (MCAST_LEAVE_GROUP): Likewise.
51992         (MCAST_JOIN_SOURCE_GROUP): Likewise.
51993         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
51994         (MCAST_MSFILTER): Likewise.
51995         (IP_MULTICAST_ALL): Likewise.
51996         (IP_UNICAST_IF): Likewise.
51997
51998         * timezone/Makefile: Delete $(have-ksh) check.
51999         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
52000         * timezone/tzselect.ksh: Add +x mode bits.
52001
52002         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
52003         (ANON_INODE_FS_MAGIC): Likewise.
52004         (BDEVFS_MAGIC): Likewise.
52005         (BINFMTFS_MAGIC): Likewise.
52006         (BTRFS_TEST_MAGIC): Likewise.
52007         (CRAMFS_MAGIC_WEND): Likewise.
52008         (DEBUGFS_MAGIC): Likewise.
52009         (ECRYPTFS_SUPER_MAGIC): Likewise.
52010         (EXT3_SUPER_MAGIC): Likewise.
52011         (EXT4_SUPER_MAGIC): Likewise.
52012         (FUTEXFS_SUPER_MAGIC): Likewise.
52013         (HOSTFS_SUPER_MAGIC): Likewise.
52014         (HUGETLBFS_MAGIC): Likewise.
52015         (MINIX3_SUPER_MAGIC): Likewise.
52016         (MTD_INODE_FS_MAGIC): Likewise.
52017         (NILFS_SUPER_MAGIC): Likewise.
52018         (OPENPROM_SUPER_MAGIC): Likewise.
52019         (PIPEFS_MAGIC): Likewise.
52020         (PSTOREFS_MAGIC): Likewise.
52021         (QNX6_SUPER_MAGIC): Likewise.
52022         (RAMFS_MAGIC): Likewise.
52023         (REISERFS_SUPER_MAGIC_STRING): Likewise.
52024         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
52025         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
52026         (SECURITYFS_MAGIC): Likewise.
52027         (SELINUX_MAGIC): Likewise.
52028         (SMACK_MAGIC): Likewise.
52029         (SOCKFS_MAGIC): Likewise.
52030         (SQUASHFS_MAGIC): Likewise.
52031         (STACK_END_MAGIC): Likewise.
52032         (TMPFS_MAGIC): Likewise.
52033         (USBDEVICE_SUPER_MAGIC): Likewise.
52034         (V9FS_MAGIC): Likewise.
52035         (XENFS_SUPER_MAGIC): Likewise.
52036         (CRAMFS_MAGIC): Fix typo in comment.
52037         (EXT2_SUPER_MAGIC): Update comment.
52038         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
52039
52040 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
52041
52042         * sysdeps/arm: Move directory from ports/sysdeps/arm.
52043         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
52044         * sysdeps/unix/sysv/linux/arm: Move directory from
52045         ports/sysdeps/unix/sysv/linux/arm.
52046         * README: Update listing for arm-*-linux-gnueabi.
52047
52048         * README: Remove mention of am33.
52049
52050 2014-02-07  Roland McGrath  <roland@hack.frob.com>
52051
52052         * bits/sigset.h (__sigemptyset): Use a statement expression rather
52053         than the comma operator, to avoid "rhs of comma has no effect"
52054         compiler warnings.
52055         (__sigfillset, __sigandset, __sigorset): Likewise.
52056         * include/signal.h (__sigemptyset): Likewise.
52057         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
52058
52059 2014-02-07  Allan McRae  <allan@archlinux.org>
52060
52061         * version.h (RELEASE): Set to "development".
52062         (VERSION): Set to "2.19.90"
52063         * NEWS: Add 2.20 section.
52064
52065 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
52066
52067         [BZ #16529]
52068         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
52069
52070 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
52071
52072         * manual/contrib.texi: Update entry for Carlos O'Donell,
52073         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
52074
52075 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
52076
52077         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
52078
52079         * sysdeps/unix/sysv/linux/kernel-features.h
52080         [__LINUX_KERNEL_VERSION >= 0x020621]
52081         (__ASSUME_PROC_PID_TASK_COMM): Define.
52082
52083 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52084
52085         [BZ #16398]
52086         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
52087         conversion when destination buffer does not have enough space.
52088         * libio/tst-ftell-partial-wide.c: New test case.
52089         * libio/Makefile (tests): Add tst-ftell-partial-wide.
52090
52091         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
52092         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
52093         Leonard and Allan McRae.
52094
52095 2014-02-04  David S. Miller  <davem@davemloft.net>
52096
52097         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
52098         32-bit.
52099
52100 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52101
52102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
52103         New file
52104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
52105         New file
52106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
52107         New file.
52108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
52109         New file.
52110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
52111         New file.
52112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
52113         New file.
52114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
52115         New file.
52116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
52117         New file.
52118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
52119         New file.
52120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
52121         New file.
52122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
52123         New file.
52124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
52125         New file.
52126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
52127         New file.
52128
52129 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52130
52131         * nptl/shlib-versions: Change powerpc*le start to 2.17.
52132         * shlib-versions: Likewise.
52133
52134 2014-02-04  Roland McGrath  <roland@hack.frob.com>
52135             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52136
52137         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
52138         (abilist-pattern): New variable, set to %-le.abilist.
52139
52140         * Makerules (abilist-pattern): New variable.
52141         (vpath): Use $(abilist-pattern) in place of %.abilist.
52142         (check-abi-% pattern rule): Likewise.
52143         (check-abi, update-abi): Likewise.
52144
52145 2014-02-04  Eric Wong  <normalperson@yhbt.net>
52146
52147         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
52148
52149 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
52150
52151         * manual/startup.texi: Add next, previous, and top entries for
52152         the `Program Arguments' and `Environment Variables' nodes.
52153
52154 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
52155
52156         * manual/macros.texi: Add comments before MTASC-safety macros.
52157
52158         * manual/users.texi: Document MTASC-safety properties.
52159
52160         * manual/threads.texi (pthread_key_create, pthread_key_delete)
52161         (pthread_getspecific, pthread_setspecific): Format with
52162         @deftypefun, and add @safety note.
52163         * manual/signal.texi: Move comments that analyze the above
52164         functions to their home place.
52165
52166 2014-02-03  Allan McRae  <allan@archlinux.org>
52167
52168         * po/sl.po: Update Slovenian translation from translation project.
52169
52170 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
52171
52172         * manual/time.texi (timegm): Add missing blank after @c.
52173         Reported by Joseph Myers <joseph@codesourcery.com>.
52174
52175 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
52176
52177         * manual/check-safety.sh: New.
52178         * manual/Makefile ($(objpfx)stamp-summary): Run it.
52179
52180         * manual/terminal.texi: Document MTASC-safety properties.
52181
52182         * manual/filesys.texi: Document MTASC-safety properties.
52183
52184         * manual/errno.texi: Document MTASC-safety properties.
52185
52186         * manual/intro.texi: Document safety identifiers and
52187         conditionals.
52188
52189         * manual/string.texi (wcstok): Fix prototype.
52190         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
52191
52192         * manual/time.texi: Document MTASC-safety properties.
52193
52194         * manual/string.texi: Document MTASC-safety properties.
52195
52196         * manual/threads.texi: Document MTASC-safety properties.
52197
52198         * manual/stdio.texi: Document MTASC-safety properties.
52199
52200         * manual/syslog.texi: Document MTASC-safety properties.
52201
52202         * manual/sysinfo.texi: Document MTASC-safety properties.
52203
52204         * manual/startup.texi: Document MTASC-safety properties.
52205
52206         * manual/socket.texi: Document MTASC-safety properties.
52207
52208         * manual/signal.texi: Document MTASC-safety properties.
52209
52210 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
52211
52212         * manual/setjmp.texi: Document MTASC-safety properties.
52213
52214         * manual/search.texi: Document MTASC-safety properties.
52215
52216         * manual/resource.texi: Document MTASC-safety properties.
52217
52218         * manual/process.texi: Document MTASC-safety properties.
52219
52220         * manual/platform.texi: Document MTASC-safety properties.
52221
52222         * manual/pipe.texi: Document MTASC-safety properties.
52223
52224         * manual/pattern.texi: Document MTASC-safety properties.
52225
52226         * manual/message.texi: Document MTASC-safety properties.
52227
52228         [BZ #12751]
52229         * manual/memory.texi: Document MTASC-safety properties.
52230
52231         * manual/math.texi: Document MTASC-safety properties.
52232
52233         * manual/locale.texi: Document MTASC-safety properties.
52234
52235         * manual/llio.texi: Document MTASC-safety properties.
52236
52237         * manual/libdl.texi: New.
52238
52239         * manual/lang.texi: Document MTASC-safety properties.
52240
52241         * manual/job.texi: Document MTASC-safety properties.
52242
52243         * manual/getopt.texi: Document MTASC-safety properties.
52244
52245         * manual/ctype.texi: Document MTASC-safety properties.
52246
52247 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
52248
52249         [BZ #16046]
52250         * csu/libc-tls.c (static_map): Remove variable.
52251         (__libc_setup_tls): Use main executable's link map for TLS data.
52252         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
52253         casing for LM_ID_BASE and GL(dl_nns).
52254         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
52255         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
52256         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
52257         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
52258         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
52259         member.
52260         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
52261         l_phnum members.
52262
52263 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
52264
52265         * manual/debug.texi: Document MTASC-safety properties.
52266
52267 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
52268
52269         [BZ #16510]
52270         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
52271         of __x86_64__ when disabling x87 inline functions.
52272
52273 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
52274
52275         * manual/charset.texi: Document MTASC-safety properties.
52276
52277         * manual/crypt.texi: Document MTASC-safety properties.
52278
52279         * manual/conf.texi: Document MTASC-safety properties.
52280
52281         * manual/arith.texi: Document MTASC-safety properties.
52282
52283         * manual/argp.texi: Document MTASC-safety properties.
52284
52285         * manual/macros.texi: Introduce macros to document multi
52286         thread, asynchronous signal and asynchronous cancellation
52287         safety properties.
52288         * manual/intro.texi: Introduce the properties themselves.
52289
52290 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52291
52292         * sysdeps/sh/sh4/Makefile: New file.
52293
52294 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
52295
52296         * math/gen-libm-test.pl ($srcdir): New variable.
52297         ($auto_input): Use it.
52298
52299 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
52300
52301         [BZ #16506]
52302         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
52303         access beyond array bounds when parsing netgroups file.
52304
52305         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
52306         the old buffer before realloc.
52307
52308 2014-01-27  Allan McRae  <allan@archlinux.org>
52309
52310         * po/fr.po: Update French translation from translation project.
52311
52312 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52313
52314         * sysdeps/sh/libm-test-ulps: Regenerate.
52315
52316 2014-01-24  David S. Miller  <davem@davemloft.net>
52317
52318         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
52319
52320 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52321
52322         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
52323         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
52324
52325 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
52326
52327         [BZ #16474]
52328         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
52329         string pointers after reallocation.
52330
52331 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52332
52333         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
52334         __SH4A__ instead of __SH_FPU_ANY__.
52335
52336 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52337
52338         * sysdeps/sh/fpu_control.h: New file.
52339         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
52340         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
52341         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
52342         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
52343         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
52344         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
52345         * sysdeps/sh/sys/ucontext.h: Remove.
52346         * sysdeps/sh/sys: Remove directory.
52347
52348 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52349
52350         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
52351         s390/sys/ucontext.h.
52352         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
52353         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
52354
52355 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
52356
52357         [BZ #15605]
52358         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
52359
52360 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52361
52362         [BZ #16431]
52363         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
52364         Adjust the vDSO correctly for internal calls.
52365         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
52366
52367 2014-01-20  Allan McRae  <allan@archlinux.org>
52368
52369         * po/ca.po: Update Catalan translation from translation project.
52370
52371 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
52372
52373         * sysdeps/s390/sotruss-lib.c: New file.
52374
52375 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52376
52377         [BZ #16430]
52378         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
52379         (__GI___gettimeofday): Alias for a different internal symbol to avoid
52380         local calls issues by not having a PLT stub required for IFUNC calls.
52381         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
52382
52383 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
52384
52385         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
52386         * math/test-fpucw-static.c: Likewise.
52387
52388 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52389
52390         [BZ #16453]
52391         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
52392
52393 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52394
52395         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
52396         implementation for powerpc.
52397
52398 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
52399
52400         [BZ #14782]
52401         * sysdeps/posix/system.c (__libc_system): Do not enable
52402         asynchronous cancellation.
52403
52404 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52405
52406         [BZ #16427]
52407         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
52408         handling only for numbers special also in the IEEE case.
52409
52410 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52411
52412         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
52413
52414 2014-01-11  Allan McRae  <allan@archlinux.org>
52415
52416         * po/bg.po: Update Bulgarian translation from translation project.
52417
52418         * po/de.po: Update German translation from translation project.
52419
52420 2014-01-10  Roland McGrath  <roland@hack.frob.com>
52421
52422         * sysdeps/generic/gcc-compat.h: New file.
52423
52424 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52425
52426         * benchtests/asin-inputs: Correct slow inputs.
52427         * benchtests/acos-inputs: Likewise.
52428
52429 2014-01-10  Allan McRae  <allan@archlinux.org>
52430
52431         * po:sv.po: Update Swedish translation from translation project.
52432
52433         * po/vi.po: Update Vietnamese translation from translation project.
52434
52435         * po/eo.po: Update Esperanto translation from translation project.
52436
52437         * po/cs.po: Update Czech translation from translation project.
52438
52439         * po/nl.po: Update Dutch translation from translation project.
52440
52441         * po/pl.po: Update Polish translation from translation project.
52442
52443         * po/ru.po: Update Russian translation from translation project.
52444
52445         * po/uk.po: Update Ukrainian translation from translation project.
52446
52447 2014-01-08  Brooks Moses  <bmoses@google.com>
52448
52449         * elf/dl-load.c: Fix comment typo.
52450
52451 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
52452
52453         * po/header.pot: Rename to...
52454         * po/pot.header: ... this.
52455         * po/Makefile: Use pot.header.
52456
52457 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
52458             Maxim Kuvyrkov  <maxim@kugelworks.com>
52459
52460         [BZ #16394]
52461         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
52462         SRC and DEST against LEN.
52463
52464 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52465
52466         [BZ #16414]
52467         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
52468         implementation.
52469         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
52470
52471 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52472
52473         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52474
52475 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
52476
52477         [BZ #16408]
52478         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
52479         for large positive arguments.
52480
52481 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
52482
52483         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
52484
52485         * math/auto-libm-test-in: Mark various tests with
52486         xfail-rounding:ldbl-128ibm.
52487         * math/auto-libm-test-out: Regenerated.
52488
52489         [BZ #16407]
52490         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
52491         Increase overflow threshold.
52492
52493 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
52494
52495         [BZ #14286]
52496         * stdio-common/vfprintf.c: Check for integer overflow.
52497
52498 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52499
52500         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
52501         the first argument and return value of __tls_get_addr_internal.
52502
52503 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52504
52505         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
52506         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
52507
52508 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52509
52510         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
52511         * sysdeps/s390/rtld-global-offsets.sym: New file.
52512         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
52513         GLIBC_2.19 symbol.
52514         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
52515         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
52516         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
52517         ... this.
52518         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
52519         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
52520         ... this.
52521         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52522         Regenerate.
52523         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52524         Regenerate.
52525         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
52526         halfs of GPRs for high_gprs contexts.
52527         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
52528         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
52529         field.
52530         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
52531         uc_flags field.
52532         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
52533         64 bit versions:
52534         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
52535         for high GPRs (uc_high_gprs) and for future extensions
52536         (__reserved).
52537         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
52538         for future extensions (__reserved).
52539         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
52540         64 bit versions:
52541         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
52542         SC_HIGHGPRS offset definition.
52543         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
52544         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
52545
52546         * Versions.def: Add GLIBC_2.19 for libpthread.
52547         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
52548         siglongjmp for libpthread with GLIBC_2.19 symver.
52549         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
52550         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
52551         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
52552         * sysdeps/s390/__longjmp.c: New file.
52553         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
52554         * sysdeps/s390/longjmp.c: New file.
52555         * sysdeps/s390/setjmp.S: New file.
52556         * sysdeps/s390/sigjmp.S: New file.
52557         * sysdeps/s390/v1-longjmp.c: New file.
52558         * sysdeps/s390/v1-setjmp.h: New file.
52559         * sysdeps/s390/v1-sigjmp.c: New file.
52560         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
52561         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
52562         GLIBC_2.19 version.
52563         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
52564         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
52565         versioned symbols for ____longjmp_chk.
52566         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
52567         Likewise.
52568         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52569         Regenerate.
52570         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
52571         Regenerate.
52572         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52573         Regenerate.
52574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
52575         Regenerate.
52576         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
52577         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
52578         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
52579         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
52580         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
52581         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
52582         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
52583         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
52584         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
52585         * sysdeps/s390/rtld-__longjmp.c: New file.
52586         * sysdeps/s390/rtld-setjmp.S: New file.
52587
52588 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
52589
52590         [BZ #16400]
52591         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
52592         Return -__logl (x) for small positive arguments without evaluating
52593         a polynomial.
52594
52595 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
52596
52597         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
52598         Rename to ...
52599         (__ptrace_peeksiginfo_args): ... this.
52600         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
52601         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
52602         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
52603
52604 2014-01-06  Allan McRae  <allan@archlinux.org>
52605
52606         * inet/netinet/in.h: Fix typo in comment.
52607
52608 2014-01-05  Andreas Jaeger  <aj@suse.de>
52609
52610         * sysdeps/i386/fpu/libm-test-ulps: Update.
52611
52612 2014-01-05  Allan McRae  <allan@archlinux.org>
52613
52614         * po/libc.pot: Regenerated.
52615
52616         * malloc/memusagestat.c: Fix gettext call formatting.
52617
52618 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
52619
52620         * nscd/nscd.c: Improve usage() output.
52621
52622 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
52623
52624         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
52625         * sysdeps/unix/sysv/linux/configure: Regenerated.
52626         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
52627         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
52628
52629 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
52630
52631         [BZ #16390]
52632         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
52633         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
52634
52635 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52636
52637         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
52638         extra tokens at end of #undef directive.
52639         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
52640         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
52641         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
52642
52643 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
52644
52645         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
52646
52647         * math/auto-libm-test-in: Mark various tests with
52648         xfail-rounding:ldbl-128ibm.
52649         * math/auto-libm-test-out: Regenerated.
52650
52651 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
52652
52653         [BZ #16386]
52654         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
52655         numbers with subnormal high part when calculating exponent.
52656
52657         [BZ #16385]
52658         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
52659         fabs.
52660
52661         [BZ #16384]
52662         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
52663         M_LN2l.
52664         (__ieee754_acoshl): Use __log1pl not __log1p.
52665
52666 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
52667
52668         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
52669         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
52670         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
52671         (grow_heap, heap_trim, _int_new_arena, get_free_list)
52672         (reused_arena, arena_get2): Convert to GNU style.
52673         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
52674         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
52675         (memalign_check, __malloc_set_state): Likewise.
52676         * malloc/mallocbug.c (main): Likewise.
52677         * malloc/malloc.c (__malloc_assert, malloc_init_state)
52678         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
52679         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
52680         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
52681         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
52682         (__posix_memalign, malloc_info): Likewise.
52683         * malloc/malloc.h: Likewise.
52684         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
52685         (mallochook, memalignhook, reallochook, mabort): Likewise.
52686         * malloc/mcheck.h: Likewise.
52687         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
52688         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
52689         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
52690         * malloc/morecore.c (__default_morecore): Likewise.
52691         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
52692         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
52693         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
52694         (print_and_abort): Likewise.
52695         * malloc/obstack.h: Likewise.
52696         * malloc/set-freeres.c (__libc_freeres): Likewise.
52697         * malloc/tst-mallocstate.c (main): Likewise.
52698         * malloc/tst-mtrace.c (main): Likewise.
52699         * malloc/tst-realloc.c (do_test): Likewise.
52700
52701 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
52702
52703         [BZ #16366]
52704         * nscd/netgroupcache.c (do_notfound): New function.
52705         (addgetnetgrentX): Use it.
52706
52707         [BZ # 16365]
52708         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
52709         NSS_STATUS_NOTFOUND.
52710
52711 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
52712
52713         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
52714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52715
52716 2014-01-01  Allan McRae  <allan@archlinux.org>
52717
52718         * scripts/update-copyrights: Update configure input file suffix.
52719
52720         * NEWS: Update copyright year.
52721         * catgets/gencat.c: Likewise.
52722         * csu/version.c: Likewise.
52723         * debug/catchsegv.sh: Likewise.
52724         * debug/pcprofiledump.c: Likewise.
52725         * debug/xtrace.sh: Likewise.
52726         * elf/ldconfig.c: Likewise.
52727         * elf/ldd.bash.in: Likewise.
52728         * elf/pldd.c: Likewise.
52729         * elf/sotruss.ksh: Likewise.
52730         * elf/sprof.c: Likewise.
52731         * iconv/iconv_prog.c: Likewise.
52732         * iconv/iconvconfig.c: Likewise.
52733         * locale/programs/locale.c: Likewise.
52734         * locale/programs/localedef.c: Likewise.
52735         * login/programs/pt_chown.c: Likewise.
52736         * malloc/memusage.sh: Likewise.
52737         * malloc/memusagestat.c: Likewise.
52738         * malloc/mtrace.pl: Likewise.
52739         * manual/libc.texinfo: Likewise.
52740         * nscd/nscd.c: Likewise.
52741         * nss/getent.c: Likewise.
52742         * nss/makedb.c: Likewise.
52743         * posix/getconf.c: Likewise.
52744         * scripts/test-installation.pl: Likewise.
52745
52746         * All files with FSF copyright notices: Update copyright dates
52747         using scripts/update-copyrights.
52748         * intl/plural.c: Regenerated.
52749         * locale/programs/charmap-kw.h: Likewise.
52750         * locale/programs/locfile-kw.h: Likewise.
52751
52752 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
52753
52754         * sysdeps/unix/sysv/linux/configure: Regenerated.
52755         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
52756         the linux/fanotify.h header.
52757         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
52758         HAVE_LINUX_FANOTIFY_H is defined.
52759
52760 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
52761
52762         * benchtests/cos-inputs: New inputs.
52763         * benchtests/sin-inputs: Likewise.
52764
52765         * benchtests/atan-inputs: New inputs. Fix name of multiple
52766         precision fallback inputs.
52767
52768         * benchtests/atanh-inputs: New inputs.
52769         * benchtests/tanh-inputs: Likewise.
52770
52771         * benchtests/acosh-inputs: New inputs.
52772         * benchtests/asinh-inputs: Likewise.
52773
52774         * benchtests/cosh-inputs: New inputs.
52775         * benchtests/sinh-inputs: Likewise.
52776
52777         * benchtests/acos-inputs: Add more inputs.
52778         * benchtests/asin-inputs: Likewise.
52779
52780 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
52781
52782         [BZ #16375]
52783         * manual/arith.texi: Fix spelling.
52784         * manual/charset.texi: Likewise.
52785         * manual/errno.texi: Likewise.
52786         * manual/filesys.texi: Likewise.
52787         * manual/lang.texi: Likewise.
52788         * manual/llio.texi: Likewise.
52789         * manual/locale.texi: Likewise.
52790         * manual/message.texi: Likewise.
52791         * manual/resource.texi: Likewise.
52792         * manual/search.texi: Likewise.
52793         * manual/setjmp.texi: Likewise.
52794         * manual/stdio.texi: Likewise.
52795         * manual/string.texi: Likewise.
52796         * manual/sysinfo.texi: Likewise.
52797         * manual/time.texi: Likewise.
52798
52799 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
52800
52801         * po/sl.po: New file.
52802
52803 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
52804
52805         * .gitignore: Add core/.gdbinit/.gdb_history.
52806
52807 2013-12-27  Allan McRae  <allan@archlinux.org>
52808
52809         [BZ #16369]
52810         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
52811         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
52812
52813 2013-12-24  Brooks Moses  <bmoses@google.com>
52814
52815         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
52816         all compilers that claim C++98 compliance, not just GCC.
52817         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
52818         Likewise.
52819
52820 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
52821
52822         * NEWS: Restore accidentally deleted bug-fix entries.
52823
52824 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
52825             Ondřej Bílka  <neleai@seznam.cz>
52826
52827         [BZ #15073]
52828         * malloc/malloc.c (_int_free): Perform sanity check only if we
52829         have_lock.
52830
52831 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
52832
52833         [BZ #12986]
52834         * manual/stdio.texi (String Input Conversions): Clarify that character
52835         classes are not supported.
52836
52837 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52838
52839         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52840
52841 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
52842
52843         [BZ #16337]
52844         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
52845         Calculate results for small negative arguments directly rather
52846         than using reflection formula with special underflow handling.
52847
52848         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
52849         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
52850         sysdeps/unix/bsd/bsd4.4/syscalls.list.
52851         (fchflags): Likewise.
52852         (revoke): Likewise.
52853         (setlogin): Likewise.
52854         (sigaltstack): Likewise.
52855         (wait4): Likewise.
52856         (sigblock): Remove.
52857         (sigsetmask): Likewise.
52858         (wait3): Likewise.
52859         (waitpid): Likewise.
52860         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
52861         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
52862         file.
52863         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
52864         * sysdeps/unix/bsd/Makefile: ... here.
52865         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
52866         * sysdeps/unix/bsd/Versions: ... here.
52867         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
52868         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
52869         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
52870         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
52871         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
52872         * sysdeps/unix/bsd/sigblock.c: ... here.
52873         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
52874         * sysdeps/unix/bsd/sigsetmask.c: ... here.
52875         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
52876         * sysdeps/unix/bsd/sigvec.c: ... here.
52877         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
52878         * sysdeps/unix/bsd/tcdrain.c: ... here.
52879         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
52880         * sysdeps/unix/bsd/tcgetattr.c: ... here.
52881         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
52882         * sysdeps/unix/bsd/tcsetattr.c: ... here.
52883         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
52884         * sysdeps/unix/bsd/wait.c: ... here.
52885         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
52886         * sysdeps/unix/bsd/wait3.c: ... here.
52887         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
52888         * sysdeps/unix/bsd/waitpid.c: ... here.
52889
52890 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
52891
52892         [BZ #16356]
52893         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
52894         round-to-nearest for [!USE_AS_EXPM1L].
52895         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
52896         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
52897         more tests of exp and exp10.  Expect some exp10 tests to miss
52898         exceptions or fail in directed rounding modes.
52899         * math/auto-libm-test-out: Regenerated.
52900         * math/libm-test.inc (exp10_tonearest_test_data): New array.
52901         (exp10_test_tonearest): New function.
52902         (exp10_towardzero_test_data): New array.
52903         (exp10_test_towardzero): New function.
52904         (exp10_downward_test_data): New array.
52905         (exp10_test_downward): New function.
52906         (exp10_upward_test_data): New array.
52907         (exp10_test_upward): New function.
52908         (main): Call the new functions.
52909         * sysdeps/i386/fpu/libm-test-ulps: Update.
52910         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52911
52912 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
52913
52914         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
52915         asinh, atan, atan2, atanh, cbrt, cos and cosh.
52916         * math/auto-libm-test-out: Regenerated.
52917         * math/libm-test.inc (acosh_test_data): Add more tests.
52918         (atanh_test_data): Likewise.
52919         (ceil_test_data): Likewise.
52920         (copysign_test_data): Likewise.
52921         * sysdeps/i386/fpu/libm-test-ulps: Update.
52922         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52923
52924         * timezone/checktab.awk: Update from tzcode 2013i.
52925         * timezone/private.h: Likewise.
52926         * timezone/scheck.c: Likewise.
52927         * timezone/tzfile.h: Likewise.
52928         * timezone/tzselect.ksh: Likewise.
52929         * timezone/zdump.c: Likewise.
52930         * timezone/zic.c: Likewise.
52931
52932         * math/auto-libm-test-in: Add tests of cpow.
52933         * math/auto-libm-test-out: Regenerated.
52934         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
52935         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52936         mpc_cc_c.
52937         (func_calc_desc): Add mpc_cc_c union field.
52938         (test_functions): Add cpow.
52939         (special_fill_2pi): New function.
52940         (special_real_inputs): Add 2pi.
52941         (calc_generic_results): Handle mpc_cc_c.
52942         * sysdeps/i386/fpu/libm-test-ulps: Update.
52943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52944
52945         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
52946         csqrt, ctan and ctanh.
52947         * math/auto-libm-test-out: Regenerated.
52948         * math/libm-test.inc (TEST_COND_x86_64): New macro.
52949         (TEST_COND_x86): Likewise.
52950         (ccos_test_data): Use AUTO_TESTS_c_c.
52951         (ccosh_test_data): Likewise.
52952         (cexp_test_data): Likewise.
52953         (clog_test_data): Likewise.
52954         (csqrt_test_data): Likewise.
52955         (ctan_test_data): Likewise.
52956         (ctan_tonearest_test_data): Likewise.
52957         (ctan_towardzero_test_data): Likewise.
52958         (ctan_downward_test_data): Likewise.
52959         (ctan_upward_test_data): Likewise.
52960         (ctanh_test_data): Likewise.
52961         (ctanh_tonearest_test_data): Likewise.
52962         (ctanh_towardzero_test_data): Likewise.
52963         (ctanh_downward_test_data): Likewise.
52964         (ctanh_upward_test_data): Likewise.
52965         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52966         mpc_c_c.
52967         (func_calc_desc): Add mpc_c_c union field.
52968         (FUNC_mpc_c_c): New macro.
52969         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
52970         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
52971         ctanh.
52972         (special_fill_min_subnorm_p120): New function.
52973         (special_real_inputs): Add min_subnorm_p120.
52974         (calc_generic_results): Handle mpc_c_c.
52975         * sysdeps/i386/fpu/libm-test-ulps: Update.
52976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52977
52978 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
52979
52980         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
52981         (do_sin_slow): New functions.
52982         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
52983         (cslow2, csloww1, csloww2): Use the new functions.
52984
52985         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
52986         Use M to change sign of result instead of X.  Assume X is
52987         positive.
52988         (csloww1): Likewise.
52989         (__sin): Adjust.
52990         (__cos): Adjust.
52991
52992         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
52993         arguments A and DA.
52994         (__sin): Adjust.
52995         (__cos): Likewise.
52996
52997         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
52998         (__cos): Likewise.
52999         (sloww1): Don't adjust sign of DX.
53000         (csloww1): Likewise.
53001         (sloww2): Use X directly and don't adjust sign of DX.
53002         (csloww2): Likewise.
53003
53004 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53005
53006         * math/auto-libm-test-in: Add tests of cabs and carg.
53007         * math/auto-libm-test-out: Regenerated.
53008         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
53009         (carg_test_data): Likewise.
53010         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53011         mpc_c_f.
53012         (func_calc_desc): Add mpc_c_f union field.
53013         (test_functions): Add cabs and carg.
53014         (calc_generic_results): Handle mpc_c_f.
53015
53016         * sysdeps/powerpc/powerpc32/libgcc-compat.S
53017         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
53018         as a macro and a compat symbol.
53019         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
53020         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
53021         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
53022         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
53023         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
53024         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
53025         not use .hidden.
53026         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
53027         Likewise.
53028         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
53029         Likewise.
53030         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
53031         Likewise.
53032         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
53033         Likewise.
53034         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
53035         Likewise.
53036         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
53037         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
53038         from GLIBC_2.3.2.
53039
53040 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53041
53042         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53043
53044 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53045
53046         * manual/texinfo.tex: Update to version 2013-11-26.10 with
53047         trailing whitespace removed.
53048         * scripts/config.guess: Update to version 2013-11-29.
53049         * scripts/config.sub: Update to version 2013-10-01.
53050
53051         * math/auto-libm-test-in: Add tests of sincos.
53052         * math/auto-libm-test-out: Regenerated.
53053         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
53054         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53055         mpfr_f_11.
53056         (func_calc_desc): Add mpfr_f_11 union field.
53057         (test_functions): Add sincos.
53058         (calc_generic_results): Handle mpfr_f_11.
53059         * sysdeps/i386/fpu/libm-test-ulps: Update.
53060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53061
53062 2013-12-19  Andreas Schwab  <schwab@suse.de>
53063
53064         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
53065         CALL_MCOUNT.
53066         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53067         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
53068         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
53069
53070 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53071
53072         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
53073         * sysdeps/i386/fpu/libm-test-ulps: Update.
53074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53075
53076         [BZ #16293]
53077         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
53078         round-to-nearest mode when using frndint.
53079         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
53080         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
53081         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
53082         Likewise.
53083         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
53084         sinh test to fail.
53085         * math/auto-libm-test-out: Regenerated.
53086         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
53087         (TEST_COND_x86): Likewise.
53088         (expm1_tonearest_test_data): New array.
53089         (expm1_test_tonearest): New function.
53090         (expm1_towardzero_test_data): New array.
53091         (expm1_test_towardzero): New function.
53092         (expm1_downward_test_data): New array.
53093         (expm1_test_downward): New function.
53094         (expm1_upward_test_data): New array.
53095         (expm1_test_upward): New function.
53096         (main): Run the new test functions.
53097         * sysdeps/i386/fpu/libm-test-ulps: Update.
53098         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53099
53100         * include/features.h: Update comment documenting feature test
53101         macros.  Mention _DEFAULT_SOURCE in comment.
53102         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
53103         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
53104         _BSD_SOURCE and _SVID_SOURCE.
53105         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
53106         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
53107         !_SVID_SOURCE]: Likewise.
53108         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53109         (__USE_POSIX_IMPLICITLY): Define.
53110         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53111         (_POSIX_SOURCE): Undefine and redefine.
53112         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53113         (_POSIX_C_SOURCE): Likewise.
53114         * manual/creature.texi (_DEFAULT_SOURCE): Document.
53115         (Feature Test Macros): Update documentation of default features.
53116
53117 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
53118
53119         * benchtests/Makefile: Add bench-strtok.
53120         * benchtests/bench-strtok.c: New file: strtok benchtest.
53121
53122 2013-12-19  Allan McRae  <allan@archlinux.org>
53123
53124         * manual/install.texi: Suppress menu for plain text output.
53125         * INSTALL: Regenerated.
53126
53127 2013-12-18  Brooks Moses  <bmoses@google.com>
53128
53129         [BZ #15846]
53130         * misc/getauxval.c: Include errno.h.
53131         (__getauxval): Set errno to ENOENT if the requested type is not
53132         found.
53133         * misc/sys/auxv.h (getauxval): Document that it may set errno;
53134         don't declare with __attribute_const__.
53135         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
53136         * manual/startup.texi: Document that getauxval sets errno.
53137
53138 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53139
53140         * math/auto-libm-test-in: Add tests of jn and yn.
53141         * math/auto-libm-test-out: Regenerated.
53142         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
53143         (yn_test_data): Likewise.
53144         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53145         mpfr_if_f.
53146         (func_calc_desc): Add mpfr_if_f union field.
53147         (FUNC_mpfr_if_f): New macro.
53148         (test_functions): Add jn and yn.
53149         (calc_generic_results): Assert type of second input for
53150         mpfr_ff_f.  Handle mpfr_if_f.
53151         (output_for_one_input_case): Disable all checking for arguments
53152         fitting floating-point types in case of an integer argument.
53153         * sysdeps/i386/fpu/libm-test-ulps: Update.
53154         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53155
53156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
53157         Don't expect fegetround reference in libm.so.
53158
53159 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53160
53161         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
53162         $(config-cflags-nofma).
53163
53164 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53165
53166         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
53167         * math/auto-libm-test-out: Regenerated.
53168
53169         [BZ #16338]
53170         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
53171         to determine exponent and adjust argument to have exponent of -1.
53172         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
53173         log2.
53174         * math/auto-libm-test-out: Regenerated.
53175         * sysdeps/i386/fpu/libm-test-ulps: Update.
53176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53177
53178 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
53179
53180         * manual/probes.texi: Remove cases when per-thread arenas are
53181         disabled.
53182
53183 2013-12-18  Andreas Schwab  <schwab@suse.de>
53184
53185         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
53186         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
53187         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
53188         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
53189         * sysdeps/i386/i686/multiarch/Makefile: Update.
53190         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
53191
53192 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53193
53194         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
53195         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
53196
53197 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
53198
53199         [BZ #15968]
53200         Support TZ transition times < 00:00:00.
53201         This is needed for version-3 tz-format files; it supports time
53202         stamps past 2037 for America/Godthab (the only entry in the tz
53203         database for which this change is relevant).
53204         * manual/time.texi (TZ Variable): Document transition times
53205         from -167:59:59 through -00:00:01.
53206         * time/tzset.c (tz_rule): Time of day is now signed.
53207         (__tzset_parse_tz): Parse negative time of day.
53208
53209         Document TZ transition times >= 25:00:00.
53210         * manual/time.texi (TZ Variable): Document transition times from
53211         25:00:00 through 167:59:59.  These are already supported, and this
53212         support will help with version-3 tz-format files.
53213
53214         * manual/time.texi (TZ Variable): Modernize North America example
53215         to reflect current (i.e., 2007-and-later) daylight saving rules.
53216
53217         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
53218
53219 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53220
53221         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
53222         * sysdeps/unix/bsd/bits/stat.h: Likewise.
53223         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
53224         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
53225         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
53226         * sysdeps/unix/bsd/bsdstat.h: Likewise.
53227         * sysdeps/unix/bsd/clock.c: Likewise.
53228         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
53229         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
53230         * sysdeps/unix/bsd/init-posix.c: Likewise.
53231         * sysdeps/unix/bsd/poll.c: Likewise.
53232         * sysdeps/unix/bsd/ptsname.c: Likewise.
53233         * sysdeps/unix/bsd/seekdir.c: Likewise.
53234         * sysdeps/unix/bsd/setegid.c: Likewise.
53235         * sysdeps/unix/bsd/seteuid.c: Likewise.
53236         * sysdeps/unix/bsd/setgid.c: Likewise.
53237         * sysdeps/unix/bsd/setrgid.c: Likewise.
53238         * sysdeps/unix/bsd/setruid.c: Likewise.
53239         * sysdeps/unix/bsd/setsid.c: Likewise.
53240         * sysdeps/unix/bsd/setuid.c: Likewise.
53241         * sysdeps/unix/bsd/sigaction.c: Likewise.
53242         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
53243         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
53244         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
53245         * sysdeps/unix/bsd/telldir.c: Likewise.
53246         * sysdeps/unix/bsd/times.c: Likewise.
53247         * sysdeps/unix/bsd/usleep.c: Likewise.
53248
53249         * misc/Makefile (install-lib): Remove libbsd-compat.a.
53250         ($(objpfx)libbsd-compat.a): Remove rule.
53251
53252         * include/features.h (__FAVOR_BSD): Do not define.
53253         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
53254         features conflicting with POSIX.
53255         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
53256         (_BSD_SOURCE): Remove description of not being a subset of other
53257         feature test macros.
53258         * manual/job.texi (getpgrp): Do not document BSD version.
53259         (getpgid): Do not document by reference to BSD getpgrp.
53260         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
53261         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
53262         * signal/signal.h [__FAVOR_BSD]: Likewise.
53263         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
53264         instead of making contents conditional on [__FAVOR_BSD].
53265         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
53266
53267 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53268
53269         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53270
53271 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53272
53273         [BZ #16314]
53274         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
53275         values below 2**-450, not 2**-500.
53276         * math/auto-libm-test-in: Don't allow spurious underflow from
53277         hypot.
53278         * math/auto-libm-test-out: Regenerated.
53279
53280         [BZ #16316]
53281         [BZ #16330]
53282         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
53283         values of ha and hb and sort them after adjusting subnormal
53284         arguments.
53285         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
53286         Likewise.
53287         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
53288         values of ea and eb and sort them after adjusting subnormal
53289         arguments.
53290         * math/auto-libm-test-in: Do not expect some hypot tests of
53291         subnormals to fail.  Add more hypot tests.
53292         * math/auto-libm-test-out: Regenerated.
53293
53294 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53295
53296         [BZ #13304]
53297         * sysdeps/sh/s_fma.c: New file.
53298         * sysdeps/sh/s_fmaf.c: New file.
53299         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
53300         version.
53301         * sysdeps/sh/Implies: Add sh/soft-fp.
53302
53303 2013-12-16  Roland McGrath  <roland@hack.frob.com>
53304
53305         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
53306         level of indirection to members `objname', `errstring', `malloced'.
53307         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
53308         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
53309         it as the __longjmp argument (just pass 1 instead).
53310         (_dl_catch_error): Initialize C with argument pointers and address of
53311         volatile local ERRCODE rather than copying values out of C at return.
53312
53313 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
53314
53315         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
53316         * math/auto-libm-test-out: Regenerated.
53317         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
53318         (hypot_test_data): Likewise.
53319         (pow_test_data): Likewise.
53320         (pow_tonearest_test_data): Likewise.
53321         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53322         mpfr_ff_f.
53323         (func_calc_desc): Add mpfr_ff_f union field.
53324         (FUNC_mpfr_ff_f): New macro.
53325         (test_functions): Add atan2, hypot and pow.
53326         (special_fill_min): New function.
53327         (special_fill_minus_min): Likewise.
53328         (special_fill_min_subnorm): Likewise.
53329         (special_fill_minus_min_subnorm): Likewise.
53330         (special_real_inputs): Add min, -min, min_subnorm and
53331         -min_subnorm.
53332         (calc_generic_results): Handle mpfr_ff_f.
53333         * sysdeps/i386/fpu/libm-test-ulps: Update.
53334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53335
53336 2013-12-16  Will Newton  <will.newton@linaro.org>
53337
53338         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
53339         (Aligned Memory Blocks): Add documentation for aligned_alloc
53340         and suggest it as an alternative to posix_memalign.
53341         (Hooks for Malloc): Document __memalign_hook is also called
53342         for aligned_alloc.  (Summary of Malloc): Add summary for
53343         aligned alloc.  Document __memalign_hook is also called
53344         for aligned_alloc.
53345
53346 2013-12-16  Will Newton  <will.newton@linaro.org>
53347
53348         * manual/memory.texi (Malloc Examples): Clarify default
53349         alignment documentation.  Suggest posix_memalign rather
53350         than memalign or valloc.
53351         (Aligned Memory Blocks): Remove suggestion to use memalign
53352         or valloc.  Remove obsolete comment about BSD.
53353         Document memalign errno values and mark the function obsolete.
53354         Document posix_memalign returned error codes.  Mark valloc
53355         as obsolete.  (Hooks for Malloc): __memalign_hook is also
53356         called for posix_memalign and valloc.
53357         (Summary of Malloc): Add posix_memalign to function summary.
53358         __memalign_hook is also called for posix_memalign and valloc.
53359
53360 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53361
53362         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
53363         TAYLOR_SIN.
53364         (__sin): Adjust.
53365         (__cos): Likewise.
53366         (sloww): Use mynumber union.  Expand ternary operator into
53367         if-else statements.
53368         (cslow): use mynumber union.
53369
53370 2013-12-16  Allan McRae  <allan@archlinux.org>
53371
53372         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
53373         * configure: Regenerated.
53374
53375         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
53376
53377         [BZ #14120]
53378         * configure.ac: Added --enable-maintainer-mode. Check for
53379         autoconf when enabled.
53380         * configure: Regenerated.
53381
53382         * nscd/nscd.service: New file.
53383         * nscd/nscd.tmpfiles: New file.
53384
53385 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
53386
53387         [BZ #12100]
53388         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
53389         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
53390         * sysdeps/x86_64/multiarch/strstr.c: ... here.
53391         (strstr): Add __strstr_sse2_unaligned ifunc.
53392         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
53393         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
53394         (strcasestr): Remove __strcasestr_sse42 ifunc.
53395         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
53396         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
53397         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
53398
53399 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53400
53401         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
53402         * sysdeps/sh/bits/fenv.h: ... here.
53403         * sysdeps/sh/sh4/fpu/bits: Remove directory.
53404
53405 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53406
53407         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
53408
53409         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
53410         hypotf multiarch implementations.
53411         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
53412         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
53413         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
53414         multiarch hypot for PPC64.
53415         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
53416         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
53417         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
53418         multiarch hypotf for PPC64.
53419
53420         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
53421         modff multiarch implementations.
53422         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
53423         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
53424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
53425         multiarch modf for PPC64.
53426         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
53427         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
53428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
53429         multiarch modff for PPC64.
53430
53431         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
53432         and logl multiarch implementations.
53433         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
53434         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
53435         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
53436         multiarch logb for PPC64.
53437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
53438         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
53439         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
53440         multiarch logb for PPC64.
53441         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
53442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
53443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
53444         multiarch logb for PPC64.
53445
53446         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
53447         isinff multiarch implementation.
53448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
53449         file.
53450         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
53451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
53452         multiarch isinf for PPC64.
53453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
53454         file.
53455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
53456         multiarch isinff for PPC64.
53457
53458         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
53459         finitef multiarch implementation.
53460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
53461         file.
53462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
53463         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
53464         multiarch finite for PPC64.
53465         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
53466         file.
53467         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
53468         multiarch finitef for PPC64.
53469
53470         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
53471         lrint multiarch implementation.
53472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
53473         file.
53474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
53475         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
53476         multiarch llrint for PPC64.
53477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
53478         multiarch lrint for PPC64.
53479
53480         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
53481         copysignf multiarch implementation.
53482         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
53483         file.
53484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
53485         file.
53486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
53487         multiarch copysign for PPC64.
53488         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
53489         multiarch copysignf for PPC64.
53490
53491         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
53492         multiarch implementation.
53493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
53494         file.
53495         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
53496         file.
53497         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
53498         file.
53499         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
53500         file.
53501         multiarch llround for PPC64.
53502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
53503         multiarch trunc for PPC64.
53504         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
53505         multiarch truncf for PPC64.
53506
53507         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
53508         multiarch implementation.
53509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
53510         file.
53511         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
53512         file.
53513         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
53514         file.
53515         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
53516         file.
53517         multiarch llround for PPC64.
53518         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
53519         multiarch round for PPC64.
53520         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
53521         multiarch roundf for PPC64.
53522
53523         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
53524         multiarch implementation.
53525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
53526         file.
53527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
53528         file.
53529         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
53530         file.
53531         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
53532         file.
53533         multiarch llround for PPC64.
53534         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
53535         multiarch floor for PPC64.
53536         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
53537         multiarch floorf for PPC64.
53538
53539         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
53540         multiarch implementation.
53541         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
53542         file.
53543         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
53544         file.
53545         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
53546         file.
53547         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
53548         file.
53549         multiarch llround for PPC64.
53550         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
53551         multiarch ceil for PPC64.
53552         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
53553         multiarch ceilf for PPC64.
53554
53555         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
53556         multiarch implementation.
53557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
53558         file.
53559         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
53560         file.
53561         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
53562         file.
53563         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
53564         multiarch llround for PPC64.
53565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
53566         multiarch lround for PPC64.
53567
53568         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
53569         multiarch implementation.
53570         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
53571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
53572         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
53573         file.
53574         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
53575         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
53576         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
53577         multiarch isnan for PPC64.
53578         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
53579         multiarch isnanf for PPC64.
53580
53581         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
53582         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
53583         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
53584         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
53585         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
53586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
53587
53588         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
53589         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
53590         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
53591         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
53592
53593         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
53594         multiarch implementations.
53595         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53596         (__libc_ifunc_impl_list): Likewise.
53597         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
53598         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
53599         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
53600         multiarch stpcpy for PPC64.
53601
53602         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
53603         multiarch implementations.
53604         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53605         (__libc_ifunc_impl_list): Likewise.
53606         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
53607         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
53608         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
53609         multiarch strcpy for PPC64.
53610
53611         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
53612         redefine function name.
53613         (_wordcopy_fwd_dest_aligned): Likewise.
53614         (_wordcopy_bwd_aligned): Likewise.
53615         (_wordcopy_bwd_dest_aligned): Likewise.
53616         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
53617         multiarch implementations.
53618         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53619         (__libc_ifunc_impl_list): Likewise.
53620         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
53621         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
53622         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
53623         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
53624         multiarch wcscpy for PPC64.
53625
53626         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
53627         multiarch implementations.
53628         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53629         (__libc_ifunc_impl_list): Likewise.
53630         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
53631         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
53632         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
53633         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
53634         multiarch wcscpy for PPC64.
53635
53636         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
53637         multiarch implementations.
53638         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53639         (__libc_ifunc_impl_list): Likewise.
53640         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
53641         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
53642         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
53643         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
53644         multiarch wcsrchr for PPC64.
53645
53646         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
53647         multiarch implementations.
53648         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53649         (__libc_ifunc_impl_list): Likewise.
53650         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
53651         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
53652         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
53653         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
53654         multiarch wcschr for PPC64.
53655
53656         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
53657         multiarch implementations.
53658         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53659         (__libc_ifunc_impl_list): Likewise.
53660         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
53661         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
53662         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
53663         multiarch strchrnul for PPC64.
53664
53665         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
53666         implementations.
53667         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53668         (__libc_ifunc_impl_list): Likewise.
53669         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
53670         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
53671         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
53672         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
53673         strchr for PPC64.
53674
53675         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
53676         implementations.
53677         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53678         (__libc_ifunc_impl_list): Likewise.
53679         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
53680         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
53681         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
53682         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
53683         strncmp for PPC64.
53684
53685         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
53686         multiarch implementations.
53687         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53688         (__libc_ifunc_impl_list): Likewise.
53689         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
53690         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
53691         strncasecmp for PPC64.
53692         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
53693         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
53694         multiarch strncasecmp_l for PPC64.
53695
53696         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
53697         multiarch implementations.
53698         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
53699         (__libc_ifunc_impl_list): Likewise.
53700         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
53701         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
53702         multiarch strcasecmp for PPC64.
53703         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
53704         file.
53705         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
53706         multiarch strcasecmp_l for PPC64.
53707
53708         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
53709         implementations.
53710         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53711         (__libc_ifunc_impl_list): Likewise.
53712         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
53713         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
53714         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
53715         strnlen for PPC64.
53716
53717         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
53718         implementations.
53719         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53720         (__libc_ifunc_impl_list): Likewise.
53721         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
53722         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
53723         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
53724         strlen for PPC64.
53725
53726         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
53727         implementations.
53728         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53729         (__libc_ifunc_impl_list): Likewise.
53730         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
53731         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
53732         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
53733         rawmemrchr for PPC64.
53734
53735         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
53736         implementation.
53737         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53738         (__libc_ifunc_impl_list): Likewise.
53739         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
53740         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
53741         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
53742         memrchr for PPC64.
53743
53744         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
53745         implementation.
53746         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53747         (__libc_ifunc_impl_list): Likewise.
53748         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
53749         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
53750         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
53751         memchr for PPC64.
53752
53753         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
53754         implementation.
53755         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53756         (__libc_ifunc_impl_list): Likewise.
53757         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
53758         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
53759         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
53760         mempcpy for PPC64.
53761
53762         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
53763         avoid cretion of __bzero symbol.
53764         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
53765         Likewise.
53766         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
53767         Likewise.
53768         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
53769         Likewise.
53770         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
53771         multiarch implementations.
53772         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53773         (__libc_ifunc_impl_list): Likewise.
53774         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
53775         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
53776         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
53777         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
53778         bzero for PPC32.
53779         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
53780         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
53781         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
53782         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
53783         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
53784         memset for PPC64.
53785         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
53786
53787         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
53788         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
53789         implementations.
53790         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53791         (__libc_ifunc_impl_list): Likewise.
53792         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
53793         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
53794         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
53795         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
53796         memcmp for PPC64.
53797
53798         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
53799         multiarch for POWER/PPC64.
53800         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
53801         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
53802         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
53803         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
53804         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
53805         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
53806         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
53807         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
53808         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
53809         memcpy for PPC64.
53810
53811         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
53812         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
53813         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
53814         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
53815         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
53816         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
53817         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
53818         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
53819         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
53820         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
53821         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
53822         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
53823         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
53824         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
53825         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
53826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
53827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
53828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
53829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
53830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
53831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
53832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
53833
53834 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53835
53836         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
53837
53838 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
53839
53840         * benchtests/Makefile (bench): Add exp2 and log2.
53841         (LDLIBS-bench-exp2): Add -lm.
53842         (LDLIBS-bench-log2): Likewise.
53843         * benchtests/exp2-inputs: New inputs file.
53844         * benchtests/log2-inputs: New inputs file.
53845         * benchtests/log-inputs: Add new inputs.
53846         * benchtests/tan-inputs: Likewise.
53847
53848 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53849
53850         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
53851         definition...
53852         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
53853         (csloww2): ... from here.
53854
53855         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
53856         instead of structures.
53857         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
53858         (POLYNOMIAL): Likewise.
53859         (TAYLOR_SLOW): Likewise.
53860         (__sin): Likewise.
53861         (__cos): Likewise.
53862         (slow1): Likewise.
53863         (slow2): Likewise.
53864         (sloww): Likewise.
53865         (sloww1); Likewise.
53866         (sloww2): Likewise.
53867         (bsloww1): Likewise.
53868         (bsloww2): Likewise.
53869         (cslow2): Likewise.
53870         (csloww): Likewise.
53871         (csloww1): Likewise.
53872         (csloww2): Likewise.
53873
53874 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
53875
53876         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
53877         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
53878         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
53879         * malloc/hooks.c (realloc_check): Likewise.
53880
53881         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
53882         * malloc/arena.c: Remove PER_THREAD conditional.
53883         [!PER_THREAD]: Remove code.
53884         (ptmalloc_unlock_all2): Likewise.
53885         (ptmalloc_init): Likewise.
53886         (_int_new_arena): Likewise.
53887         (arena_get2): Likewise.
53888         * malloc/hooks.c (__malloc_get_state): Likewise.
53889         (__malloc_set_state): Likewise.
53890         * malloc/malloc.c: Likewise.
53891         (struct malloc_state): Likewise.
53892         (struct malloc_par): Likewise.
53893         (__libc_realloc): Likewise.
53894         (__libc_mallopt): Likewise.
53895
53896 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53897
53898         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
53899
53900 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
53901
53902         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
53903         macro to a function.  Check for zero perturb_byte.
53904         (_int_malloc, _int_free): Remove zero perturb_byte checks.
53905
53906         * malloc/malloc.c: (force_reg): Remove.
53907         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
53908         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
53909         force_reg by atomic_forced_read.
53910         * malloc/arena.c (ptmalloc_init): Likewise.
53911         * malloc/hooks.c (top_check): Likewise.
53912
53913 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53914
53915         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53916
53917 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
53918
53919         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
53920
53921 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
53922
53923         * math/auto-libm-test-in: Add tests of lgamma.
53924         * math/auto-libm-test-out: Regenerated.
53925         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
53926         (M_LOG_2_SQRT_PIl): Likewise.
53927         (lgamma_test_data): Use AUTO_TESTS_f_f1.
53928         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53929         mpfr_f_f1.
53930         (func_calc_desc): Add mpfr_f_f1 union field.
53931         (ARGS1): New macro.
53932         (ARGS2): Likewise.
53933         (ARGS3): Likewise.
53934         (ARGS4): Likewise.
53935         (RET1): Likewise.
53936         (RET2): Likewise.
53937         (CALC): Likewise.
53938         (FUNC): Likewise.
53939         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
53940         (test_functions): Add lgamma.
53941         (calc_generic_results): Handle mpfr_f_f1.
53942         * sysdeps/i386/fpu/libm-test-ulps: Update.
53943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53944
53945 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53946
53947         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
53948         __mpn_add_n for PowerPC64/POWER7.
53949         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
53950         __mpn_sub_n for PowerPC64/POWER7.
53951
53952         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
53953         __mpn_addmul_1 for PowerPC64.
53954         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
53955         __mpn_submul_1 for PowerPC64.
53956         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
53957         for PowerPC64.
53958         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
53959         for PowerPC64.
53960
53961 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
53962
53963         [BZ #15089]
53964         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
53965
53966 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53967
53968         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
53969
53970         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
53971         add multiarch folders.
53972         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
53973         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
53974         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
53975         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
53976         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
53977         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
53978         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
53979         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
53980         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
53981         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
53982         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
53983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
53984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
53985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
53986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
53987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
53988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
53989
53990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
53991         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
53992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
53993         New file.
53994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
53995         New file.
53996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
53997         multiarch __ieee754_hypot for PowerPC32.
53998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
53999         New file.
54000         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
54001         New file.
54002         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
54003         multiarch __ieee754_hypotf for PowerPC32.
54004
54005         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
54006         long_double_symbol only if __logbl is defined.
54007         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
54008         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
54009         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
54010         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
54011         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
54012         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
54013         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
54014         path for implementation.
54015         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
54016         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
54017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
54018         logb, and logbl multiarch implementations for PowerPC32.
54019         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
54020         file.
54021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
54022         file.
54023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
54024         multiarch logb for PowerPC32.
54025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
54026         file.
54027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
54028         file.
54029         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
54030         multiarch logbf for PowerPC32.
54031         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
54032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
54033         file.
54034         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
54035         multiarch logbl implementation for PowerPC32.
54036
54037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
54038         and modff multiarch implementations.
54039         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
54040         New file.
54041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
54042         New file.
54043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
54044         multiarch modf for PowerPC32.
54045         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
54046         New file.
54047         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
54048         New file.
54049         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
54050         multiarch modff for PowerPC32.
54051
54052         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
54053         and lrintf multiarch implementations.
54054         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
54055         New file.
54056         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
54057         New file.
54058         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
54059         multiarch lrint for PowerPC32.
54060         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
54061         file: multiarch lrintf for PowerPC32.
54062
54063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
54064         and lroundf multiarch implementations.
54065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
54066         New file.
54067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
54068         New file.
54069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
54070         New file.
54071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
54072         multiarch lround for PowerPC32.
54073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
54074         file: multiarch lroundf for PowerPC32.
54075
54076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
54077         copysign and copysignf multiarch implementations.
54078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
54079         New file.
54080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
54081         New file.
54082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
54083         file: multiarch copysign for PowerPC32.
54084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
54085         file: multiarch copysignf for PowerPC32.
54086
54087         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
54088         and truncf multiarch implementations.
54089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
54090         New file.
54091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
54092         file.
54093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
54094         multiarch trunc for PowerPC32.
54095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
54096         New file.
54097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
54098         New file.
54099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
54100         multiarch truncf for PowerPC32.
54101
54102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
54103         and roundf multiarch implementations.
54104         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
54105         New file.
54106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
54107         file.
54108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
54109         multiarch round for PowerPC32.
54110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
54111         New file.
54112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
54113         New file.
54114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
54115         multiarch roundf for PowerPC32.
54116
54117         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
54118         and floorf multiarch implementations.
54119         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
54120         New file.
54121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
54122         file.
54123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
54124         multiarch floor for PowerPC32.
54125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
54126         New file.
54127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
54128         New file.
54129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
54130         multiarch floorf for PowerPC32.
54131
54132         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
54133         and ceilf multiarch implementations.
54134         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
54135         New file.
54136         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
54137         file.
54138         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
54139         multiarch ceil for PowerPC32.
54140         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
54141         New file.
54142         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
54143         file.
54144         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
54145         multiarch ceilf for PowerPC32.
54146
54147         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
54148         is defined.
54149         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
54150         FINITEF is defined.
54151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
54152         and finitef multiarch implementations.
54153         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
54154         New file.
54155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
54156         file.
54157         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
54158         multiarch finite for PowerPC32.
54159         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
54160         New file.
54161         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
54162         file: multiarch finitef for PowerPC32.
54163
54164         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
54165         and isinff multiarch implementations.
54166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
54167         file.
54168         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
54169         file.
54170         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
54171         multiarch isinf for PowerPC32.
54172         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
54173         New file.
54174         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
54175         multiarch isinff for PowerPC32.
54176
54177         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
54178         alias when __isnan is defined.
54179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
54180         and isnanf multiarch implementations.
54181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
54182         file.
54183         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
54184         file.
54185         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
54186         file.
54187         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
54188         file.
54189         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
54190         multiarch isnan for PowerPC32.
54191         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
54192         New file.
54193         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
54194         New file.
54195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
54196         multiarch isnanf for PowerPC32.
54197
54198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
54199         and sqrtf multiarch implementations.
54200         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
54201         file.
54202         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
54203         file.
54204         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
54205         multiarch sqrt for PowerPC32.
54206         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
54207         file.
54208         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
54209         file.
54210         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
54211         multiarch sqrtf for PowerPC32.
54212
54213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
54214         and llroundf multiarch implementations.
54215         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
54216         New file.
54217         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
54218         New file.
54219         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
54220         New file.
54221         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
54222         file: multiarch llround for PowerPC32.
54223         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
54224         file: multiarch llroundf for PowerPC32.
54225
54226         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
54227         multiarch PowerPC32 fpu implementations.
54228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
54229         New file.
54230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
54231         New file.
54232         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
54233         multiarch llrint for PowerPC32.
54234         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
54235         New file.
54236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
54237         New file.
54238         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
54239         file.
54240
54241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
54242
54243         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
54244         file.
54245         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
54246         file.
54247         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
54248         file.
54249         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
54250         multiarch wordcopy for PPC32.
54251         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54252         wordcopy objects.
54253         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54254         (__libc_ifunc_impl_list): Likewise.
54255         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
54256         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
54257         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
54258         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
54259         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
54260         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
54261
54262         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
54263         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
54264         file.
54265         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
54266         file.
54267         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
54268         file.
54269         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
54270         multiarch wcscpy for PPC32.
54271         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54272         multiarch objects.
54273         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54274         (__libc_ifunc_impl_list): Likewise.
54275         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54276         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54277         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
54278         sysdeps/powerpc/power6/wcscpy.c.
54279
54280         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
54281         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
54282         file.
54283         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
54284         file.
54285         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
54286         file.
54287         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
54288         multiarch wcsrchr for PPC32.
54289         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54290         multiarch objects.
54291         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54292         (__libc_ifunc_impl_list): Likewise.
54293         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54294         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54295         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
54296         sysdeps/powerpc/power6/wcsrchr.c.
54297
54298         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
54299         file.
54300         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
54301         file.
54302         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
54303         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
54304         multiarch wcschr for PPc32.
54305         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54306         multiarch objects.
54307         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54308         (__libc_ifunc_impl_list): Likewise.
54309         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
54310         * sysdeps/powerpc/power6/wcschr.c: ... to here.
54311         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
54312         sysdeps/powerpc/power6/wcschr.c.
54313
54314         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
54315         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
54316         file.
54317         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
54318         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
54319         file: multiarch strchr for PPC32.
54320         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
54321         multiarch objects.
54322         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54323         (__libc_ifunc_impl_list): Likewise.
54324
54325         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
54326         name.
54327         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
54328         file.
54329         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
54330         file.
54331         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
54332         multiarch strchrnul for PPC32.
54333         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
54334         multiarch objects.
54335         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54336         (__libc_ifunc_impl_list): Likewise.
54337
54338         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
54339         file.
54340         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
54341         multiarch strncasecmp for PPC32.
54342         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
54343         file.
54344         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
54345         multiarch strncasecmp_l for PPC32.
54346         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
54347         strncasecmp multiarch objects.
54348         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54349         (__libc_ifunc_impl_list): Likewise.
54350
54351         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
54352         file.
54353         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
54354         multiarch strncasecmp for PPC32.
54355         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
54356         New file.
54357         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
54358         multiarch strcasecmp_l for PPC32.
54359         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
54360         multiarch objects.
54361         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54362         (__libc_ifunc_impl_list): Likewise.
54363
54364         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
54365         file.
54366         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
54367         file.
54368         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
54369         multiarch strncmp for PPC32.
54370         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
54371         multiarch objects.
54372         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54373         (__libc_ifunc_impl_list): Likewise.
54374
54375         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
54376         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
54377         file.
54378         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
54379         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
54380         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
54381         multiarch objects.
54382         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54383         (__libc_ifunc_impl_list): Likewise.
54384
54385         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
54386         file.
54387         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
54388         file.
54389         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
54390         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
54391         multiarch objects.
54392         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54393         (__libc_ifunc_impl_list): Likewise.
54394
54395         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
54396         file.
54397         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
54398         file.
54399         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
54400         multiarch rawmemchr for PPC32.
54401         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
54402         multiarch objects.
54403         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54404         (__libc_ifunc_impl_list): Likewise.
54405
54406         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
54407         file.
54408         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
54409         file.
54410         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
54411         file: memrchr multiarch for PPC32.
54412         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
54413         multiarch objects.
54414         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54415         (__libc_ifunc_impl_list): Likewise.
54416
54417         * string/memchr.c (__memchr): Using macro to redefine symbol name.
54418         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
54419         file.
54420         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
54421         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
54422         multiarch memchr for PPC32.
54423         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
54424         multiarch objects.
54425         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54426         (__libc_ifunc_impl_list): Likewise.
54427
54428         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
54429         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
54430         file.
54431         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
54432         file.
54433         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
54434         file: multiarch mempcpy for PPC32.
54435         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
54436         multiarch objects.
54437         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54438         (__libc_ifunc_impl_list): Likewise.
54439
54440         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
54441         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
54442         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
54443         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
54444         multiarch bzero for PPC32.
54445         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
54446         file.
54447         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
54448         file.
54449         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
54450         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
54451         file: multiarch memset for PPC32.
54452         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
54453         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
54454         memset multiarch objects.
54455         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54456         (__libc_ifunc_impl_list): Likewise.
54457
54458         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
54459         file.
54460         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
54461         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
54462         memcmp for PPC32.
54463         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
54464         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
54465         multiarch objects.
54466         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54467         (__libc_ifunc_impl_list): Likewise.
54468
54469         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
54470         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
54471         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
54472         file.
54473         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
54474         file.
54475         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
54476         file.
54477         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
54478         multiarch memcpy for PPC32.
54479         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
54480         multiarch objects.
54481         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54482         (__libc_ifunc_impl_list): Likewise.
54483
54484         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
54485         support multiarch for POWER/PPC32.
54486         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
54487         Likewise.
54488         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
54489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
54490         Implies file to make multiarch folder appers before the fpu and
54491         default folder for power4 configuration.
54492
54493 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54494
54495         * scripts/bench.pl: Append volatile keyword to type.
54496
54497 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
54498
54499         * sysdeps/sh/sotruss-lib.c: New file.
54500         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
54501
54502 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54503
54504         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54505
54506 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
54507
54508         [BZ #6810]
54509         * math/w_tgamma.c: Include <errno.h>.
54510         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
54511         * math/w_tgammaf.c: Include <errno.h>.
54512         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
54513         * math/w_tgammal.c: Include <errno.h>.
54514         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
54515         * math/auto-libm-test-in: Do not allow missing errno on tgamma
54516         underflow.  Add more tgamma tests.
54517         * math/auto-libm-test-out: Regenerated.
54518         * sysdeps/i386/fpu/libm-test-ulps: Update.
54519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54520
54521         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
54522         sin, sinh, tan, tanh, tgamma, y0 and y1.
54523         * math/auto-libm-test-out: Regenerated.
54524         * math/libm-test.inc (TEST_COND_x86_64): New macro.
54525         (TEST_COND_x86): Likewise.
54526         (M_E2l): Remove macro.
54527         (M_E3l): Likewise.
54528         (M_2_SQRT_PIl): Likewise.
54529         (M_SQRT_PIl): Likewise.
54530         (M_1_DIV_El): Likewise.
54531         (log_test_data): Use AUTO_TESTS_f_f.
54532         (log10_test_data): Likewise.
54533         (log1p_test_data): Likewise.
54534         (log2_test_data): Likewise.
54535         (sin_test_data): Likewise.
54536         (sin_tonearest_test_data): Likewise.
54537         (sin_towardzero_test_data): Likewise.
54538         (sin_downward_test_data): Likewise.
54539         (sin_upward_test_data): Likewise.
54540         (sinh_test_data): Likewise.
54541         (sinh_tonearest_test_data): Likewise.
54542         (sinh_towardzero_test_data): Likewise.
54543         (sinh_downward_test_data): Likewise.
54544         (sinh_upward_test_data): Likewise.
54545         (tan_test_data): Likewise.
54546         (tan_tonearest_test_data): Likewise.
54547         (tan_towardzero_test_data): Likewise.
54548         (tan_downward_test_data): Likewise.
54549         (tan_upward_test_data): Likewise.
54550         (tanh_test_data): Likewise.
54551         (tgamma_test_data): Likewise.
54552         (y0_test_data): Likewise.
54553         (y1_test_data): Likewise.
54554         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
54555         (special_real_inputs): Add pi/4.
54556         * sysdeps/i386/fpu/libm-test-ulps: Update.
54557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54558
54559 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54560
54561         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
54562         "longjmp_target" static probes.
54563         (__longjmp): Rename to __longjmp_symbol.
54564         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
54565         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
54566         on which longjmp to generate.
54567         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
54568         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
54569         probe.
54570         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54571         (__sigjmp_save): Rename to __sigjmp_save_symbol.
54572         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
54573         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
54574         and __sigjmp_save_symbol based on which sigsetjmp to generated.
54575         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
54576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
54577         __longjmp_symbol based on which __longjmp to generate.
54578         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
54579         probe.
54580         (setjmp): Rename to setjmp_symbol.
54581         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54582         (_setjmp): Rename to _setjmp_symbol.
54583         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54584         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
54585         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
54586         which setjmp to generate.
54587         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
54588         "longjmp_target" static probes.
54589
54590 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
54591
54592         * benchtests/README: Add note about output arguments.
54593         * benchtests/bench-sincos.c: Remove file.
54594         * benchtests/sincos-inputs: New file.
54595         * scripts/bench.pl: Identify output arguments and define
54596         static variables for them.
54597
54598         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
54599
54600         [BZ #15941]
54601         * Makefile (INSTALL): Add install-plain.texi as the primary
54602         dependency.
54603         * manual/install-plain.texi: New file.
54604         * manual/install.texi: Include node directive only for
54605         non-plaintext output.
54606
54607 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
54608
54609         * stdlib/longlong.h: Update from GCC.
54610
54611         [BZ #6807]
54612         [BZ #15901]
54613         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
54614         * math/w_j0f.c (y0f): Likewise.
54615         * math/w_j0l.c (__y0l): Likewise.
54616         * math/w_j1.c (y1): Likewise.
54617         * math/w_j1f.c (y1f): Likewise.
54618         * math/w_j1l.c (__y1l): Likewise.
54619         * math/w_jn.c (yn): Likewise.
54620         * math/w_jnf.c (ynf): Likewise.
54621         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
54622         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
54623         value for Bessel function domain errors outside _SVID_ mode.
54624         Adjust sign of return value for yn (negative integer, 0).
54625         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
54626         by zero in return for negative x and set sign appropriately for
54627         negative n.
54628         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
54629         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
54630         * math/libm-test.inc (y0_test_data): Add more tests and adjust
54631         expectations in error cases.
54632         (y1_test_data): Likewise.
54633         (yn_test_data): Likewise.
54634         * sysdeps/i386/fpu/libm-test-ulps: Update.
54635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54636
54637 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54638
54639         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
54640         "64" to "64-v1".  Add "64-v2".
54641         (abi-64-options): Rename to ...
54642         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
54643         (abi-64-condition): Rename to ...
54644         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
54645         (abi-64-ld-soname): Rename to ...
54646         (abi-64-v1-ld-soname): ... this.
54647         (abi-64-v2-options): Define.
54648         (abi-64-v2-condition): Likewise.
54649         (abi-64-v2-ld-soname): Likewise.
54650         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
54651         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
54652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
54653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
54654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
54655
54656 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54657             Alan Modra  <amodra@gmail.com>
54658
54659         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
54660         New versions for use with the ELFv2 ABI.
54661         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
54662         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
54663         declaration.
54664         (struct La_ppc64v2_retval): Likewise.
54665         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
54666         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
54667         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
54668         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
54669         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
54670         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
54671         Do not save or restore CR.
54672         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
54673         (_dl_profile_resolve): Do no save or restore CR.  Support extended
54674         return values for ELFv2 ABI.  Fix location of FPR return registers.
54675         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
54676         updated values for _CALL_ELF == 2.
54677         (La_regs, La_retval, int_retval): Likewise.
54678
54679 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54680
54681         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
54682         (FRAME_MIN_SIZE_PARM): Likewise.
54683         (FRAME_BACKCHAIN): Likewise.
54684         (FRAME_CR_SAVE): Likewise.
54685         (FRAME_LR_SAVE): Likewise.
54686         (FRAME_TOC_SAVE): Likewise.
54687         (FRAME_PARM_SAVE): Likewise.
54688         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
54689         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
54690         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
54691         (call_mcount_parm_offset): New macro.
54692         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
54693         (PROF): Use symbolic stack frame offsets.
54694         (TAIL_CALL_SYSCALL_ERROR): Likewise.
54695         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
54696         Redefine in terms of FRAME_MIN_SIZE.
54697         (_dl_runtime_resolve): Use symbolic stack frame offsets.
54698         (_dl_profile_resolve): Likewise.  Update comment.
54699         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
54700         symbols stack frame offsets.
54701         (__sigsetjmp): Likewise.
54702         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
54703         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
54704         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
54705         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
54706
54707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
54708         (FRAME_BACKCHAIN): Remove.
54709         (FRAME_CR_SAVE): Likewise.
54710         (FRAME_LR_SAVE): Likewise.
54711         (FRAME_COMPILER_DW): Likewise.
54712         (FRAME_LINKER_DW): Likewise.
54713         (FRAME_TOC_SAVE): Likewise.
54714         (FRAME_PARM_SAVE): Likewise.
54715         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
54716         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
54717         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
54718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
54719         (CHECK_SP): Use symbolic stack frame offsets.
54720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
54721         zone" instead of caller's parameter save area for temp storage.
54722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
54723         Likewise.  Also, use symbolic stack frame offsets.
54724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
54725         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
54726         our own stack frame instead of the caller's.
54727         (__socket): Use symbolic stack frame offsets.
54728
54729 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54730             Alan Modra  <amodra@gmail.com>
54731
54732         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
54733         Define.
54734         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
54735         (PPC64_LOCAL_ENTRY_OFFSET): Define.
54736         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
54737         New function.
54738         (elf_machine_fixup_plt): Call it.
54739         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
54740         reloc arguments.
54741         (elf_machine_rela): Update call to elf_machine_plt_conflict.
54742         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
54743         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
54744         r2 before calling target.
54745
54746 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54747             Alan Modra  <amodra@gmail.com>
54748
54749         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
54750         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
54751         versions of macros to support ELFv2 ABI.
54752         (LOCALENTRY): New macro.
54753         (ENTRY, EALIGN): Use it.
54754         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
54755         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
54756         fall through into ENTRY entry point.
54757         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
54758         Only define if _CALL_ELF != 2.
54759
54760         (elf_machine_matches_host): Verify ABI version matches.
54761         (RTLD_START): Use LOCALENTRY.
54762         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
54763         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
54764         (PLT_ENTRY_WORDS): New macro.
54765         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
54766         (elf_machine_runtime_setup): Support ELFv2 ABI.
54767         (elf_machine_fixup_plt): Likewise.
54768         (elf_machine_plt_conflict): Likewise.
54769         (resolve_ifunc): Likewise.
54770         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
54771         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
54772         Likewise.
54773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
54774         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
54775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
54776         (makecontext): Support ELFv2 ABI.
54777         * elf/elf.h (EF_PPC64_ABI): Define.
54778
54779 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54780
54781         * sysdeps/powerpc/powerpc64/sysdep.h
54782         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
54783         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
54784         (ENTRY) [ASSEMBLER]: ... but instead here ...
54785         (EALIGN) [ASSEMBLER]: ... and here.
54786         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
54787         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
54788         (ENTRY_2) [!ASSEMBLER]: Use it.
54789         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
54790         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
54791         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
54792         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
54793         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
54794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
54795         Use PPC64_LOAD_FUNCPTR.
54796
54797         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
54798
54799 2013-12-04  Alan Modra  <amodra@gmail.com>
54800
54801         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
54802         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
54803         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
54804         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
54805
54806         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
54807         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
54808         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
54809         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
54810         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
54811         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
54812
54813 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54814
54815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
54816         (__makecontext): Fix incorrect CFI when backtracing out of
54817         context created via makecontext.
54818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
54819         (__setcontext): Fix incorrect CFI during switch to new context.
54820         (__novec_setcontext): Likewise.
54821
54822 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
54823
54824         [BZ #4772]
54825         * time/strptime_l.c (__strptime_internal): Allow modifiers
54826         in strptime.
54827         * time/tst-strptime.c (day_tests): Add testcase.
54828
54829 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
54830
54831         * scripts/bench.pl: Skip over blank lines.
54832
54833 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54834
54835         [BZ #926]
54836         * manual/time.texi (Calendar Time): Clarify what timezone functions
54837         use.
54838
54839 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54840
54841         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54842
54843 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
54844
54845         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
54846         implementation.
54847         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
54848         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
54849         * debug/memset_chk.c (__memset_chk): Likewise.
54850         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
54851         * debug/strncpy_chk.c: Likewise.
54852
54853 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
54854
54855         [BZ #15268]
54856         [BZ #15425]
54857         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
54858         (__ieee754_exp): For possibly underflowing results, check size of
54859         result and force underflow exception if required.
54860         * math/auto-libm-test-in: Add more tests of exp.
54861         * math/auto-libm-test-out: Regenerated.
54862         * sysdeps/i386/fpu/libm-test-ulps: Update.
54863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54864
54865         [BZ #16283]
54866         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
54867         * math/w_exp2f.c (__exp2f): Likewise.
54868         * math/w_exp2l.c (__exp2l): Likewise.
54869         * math/auto-libm-test-in: Do not allow missing errno on exp2
54870         underflow.
54871         * math/auto-libm-test-out: Regenerated.
54872
54873 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
54874
54875         [BZ #16274]
54876         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
54877         handle filename validation.
54878         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
54879         (do_open): Delete.
54880
54881 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
54882
54883         [BZ #6786]
54884         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
54885         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
54886         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
54887         <float.h>.
54888         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
54889         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
54890         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54891         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
54892         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54893         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
54894         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54895         * math/auto-libm-test-in: Don't allow missing errno from erfc.
54896         Add more erfc tests.
54897         * math/auto-libm-test-out: Regenerated.
54898         * sysdeps/i386/fpu/libm-test-ulps: Update.
54899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54900
54901         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
54902         exp2, expm1, j0 and j1.
54903         * math/auto-libm-test-out: Regenerated.
54904         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
54905         (erfc_test_data): Likewise.
54906         (exp_test_data): Likewise.
54907         (exp_tonearest_test_data): Likewise.
54908         (exp_towardzero_test_data): Likewise.
54909         (exp_downward_test_data): Likewise.
54910         (exp_upward_test_data): Likewise.
54911         (exp10_test_data): Likewise.
54912         (exp2_test_data): Likewise.
54913         (expm1_test_data): Likewise.
54914         (j0_test_data): Likewise.
54915         (j1_test_data): Likewise.
54916         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
54917         (input_flag_type): Add flag_xfail_rounding.
54918         (input_flags): Add xfail-rounding.
54919         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
54920         (output_for_one_input_case): Handle flag_xfail_rounding.
54921         * sysdeps/i386/fpu/libm-test-ulps: Update.
54922         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54923
54924 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
54925
54926         [BZ #16289]
54927         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
54928         division by 0.
54929
54930 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
54931
54932         [BZ #16195]
54933         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
54934         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
54935         (STAP_PROBE0): New macro.
54936         (STAP_PROBE1): Likewise.
54937         (STAP_PROBE2): Likewise.
54938         (STAP_PROBE3): Likewise.
54939         (STAP_PROBE4): Likewise.
54940
54941 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
54942
54943         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
54944
54945 2013-12-02  Steve Ellcey  <sellcey@mips.com>
54946
54947         * benchtests/Makefile (bench): Add sqrt.
54948         (LDLIBS-bench-sqrt): New.
54949         * benchtests/sqrt-input: New.
54950
54951 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
54952
54953         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
54954         (GAIH_EAI): Likewise.
54955         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
54956         (gaih_inet): Likewise.
54957         (getaddrinfo): Don't use GAIH_EAI.
54958
54959         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
54960         (struct gaih): Remove definition.
54961
54962 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
54963
54964         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
54965         Use HERRNOP directly.
54966
54967 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54968
54969         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54970
54971 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
54972
54973         * math/gen-auto-libm-tests.c (test_functions): Add more
54974         single-argument functions.
54975         (special_fill_pi_2): New function.
54976         (special_fill_minus_pi_2): Likewise.
54977         (special_fill_pi_6): Likewise.
54978         (special_fill_minus_pi_6): Likewise.
54979         (special_fill_pi_3): Likewise.
54980         (special_fill_2pi_3): Likewise.
54981         (special_fill_e): Likewise.
54982         (special_fill_1_e): Likewise.
54983         (special_fill_e_minus_1): Likewise.
54984         (special_real_inputs): Add more special inputs.
54985         (output_for_one_input_case): Do not require ERANGE on underflow to
54986         zero if round-to-nearest result does not underflow to zero, unless
54987         exact results required.
54988         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
54989         atan, atanh, cbrt, cos and cosh.
54990         * math/auto-libm-test-out: Regenerated.
54991         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
54992         (acos_tonearest_test_data): Likewise.
54993         (acos_towardzero_test_data): Likewise.
54994         (acos_downward_test_data): Likewise.
54995         (acos_upward_test_data): Likewise.
54996         (acosh_test_data): Likewise.
54997         (asin_test_data): Likewise.
54998         (asin_tonearest_test_data): Likewise.
54999         (asin_towardzero_test_data): Likewise.
55000         (asin_upward_test_data): Likewise.
55001         (asinh_test_data): Likewise.
55002         (atan_test_data): Likewise.
55003         (atanh_test_data): Likewise.
55004         (cbrt_test_data): Likewise.
55005         (cos_test_data): Likewise.
55006         (cos_tonearest_test_data): Likewise.
55007         (cos_towardzero_test_data): Likewise.
55008         (cos_downward_test_data): Likewise.
55009         (cos_upward_test_data): Likewise.
55010         (cosh_test_data): Likewise.
55011         (cosh_tonearest_test_data): Likewise.
55012         (cosh_towardzero_test_data): Likewise.
55013         (cosh_downward_test_data): Likewise.
55014         (cosh_upward_test_data): Likewise.
55015         * sysdeps/i386/fpu/libm-test-ulps: Update.
55016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55017
55018 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
55019
55020         [BZ #6787]
55021         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
55022         * math/w_exp10f.c (__exp10f): Likewise.
55023         * math/w_exp10l.c (__exp10l): Likewise.
55024         * math/libm-test.inc (exp10_test_data): Add more tests and expect
55025         errno settings in existing tests.
55026
55027         [BZ #14032]
55028         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
55029         precision control set to double precision.
55030         * sysdeps/i386/fpu/w_sqrt.c: New file.
55031         * math/auto-libm-test-in: Add more tests.
55032         * math/auto-libm-test-out: Update.
55033
55034         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
55035         (sqrt_test_tonearest): New function.
55036         (sqrt_towardzero_test_data): New variable.
55037         (sqrt_test_towardzero): New function.
55038         (sqrt_downward_test_data): New variable.
55039         (sqrt_test_downward): New function.
55040         (sqrt_upward_test_data): New variable.
55041         (sqrt_test_upward): New function.
55042         (main): Call the new functions.
55043
55044         * math/gen-auto-libm-tests.c: New file.
55045         * math/auto-libm-test-in: Likewise.
55046         * math/auto-libm-test-out: New generated file.
55047         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
55048         variables.
55049         (%beautify): Add generated representations of zero.
55050         (top level): Set $auto_input and call parse_auto_input.
55051         (beautify): Remove trailing "f" from hex float constants.
55052         (parse_args): Handle XFAIL_TEST.
55053         (convert_condition): New function.
55054         (or_value): Likewise.
55055         (or_cond_value): Likewise.
55056         (generate_testfile): Handle AUTO_TESTS_* lines.
55057         (parse_auto_input): New function.
55058         * math/libm-test.inc (XFAIL_TEST): New macro.
55059         (ERRNO_UNCHANGED): Update value.
55060         (ERRNO_EDOM): Likewise.
55061         (ERRNO_ERANGE): Likewise.
55062         (IGNORE_RESULT): Likewise.
55063         (TEST_COND_flt_32): New macro.
55064         (TEST_COND_dbl_64): Likewise.
55065         (TEST_COND_ldbl_96_intel): Likewise.
55066         (TEST_COND_ldbl_96_m68k): Likewise.
55067         (TEST_COND_ldbl_128): Likewise.
55068         (TEST_COND_ldbl_128ibm): Likewise.
55069         (TEST_COND_long32): Likewise.
55070         (TEST_COND_long64): Likewise.
55071         (TEST_COND_before_rounding): Likewise.
55072         (TEST_COND_after_rounding): Likewise.
55073         (enable_test): Handle XFAIL_TEST flag.
55074         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
55075         with finite results.
55076         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
55077         auto-libm-test-out.
55078
55079 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
55080             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55081
55082         [BZ #16214]
55083         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
55084         __tls_get_addr_internal instead of __tls_get_offset in order to
55085         avoid GOT pointer dependency.  Make rtld export
55086         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
55087         __tls_get_addr since we are a __tls_get_offset platform.
55088         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
55089         GOT pointer being set up before.
55090         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
55091
55092 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
55093
55094         * manual/math.texi (Errors in Math Functions): Document accuracy
55095         goals.
55096
55097         [BZ #15004]
55098         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
55099         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
55100         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
55101         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
55102         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
55103         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
55104         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
55105         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
55106         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
55107         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
55108         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
55109         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
55110         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
55111         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
55112         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
55113         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
55114
55115         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
55116         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
55117         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
55118         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
55119         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
55120         Likewise.
55121         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
55122         Likewise.
55123         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
55124         Likewise.
55125         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
55126         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
55127         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
55128         atomic-feupdateenv and flt-rounds.
55129         * sysdeps/powerpc/nofpu/Versions (libc): Add
55130         __atomic_feholdexcept, __atomic_feclearexcept,
55131         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
55132         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
55133         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
55134         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
55135         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
55136         here.
55137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
55138         Update.
55139
55140         * manual/arith.texi (FP Exceptions): Document that exceptions may
55141         not be raised when matherr is used.
55142         (Math Error Reporting): Document overflow in directed rounding
55143         modes.  Document that errno may not be set when finite values are
55144         returned on overflow.  Document intent to set errno on underflow
55145         only for underflow to zero.
55146
55147         [BZ #16271]
55148         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
55149         round-to-nearest then adjust result for other rounding modes.
55150         * include/fenv.h (fegetround): Use libm_hidden_proto.
55151         * math/fegetround.c (fegetround): Use libm_hidden_def.
55152         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
55153         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
55154         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55155         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
55156         Likewise.
55157         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
55158         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
55159         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
55160         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
55161
55162 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55163
55164         [BZ #16077]
55165         * nss/Versions (libnss_files): Add
55166         _nss_files_gethostbyname3_r.
55167         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
55168         New function.
55169         (HOST_DB_LOOKUP): Remove macro.
55170         (_nss_files_gethostbyname_r): Implement function without the
55171         HOST_DB_LOOKUP macro.
55172         (_nss_files_gethostbyname2_r): Likewise.
55173
55174 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
55175
55176         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
55177
55178 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
55179
55180         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
55181         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
55182         warning.
55183
55184 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55185
55186         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
55187         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
55188         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
55189         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
55190         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
55191         __fe_nomask_env_priv and attribute_hidden.
55192         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
55193         (libc_feupdateenv_test_ppc): Likewise.
55194         (libc_feresetround_ppc): Likewise.
55195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55196         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
55197         compat_symbol macro.
55198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55199         (__fe_nomask_env): Likewise.
55200         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
55201
55202 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55203
55204         * string/Makefile: Remove ifunc tests.
55205         * string/test-string.h: Define TEST_IFUNC.
55206         * string/test-bcopy-ifunc.c: Remove.
55207         * string/test-bzero-ifunc.c: Likewise.
55208         * string/test-memccpy-ifunc.c: Likewise.
55209         * string/test-memchr-ifunc.c: Likewise.
55210         * string/test-memcmp-ifunc.c: Likewise.
55211         * string/test-memcpy-ifunc.c: Likewise.
55212         * string/test-memmem-ifunc.c: Likewise.
55213         * string/test-memmove-ifunc.c: Likewise.
55214         * string/test-mempcpy-ifunc.c: Likewise.
55215         * string/test-memrchr-ifunc.c: Likewise.
55216         * string/test-memset-ifunc.c: Likewise.
55217         * string/test-rawmemchr-ifunc.c: Likewise.
55218         * string/test-stpcpy-ifunc.c: Likewise.
55219         * string/test-stpncpy-ifunc.c: Likewise.
55220         * string/test-strcasecmp-ifunc.c: Likewise.
55221         * string/test-strcasestr-ifunc.c: Likewise.
55222         * string/test-strcat-ifunc.c: Likewise.
55223         * string/test-strchr-ifunc.c: Likewise.
55224         * string/test-strchrnul-ifunc.c: Likewise.
55225         * string/test-strcmp-ifunc.c: Likewise.
55226         * string/test-strcpy-ifunc.c: Likewise.
55227         * string/test-strcspn-ifunc.c: Likewise.
55228         * string/test-strlen-ifunc.c: Likewise.
55229         * string/test-strncasecmp-ifunc.c: Likewise.
55230         * string/test-strncat-ifunc.c: Likewise.
55231         * string/test-strncmp-ifunc.c: Likewise.
55232         * string/test-strncpy-ifunc.c: Likewise.
55233         * string/test-strnlen-ifunc.c: Likewise.
55234         * string/test-strpbrk-ifunc.c: Likewise.
55235         * string/test-strrchr-ifunc.c: Likewise.
55236         * string/test-strspn-ifunc.c: Likewise.
55237         * string/test-strstr-ifunc.c: Likewise.
55238
55239 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55240
55241         * benchtests/Makefile: Remove ifunc tests.
55242         * benchtests/bench-string.h: Define TEST_IFUNC.
55243         * benchtests/bench-bcopy-ifunc.c: Remove.
55244         * benchtests/bench-bzero-ifunc.c: Likewise.
55245         * benchtests/bench-memccpy-ifunc.c: Likewise.
55246         * benchtests/bench-memchr-ifunc.c: Likewise.
55247         * benchtests/bench-memcmp-ifunc.c: Likewise.
55248         * benchtests/bench-memcpy-ifunc.c: Likewise.
55249         * benchtests/bench-memmem-ifunc.c: Likewise.
55250         * benchtests/bench-memmove-ifunc.c: Likewise.
55251         * benchtests/bench-mempcpy-ifunc.c: Likewise.
55252         * benchtests/bench-memrchr-ifunc.c: Likewise.
55253         * benchtests/bench-memset-ifunc.c: Likewise.
55254         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
55255         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
55256         * benchtests/bench-stpcpy-ifunc.c: Likewise.
55257         * benchtests/bench-stpncpy-ifunc.c: Likewise.
55258         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
55259         * benchtests/bench-strcasestr-ifunc.c: Likewise.
55260         * benchtests/bench-strcat-ifunc.c: Likewise.
55261         * benchtests/bench-strchr-ifunc.c: Likewise.
55262         * benchtests/bench-strchrnul-ifunc.c: Likewise.
55263         * benchtests/bench-strcmp-ifunc.c: Likewise.
55264         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
55265         * benchtests/bench-strcpy-ifunc.c: Likewise.
55266         * benchtests/bench-strcspn-ifunc.c: Likewise.
55267         * benchtests/bench-strlen-ifunc.c: Likewise.
55268         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
55269         * benchtests/bench-strncat-ifunc.c: Likewise.
55270         * benchtests/bench-strncmp-ifunc.c: Likewise.
55271         * benchtests/bench-strncpy-ifunc.c: Likewise.
55272         * benchtests/bench-strnlen-ifunc.c: Likewise.
55273         * benchtests/bench-strpbrk-ifunc.c: Likewise.
55274         * benchtests/bench-strrchr-ifunc.c: Likewise.
55275         * benchtests/bench-strsep-ifunc.c: Likewise.
55276         * benchtests/bench-strspn-ifunc.c: Likewise.
55277         * benchtests/bench-strstr-ifunc.c: Likewise.
55278
55279 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55280
55281         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
55282
55283 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55284
55285         * resolv/netdb.h: Use __glibc_reserved instead __unused.
55286         * rt/aio.h: Likewise.
55287         * sysdeps/gnu/bits/utmp.h: Likewise.
55288         * sysdeps/gnu/bits/utmpx.h: Likewise.
55289         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
55290         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
55291         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
55292         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
55293         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
55294         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
55295         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
55296         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
55297         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
55298         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
55299         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
55300         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
55301         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
55302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
55303         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
55304         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
55305         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
55306         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
55307         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
55308         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
55309         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
55310         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
55311         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
55312         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
55313         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
55314         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
55315         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
55316         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
55317         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
55318         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
55319         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
55320         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
55321         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
55322         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
55323         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
55324         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
55325         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
55326         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
55327         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
55328         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
55329         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
55330         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
55331
55332 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
55333
55334         [BZ #16245]
55335         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
55336         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
55337
55338 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
55339
55340         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
55341         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
55342         Likewise.
55343
55344 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55345
55346         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
55347         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
55348         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
55349         (__fesetround): Remove define.
55350         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
55351         rounding and exceptions handling.
55352         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
55353         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
55354         (__fe_nomask_env): Likewise.
55355         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
55356         __fegetround instead of fegetround.
55357         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
55358         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
55359
55360 2013-11-21  Roland McGrath  <roland@hack.frob.com>
55361
55362         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
55363         it's there.
55364
55365         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
55366
55367 2013-11-21  Meador Inge  <meadori@codesourcery.com>
55368
55369         [BZ #11157]
55370         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
55371         (encrypt_r): Likewise.
55372         * malloc/obstack.h (obstack_free): Likewise.
55373         * posix/unistd.h (encrypt): Likewise.
55374
55375 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
55376
55377         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
55378         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
55379         DL_CALL_DT_FINI() that call the functions directly.
55380         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
55381         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
55382         * elf/dl-fini.c: Likewise.
55383
55384 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
55385
55386         * malloc/hooks.c (memalign_check): Add alignment rounding.
55387         * malloc/malloc.c (_mid_memalign): New function.
55388         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
55389         Implement by calling _mid_memalign.
55390         * manual/probes.texi (Memory Allocation Probes): Remove
55391         memory_valloc_retry and memory_pvalloc_retry.
55392
55393 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
55394
55395         * locale/programs/locarchive.c (open_archive): Add const
55396         qualifier to ARCHIVEFNAME and copy default fname to
55397         DEFAULT_FNAME.
55398
55399         [BZ #15601]
55400         * libio/tst-widetext.input: Rename Oriya to Odia.
55401         * locale/iso-639.def: Likewise.
55402
55403         * manual/probes.texi (Mathematical Function Probes): Add
55404         documentation for sin, cos, asin and acos probes.
55405         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
55406         (__sin32): Add slowasin probe.
55407         (__cos32): Add slowacos probe.
55408         (__mpsin): Add slowsin probe.
55409         (__mpcos): Add slowcos probe.
55410
55411 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
55412
55413         [BZ #15483]
55414         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
55415         thread-local __sim_exceptions_thread and global
55416         __sim_exceptions_global.
55417         (__sim_disabled_exceptions): Change to thread-local
55418         __sim_disabled_exceptions_thread and global
55419         __sim_disabled_exceptions_global.
55420         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55421         and global __sim_round_mode_global.
55422         (__simulate_exceptions): Use thread-local floating-point state and
55423         set global state from it as needed.
55424         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
55425         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
55426         __sim_round_mode_thread.
55427         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
55428         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
55429         and global __sim_exceptions_global.
55430         (__sim_disabled_exceptions): Change to thread-local
55431         __sim_disabled_exceptions_thread and global
55432         __sim_disabled_exceptions_global.
55433         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55434         and global __sim_round_mode_global.
55435         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
55436         (SIM_SET_GLOBAL): Likewise.
55437         * sysdeps/powerpc/soft-fp/sfp-machine.h
55438         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
55439         __sim_round_mode_thread.
55440         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
55441         __sim_disabled_exceptions_thread.
55442         (__sim_exceptions): Change to __sim_exceptions_thread.
55443         (__sim_disabled_exceptions): Change to
55444         __sim_disabled_exceptions_thread.
55445         (__sim_round_mode): Change to __sim_round_mode_thread.
55446         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
55447         thread-local floating-point state and set global state from it as
55448         needed.
55449         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
55450         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
55451         (__sim_disabled_exceptions): Remove extern declaration.
55452         (feenableexcept): Use thread-local floating-point state and set
55453         global state from it as needed.
55454         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
55455         extern declaration.
55456         (__sim_disabled_exceptions): Likewise.
55457         (__sim_round_mode): Likewise.
55458         (__fegetenv): Use thread-local floating-point state.
55459         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
55460         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55461         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
55462         floating-point state and set global state from it as needed.
55463         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
55464         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
55465         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
55466         Likewise.
55467         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
55468         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
55469         Likewise.
55470         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
55471         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
55472         Use __sim_round_mode_thread.
55473         * math/test-fenv-tls.c: New file.
55474         * math/Makefile (tests): Add test-fenv-tls.
55475         ($(objpfx)test-fenv-tls): Depend on
55476         $(common-objpfx)nptl/libpthread.so.
55477
55478 2013-11-19  Andreas Schwab  <schwab@suse.de>
55479
55480         * locale/programs/locale.c (show_info): Decode wordarray elements.
55481         * locale/categories.def (LC_MONETARY): Add element for
55482         _NL_MONETARY_CRNCYSTR.
55483         * locale/C-monetary.c (conversion_rate): New variable.
55484         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
55485         element.
55486
55487 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
55488
55489         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
55490         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
55491
55492 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
55493
55494         * elf/Makefile (tst-auxv): New test.
55495         * elf/tst-auxv.c: New
55496         * elf/rtld.c (dl_main): Adjust AT_EXECFN
55497
55498 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
55499
55500         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
55501         (hidden_proto): Caller changed.
55502         (hidden_tls_proto): New macro.
55503         (libc_hidden_tls_proto): Likewise.
55504         (rtld_hidden_tls_proto): Likewise.
55505         (libm_hidden_tls_proto): Likewise.
55506         (libresolv_hidden_tls_proto): Likewise.
55507         (librt_hidden_tls_proto): Likewise.
55508         (libdl_hidden_tls_proto): Likewise.
55509         (libnss_files_hidden_tls_proto): Likewise.
55510         (libnsl_hidden_tls_proto): Likewise.
55511         (libnss_nisplus_hidden_tls_proto): Likewise.
55512         (libutil_hidden_tls_proto): Likewise.
55513
55514 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
55515
55516         [BZ #10253]
55517         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
55518         (decompose_rpath): Defer expansion to fillin_rpath.
55519         (_dl_init_paths): Pass linkmap to fillin_rpath.
55520
55521 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
55522
55523         * benchtests/Makefile: Add strsep.
55524         * benchtests/bench-strsep.c: New file: strsep benchtest.
55525         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
55526
55527 2013-11-18  Andreas Schwab  <schwab@suse.de>
55528
55529         * locale/programs/locale.c (show_info) [case byte]: Check for
55530         '\377' instead of '\177'.
55531         * locale/C-monetary.c (not_available): Always use "\377".
55532         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
55533         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
55534         detect unavailable sign_posn locale elements.
55535         * locale/localeconv.c (__localeconv): For grouping and
55536         mon_grouping handle "\177" and "\377" like no grouping.
55537         (INT_ELEM): New macro.  Use it to set all numeric members.
55538         * locale/programs/ld-monetary.c (monetary_read)
55539         <tok_mon_grouping>: Normalize single -1 to the empty string.
55540         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
55541         Likewise.
55542
55543 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
55544
55545         [BZ #16055]
55546         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
55547         when we match (nil).
55548         * stdio-common/tst-sscanf.c (struct test): Add testcase.
55549
55550 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
55551
55552         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
55553         (NO_TEST_INLINE): Update value.
55554         (ERRNO_UNCHANGED): Likewise.
55555         (ERRNO_EDOM): Likewise.
55556         (ERRNO_ERANGE): Likewise.
55557         (IGNORE_RESULT): Likewise.
55558         (check_float_internal): Check signs of NaN results if
55559         TEST_NAN_SIGN used.
55560         (check_complex): Pass TEST_NAN_SIGN flag through to second
55561         check_float_internal call.
55562         (copysign_test_data): Add tests with quiet NaNs as second
55563         argument.  Use TEST_NAN_SIGN.
55564         (fabs_test_data): Add test of negative quiet NaN argument.  Use
55565         TEST_NAN_SIGN.
55566         (signbit_test_data): Add tests of quiet NaN argument.
55567         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
55568
55569         * math/gen-libm-test.pl (show_exceptions): Take extra argument
55570         $ignore_result.
55571         (parse_args): Handle function results specified as IGNORE.
55572         * math/libm-test.inc (IGNORE_RESULT): New macro.
55573         (check_float_internal): Do not check numerical result if flag
55574         IGNORE_RESULT set.
55575         (check_complex): Pass through IGNORE_RESULT to second
55576         check_float_internal call.
55577         (check_int): Do not check numerical result if flag IGNORE_RESULT
55578         set.
55579         (check_long): Likewise.
55580         (check_bool): Likewise.
55581         (check_longlong): Likewise.
55582         (lrint_test_data): Add tests of infinite and NaN arguments.
55583         (lrint_tonearest_test_data): Likewise.
55584         (lrint_towardzero_test_data): Likewise.
55585         (lrint_downward_test_data): Likewise.
55586         (lrint_upward_test_data): Likewise.
55587         (llrint_test_data): Likewise.
55588         (llrint_tonearest_test_data): Likewise.
55589         (llrint_towardzero_test_data): Likewise.
55590         (llrint_downward_test_data): Likewise.
55591         (llrint_upward_test_data): Likewise.
55592         (lround_test_data): Likewise.
55593         (llround_test_data): Likewise.
55594
55595         * math/libm-test.inc (NO_TEST_INLINE): New macro.
55596         (ERRNO_UNCHANGED): Update value.
55597         (ERRNO_EDOM): Likewise.
55598         (ERRNO_ERANGE): Likewise.
55599         (NO_TEST_INLINE_FLOAT): New macro.
55600         (NO_TEST_INLINE_DOUBLE): Likewise.
55601         (enable_test): New function.
55602         (RUN_TEST_f_f): Check enable_test before running test.
55603         (RUN_TEST_2_f): Likewise.
55604         (RUN_TEST_fff_f): Likewise.
55605         (RUN_TEST_c_f): Likewise.
55606         (RUN_TEST_f_f1): Likewise.
55607         (RUN_TEST_fF_f1): Likewise.
55608         (RUN_TEST_fI_f1): Likewise.
55609         (RUN_TEST_ffI_f1): Likewise.
55610         (RUN_TEST_c_c): Likewise.
55611         (RUN_TEST_cc_c): Likewise.
55612         (RUN_TEST_f_i): Likewise.
55613         (RUN_TEST_f_i_tg): Likewise.
55614         (RUN_TEST_ff_i_tg): Likewise.
55615         (RUN_TEST_f_b): Likewise.
55616         (RUN_TEST_f_b_tg): Likewise.
55617         (RUN_TEST_f_l): Likewise.
55618         (RUN_TEST_f_L): Likewise.
55619         (RUN_TEST_fFF_11): Likewise.
55620         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
55621         conditionals.
55622         (cosh_test_data): Likewise.
55623         (exp_test_data): Likewise.
55624         (expm1_test_data): Likewise.
55625         (hypot_test_data): Likewise.
55626         (pow_test_data): Likewise.
55627         (sinh_test_data): Likewise.
55628         (tanh_test_data): Likewise.
55629         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
55630         flags argument.
55631
55632         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
55633         tests with quiet NaN input and output.
55634         (acosh_test_data): Likewise.
55635         (asin_test_data): Likewise.
55636         (asinh_test_data): Likewise.
55637         (atan_test_data): Likewise.
55638         (atanh_test_data): Likewise.
55639         (atan2_test_data): Likewise.
55640         (cbrt_test_data): Likewise.
55641         (cos_test_data): Likewise.
55642         (cosh_test_data): Likewise.
55643         (erf_test_data): Likewise.
55644         (erfc_test_data): Likewise.
55645         (exp_test_data): Likewise.
55646         (exp10_test_data): Likewise.
55647         (exp2_test_data): Likewise.
55648         (expm1_test_data): Likewise.
55649         (hypot_test_data): Likewise.
55650         (j0_test_data): Likewise.
55651         (j1_test_data): Likewise.
55652         (jn_test_data): Likewise.
55653         (lgamma_test_data): Likewise.
55654         (log_test_data): Likewise.
55655         (log10_test_data): Likewise.
55656         (log1p_test_data): Likewise.
55657         (log2_test_data): Likewise.
55658         (pow_test_data): Likewise.
55659         (scalb_test_data): Likewise.
55660         (sin_test_data): Likewise.
55661         (sincos_test_data): Likewise.
55662         (sinh_test_data): Likewise.
55663         (tan_test_data): Likewise.
55664         (tanh_test_data): Likewise.
55665         (tgamma_test_data): Likewise.
55666         (y0_test_data): Likewise.
55667         (y1_test_data): Likewise.
55668         (yn_test_data): Likewise.
55669
55670         [BZ #16167]
55671         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
55672         argument being NaN and avoid computations with second argument in
55673         that case.
55674         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
55675         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
55676         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
55677
55678 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
55679
55680         * locale/iso-639.def: Add Chitwani Tharu (the).
55681
55682 2013-11-14  Andreas Schwab  <schwab@suse.de>
55683
55684         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
55685         word instead of empty string.
55686
55687 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55688
55689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55690         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
55691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55692         (__fe_nomask_env): Likewise.
55693
55694 2013-11-13  Steve Ellcey  <sellcey@mips.com>
55695
55696         * benchtests/bench-timing.h: Include time.h.
55697
55698 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
55699
55700         [BZ #15997]
55701         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
55702         to 3.4.0 for x32.
55703         * sysdeps/unix/sysv/linux/configure: Regenerated.
55704
55705 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
55706
55707         [BZ #16151]
55708         * stdlib/strtod_l.c (round_and_return): Do not consider
55709         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
55710         exponent one less than half the least subnormal exponent.
55711         * stdlib/test-strtod-round-data: Add more tests.
55712         * stdlib/tst-strtod-round.c (tests): Regenerated.
55713
55714 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55715
55716         [BZ #14143]
55717         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
55718         (__fe_mask_env): Likewise.
55719         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
55720         libm_hidden_proto and add function prototype.
55721         (__fe_mask_env): Add function prototype.
55722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55723         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
55724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
55725         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
55726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55727         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
55728
55729 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55730
55731         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
55732         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
55733
55734 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55735
55736         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
55737         of htab_find_slot().
55738
55739 2013-11-11  David S. Miller  <davem@davemloft.net>
55740
55741         [BZ #16150]
55742         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
55743         symbol in the non-vis3 case in static builds.
55744         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
55745         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
55746         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
55747         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
55748
55749 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
55750
55751         [BZ #387]
55752         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
55753         it is empty.
55754
55755 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55756
55757         * benchtests/Makefile: Add bench-strtod.
55758         * benchtests/bench-strtod.c: New file: strtod benchtest
55759
55760 2013-11-11  Andreas Schwab  <schwab@suse.de>
55761
55762         [BZ #16153]
55763         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
55764         terminating NUL in key length.
55765
55766 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55767
55768         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
55769         Add artificial ODP entry for vDSO symbol for PPC64.
55770         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
55771         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
55772
55773 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
55774
55775         [BZ #15374]
55776         * nss/getent.c (services_keys): Recognize services starting with digit.
55777
55778 2013-11-06  David S. Miller  <davem@davemloft.net>
55779
55780         [BZ #15985]
55781         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
55782         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
55783
55784 2013-11-06  Will Newton  <will.newton@linaro.org>
55785
55786         * manual/memory.texi (Malloc Examples): Remove register
55787         keyword from examples.
55788
55789 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
55790
55791         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
55792
55793 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
55794
55795         [BZ #6981]
55796         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
55797         depending on [__GCC_IEC_559 > 0].
55798         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
55799         depending on [__GCC_IEC_559_COMPLEX > 0].
55800
55801 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
55802
55803         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
55804         to iso-639.def.
55805
55806 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
55807
55808         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
55809
55810 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
55811
55812         [BZ #16112]
55813         * malloc/malloc (malloc_info): Do not handle first bin as
55814         special case.
55815
55816 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
55817
55818         * locale/iso-639.def: Add Central Nahuatl (nhn).
55819
55820 2013-11-01  Bruno Haible  <bruno@clisp.org>
55821
55822         [BZ #7003]
55823         * manual/math.texi (BSD Random): Specify range upper bound as
55824         in POSIX.
55825
55826 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
55827
55828         * locale/iso-639.def: Add Meadow Mari (mhr).
55829
55830 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
55831
55832         [BZ #14752], [BZ #15763]
55833         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
55834         Validate name.
55835         * rt/tst_shm.c: Add test for escaping directory.
55836
55837 2013-10-31  Andreas Schwab  <schwab@suse.de>
55838
55839         [BZ #15917]
55840         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
55841         followed by 'x' as part of digit sequence.
55842         * stdio-common/tst-sscanf.c (double_tests2): New tests.
55843
55844 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
55845
55846         [BZ #16037]
55847         * configure.ac: allow GNU Make 4.0 and greater.
55848         * configure: Regenerated.
55849
55850 2013-10-30  Will Newton  <will.newton@linaro.org>
55851
55852         [BZ #16038]
55853         * malloc/hooks.c (memalign_check): Limit alignment to the
55854         maximum representable power of two.
55855         * malloc/malloc.c (__libc_memalign): Likewise.
55856         * malloc/tst-memalign.c (do_test): Add test for very
55857         large alignment values.
55858         * malloc/tst-posix_memalign.c (do_test): Likewise.
55859
55860 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
55861
55862         [BZ #11087]
55863         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
55864         (munmap_chunk): Likewise.
55865         (mremap_chunk): Likewise.
55866
55867 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
55868
55869         [BZ #15799]
55870         * stdlib/div.c (div): Remove obsolete code.
55871         * stdlib/ldiv.c (ldiv): Likewise.
55872         * stdlib/lldiv.c (lldiv): Likewise.
55873
55874 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
55875
55876         [BZ #16071]
55877         * nss/nss_files/files-XXX.c (get_contents_ret): New
55878         enumerator.
55879         (get_contents): New function.
55880         (internal_getent): Use it.  Expand size of LINEBUFLEN.
55881
55882 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
55883
55884         * configure.in: Moved to ...
55885         * configure.ac: ... here. Change reference to configure.in
55886         to configure.ac.
55887         * sysdeps/arm/preconfigure.ac: ... here.
55888         configure.in to configure.ac.
55889         * sysdeps/gnu/configure.in: Moved to ...
55890         * sysdeps/gnu/configure.ac: ... here.
55891         * sysdeps/i386/configure.in: Moved to ...
55892         * sysdeps/i386/configure.ac: ... here.
55893         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
55894         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
55895         * sysdeps/mach/configure.in: Moved to ...
55896         * sysdeps/mach/configure.ac: ... here.
55897         * sysdeps/mach/hurd/configure.in: Moved to ...
55898         * sysdeps/mach/hurd/configure.ac: ... here.
55899         * sysdeps/powerpc/configure.in: Moved to ...
55900         * sysdeps/powerpc/configure.ac: ... here.
55901         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
55902         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
55903         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
55904         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
55905         * sysdeps/s390/s390-32/configure.in: Moved to ...
55906         * sysdeps/s390/s390-32/configure.ac: ... here.
55907         * sysdeps/s390/s390-64/configure.in: Moved to ...
55908         * sysdeps/s390/s390-64/configure.ac: ... here.
55909         * sysdeps/sh/configure.in: Moved to ...
55910         * sysdeps/sh/configure.ac: ... here.
55911         * sysdeps/sparc/configure.in: Moved to ...
55912         * sysdeps/sparc/configure.ac: ... here.
55913         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
55914         * sysdeps/unix/sysv/linux/configure.ac: ... here.
55915         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
55916         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
55917         * sysdeps/x86_64/configure.in: Moved to ...
55918         * sysdeps/x86_64/configure.ac: ... here.
55919         * sysdeps/x86_64/preconfigure.in: Moved to ...
55920         * sysdeps/x86_64/preconfigure.ac: ... here.
55921         * aclocal.m4: Change reference to configure.in to configure.ac.
55922         * config.h.in: Likewise.
55923         * manual/install.texi: Likewise.
55924         * manual/maint.texi: Likewise.
55925         * Makefile: Likewise.
55926         * malloc/Makefile: Likewise.
55927         * nscd/Makefile: Likewise.
55928         * Makeconfig: Change reference to configure.in and
55929         preconfigure.in to configure.ac and preconfigure.ac
55930         respectively.
55931         * INSTALL: Regenerated.
55932         * configure: Likewise.
55933         * sysdeps/gnu/configure: Likewise.
55934         * sysdeps/i386/configure: Likewise.
55935         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
55936         * sysdeps/mach/configure: Likewise.
55937         * sysdeps/mach/hurd/configure: Likewise.
55938         * sysdeps/powerpc/configure: Likewise.
55939         * sysdeps/powerpc/powerpc32/configure: Likewise.
55940         * sysdeps/powerpc/powerpc64/configure: Likewise.
55941         * sysdeps/s390/s390-32/configure: Likewise.
55942         * sysdeps/s390/s390-64/configure: Likewise.
55943         * sysdeps/sh/configure: Likewise.
55944         * sysdeps/sparc/configure: Likewise.
55945         * sysdeps/unix/sysv/linux/configure: Likewise.
55946         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
55947         * sysdeps/x86_64/configure: Likewise.
55948         * sysdeps/x86_64/preconfigure: Likewise.
55949
55950 2013-10-29  Andreas Schwab  <schwab@suse.de>
55951
55952         * stdio-common/Makefile (tst-swscanf-ENV): Define.
55953
55954 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55955
55956         * benchtests/pow-inputs: Add new inputs.
55957
55958         * benchtests/exp-inputs: Add new inputs.
55959
55960         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
55961         conditional check for return value.
55962         (__cos32): Likewise.
55963
55964 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55965
55966         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
55967         to provide a boost for large inputs with word alignment.
55968         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
55969         implementation based on optimized PPC64 strcpy.
55970         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
55971         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
55972         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
55973         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
55974
55975 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
55976
55977         [BZ #2801]
55978         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
55979
55980 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
55981
55982         [BZ #14876]
55983         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
55984         * time/tst-strptime.c (day_tests): Add testcase.
55985
55986 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
55987
55988         [BZ #14029]
55989         * manual/pattern.texi: Acknowledge that fnmatch can fail.
55990
55991 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
55992
55993         [BZ #16074]
55994         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
55995         MAP_FAILED on error.
55996
55997 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
55998
55999         [BZ #16072]
56000         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
56001         heap for large requests.
56002
56003 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
56004
56005         [BZ #9954]
56006         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
56007         result if the result has no associated interface.
56008         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
56009         interface for all 127.X.Y.Z addresses.
56010
56011 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
56012
56013         * locale/iso-639.def: Add Ligurian (lij)
56014
56015 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
56016
56017         [BZ #15825]
56018         * sunrpc/rpc_main.c: Document rpcgen -5.
56019
56020 2013-10-19  Michael Stahl  <mstahl@redhat.com>
56021
56022         * elf/rtld.c (do_preload): Print the reason why preloading failed.
56023
56024 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
56025
56026         [BZ #10278]
56027         * posix/glob.c: Match only directories when trailing slash is present.
56028         * posix/tst-gnuglob.c (my_opendir): Do not open files.
56029         (main): Add testcase.
56030
56031 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
56032
56033         [BZ #15670]
56034         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
56035
56036 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
56037
56038         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
56039         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
56040         AUTH_DES and cindex for FIPS 140-2.
56041         (DES Encryption): Add cindex FIPS 46-3.
56042
56043         * locale/locarchive.h (struct locarhandle): Add fname.
56044         * locale/programs/localedef.c (main): Pass ARGV[remaining]
56045         if an optional argument was specified to --list-archive,
56046         otherwise NULL.
56047         * locale/programs/locarchive.c (show_archive_content): Take new
56048         argument fname and pass it via ah.fname to open_archive.
56049         * locale/programs/localedef.h: Update decl.
56050         (open_archive): If AH->fname is non-null, open that file
56051         rather than the default file name, and don't ignore ENOENT.
56052         (create_archive): Set AH.fname to NULL.
56053         (delete_locales_from_archive): Likewise.
56054         (add_locales_to_archive): Likewise.
56055         * locale/programs/locfile.c (write_all_categories): Likewise.
56056
56057 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
56058             Aldy Hernandez  <aldyh@redhat.com>
56059
56060         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
56061         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
56062         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
56063         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
56064         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
56065         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
56066         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
56067         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
56068         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
56069         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
56070         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
56071         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
56072         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
56073         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
56074         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
56075         Likewise.
56076         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
56077         Likewise.
56078         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
56079         Likewise.
56080         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
56081         Likewise.
56082         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
56083         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
56084         Likewise.
56085         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
56086         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
56087         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
56088         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
56089         Likewise.
56090         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
56091         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
56092         * sysdeps/powerpc/preconfigure: Likewise.
56093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
56094         Likewise.
56095         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
56096         Replace contents of file by #include of <fenv_libc.h>.
56097         * sysdeps/powerpc/soft-fp/sfp-machine.h
56098         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
56099         and <sys/prctl.h>.
56100         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
56101         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
56102         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
56103         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
56104         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
56105         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
56106         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
56107         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
56108         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
56109         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
56110         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
56111         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
56112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
56113         Allow copysignl PLT reference to be missing.
56114
56115 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
56116             Joseph Myers  <joseph@codesourcery.com
56117
56118         [BZ #15948]
56119         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
56120         single character.
56121         (add_to_tablewc): Assert sequence of wide characters is nonempty.
56122
56123 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56124
56125         * elf/tst-tls-dlinfo.c: Don't include tls.h.
56126         * elf/tst-tls1.c: Likewise.
56127         * elf/tst-tls10.h: Likewise.
56128         * elf/tst-tls14.c: Likewise.
56129         * elf/tst-tls2.c: Likewise.
56130         * elf/tst-tls3.c: Likewise.
56131         * elf/tst-tls4.c: Likewise.
56132         * elf/tst-tls5.c: Likewise.
56133         * elf/tst-tls6.c: Likewise.
56134         * elf/tst-tls7.c: Likewise.
56135         * elf/tst-tls8.c: Likewise.
56136         * elf/tst-tls9.c: Likewise.
56137         * elf/tst-tlsmod1.c: Likewise.
56138         * elf/tst-tlsmod13.c: Likewise.
56139         * elf/tst-tlsmod13a.c: Likewise.
56140         * elf/tst-tlsmod14a.c: Likewise.
56141         * elf/tst-tlsmod16a.c: Likewise.
56142         * elf/tst-tlsmod16b.c: Likewise.
56143         * elf/tst-tlsmod2.c: Likewise.
56144         * elf/tst-tlsmod3.c: Likewise.
56145         * elf/tst-tlsmod4.c: Likewise.
56146         * elf/tst-tlsmod5.c: Likewise.
56147         * elf/tst-tlsmod6.c: Likewise.
56148
56149 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
56150
56151         [BZ #12486]
56152         * malloc/malloc.c: remove checks for statistics.
56153
56154 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56155
56156         [BZ #15277]
56157         * inet/inet_net.c (inet_network): Detect additional invalid strings.
56158         * inet/tst-network.c: Add testcase.
56159
56160 2013-10-17  Andreas Schwab  <schwab@suse.de>
56161
56162         [BZ #15218]
56163         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
56164         to determine canonical name.
56165
56166 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56167
56168         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
56169         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
56170         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
56171         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
56172         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
56173         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
56174         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
56175         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
56176         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
56177         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
56178         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
56179         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
56180         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
56181         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
56182         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
56183         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
56184         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
56185         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
56186         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
56187         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
56188         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
56189         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
56190         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
56191         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
56192         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
56193         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
56194         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
56195         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
56196         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
56197         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
56198         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
56199         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
56200         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
56201         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
56202         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
56203         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
56204         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
56205         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
56206         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
56207         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
56208         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
56209         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
56210         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
56211         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
56212         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
56213         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
56214         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
56215         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
56216         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
56217         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
56218         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
56219         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
56220         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
56221         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
56222         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56223         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
56224         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
56225         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
56226
56227 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
56228
56229         [BZ #16041]
56230         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
56231         make result into a quiet NaN.
56232
56233 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
56234
56235         * soft-fp/adddf3.c: Fix horizontal whitespace.
56236         * soft-fp/addsf3.c: Likewise.
56237         * soft-fp/addtf3.c: Likewise.
56238         * soft-fp/divdf3.c: Likewise.
56239         * soft-fp/divsf3.c: Likewise.
56240         * soft-fp/divtf3.c: Likewise.
56241         * soft-fp/double.h: Likewise.
56242         * soft-fp/eqdf2.c: Likewise.
56243         * soft-fp/eqsf2.c: Likewise.
56244         * soft-fp/eqtf2.c: Likewise.
56245         * soft-fp/extenddftf2.c: Likewise.
56246         * soft-fp/extended.h: Likewise.
56247         * soft-fp/extendsfdf2.c: Likewise.
56248         * soft-fp/extendsftf2.c: Likewise.
56249         * soft-fp/extendxftf2.c: Likewise.
56250         * soft-fp/fixdfdi.c: Likewise.
56251         * soft-fp/fixdfsi.c: Likewise.
56252         * soft-fp/fixdfti.c: Likewise.
56253         * soft-fp/fixsfdi.c: Likewise.
56254         * soft-fp/fixsfsi.c: Likewise.
56255         * soft-fp/fixsfti.c: Likewise.
56256         * soft-fp/fixtfdi.c: Likewise.
56257         * soft-fp/fixtfsi.c: Likewise.
56258         * soft-fp/fixtfti.c: Likewise.
56259         * soft-fp/fixunsdfdi.c: Likewise.
56260         * soft-fp/fixunsdfsi.c: Likewise.
56261         * soft-fp/fixunsdfti.c: Likewise.
56262         * soft-fp/fixunssfdi.c: Likewise.
56263         * soft-fp/fixunssfsi.c: Likewise.
56264         * soft-fp/fixunssfti.c: Likewise.
56265         * soft-fp/fixunstfdi.c: Likewise.
56266         * soft-fp/fixunstfsi.c: Likewise.
56267         * soft-fp/fixunstfti.c: Likewise.
56268         * soft-fp/floatdidf.c: Likewise.
56269         * soft-fp/floatdisf.c: Likewise.
56270         * soft-fp/floatditf.c: Likewise.
56271         * soft-fp/floatsidf.c: Likewise.
56272         * soft-fp/floatsisf.c: Likewise.
56273         * soft-fp/floatsitf.c: Likewise.
56274         * soft-fp/floattidf.c: Likewise.
56275         * soft-fp/floattisf.c: Likewise.
56276         * soft-fp/floattitf.c: Likewise.
56277         * soft-fp/floatundidf.c: Likewise.
56278         * soft-fp/floatundisf.c: Likewise.
56279         * soft-fp/floatunditf.c: Likewise.
56280         * soft-fp/floatunsidf.c: Likewise.
56281         * soft-fp/floatunsisf.c: Likewise.
56282         * soft-fp/floatunsitf.c: Likewise.
56283         * soft-fp/floatuntidf.c: Likewise.
56284         * soft-fp/floatuntisf.c: Likewise.
56285         * soft-fp/floatuntitf.c: Likewise.
56286         * soft-fp/fmadf4.c: Likewise.
56287         * soft-fp/fmasf4.c: Likewise.
56288         * soft-fp/fmatf4.c: Likewise.
56289         * soft-fp/gedf2.c: Likewise.
56290         * soft-fp/gesf2.c: Likewise.
56291         * soft-fp/getf2.c: Likewise.
56292         * soft-fp/ledf2.c: Likewise.
56293         * soft-fp/lesf2.c: Likewise.
56294         * soft-fp/letf2.c: Likewise.
56295         * soft-fp/muldf3.c: Likewise.
56296         * soft-fp/mulsf3.c: Likewise.
56297         * soft-fp/multf3.c: Likewise.
56298         * soft-fp/negdf2.c: Likewise.
56299         * soft-fp/negsf2.c: Likewise.
56300         * soft-fp/negtf2.c: Likewise.
56301         * soft-fp/op-1.h: Likewise.
56302         * soft-fp/op-2.h: Likewise.
56303         * soft-fp/op-4.h: Likewise.
56304         * soft-fp/op-8.h: Likewise.
56305         * soft-fp/op-common.h: Likewise.
56306         * soft-fp/quad.h: Likewise.
56307         * soft-fp/single.h: Likewise.
56308         * soft-fp/soft-fp.h: Likewise.
56309         * soft-fp/sqrtdf2.c: Likewise.
56310         * soft-fp/sqrtsf2.c: Likewise.
56311         * soft-fp/sqrttf2.c: Likewise.
56312         * soft-fp/subdf3.c: Likewise.
56313         * soft-fp/subsf3.c: Likewise.
56314         * soft-fp/subtf3.c: Likewise.
56315         * soft-fp/truncdfsf2.c: Likewise.
56316         * soft-fp/trunctfdf2.c: Likewise.
56317         * soft-fp/trunctfsf2.c: Likewise.
56318         * soft-fp/trunctfxf2.c: Likewise.
56319         * soft-fp/unorddf2.c: Likewise.
56320         * soft-fp/unordsf2.c: Likewise.
56321         * soft-fp/unordtf2.c: Likewise.
56322
56323 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
56324
56325         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
56326         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
56327
56328 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
56329
56330         * elf/dl-libc.c: Clear initfini list after freeing.
56331
56332 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
56333
56334         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
56335         * soft-fp/addsf3.c: Likewise.
56336         * soft-fp/addtf3.c: Likewise.
56337         * soft-fp/divdf3.c: Likewise.
56338         * soft-fp/divsf3.c: Likewise.
56339         * soft-fp/divtf3.c: Likewise.
56340         * soft-fp/double.h: Likewise.
56341         * soft-fp/eqdf2.c: Likewise.
56342         * soft-fp/eqsf2.c: Likewise.
56343         * soft-fp/eqtf2.c: Likewise.
56344         * soft-fp/extenddftf2.c: Likewise.
56345         * soft-fp/extended.h: Likewise.
56346         * soft-fp/extendsfdf2.c: Likewise.
56347         * soft-fp/extendsftf2.c: Likewise.
56348         * soft-fp/extendxftf2.c: Likewise.
56349         * soft-fp/fixdfdi.c: Likewise.
56350         * soft-fp/fixdfsi.c: Likewise.
56351         * soft-fp/fixdfti.c: Likewise.
56352         * soft-fp/fixsfdi.c: Likewise.
56353         * soft-fp/fixsfsi.c: Likewise.
56354         * soft-fp/fixsfti.c: Likewise.
56355         * soft-fp/fixtfdi.c: Likewise.
56356         * soft-fp/fixtfsi.c: Likewise.
56357         * soft-fp/fixtfti.c: Likewise.
56358         * soft-fp/fixunsdfdi.c: Likewise.
56359         * soft-fp/fixunsdfsi.c: Likewise.
56360         * soft-fp/fixunsdfti.c: Likewise.
56361         * soft-fp/fixunssfdi.c: Likewise.
56362         * soft-fp/fixunssfsi.c: Likewise.
56363         * soft-fp/fixunssfti.c: Likewise.
56364         * soft-fp/fixunstfdi.c: Likewise.
56365         * soft-fp/fixunstfsi.c: Likewise.
56366         * soft-fp/fixunstfti.c: Likewise.
56367         * soft-fp/floatdidf.c: Likewise.
56368         * soft-fp/floatdisf.c: Likewise.
56369         * soft-fp/floatditf.c: Likewise.
56370         * soft-fp/floatsidf.c: Likewise.
56371         * soft-fp/floatsisf.c: Likewise.
56372         * soft-fp/floatsitf.c: Likewise.
56373         * soft-fp/floattidf.c: Likewise.
56374         * soft-fp/floattisf.c: Likewise.
56375         * soft-fp/floattitf.c: Likewise.
56376         * soft-fp/floatundidf.c: Likewise.
56377         * soft-fp/floatundisf.c: Likewise.
56378         * soft-fp/floatunsidf.c: Likewise.
56379         * soft-fp/floatunsisf.c: Likewise.
56380         * soft-fp/floatuntidf.c: Likewise.
56381         * soft-fp/floatuntisf.c: Likewise.
56382         * soft-fp/floatuntitf.c: Likewise.
56383         * soft-fp/fmadf4.c: Likewise.
56384         * soft-fp/fmasf4.c: Likewise.
56385         * soft-fp/fmatf4.c: Likewise.
56386         * soft-fp/gedf2.c: Likewise.
56387         * soft-fp/gesf2.c: Likewise.
56388         * soft-fp/getf2.c: Likewise.
56389         * soft-fp/ledf2.c: Likewise.
56390         * soft-fp/lesf2.c: Likewise.
56391         * soft-fp/letf2.c: Likewise.
56392         * soft-fp/muldf3.c: Likewise.
56393         * soft-fp/mulsf3.c: Likewise.
56394         * soft-fp/multf3.c: Likewise.
56395         * soft-fp/negdf2.c: Likewise.
56396         * soft-fp/negsf2.c: Likewise.
56397         * soft-fp/negtf2.c: Likewise.
56398         * soft-fp/op-1.h: Likewise.
56399         * soft-fp/op-2.h: Likewise.
56400         * soft-fp/op-4.h: Likewise.
56401         * soft-fp/op-8.h: Likewise.
56402         * soft-fp/op-common.h: Likewise.
56403         * soft-fp/quad.h: Likewise.
56404         * soft-fp/single.h: Likewise.
56405         * soft-fp/soft-fp.h: Likewise.
56406         * soft-fp/sqrtdf2.c: Likewise.
56407         * soft-fp/sqrtsf2.c: Likewise.
56408         * soft-fp/sqrttf2.c: Likewise.
56409         * soft-fp/subdf3.c: Likewise.
56410         * soft-fp/subsf3.c: Likewise.
56411         * soft-fp/subtf3.c: Likewise.
56412         * soft-fp/truncdfsf2.c: Likewise.
56413         * soft-fp/trunctfdf2.c: Likewise.
56414         * soft-fp/trunctfsf2.c: Likewise.
56415         * soft-fp/trunctfxf2.c: Likewise.
56416         * soft-fp/unorddf2.c: Likewise.
56417         * soft-fp/unordsf2.c: Likewise.
56418         * soft-fp/unordtf2.c: Likewise.
56419
56420 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
56421
56422         [BZ #15672]
56423         * misc/error.c (error_tail): Fix possible buffer overflow.
56424
56425 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
56426
56427         [BZ #13028]
56428         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
56429         address.
56430
56431 2013-10-14  P. J. McDermott  <pj@pehjota.net>
56432
56433         [BZ #832]
56434         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
56435         testing pipefail option.
56436
56437 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
56438
56439         * soft-fp/double.h: Indent preprocessor directives inside #if.
56440         * soft-fp/extended.h: Likewise.
56441         * soft-fp/op-2.h: Likewise.
56442         * soft-fp/op-4.h: Likewise.
56443         * soft-fp/op-common.h: Likewise.
56444         * soft-fp/quad.h: Likewise.
56445         * soft-fp/single.h: Likewise.
56446         * soft-fp/soft-fp.h: Likewise.
56447
56448 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
56449
56450         * iconv/iconv_prog.c: Fix typos.
56451         * stdio-common/psiginfo-data.h: Likewise.
56452
56453 2013-10-12   Reuben Thomas <rrt@sc3d.org>
56454
56455         [BZ #15764]
56456         * locale/setlocale.c: Fix typo.
56457
56458 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
56459
56460         [BZ #16036]
56461         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
56462         signaling NaN arguments.
56463         * soft-fp/unordsf2.c (__unordsf2): Likewise.
56464         * soft-fp/unordtf2.c (__unordtf2): Likewise.
56465
56466         [BZ #14910]
56467         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
56468         unordered operands.
56469         * soft-fp/gesf2.c (__gesf2): Likewise.
56470         * soft-fp/getf2.c (__getf2): Likewise.
56471         * soft-fp/ledf2.c (__ledf2): Likewise.
56472         * soft-fp/lesf2.c (__lesf2): Likewise.
56473         * soft-fp/letf2.c (__letf2): Likewise.
56474
56475         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
56476         * soft-fp/eqsf2.c (__eqsf2): Likewise.
56477         * soft-fp/eqtf2.c (__eqtf2): Likewise.
56478         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
56479         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
56480         * soft-fp/fixdfti.c (__fixdfti): Likewise.
56481         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
56482         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
56483         * soft-fp/fixsfti.c (__fixsfti): Likewise.
56484         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
56485         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
56486         * soft-fp/fixtfti.c (__fixtfti): Likewise.
56487         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
56488         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
56489         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
56490         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
56491         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
56492         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
56493         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
56494         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
56495         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
56496         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
56497         * soft-fp/floatdisf.c (__floatdisf): Likewise.
56498         * soft-fp/floatsisf.c (__floatsisf): Likewise.
56499         * soft-fp/floattidf.c (__floattidf): Likewise.
56500         * soft-fp/floattisf.c (__floattisf): Likewise.
56501         * soft-fp/floattitf.c (__floattitf): Likewise.
56502         * soft-fp/floatundidf.c (__floatundidf): Likewise.
56503         * soft-fp/floatundisf.c (__floatundisf): Likewise.
56504         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
56505         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
56506         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
56507         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
56508         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
56509         * soft-fp/gesf2.c (__gesf2): Likewise.
56510         * soft-fp/getf2.c (__getf2): Likewise.
56511         * soft-fp/ledf2.c (__ledf2): Likewise.
56512         * soft-fp/lesf2.c (__lesf2): Likewise.
56513         * soft-fp/letf2.c (__letf2): Likewise.
56514
56515         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
56516         Undefine and redefine.
56517         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
56518         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
56519         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
56520         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
56521         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56522         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
56523         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56524         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
56525         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56526         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
56527         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56528         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
56529         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56530         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
56531         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56532
56533         [BZ #16032]
56534         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
56535         without decrementing exponent if mantissa >= that for the
56536         denominator, not >.
56537         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
56538         denominator, not >.  Decrement exponent in < case instead of
56539         incrementing in >= case.
56540         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
56541         without decrementing exponent if mantissa >= that for the
56542         denominator, not >.
56543
56544         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
56545         computing saturated result for unsigned overflow.
56546
56547 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
56548             Jeff Law  <law@redhat.com>
56549
56550         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
56551         (atan2Mp): Add systemtap probe marker.
56552         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
56553         (__ieee754_log): Add systemtap probe marker.
56554         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
56555         (atanMp): Add systemtap probe marker.
56556         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
56557         (tanMp): Add systemtap probe marker.
56558         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
56559         (__slowexp): Add systemtap probe marker.
56560         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
56561         (__slowpow): Add systemtap probe marker.
56562         * manual/probes.texi: Document probes.
56563
56564 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
56565
56566         [BZ #15362]
56567         * libio/fileops.c (_IO_new_file_write): Return count of bytes
56568         written.
56569         (_IO_new_file_xsputn): Don't return EOF if nothing has been
56570         written.
56571         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
56572         written to buffer but not flushed.
56573         * libio/iofwrite_u.c:  Likewise.
56574         * libio/iopadn.c:  Return bytes returned even if EOF was
56575         encountered.
56576         * libio/iowpadn.c:  Likewise.
56577         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
56578         if _IO_padn does not write the whole buffer.
56579         [!COMPILE_WPRINTF] (PAD): Likewise.
56580
56581 2013-10-10  David S. Miller  <davem@davemloft.net>
56582
56583         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
56584         directory block.
56585
56586 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
56587
56588         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
56589         instead of FSF address.
56590         * soft-fp/fixdfti.c: Likewise.
56591         * soft-fp/fixsfti.c: Likewise.
56592         * soft-fp/fixtfti.c: Likewise.
56593         * soft-fp/fixunsdfti.c: Likewise.
56594         * soft-fp/fixunssfti.c: Likewise.
56595         * soft-fp/fixunstfti.c: Likewise.
56596         * soft-fp/floattidf.c: Likewise.
56597         * soft-fp/floattisf.c: Likewise.
56598         * soft-fp/floattitf.c: Likewise.
56599         * soft-fp/floatuntidf.c: Likewise.
56600         * soft-fp/floatuntisf.c: Likewise.
56601         * soft-fp/floatuntitf.c: Likewise.
56602         * soft-fp/trunctfxf2.c: Likewise.
56603
56604         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
56605         * soft-fp/fixdfti.c: Likewise.
56606         * soft-fp/fixsfti.c: Likewise.
56607         * soft-fp/fixtfti.c: Likewise.
56608         * soft-fp/fixunsdfti.c: Likewise.
56609         * soft-fp/fixunssfti.c: Likewise.
56610         * soft-fp/fixunstfti.c: Likewise.
56611         * soft-fp/floattidf.c: Likewise.
56612         * soft-fp/floattisf.c: Likewise.
56613         * soft-fp/floattitf.c: Likewise.
56614         * soft-fp/floatuntidf.c: Likewise.
56615         * soft-fp/floatuntisf.c: Likewise.
56616         * soft-fp/floatuntitf.c: Likewise.
56617         * soft-fp/trunctfxf2.c: Likewise.
56618
56619 2013-10-10  David S. Miller  <davem@davemloft.net>
56620
56621         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56622
56623 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
56624
56625         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
56626         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
56627         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
56628         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
56629         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
56630         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
56631         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
56632
56633         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
56634         for NaNs before doing comparisons on argument.
56635         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
56636         Likewise.
56637
56638 2013-10-10  Will Newton  <will.newton@linaro.org>
56639
56640         * malloc/hooks.c (memalign_check): Ensure the value of bytes
56641         passed to _int_memalign does not overflow.
56642
56643 2013-10-10  Torvald Riegel  <triegel@redhat.com>
56644
56645         * scripts/bench.pl: Add include-sources directive.
56646         * benchtests/README: Update documentation.
56647
56648 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
56649
56650         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
56651         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
56652         instead of FP_INIT_ROUNDMODE.
56653         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
56654         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
56655
56656         [BZ #16034]
56657         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
56658         copy class of input value.
56659         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
56660         not handle exceptions.
56661         * soft-fp/negsf2.c (__negsf2): Likewise.
56662         * soft-fp/negtf2.c (__negtf2): Likewise.
56663         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
56664
56665 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
56666
56667         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
56668         semicolon.  From Linux kernel.
56669
56670 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
56671
56672         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
56673
56674 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
56675
56676         [BZ #156]
56677         * manual/socket.texi: Added statement about buffer
56678         for gethostbyname2_r.
56679
56680 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
56681
56682         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
56683         Use .p2align directive instead, throughout.
56684         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
56685         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
56686         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
56687         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
56688         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
56689         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
56690         * sysdeps/x86_64/strchr.S: Likewise.
56691         * sysdeps/x86_64/strrchr.S: Likewise.
56692
56693 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
56694
56695         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
56696
56697         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
56698
56699         * sysdeps/generic/math_private.h (__mpsin1): Remove
56700         declaration.
56701         (__mpcos1): Likewise.
56702         (__mpsin): New argument __range_reduce.
56703         (__mpcos): Likewise.
56704         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56705         (slow): Use __mpsin and __mpcos.
56706         (slow1): Likewise.
56707         (slow2): Likewise.
56708         (sloww): Likewise.
56709         (sloww1): Likewise.
56710         (sloww2): Likewise.
56711         (bsloww): Likewise.
56712         (bsloww1): Likewise.
56713         (bsloww2): Likewise.
56714         (cslow2): Likewise.
56715         (csloww): Likewise.
56716         (csloww1): Likewise.
56717         (csloww2): Likewise.
56718         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
56719         range_reduce.  Merge in __mpsin1.
56720         (__mpcos): Likewise.
56721         (__mpsin1): Remove.
56722         (__mpcos1): Likewise.
56723
56724 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
56725
56726         * locale/loadlocale.c (_nl_intern_locale_data): Use
56727         LOCFILE_ALIGNED_P.
56728         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
56729         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
56730         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
56731         obstack data is appropriately aligned.
56732         (obstack_int32_grow_fast): Likewise.
56733         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
56734         * locale/programs/locfile.c (add_locale_uint32): Likewise.
56735         (add_locale_uint32_array): Likewise.
56736
56737 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
56738
56739         * benchtests/Makefile: Remove ARGLIST and RET variables.
56740         ($(objpfx)bench-%.c): Pass only function name to the script.
56741         * benchtests/README: Update documentation.
56742         * benchtests/acos-inputs: Add new directives.
56743         * benchtests/acosh-inputs: Likewise.
56744         * benchtests/asin-inputs: Likewise.
56745         * benchtests/asinh-inputs: Likewise.
56746         * benchtests/atan-inputs: Likewise.
56747         * benchtests/atanh-inputs: Likewise.
56748         * benchtests/cos-inputs: Likewise.
56749         * benchtests/cosh-inputs: Likewise.
56750         * benchtests/exp-inputs: Likewise.
56751         * benchtests/log-inputs: Likewise.
56752         * benchtests/pow-inputs: Likewise.
56753         * benchtests/rint-inputs: Likewise.
56754         * benchtests/sin-inputs: Likewise.
56755         * benchtests/sinh-inputs: Likewise.
56756         * benchtests/tan-inputs: Likewise.
56757         * benchtests/tanh-inputs: Likewise.
56758         * scripts/bench.pl: Add support for new directives.
56759
56760 2013-10-07  Alan Modra  <amodra@gmail.com>
56761
56762         * README: Fix careless merge.
56763
56764 2013-10-05  Alan Modra  <amodra@gmail.com>
56765
56766         * NEWS: Mention powerpc64le support and bugs fixed.
56767         * README: Both big-endian and little-endian powerpc64 supported.
56768
56769 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
56770
56771         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
56772         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
56773         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
56774         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
56775
56776 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
56777
56778         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
56779         match prototype.
56780
56781 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
56782
56783         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
56784         Move -mhard-float appending from
56785         ports/sysdeps/powerpc/powerpc32/Makefile.
56786         [$(with-fp) = yes] (ASFLAGS): Likewise.
56787         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
56788         * sysdeps/powerpc/nofpu: Move directory from
56789         ports/sysdeps/powerpc/nofpu.
56790         * sysdeps/powerpc/soft-fp: Move directory from
56791         ports/sysdeps/powerpc/soft-fp.
56792         * sysdeps/powerpc/powerpc32/405: Move directory from
56793         ports/sysdeps/powerpc/powerpc32/405.
56794         * sysdeps/powerpc/powerpc32/440: Move directory from
56795         ports/sysdeps/powerpc/powerpc32/440.
56796         * sysdeps/powerpc/powerpc32/464: Move directory from
56797         ports/sysdeps/powerpc/powerpc32/464.
56798         * sysdeps/powerpc/powerpc32/476: Move directory from
56799         ports/sysdeps/powerpc/powerpc32/476.
56800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
56801         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
56802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
56803         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
56804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
56805         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
56806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
56807         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
56808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
56809         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
56810         * README: Update for powerpc-*-linux-gnu software floating point
56811         support in libc.
56812
56813         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
56814         case to powerpc/powerpc32*.
56815         * sysdeps/unix/sysv/linux/configure: Regenerated.
56816
56817         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
56818         (_FPU_MASK_OM): Define as 0x04.
56819         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
56820         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
56821         0x00c10080.
56822         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
56823         0x0000003c.
56824         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
56825
56826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
56827         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
56828         getcontext_e500.
56829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
56830         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
56831         setcontext_e500.
56832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
56833         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
56834         and setcontext_e500.
56835
56836 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
56837
56838         * locale/iso-3166.def: Update iso-1366.def and related occurrences
56839
56840 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
56841
56842         * manual/threads.texi (Default Thread Attributes): Fix typo.
56843
56844 2013-10-04  Will Newton  <will.newton@linaro.org>
56845
56846         * malloc/Makefile: Add tst-memalign.
56847         * malloc/tst-memalign.c: New file.
56848
56849         * malloc/tst-posix_memalign.c: Add comments.
56850         (do_test): Add comments and call free on all potentially
56851         allocated pointers. Add space after cast.
56852
56853         * malloc/tst-pvalloc.c: Add comments.
56854         (do_test): Add comments and call free on all potentially
56855         allocated pointers. Remove duplicate check for NULL pointer.
56856         Add space after cast.
56857
56858         * malloc/tst-valloc.c: Add comments.
56859         (do_test): Add comments and call free on all potentially
56860         allocated pointers. Remove duplicate check for NULL pointer.
56861         Add space after cast.
56862
56863 2013-10-04  Alan Modra  <amodra@gmail.com>
56864
56865         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
56866         Use stdint types in rather than __attribute__((mode())).
56867         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
56868
56869 2013-10-04  Alan Modra  <amodra@gmail.com>
56870
56871         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
56872         Correct handling of unaligned relocs for little-endian.
56873         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
56874
56875 2013-10-04  Alan Modra  <amodra@gmail.com>
56876
56877         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
56878         * configure: Regenerate.
56879         * nptl/shlib-versions: Powerpc*le starts at 2.18.
56880         * shlib-versions: Likewise.
56881
56882 2013-10-04  Alan Modra  <amodra@gmail.com>
56883
56884         * string/tester.c (test_memrchr): Increment reported test cycle.
56885
56886 2013-10-04  Alan Modra  <amodra@gmail.com>
56887
56888         * string/test-memcpy.c (do_one_test): When reporting errors, print
56889         string address and don't overrun end of string.
56890
56891 2013-10-04  Alan Modra  <amodra@gmail.com>
56892
56893         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
56894         insrdi.  Make better use of reg selection to speed exit slightly.
56895         Schedule entry path a little better.  Remove useless "are we done"
56896         checks on entry to main loop.  Handle wrapping around zero address.
56897         Correct main loop count.  Handle single left-over word from main
56898         loop inline rather than by using loop_small.  Remove extra word
56899         case in loop_small caused by wrong loop count.  Add little-endian
56900         support.
56901         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
56902         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
56903         cache hint.
56904         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
56905         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
56906         support.  Avoid rlwimi.
56907         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
56908
56909 2013-10-04  Alan Modra  <amodra@gmail.com>
56910
56911         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
56912         insrdi.  Formatting.
56913         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
56914         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
56915         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
56916         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
56917         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
56918         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
56919
56920 2013-10-04  Alan Modra  <amodra@gmail.com>
56921
56922         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
56923         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
56924         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
56925         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
56926         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
56927         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
56928         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
56929         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
56930         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
56931         use of regs.  Use power7 mtocrf.  Tidy function tails.
56932
56933 2013-10-04  Alan Modra  <amodra@gmail.com>
56934
56935         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
56936         Formatting.  Consistently use rXXX register defines or rN defines.
56937         Use early exit labels that avoid restoring unused non-volatile regs.
56938         Make cr field use more consistent with rWORDn compares.  Rename
56939         regs used as shift registers for unaligned loop, using rN defines
56940         for short lifetime/multiple use regs.
56941         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
56942         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
56943         addi 1,1,64 to pop stack frame.  Simplify return value code.
56944         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
56945
56946 2013-10-04  Alan Modra  <amodra@gmail.com>
56947
56948         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
56949         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
56950         rather than rlwimi.
56951         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
56952         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
56953         little-endian support.  Correct typos.
56954         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
56955         rather than rlwimi.
56956         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
56957         in loop and entry code to keep "and." results.
56958         (strchr): Add little-endian support.  Comment.  Move cntlzd
56959         earlier in tail.
56960         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
56961
56962 2013-10-04  Alan Modra  <amodra@gmail.com>
56963
56964         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
56965         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
56966         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
56967         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
56968
56969 2013-10-04  Alan Modra  <amodra@gmail.com>
56970
56971         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
56972         (rTMP): Define as r11.
56973         (strcmp): Add little-endian support.  Optimise tail.
56974         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
56975         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
56976         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
56977         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
56978         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
56979         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
56980         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
56981
56982 2013-10-04  Alan Modra  <amodra@gmail.com>
56983
56984         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
56985         little-endian support.  Remove unnecessary "are we done" tests.
56986         Handle "s" wrapping around zero and extremely large "size".
56987         Correct main loop count.  Handle single left-over word from main
56988         loop inline rather than by using small_loop.  Correct comments.
56989         Delete "zero" tail, use "end_max" instead.
56990         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
56991
56992 2013-10-04  Alan Modra  <amodra@gmail.com>
56993
56994         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
56995         support.  Don't branch over align.
56996         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
56997         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
56998         support.  Rearrange tmp reg use to suit.  Comment.
56999         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
57000
57001 2013-10-04  Alan Modra  <amodra@gmail.com>
57002
57003         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
57004
57005 2013-10-04  Alan Modra  <amodra@gmail.com>
57006
57007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
57008         conditional form of branch and link when obtaining pc.
57009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
57010
57011 2013-10-04  Alan Modra  <amodra@gmail.com>
57012
57013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
57014         HIWORD/LOWORD.
57015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
57016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
57017
57018 2013-10-04  Alan Modra  <amodra@gmail.com>
57019
57020         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
57021         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
57022         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
57023         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
57024         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
57025         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
57026         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
57027         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
57028         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
57029         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
57030
57031 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57032             Alistair Popple <alistair@ozlabs.au.ibm.com>
57033             Alan Modra <amodra@gmail.com>
57034
57035         [BZ #15723]
57036         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
57037         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
57038         _dl_hwcap access for little-endian.
57039         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
57040         destroy vmx regs when saving unaligned.
57041         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
57042         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
57043         destroy vmx regs when saving unaligned.
57044
57045 2013-10-04  Alan Modra  <amodra@gmail.com>
57046
57047         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
57048         Don't use a union to pack hi/low value.
57049
57050 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57051
57052         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
57053         for little-endian.
57054         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
57055         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
57056         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
57057         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
57058         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
57059
57060 2013-10-04  Alan Modra  <amodra@gmail.com>
57061
57062         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
57063         constants to usual value for .cst8 section, and remove redundant
57064         high address load.
57065         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
57066         constant for 0x1p52.  Load little-endian words of double from
57067         correct stack offsets.
57068
57069 2013-10-04  Alan Modra  <amodra@gmail.com>
57070
57071         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
57072         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
57073         words of double from correct stack offsets.
57074         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
57075         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
57076         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
57077         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
57078         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
57079         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
57080         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
57081         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
57082         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
57083         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
57084         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
57085         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
57086         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
57087         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
57088         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
57089         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
57090         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
57091
57092 2013-10-04  Alan Modra  <amodra@gmail.com>
57093
57094         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
57095         64-bit int/double union.
57096         (_FPU_SETCW): Likewise.
57097         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
57098         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
57099
57100 2013-10-04  Alan Modra  <amodra@gmail.com>
57101
57102         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
57103         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
57104
57105 2013-10-04  Alan Modra  <amodra@gmail.com>
57106
57107         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
57108         use vector int constants.
57109         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
57110
57111 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57112
57113         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
57114         array with long long.
57115         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
57116         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
57117         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
57118         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
57119         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
57120         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
57121         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
57122         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
57123         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
57124         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
57125         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
57126         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
57127         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
57128
57129 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57130
57131         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
57132         (__signbit): Likewise.  Correct for little-endian.
57133         (__signbitl): Call __signbit.
57134         (lrint): Correct for little-endian.
57135         (lrintf): Call lrint.
57136
57137 2013-10-04  Alan Modra  <amodra@gmail.com>
57138
57139         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
57140         union 32-bit int array member with 64-bit int array.
57141         (t515, tm256): Double rather than long double.
57142         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
57143
57144 2013-10-04  Alan Modra  <amodra@gmail.com>
57145
57146         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
57147         Delete.
57148         (IEEE854_LONG_DOUBLE_BIAS): Delete.
57149         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
57150         version of math_ldbl.h.
57151
57152 2013-10-04  Alan Modra  <amodra@gmail.com>
57153
57154         [BZ #15734], [BZ #15735]
57155         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
57156         all uses of ieee875 long double macros and unions.  Simplify test
57157         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
57158         ldbl_extract_mantissa value for ix,iy exponents.  Properly
57159         normalize after ldbl_extract_mantissa, and don't add hidden bit
57160         already handled.  Don't treat low word of ieee854 mantissa like
57161         low word of IBM long double and mask off bit when testing for
57162         zero.
57163         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
57164         all uses of ieee875 long double macros and unions.  Simplify tests
57165         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
57166         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
57167         two1022, instead use their values.  Recognise that tests for large
57168         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
57169         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
57170         Rewrite all uses of ieee875 long double macros and unions.  Simplify
57171         test for 0.0L and nan.  Correct negation.
57172         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
57173         ieee875 long double macros and unions.  Correct output for large
57174         magnitude x.  Correct absolute value calculation.
57175         (__erfcl): Likewise.
57176         * math/libm-test.inc: Add tests for errors discovered in IBM long
57177         double versions of fmodl, remainderl, erfl and erfcl.
57178
57179 2013-10-04  Alan Modra  <amodra@gmail.com>
57180
57181         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
57182         all uses of ieee854 long double macros and unions.  Simplify tests
57183         for long doubles that are fully specified by the high double.
57184         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
57185         Likewise.
57186         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
57187         Remove dead code too.
57188         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
57189         (__ieee754_ynl): Likewise.
57190         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
57191         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
57192         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
57193         Remove dead code too.
57194         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
57195         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
57196         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
57197         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
57198         Simplify.
57199         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
57200         Simplify.
57201         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
57202         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
57203         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
57204         Comment on variable precision.
57205         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
57206         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
57207         Likewise.
57208         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
57209         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
57210         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
57211         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
57212         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
57213
57214 2013-10-04  Alan Modra  <amodra@gmail.com>
57215
57216         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
57217         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
57218         all uses of ieee854 long double macros and unions.
57219         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
57220         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
57221         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
57222         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
57223         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
57224         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
57225         Likewise.
57226         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
57227         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
57228         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
57229         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
57230         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
57231         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
57232         Simplify sign and nan test too.
57233         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
57234         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
57235         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
57236         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
57237         Likewise.
57238         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
57239         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
57240         Likewise.
57241         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
57242         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
57243         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
57244         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
57245         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
57246         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
57247
57248 2013-10-04  Alan Modra  <amodra@gmail.com>
57249
57250         * stdio-common/printf_size.c (__printf_size): Don't use
57251         union ieee854_long_double in fpnum union.
57252         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
57253         signbit macro to retrieve sign from long double.
57254         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
57255         retrieve sign from long double.
57256         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
57257         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
57258         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
57259         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
57260         * math/test-misc.c (main): Don't use union ieee854_long_double.
57261
57262 2013-10-04  Alan Modra  <amodra@gmail.com>
57263
57264         [BZ #15680]
57265         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
57266         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
57267         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
57268         calculation.  Remove unnecessary test for denormal exponent.
57269         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
57270         Correct handling of denormals.  Avoid undefined shift behaviour.
57271         Correct normalisation of low mantissa when low double is denormal.
57272         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
57273         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
57274         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
57275         Correct normalisation of low mantissa.  Test for overflow of high
57276         mantissa and normalise.
57277         (ldbl_nearbyint): Use more readable constant for two52.
57278         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
57279         (__mpn_construct_long_double): Fix test for overflow of high
57280         mantissa and correct normalisation.  Avoid undefined shift.
57281
57282 2013-10-04  Alan Modra  <amodra@gmail.com>
57283
57284         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
57285         (union ibm_extended_long_double): Define as an array of ieee754_double.
57286         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
57287         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
57288         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
57289         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
57290         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
57291         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
57292         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
57293         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
57294         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
57295         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
57296         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57297
57298 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
57299
57300         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
57301         page size instead of calling getpagesize.
57302
57303         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
57304         (LOCFILE_ALIGN_MASK): Likewise.
57305         (LOCFILE_ALIGN_UP): Likewise.
57306         (LOCFILE_ALIGNED_P): Likewise.
57307         * locale/programs/ld-collate.c (collate_output): Use the new
57308         macros instead of __alignof__ (int32_t).
57309         * locale/weight.h (findidx): Likewise.
57310
57311 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
57312
57313         [BZ #431]
57314         * manual/string.texi: Fix strncat and wcsncat.
57315
57316 2013-10-03  Brooks Moses  <bmoses@google.com>
57317
57318         [BZ #15915]
57319         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
57320         * Makerules: ...here, and adjust associated comments.
57321
57322 2013-10-02  Will Newton  <will.newton@linaro.org>
57323
57324         * malloc/Makefile: Add tst-pvalloc.
57325         * malloc/tst-pvalloc.c: New file.
57326
57327 2013-10-02  Will Newton  <will.newton@linaro.org>
57328
57329         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
57330         improve test coverage.
57331
57332 2013-10-02  Will Newton  <will.newton@linaro.org>
57333
57334         * malloc/Makefile: Add tst-posix_memalign.
57335         * malloc/tst-posix_memalign.c: New file.
57336
57337 2013-10-01  Eric Blake  <eblake@redhat.com>
57338
57339         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
57340         Use __THROWNL rather than __THROW on static functions.
57341
57342 2013-09-30  Petr Machata  <pmachata@redhat.com>
57343
57344         * elf/elf.h (R_AARCH64_ABS16): New macro.
57345         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
57346         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
57347         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
57348         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
57349         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
57350         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
57351         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
57352         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
57353         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
57354         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
57355         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
57356         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
57357         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
57358         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
57359         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
57360         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
57361         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
57362         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
57363         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
57364         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
57365         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
57366         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
57367         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
57368         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
57369         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
57370         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
57371         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
57372         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
57373         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
57374         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
57375         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
57376         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
57377         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
57378         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
57379         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
57380         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
57381         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
57382         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
57383         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
57384         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
57385         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
57386         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
57387         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
57388         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
57389         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
57390         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
57391         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
57392         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
57393         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
57394         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
57395         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
57396         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
57397         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
57398         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
57399         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
57400         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
57401         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
57402         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
57403         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
57404         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
57405         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
57406         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
57407         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
57408         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
57409         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
57410         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
57411         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
57412         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
57413         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
57414         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
57415         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
57416         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
57417         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
57418         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
57419         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
57420         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
57421         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
57422         (R_AARCH64_TLSDESC_LDR): Likewise.
57423         (R_AARCH64_TLSDESC_ADD): Likewise.
57424         (R_AARCH64_TLSDESC_CALL): Likewise.
57425
57426 2013-09-30  Andreas Schwab  <schwab@suse.de>
57427
57428         [BZ #15048]
57429         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
57430         the nss database lookup.
57431         * nscd/initgrcache.c (addinitgroupsX): Likewise.
57432         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
57433
57434 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
57435
57436         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
57437
57438 2013-09-28  P. J. McDermott  <pj@pehjota.net>
57439
57440         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
57441         ${Bash-specific parameter/pattern/string} parameter expansion.
57442         * sysdeps/unix/make-syscalls.sh: Likewise.
57443
57444 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
57445
57446         * sysdeps/sh/stackguard-macros.h: New file.
57447
57448 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
57449
57450         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
57451         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
57452         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
57453         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
57454         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57455         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
57456
57457 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57458
57459         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
57460         Fix thread ID register.
57461
57462 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
57463
57464         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
57465         [POSIX || UNIX98]: Require rather than permitting all symbols from
57466         <time.h>.
57467         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
57468         element of struct sched_param.
57469         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
57470         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
57471         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
57472         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
57473         constant.
57474
57475 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
57476
57477         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
57478         argument calculation.
57479
57480 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
57481
57482         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
57483         Expect macro.
57484         [POSIX] (pthread_attr_t): Do not require type.
57485         [POSIX] (pthread_cond_t): Likewise.
57486         [POSIX] (pthread_condattr_t): Likewise.
57487         [POSIX] (pthread_key_t): Likewise.
57488         [POSIX] (pthread_mutex_t): Likewise.
57489         [POSIX] (pthread_mutexattr_t): Likewise.
57490         [POSIX] (pthread_once_t): Likewise.
57491         [POSIX] (pthread_t): Likewise.
57492         [POSIX-based standards] (pthread_atfork): Expect function.
57493
57494 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
57495             Richard Sandiford  <richard@codesourcery.com>
57496
57497         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
57498         (swap_endianness_p): New extern variable.
57499         (set_big_endian): New inline function.
57500         (maybe_swap_uint32): Likewise.
57501         (maybe_swap_uint32_array): Likewise.
57502         (maybe_swap_uint32_obstack): Likewise.
57503         * locale/programs/locfile.c: Include <stdbool.h>.
57504         (swap_endianness_p): New variable.
57505         (add_locale_uint32): Call maybe_swap_uint32.
57506         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
57507         (write_locale_data): Call maybe_swap_uint32_array.
57508         * locale/programs/ld-collate.c (obstack_int32_grow): Call
57509         maybe_swap_uint32.
57510         (obstack_int32_grow_fast): Likewise.
57511         (output_weightwc): Call maybe_swap_uint32_obstack.
57512         (collate_output): Likewise.
57513         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
57514         (OPT_LITTLE_ENDIAN): Likewise.
57515         (options): Add --little-endian and --big-endian options.
57516         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
57517         * locale/programs/locarchive.c: Include "locfile.h".
57518         (GET): New macro.
57519         (SET): Likewise.
57520         (INC): Likewise.
57521         (create_archive): Use the new macros to access fields of
57522         structures directly mapped from or written to locale archives.
57523         (oldlocrecentcmp): Likewise.
57524         (enlarge_archive): Likewise.
57525         (insert_name): Likewise.
57526         (add_alias): Likewise.
57527         (add_locale): Likewise.
57528         (delete_locales_from_archive): Likewise.
57529         (show_archive_content): Likewise.
57530         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
57531         locale data.
57532
57533 2013-09-24  Roland McGrath  <roland@hack.frob.com>
57534
57535         * manual/freemanuals.texi: Updated from (newly) canonical copy at
57536         http://www.gnu.org/doc/freemanuals.texi.
57537         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
57538
57539 2013-09-24  Will Newton  <will.newton@linaro.org>
57540
57541         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
57542         macro.
57543
57544 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
57545
57546         * locale/hashval.h (compute_hashval): Interpret bytes of key as
57547         unsigned char.
57548
57549 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
57550
57551         * manual/threads.texi (POSIX Threads): Fix a typo.
57552
57553 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
57554
57555         [BZ #14547]
57556         * string/tst-strcoll-overflow.c: New test case.
57557         * string/Makefile (xtests): Add tst-strcoll-overflow.
57558         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
57559         cache if string sizes may cause integer overflow.
57560
57561         [BZ #14547]
57562         * string/strcoll_l.c (coll_seq): New members rule, idx,
57563         save_idx and back_us.
57564         (get_next_seq_nocache): New function.
57565         (do_compare_nocache): New function.
57566         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
57567         when malloc fails.
57568
57569 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
57570
57571         [BZ #15754]
57572         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
57573         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
57574         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
57575
57576         [BZ #15754]
57577         * elf/Makefile (tests): Add tst-ptrguard1.
57578         (tests-static): Add tst-ptrguard1-static.
57579         (tst-ptrguard1-ARGS): Define.
57580         (tst-ptrguard1-static-ARGS): Define.
57581         * elf/tst-ptrguard1.c: New file.
57582         * elf/tst-ptrguard1-static.c: New file.
57583         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
57584         * sysdeps/i386/stackguard-macros.h: Likewise.
57585         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
57586         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
57587         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
57588         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
57589         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
57590         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
57591
57592 2013-09-23  Hector Marco  <hecmargi@upv.es>
57593             Ismael Ripoll  <iripoll@disca.upv.es>
57594             Carlos O'Donell  <carlos@redhat.com>
57595
57596         [BZ #15754]
57597         * sysdeps/generic/stackguard-macros.h: Define
57598         __pointer_chk_guard_local and POINTER_CHK_GUARD.
57599         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
57600         Define __pointer_chk_guard_local.
57601         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
57602         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
57603
57604 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
57605
57606         [BZ #15859]
57607         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
57608
57609 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
57610
57611         * include/string.h (__ffs): Declare as hidden.
57612         * string/ffs.c (__ffs): Define as hidden.
57613         * sysdeps/i386/ffs.c (__ffs): Likewise.
57614         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
57615         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
57616         * sysdeps/s390/ffs.c (__ffs): Likewise.
57617         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
57618
57619 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
57620
57621         * NEWS: Mention malloc probes.
57622
57623         * malloc/arena.c (new_heap): New memory_heap_new probe.
57624         (grow_heap): New memory_heap_more probe.
57625         (shrink_heap): New memory_heap_less probe.
57626         (heap_trim): New memory_heap_free probe.
57627         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
57628         (systrim): New memory_sbrk_less probe.
57629         * manual/probes.texi: Document them.
57630
57631         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
57632         * manual/probes.texi: Document it.
57633
57634         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
57635         (__libc_realloc): Add memory_realloc_retry probe.
57636         (__libc_memalign): Add memory_memalign_retry probe.
57637         (__libc_valloc): Add memory_valloc_retry probe.
57638         (__libc_pvalloc): Add memory_pvalloc_retry probe.
57639         (__libc_calloc): Add memory_calloc_retry probe.
57640         * manual/probes.texi: Document them.
57641
57642         * malloc/arena.c (get_free_list): Add probe
57643         memory_arena_reuse_free_list.
57644         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
57645         and memory_arena_reuse.
57646         (arena_get2) [!PER_THREAD]: Likewise.
57647         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
57648         memory_arena_reuse_realloc.
57649         * manual/probes.texi: Document them.
57650
57651         * malloc/malloc.c (__libc_free): Add
57652         memory_mallopt_free_dyn_thresholds probe.
57653         (__libc_mallopt): Add multiple memory_mallopt probes.
57654         * manual/probes.texi: Document them.
57655
57656         * malloc/malloc.c: Include stap-probe.h.
57657         (__libc_mallopt): Add memory_mallopt probe.
57658         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
57659         * manual/probes.texi: New.
57660         * manual/Makefile (chapters): Add probes.
57661         * manual/threads.texi: Set next node.
57662
57663 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
57664
57665         [BZ #15963, #13985]
57666         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
57667         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
57668         Add `Chinese' to `nan' entry name.
57669
57670 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57671
57672         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
57673         (POLYNOMIAL): Likewise.
57674         (TAYLOR_SINCOS): Likewise.
57675         (TAYLOR_SLOW): Likewise.
57676         (__sin): Use TAYLOR_SINCOS.
57677         (__cos): Likewise.
57678         (slow): Use TAYLOR_SLOW.
57679         (sloww): Likewise.
57680         (bsloww): Likewise.
57681         (csloww): Likewise.
57682
57683 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
57684
57685         * stdlib/strtod_l.c: Fix buffer overrun.
57686
57687 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57688
57689         * benchtests/Makefile (bench): Add sincos.
57690         * benchtests/bench-sincos.c: New file.
57691
57692         * math/libm-test.inc (cos_test_data): New test inputs.
57693         (sin_test_data): Likewise.
57694
57695         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
57696         macro.
57697         (__sin): Use it.
57698         (__cos): Likewise.
57699         (slow1): Likewise.
57700         (slow2): Likewise.
57701         (sloww1): Likewise.
57702         (sloww2): Likewise.
57703         (bsloww1): Likewise.
57704         (bsloww2): Likewise.
57705         (cslow2): Likewise.
57706         (csloww1): Likewise.
57707         (csloww2): Likewise.
57708
57709         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
57710         function.
57711         (__sin): Use it.
57712         (__cos): Likewise.
57713
57714         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
57715         gotos.
57716         (__cos): Likewise.
57717
57718 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
57719
57720         * config.h.in (HAVE_MIPS_NAN2008): New macro.
57721         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
57722         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
57723         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
57724         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
57725         * elf/cache.c (print_entry): Handle the new cache flags.
57726
57727 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
57728             Aldy Hernandez  <aldyh@redhat.com>
57729
57730         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
57731         Change condition to [_SOFT_FLOAT].
57732         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
57733         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
57734         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
57735         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
57736         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
57737         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
57738         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
57739         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
57740         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
57741         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
57742         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
57743         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
57744         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
57745         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
57746         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
57747         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
57748         declaration.
57749
57750 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
57751
57752         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
57753         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
57754         (__longjmp): Use LOAD_GP to load saved GPRs.
57755         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
57756         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
57757         (__sigsetjmp): Use SAVE_GP to save GPRs.
57758
57759         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
57760         Do not append -msoft-float.
57761         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
57762
57763 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57764
57765         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
57766
57767 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
57768
57769         [BZ #15966]
57770         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
57771         (_FPU_GETCW): Use initial "__" on variable and field names but not
57772         on macro parameter name.
57773         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
57774         parentheses around reference to macro parameter.
57775
57776 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
57777
57778         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
57779         prototype.
57780         (ctype_startup): Use uint32_t in cast and sizeof for
57781         ctype->charnames.
57782
57783 2013-09-11  Jia Liu  <proljc@gmail.com>
57784
57785         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
57786         __daddr_t_defined.
57787         [__FreeBSD__]: Likewise.
57788
57789 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
57790
57791         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
57792         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
57793         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
57794         (strchr): Remove __strchr_sse42 ifunc selection.
57795         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
57796         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
57797
57798 2013-09-11  Will Newton  <will.newton@linaro.org>
57799
57800         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
57801         parameter to RES. Remove hardcoded 1000 value.
57802         * benchtests/bench-skeleton.c (main): Pass RES parameter
57803         to TIMING_INIT and multiply result by 1000.
57804
57805 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57806
57807         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
57808
57809 2013-09-11  Andreas Schwab  <schwab@suse.de>
57810
57811         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
57812         if not defined.
57813         (O_TMPFILE) [__USE_GNU]: Define.
57814         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
57815         Define.
57816
57817 2013-09-11  Will Newton  <will.newton@linaro.org>
57818
57819         [BZ #15857]
57820         * malloc/malloc.c (__libc_memalign): Check the value of bytes
57821         does not overflow.
57822
57823 2013-09-11  Will Newton  <will.newton@linaro.org>
57824
57825         [BZ #15856]
57826         * malloc/malloc.c (__libc_valloc): Check the value of bytes
57827         does not overflow.
57828
57829 2013-09-11  Will Newton  <will.newton@linaro.org>
57830
57831         [BZ #15855]
57832         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
57833         does not overflow.
57834
57835 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
57836
57837         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
57838         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
57839         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
57840         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
57841         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
57842
57843 2013-09-10  Allan McRae  <allan@archlinux.org>
57844
57845         [BZ #15748]
57846         * manual/arith.texi (Parsing of Floats): Clarify
57847         cross-reference.
57848
57849         [BZ #15849]
57850         * manual/install.texi (Running make install): Mention
57851         --enable-pt-chown.
57852         * INSTALL: Regenerated.
57853
57854 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
57855
57856         * csu/init-first.c (_init): Remove the !SHARED condition around
57857         FPU control word initialization.
57858         * elf/dl-support.c (_dl_fpu_control): New variable.
57859         (_dl_aux_init) <AT_FPUCW>: Initialize it.
57860         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
57861         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
57862         * math/test-fpucw-static.c: New file.
57863         * math/test-fpucw-ieee.c: New file.
57864         * math/test-fpucw-ieee-static.c: New file.
57865         * math/Makefile (tests): Add `test-fpucw-ieee' and
57866         `$(tests-static)'.
57867         (tests-static): New variable.
57868         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
57869         dependency to...
57870         [($(build-shared),yes)]
57871         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
57872         ... this.
57873         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
57874         New dependency.
57875
57876 2013-09-09  Allan McRae  <allan@archlinux.org>
57877
57878         [BZ #15939]
57879         * manual/string.texi (Collation Functions): Fix typo in
57880         strcoll example.
57881         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
57882
57883         [BZ #15893]
57884         * stdlib/isomac.c (get_null_defines): Fix memory leak.
57885
57886         [BZ #15892]
57887         * libio/memstream.c (open_memstream): Fix memory leak.
57888         * libio/wmemstream.c (open_wmemstream): Likewise.
57889
57890         [BZ #15895]
57891         * nscd/netgroupcache.c: Fix nesting of ifdefs.
57892
57893 2013-09-09  Will Newton  <will.newton@linaro.org>
57894
57895         * malloc/Makefile: Add tst-realloc to tests.
57896         * malloc/tst-realloc.c: New file.
57897
57898 2013-09-09  Allan McRae  <allan@archlinux.org>
57899
57900         [BZ #15844]
57901         * COPYING: Update from GNU website to fix FSF address.
57902         * COPYING.LIB: Likewise.
57903
57904 2013-09-06  David S. Miller  <davem@davemloft.net>
57905
57906         * po/zh_TW.po: Update Chinese (traditional) translation from
57907         translation project.
57908
57909 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
57910             Joseph Myers  <joseph@codesourcery.com>
57911
57912         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
57913         "localeinfo.h".
57914         (obstack_chunk_alloc): New macro.
57915         (obstack_chunk_free): Likewise.
57916         (record_offset): New function.
57917         (init_locale_data): Likewise.
57918         (align_locale_data): Likewise.
57919         (add_locale_empty): Likewise.
57920         (add_locale_raw_data): Likewise.
57921         (add_locale_raw_obstack): Likewise.
57922         (add_locale_string): Likewise.
57923         (add_locale_wstring): Likewise.
57924         (add_locale_uint32): Likewise.
57925         (add_locale_uint32_array): Likewise.
57926         (add_locale_char): Likewise.
57927         (start_locale_structure): Likewise.
57928         (end_locale_structure): Likewise.
57929         (start_locale_prelude): Likewise.
57930         (end_locale_prelude): Likewise.
57931         (write_locale_data): Take locale_file structure rather than an
57932         iovec.
57933         * locale/programs/locfile.h: Include "obstack.h".
57934         (struct locale_file): Change to store locale file contents instead
57935         of header.
57936         (init_locale_data): New prototype.
57937         (align_locale_data): Likewise.
57938         (add_locale_empty): Likewise.
57939         (add_locale_raw_data): Likewise.
57940         (add_locale_raw_obstack): Likewise.
57941         (add_locale_string): Likewise.
57942         (add_locale_wstring): Likewise.
57943         (add_locale_uint32): Likewise.
57944         (add_locale_uint32_array): Likewise.
57945         (add_locale_char): Likewise.
57946         (start_locale_structure): Likewise.
57947         (end_locale_structure): Likewise.
57948         (start_locale_prelude): Likewise.
57949         (end_locale_prelude): Likewise.
57950         (write_locale_data): Update prototype.
57951         * locale/programs/3level.h (struct TABLE): Remove result field.
57952         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
57953         Use new locale_file interface.
57954         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
57955         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
57956         * locale/programs/ld-address.c (address_output): Use new
57957         locale_file interface.
57958         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
57959         NO_ADD_LOCALE.
57960         (collate_finish): Don't call collseq_table_finalize.
57961         (collate_output): Use new locale_file interface.
57962         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
57963         in file.
57964         (NO_FINALIZE): Change to NO_ADD_LOCALE.
57965         (TABLE): Move defines earlier in file.
57966         (ELEMENT): Likewise.
57967         (DEFAULT): Likewise.
57968         (wctrans_table_add): Move macro and inline function earlier in
57969         file.
57970         (struct wctype_table): Move type earlier in file.
57971         (add_locale_wctype_table): New static prototype.
57972         (struct locale_ctype_t): Use logical types instead of struct iovec
57973         pointers for members.
57974         (ctype_output): Use new locale_file interface.
57975         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
57976         new locale_file interface.
57977         (allocate_arrays): Update for use of new locale_file interface.
57978         * locale/programs/ld-identification.c (identification_output): Use
57979         new locale_file interface.
57980         * locale/programs/ld-measurement.c (measurement_output): Likewise.
57981         * locale/programs/ld-messages.c (messages_output): Likewise.
57982         * locale/programs/ld-monetary.c (monetary_output): Likewise.
57983         * locale/programs/ld-name.c (name_output): Likewise.
57984         * locale/programs/ld-numeric.c (numeric_output): Likewise.
57985         * locale/programs/ld-paper.c (paper_output): Likewise.
57986         * locale/programs/ld-telephone.c (telephone_output): Likewise.
57987         * locale/programs/ld-time.c (time_output): Likewise.
57988
57989 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57990
57991         * benchtests/Makefile: Add memrchr benchmark.
57992         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
57993         benchmark as memrchr.
57994         * benchtests/bench-memrchr-ifunc.c: New file.
57995         * benchtests/bench-memrchr.c: New file.
57996
57997 2013-09-06   Will Newton  <will.newton@linaro.org>
57998
57999         * benchtests/Makefile (string-bench): Add memcpy.
58000
58001 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
58002             Cong Wang  <amwang@redhat.com>
58003
58004         [BZ #15850]
58005         * sysdeps/unix/sysv/linux/bits/in.h
58006         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
58007         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
58008         before __USE_KERNEL_IPV6_DEFS uses.
58009         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
58010         IPPROTO_BEETPH.
58011         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
58012         sockaddr_in6, or ipv6_mreq.
58013
58014 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58015
58016         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
58017         memory access for final bytes in some large inputs.
58018         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
58019
58020 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58021
58022         * string/test-memrchr.c: New file.
58023         * string/test-memrchr-ifunc.c: New file.
58024         * string/Makefile: Add new memrchr testcase.
58025
58026 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
58027
58028         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
58029         fanotify_init returns EPERM.
58030
58031 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
58032
58033         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
58034         errors.
58035         (top level): Treat second token from macro or constant entries for
58036         allowed headers as allowed.
58037         * include/complex.h: Condition internal declarations on
58038         [!_ISOMAC].
58039         * include/fenv.h: Condition include of <stdbool.h> and internal
58040         declarations on [!_ISOMAC].
58041
58042 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
58043
58044         [BZ #15923]
58045         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
58046
58047 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
58048
58049         * configure.in (--enable-versioning): Remove configure option.
58050         (libc_cv_asm_symver_directive): Remove configure test.
58051         (libc_cv_ld_version_script_option): Likewise.
58052         (VERSIONING): Remove variable and AC_SUBST.
58053         (DO_VERSIONING): Remove AC_DEFINE.
58054         * configure: Regenerated.
58055         * config.h.in (DO_VERSIONING): Remove macro.
58056         * Makerules [$(versioning) = yes]: Change conditionals to
58057         [$(build-shared) = yes].
58058         * config.make.in (versioning): Remove variable.
58059         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
58060         [$(build-shared) = yes].
58061         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
58062         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
58063         * elf/Makefile [$(versioning) = yes]: Change conditionals to
58064         [$(build-shared) = yes].
58065         * extra-lib.mk [$(versioning) = yes]: Likewise.
58066         * hurd/Makefile [$(versioning) = yes]: Likewise.
58067         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
58068         [SHARED].
58069         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
58070         [SHARED].
58071         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
58072         [SHARED && !NO_HIDDEN].
58073         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
58074         [SHARED].
58075         [SHARED && DO_VERSIONING]: Likewise..
58076         * libio/Makefile [$(versioning) = yes]: Change conditionals to
58077         [$(build-shared) = yes].
58078         * manual/install.texi (--disable-versioning): Remove
58079         documentation.
58080         * INSTALL: Regenerated.
58081         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
58082         to [SHARED].
58083         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
58084         [$(build-shared) = yes].
58085         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
58086         * sysdeps/i386/i686/multiarch/strstr-c.c
58087         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
58088         [SHARED && !NO_HIDDEN].
58089         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
58090         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
58091         * sysdeps/powerpc/powerpc32/dl-machine.c
58092         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
58093         * sysdeps/powerpc/powerpc32/sysdep.h
58094         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
58095         to [SHARED && PIC && !NO_HIDDEN].
58096         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
58097         conditional to [SHARED].
58098
58099 2013-09-04   Will Newton  <will.newton@linaro.org>
58100
58101         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
58102         * benchtests/bench-string.h: Include bench-timing.h instead
58103         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
58104         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
58105         call to HP_TIMING_DIFF_INIT.
58106         * benchtests/bench-memccpy.c: Use bench-timing.h macros
58107         instead of hp-timing.h macros.
58108         * benchtests/bench-memchr.c: Likewise.
58109         * benchtests/bench-memcmp.c: Likewise.
58110         * benchtests/bench-memcpy.c: Likewise.
58111         * benchtests/bench-memmem.c: Likewise.
58112         * benchtests/bench-memmove.c: Likewise.
58113         * benchtests/bench-memset.c: Likewise.
58114         * benchtests/bench-rawmemchr.c: Likewise.
58115         * benchtests/bench-strcasecmp.c: Likewise.
58116         * benchtests/bench-strcasestr.c: Likewise.
58117         * benchtests/bench-strcat.c: Likewise.
58118         * benchtests/bench-strchr.c: Likewise.
58119         * benchtests/bench-strcmp.c: Likewise.
58120         * benchtests/bench-strcpy.c: Likewise.
58121         * benchtests/bench-strcpy_chk.c: Likewise.
58122         * benchtests/bench-strlen.c: Likewise.
58123         * benchtests/bench-strncasecmp.c: Likewise.
58124         * benchtests/bench-strncat.c: Likewise.
58125         * benchtests/bench-strncmp.c: Likewise.
58126         * benchtests/bench-strncpy.c: Likewise.
58127         * benchtests/bench-strnlen.c: Likewise.
58128         * benchtests/bench-strpbrk.c: Likewise.
58129         * benchtests/bench-strrchr.c: Likewise.
58130         * benchtests/bench-strspn.c: Likewise.
58131         * benchtests/bench-strstr.c: Likewise.
58132
58133 2013-09-04  Will Newton  <will.newton@linaro.org>
58134
58135         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
58136
58137 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
58138
58139         [BZ #15427]
58140         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
58141         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
58142         * math/libm-test.inc (lgamma_test_data): Add more tests.
58143         * sysdeps/i386/fpu/libm-test-ulps: Update.
58144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58145
58146 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
58147
58148         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
58149         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
58150         Add ifunc.
58151         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
58152         Add strcmp-sse2-unaligned
58153         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
58154
58155 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58156
58157         * Versions.def (libc): Add GLIBC_2.19.
58158
58159 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58160
58161         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
58162         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
58163
58164 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
58165
58166         [BZ #14155]
58167         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
58168         intermediate calculations in recurrence.
58169         (__ieee754_ynf): Likewise.
58170         * math/libm-test.inc (jn_test_data): Do not allow spurious
58171         underflow exception.  Add more tests.
58172         (yn_test_data): Add more tests.
58173         * sysdeps/i386/fpu/libm-test-ulps: Update.
58174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58175
58176 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
58177
58178         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
58179
58180 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58181
58182         * csu/init-first.c: Fix then/than typos.
58183         * locale/programs/ld-collate.c: Likewise.
58184         * locale/programs/linereader.h: Likewise.
58185         * manual/charset.texi: Likewise.
58186         * manual/filesys.texi: Likewise.
58187         * manual/stdio.texi: Likewise.
58188         * manual/string.texi: Likewise.
58189         * stdlib/fmtmsg.c: Likewise.
58190         * sysdeps/i386/stpncpy.S: Likewise.
58191         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
58192         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
58193         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
58194         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
58195
58196 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58197
58198         * elf/dl-open.c: Fix typos.
58199         * iconvdata/gbbig5.c: Likewise.
58200         * iconvdata/iso-2022-jp.c: Likewise.
58201         * iconv/gconv_int.h: Likewise.
58202         * iconv/loop.c: Likewise.
58203         * nis/rpcsvc/nis.h: Likewise.
58204         * resolv/ns_name.c: Likewise.
58205         * stdio-common/vfscanf.c: Likewise.
58206         * streams/stropts.h: Likewise.
58207         * sunrpc/rpc_thread.c: Likewise.
58208         * sysdeps/i386/strpbrk.S: Likewise.
58209         * sysdeps/ieee754/k_standard.c: Likewise.
58210         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
58211         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
58212         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
58213         * sysdeps/mach/hurd/profil.c: Likewise.
58214         * sysdeps/s390/dl-procinfo.h: Likewise.
58215         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
58216         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
58217         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
58218         * sysdeps/x86_64/dl-trampoline.S: Likewise.
58219         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
58220
58221 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
58222
58223         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
58224         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
58225
58226 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
58227
58228         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
58229         aix specific files.
58230         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
58231         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
58232         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
58233         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
58234         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
58235         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
58236         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
58237         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
58238
58239 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58240             Roland McGrath  <roland@hack.frob.com>
58241
58242         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
58243         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
58244
58245 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
58246
58247         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
58248         __executable_start symbol instead of _start.
58249
58250 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58251
58252         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
58253         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
58254         Move macros to...
58255         * sysdeps/gnu/ldsodefs.h: ... this new file.
58256
58257         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
58258         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
58259         instead of ELFOSABI_LINUX.
58260
58261         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
58262         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
58263         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
58264         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
58265         Likewise.
58266         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
58267         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
58268         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
58269         Likewise.
58270         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
58271         (ibm_extended_long_double): Add ieee_nan member.
58272         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
58273         (do_test): New function.
58274
58275         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
58276         TEST_TRUNC.
58277         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
58278         functions, renamed from truncdfsf_test, trunctfsf_test,
58279         trunctfdf_test.
58280         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
58281         functions.
58282         (do_test): Run all these.
58283
58284 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
58285
58286         * argp/argp-help.c: Fix typos.
58287         * argp/argp-parse.c: Likewise.
58288         * debug/backtracesyms.c: Likewise.
58289         * elf/elf.h: Likewise.
58290         * malloc/malloc.c: Likewise.
58291         * nis/nis_print.c: Likewise.
58292         * resolv/res_comp.c: Likewise.
58293         * stdlib/stdlib.h: Likewise.
58294         * sunrpc/clnt_tcp.c: Likewise.
58295         * sunrpc/clnt_udp.c: Likewise.
58296         * sunrpc/clnt_unix.c: Likewise.
58297         * sysdeps/unix/bsd/ptsname.c: Likewise.
58298         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
58299         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
58300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
58301         Likewise.
58302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
58303         Likewise.
58304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
58305         Likewise.
58306         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
58307
58308 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
58309
58310         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
58311         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
58312
58313 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
58314
58315         [BZ #15897]
58316         * dlfcn/Makefile (tests): Add bug-dl-leaf.
58317         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
58318         ($(objpfx)bug-dl-leaf): New rule.
58319         ($(objpfx)bug-dl-leaf.so): Likewise.
58320         ($(objpfx)bug-dl-leaf.out): Likewise.
58321         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
58322         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
58323         * dlfcn/bug-dl-leaf.c: New test.
58324         * dlfcn/bug-dl-leaf-lib.c: Likewise.
58325         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
58326         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
58327         (dlclose): Likewise.
58328         (dlmopen): Likewise.
58329
58330 2013-08-27  Roland McGrath  <roland@hack.frob.com>
58331
58332         * include/netdb.h [!_ISOMAC]:
58333         Don't include <tls.h>.
58334         (h_errno, __libc_h_errno): Move declaration and macros out of
58335         [_LIBC_REENTRANT].
58336
58337         * include/resolv.h [_RESOLV_H_]:
58338         Don't include <tls.h>.
58339         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
58340         * resolv/res_libc.c: Don't include <tls.h>.
58341         (_res): Use __attribute__ ((nocommon)) in place of
58342         __attribute__ ((section (".bss"))).
58343
58344         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
58345         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
58346
58347         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
58348
58349         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
58350         only under [SIOCGIFCONF && SIOCGIFNETMASK].
58351
58352         * resolv/res_mkquery.c: Include <sys/time.h>.
58353
58354         * inet/ifreq.c: Moved to ...
58355         * sysdeps/unix/ifreq.c: ... here.
58356         * inet/ifreq.c: New file, true stub version.
58357
58358         * socket/sa_len.c: New file.
58359         * socket/Makefile (aux): Add it.
58360         * sysdeps/unix/sysv/linux/Makefile
58361         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
58362         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
58363         and #include <socket/sa_len.c>.
58364         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
58365         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
58366
58367         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
58368         * bits/socket.h: ... here.
58369
58370         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
58371         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
58372         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
58373
58374 2013-08-27  Andreas Schwab  <schwab@suse.de>
58375
58376         [BZ #15736]
58377         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
58378         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
58379         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
58380         * string/test-strcasecmp.c (test_main): Run tests in several
58381         locales.
58382         * string/test-strncasecmp.c (test_main): Likewise.
58383
58384         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
58385         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
58386         to __strcasecmp_nonascii and __strncasecmp_nonascii.
58387         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
58388         (__strncasecmp_ssse3) [PIC]: Likewise.
58389
58390 2013-08-26  Roland McGrath  <roland@hack.frob.com>
58391
58392         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
58393
58394         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
58395         instead of explicitly declaring xdecrypt.
58396         * nis/nss_nis/nis-publickey.c: Likewise.
58397
58398 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58399
58400         [BZ #15890]
58401         * nscd/aicache.c: Include res_hconf.h.
58402         (addhstaiX): Initialize res_hconf.
58403
58404 2013-08-26  Andreas Schwab  <schwab@suse.de>
58405
58406         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
58407         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
58408
58409 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58410
58411         * nscd/aicache.c (addhstaiX): Fix indentation.
58412
58413 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
58414
58415         * configure.ac: Quote $build_pt_chown test.
58416         * configure: Regenerated.
58417
58418 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
58419
58420         [BZ #15532]
58421         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
58422         * math/s_cexpf.c (__cexpf): Likewise.
58423         * math/s_cexpl.c (__cexpl): Likewise.
58424         * math/libm-test.inc (cexp_test_data): Correct expected return
58425         value for NaN + i0.  Add another test.
58426
58427 2013-08-22  David S. Miller  <davem@davemloft.net>
58428
58429         * po/ca.po: Update Catalan translation from translation project.
58430         * po/uk.po: Add Ukrainian translations from translation project.
58431
58432 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
58433
58434         [BZ #15797]
58435         * math/s_fdim.c (__fdim): Check for infinite arguments if result
58436         is infinite, not alongside NaN test.
58437         * math/s_fdimf.c (__fdimf): Likewise.
58438         * math/s_fdiml.c (__fdiml): Likewise.
58439         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
58440         errno is unchanged.
58441
58442 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
58443
58444         * argp/argp-help.c: Fix typos.
58445         * crypt/speeds.c: Likewise.
58446         * csu/check_fds.c: Likewise.
58447         * elf/dl-load.c: Likewise.
58448         * elf/dl-open.c: Likewise.
58449         * elf/reldep3.c: Likewise.
58450         * elf/reldep.c: Likewise.
58451         * elf/sprof.c: Likewise.
58452         * iconv/iconv_charmap.c: Likewise.
58453         * iconv/skeleton.c: Likewise.
58454         * iconv/strtab.c: Likewise.
58455         * io/lockf64.c: Likewise.
58456         * libio/libioP.h: Likewise.
58457         * resolv/gai_notify.c: Likewise.
58458         * resolv/ns_name.c: Likewise.
58459         * resolv/ns_samedomain.c: Likewise.
58460         * resolv/res_send.c: Likewise.
58461         * stdlib/random.c: Likewise.
58462         * sunrpc/rpc/xdr.h: Likewise.
58463         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
58464         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
58465         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
58466         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
58467         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
58468         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
58469         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
58470         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
58471         * sysdeps/mach/hurd/check_fds.c: Likewise.
58472         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
58473         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
58474         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
58475         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
58476         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
58477         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
58478         * sysdeps/pthread/aio_notify.c: Likewise.
58479         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
58480         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
58481         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
58482         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
58483         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
58484
58485 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58486
58487         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
58488         version if bit_Slow_SSE4_2 is set.
58489         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
58490         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
58491
58492 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58493
58494         [BZ #15867]
58495         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
58496         trampoline stack frame information.
58497         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
58498         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
58499         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
58500         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
58501         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
58502         * sysdeps/unix/sysv/linux/powerpc/init-first.c
58503         (_libc_vdso_platform_setup): Initialize the signal trampolines.
58504         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
58505         sa_flags value.
58506         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
58507         interrupting a syscall and set with option SA_SIGINFO.
58508
58509 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
58510
58511         [BZ #15531]
58512         * math/s_cproj.c (__cproj): Only return an infinity if one part of
58513         argument is infinite.
58514         * math/s_cprojf.c (__cprojf): Likewise.
58515         * math/s_cprojl.c (__cprojl): Likewise.
58516         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
58517         * math/libm-test.inc (cproj_test_data): Add more tests.
58518
58519         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
58520
58521         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
58522         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
58523         size.  Use __ffs to determine corresponding shift.
58524
58525 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
58526             Roland McGrath  <roland@hack.frob.com>
58527
58528         * Makefile (INSTALL): Remove trailing blank lines from output of
58529         makeinfo.
58530
58531 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58532
58533         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
58534         Align 32 bit compat elf_greg to 8 bytes.
58535
58536 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
58537
58538         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
58539
58540 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
58541
58542         * string/strcoll_l.c (coll_seq): New structure.
58543         (get_next_seq_cached): New function.
58544         (get_next_seq): New function.
58545         (do_compare): New function.
58546         (STRCOLL): Use GNU style definition.  Simplify implementation
58547         by using get_next_seq, get_next_seq_cached and do_compare.
58548
58549 2013-08-16  Florian Weimer  <fweimer@redhat.com>
58550
58551         [BZ #14699]
58552         CVE-2013-4237
58553         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
58554         member.
58555         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
58556         member.
58557         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
58558         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
58559         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
58560         conditional.
58561         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
58562         GETDENTS_64BIT_ALIGNED.
58563         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58564         * manual/filesys.texi (Reading/Closing Directory): Document
58565         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
58566         strongly.
58567         * manual/conf.texi (Limits for Files): Add portability note to
58568         NAME_MAX, PATH_MAX.
58569         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
58570
58571 2013-08-13  Andreas Schwab  <schwab@suse.de>
58572
58573         [BZ #15749]
58574         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
58575         of fabs.
58576         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
58577         LDBL_MAX_EXP >= 16384]: Add tests for it.
58578
58579 2013-08-12  David S. Miller  <davem@davemloft.net>
58580
58581         * version.h (RELEASE): Set to "development".
58582         (VERSION): Set to "2.18.90".
58583         * NEWS: Add 2.19 section.
58584
58585 2013-08-03  David S. Miller  <davem@davemloft.net>
58586
58587         * po/ko.po: Update Korean translation from translation project.
58588
58589 2013-08-01  David S. Miller  <davem@davemloft.net>
58590
58591         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
58592         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
58593         Bilka.
58594
58595 2013-07-30  David S. Miller  <davem@davemloft.net>
58596
58597         * po/fr.po: Update French translation from translation project.
58598
58599 2013-07-28  David S. Miller  <davem@davemloft.net>
58600
58601         * po/cs.po: Update Czech translation from translation project.
58602
58603         * po/sv.po: Update Swedish translation from translation project.
58604
58605 2013-07-27  David S. Miller  <davem@davemloft.net>
58606
58607         * po/eo.po: Update Esperanto translation from translation project.
58608
58609         * po/vi.po: Update Vietnamese translation from translation project.
58610
58611         * po/de.po: Update German translation from translation project.
58612
58613 2013-07-26  David S. Miller  <davem@davemloft.net>
58614
58615         * po/bg.po: Update Bulgarian translation from translation project.
58616
58617         * po/nl.po: Update Dutch translation from translation project.
58618         * po/pl.po: Update Polish translation from translation project.
58619         * po/ru.po: Update Russian translation from translation project.
58620
58621 2013-07-24  David S. Miller  <davem@davemloft.net>
58622
58623         * po/libc.pot: Update.
58624
58625 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58626
58627         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
58628         variable page size.
58629         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
58630         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
58631         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
58632
58633 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58634
58635         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
58636
58637 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
58638             Andreas Schwab  <schwab@suse.de>
58639             Roland McGrath  <roland@hack.frob.com>
58640             Joseph Myers  <joseph@codesourcery.com>
58641             Carlos O'Donell  <carlos@redhat.com>
58642
58643         [BZ #15755]
58644         * config.h.in: Define HAVE_PT_CHOWN.
58645         * config.make.in (build-pt-chown): New variable.
58646         * configure.in (--enable-pt_chown): New configure option.
58647         * configure: Regenerate.
58648         * login/Makefile: Include Makeconfig.  Build pt_chown only if
58649         build-pt-chown is enabled.
58650         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
58651         pt_chown to fix pty ownership.
58652         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
58653         CLOSE_ALL_FDS.
58654         * manual/install.texi (Configuring and compiling): Mention
58655         --enable-pt_chown. Add @findex for grantpt.
58656         * INSTALL: Regenerate.
58657
58658 2013-07-20  David S. Miller  <davem@davemloft.net>
58659
58660         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
58661         difference between 32-bit and 64-bit.
58662
58663 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
58664
58665         [BZ #15711]
58666         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
58667         Avoid system header dependency with -ffreestanding.
58668         ($(objpfx)bits/syscall%d): Likewise.
58669
58670 2013-07-13  David S. Miller  <davem@davemloft.net>
58671
58672         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
58673         underflows from atanl/atan2l due to bug 15319.
58674         (casinh_test_data): Likewise.
58675
58676 2013-07-07  David S. Miller  <davem@davemloft.net>
58677
58678         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
58679
58680 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
58681
58682         * sysdeps/i386/fpu/libm-test-ulps: Update.
58683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58684
58685 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
58686
58687         * configure.in (--enable-lock-elision): Fix message text.
58688         * INSTALL: Regenerate.
58689         * configure: Regenerate.
58690
58691 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58692
58693         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58694
58695 2013-07-03  Andreas Jaeger  <aj@suse.de>
58696
58697         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
58698         define.
58699         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
58700         (ptrace_peeksiginfo_args): Add.
58701         (__ptrace_peeksiginfo_flags): Add.
58702         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
58703         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
58704         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
58705
58706 2013-07-03  Allan McRae  <allan@archlinux.org>
58707
58708         * sysdeps/i386/fpu/libm-test-ulps: Update.
58709
58710 2013-07-02  David S. Miller  <davem@davemloft.net>
58711
58712         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58713
58714 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
58715
58716         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58717
58718 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
58719
58720         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
58721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58722
58723 2013-07-02  Andi Kleen <ak@linux.intel.com>
58724
58725         * config.h.in (ENABLE_LOCK_ELISION): Add.
58726         * configure.in (--enable-lock-elision): Add option.
58727         * manual/install.texi: Document --enable lock elision.
58728         * configure: Regenerate
58729         * INSTALL: Regenerate.
58730
58731 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
58732
58733         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
58734         SSE4.2 strcasecmp for libc.a.
58735         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
58736
58737 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
58738
58739         [BZ #13304]
58740         * soft-fp/op-common.h (_FP_FMA): New macro.
58741         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
58742         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
58743         (_FP_MUL_MEAT_1_imm): ... here.
58744         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
58745         (_FP_MUL_MEAT_1_wide): ... here.
58746         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
58747         (_FP_MUL_MEAT_1_hard): ... here.
58748         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
58749         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
58750         (_FP_MUL_MEAT_2_wide): ... here.
58751         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
58752         (_FP_MUL_MEAT_2_wide_3mul): ... here.
58753         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
58754         (_FP_MUL_MEAT_2_gmp): ... here.
58755         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
58756         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
58757         (_FP_MUL_MEAT_4_wide): ... here.
58758         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
58759         (_FP_MUL_MEAT_4_gmp): ... here.
58760         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
58761         (_FP_WFRACBITS_DW_S): Likewise.
58762         (_FP_WFRACXBITS_DW_S): Likewise.
58763         (_FP_HIGHBIT_DW_S): Likewise.
58764         (FP_FMA_S): Likewise.
58765         (_FP_FRAC_HIGH_DW_S): Likewise.
58766         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
58767         (_FP_WFRACBITS_DW_D): Likewise.
58768         (_FP_WFRACXBITS_DW_D): Likewise.
58769         (_FP_HIGHBIT_DW_D): Likewise.
58770         (FP_FMA_D): Likewise.
58771         (_FP_FRAC_HIGH_DW_D): Likewise.
58772         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
58773         (_FP_WFRACBITS_DW_E): Likewise.
58774         (_FP_WFRACXBITS_DW_E): Likewise.
58775         (_FP_HIGHBIT_DW_E): Likewise.
58776         (FP_FMA_E): Likewise.
58777         (_FP_FRAC_HIGH_DW_E): Likewise.
58778         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
58779         (_FP_WFRACBITS_DW_Q): Likewise.
58780         (_FP_WFRACXBITS_DW_Q): Likewise.
58781         (_FP_HIGHBIT_DW_Q): Likewise.
58782         (FP_FMA_Q): Likewise.
58783         (_FP_FRAC_HIGH_DW_Q): Likewise.
58784         * soft-fp/fmasf4.c: New file.
58785         * soft-fp/fmadf4.c: Likewise.
58786         * soft-fp/fmatf4.c: Likewise.
58787
58788 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58789
58790         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
58791         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
58792         Silvermont.
58793         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
58794         macro.
58795         (index_Slow_SSE4_2): Likewise.
58796         (index_Prefer_PMINUB_for_stringop): Likewise.
58797         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
58798         bit_Slow_SSE4_2 is set.
58799         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
58800         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
58801
58802 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58803
58804         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
58805         rtld_global._dl_hwcap2.
58806         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
58807         POWER8.
58808         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
58809         POWER8 feature descriptions defined in _dl_hwcap2.
58810         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
58811         string handling for POWER8 feature bits.
58812         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
58813         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
58814         _dl_powerpc_cap_flags.
58815         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
58816         * sysdeps/powerpc/rtld-global-offsets.sym
58817         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
58818         _dl_hwcap2 in the rtld_global_ro structure.
58819
58820 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58821
58822         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
58823         hardware capabilities in support of AT_HWCAP2.
58824         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
58825         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
58826         GLRO(dl_hwcap2).
58827         (_dl_show_auxv): Add support for calling _dl_procinfo to display
58828         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
58829         explicitly the unknown a_type display mechanism is used.
58830         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
58831         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
58832         struct member.
58833         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
58834         to macro prototype for AT_HWCAP2 support.
58835         * sysdeps/i386/dl-procinfo.h: Likewise.
58836         * sysdeps/s390/dl-procinfo.h: Likewise.
58837         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
58838         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
58839         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
58840         return -1 for unknown a_type display fallback.
58841         * sysdeps/sparc/dl-procinfo.h: Likewise.
58842         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
58843         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
58844
58845 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
58846
58847         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
58848         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
58849
58850 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
58851
58852         [BZ #12492]
58853         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
58854         mprotect making __stack_prot writable.
58855
58856 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
58857             Joseph Myers  <joseph@codesourcery.com>
58858
58859         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
58860         as being properly aligned.
58861
58862 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
58863
58864         * dlfcn/modstatic5.c: New file.
58865         * dlfcn/tststatic5.c: New file.
58866         * dlfcn/Makefile (tests): Add tststatic5.
58867         (tests-static): Likewise.
58868         (modules-names): Add modstatic5.
58869         (tststatic5-ENV): New variable.
58870         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
58871
58872         [BZ #15022]
58873         * elf/dl-support.c (_dl_main_map): New variable.
58874         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
58875         (_dl_nns, _dl_load_adds): Set to 1.
58876         (_dl_initial_searchlist): Refer to _dl_main_map.
58877         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
58878         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
58879         call to _dl_get_origin.
58880         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
58881         around call_map.
58882         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
58883         * dlfcn/modstatic3.c: New file.
58884         * dlfcn/tststatic3.c: New file.
58885         * dlfcn/tststatic4.c: New file.
58886         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
58887         (tests-static): Likewise.
58888         (modules-names): Add modstatic3.
58889         (tststatic3-ENV, tststatic4-ENV): New variables.
58890         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
58891         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
58892
58893 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
58894
58895         * configure.in (CC): Require GCC version 4.4 or later.
58896         * configure: Regenerated.
58897         * manual/install.texi (Tools for Compilation): Update GCC version
58898         requirement.
58899         * INSTALL: Regenerated.
58900
58901 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58902
58903         [BZ #15674]
58904         * string/test-memcmp.c (check2): New.
58905         (main): Call check2.
58906
58907         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
58908
58909 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
58910
58911         [BZ #15022]
58912         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
58913         over to...
58914         (dl_open_worker) [!SHARED]: ... here.
58915
58916 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58917
58918         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
58919
58920 2013-06-25  Richard Henderson  <rth@redhat.com>
58921
58922         * locale/programs/locarchive.c: Include <libc-internal.h>
58923
58924 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
58925
58926         * manual/texinfo.tex: Update to version 2013-06-21.17, with
58927         trailing whitespace removed.
58928
58929 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
58930
58931         [BZ #10283]
58932         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
58933         * locale/programs/locarchive.c: Include libc-mmap.h.
58934         (prepare_address_space): Take two new outputs (the mmap base and len).
58935         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
58936         values.
58937         (create_archive): Declare new mmap base and len values for
58938         prepare_address_space, and store the result in ah.
58939         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
58940         (enlarge_archive): If ah->mmap_base is not NULL, use that and
58941         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
58942         Declare new mmap base and len values for
58943         prepare_address_space, and store the result in new_ah.
58944         (open_archive): Declare new mmap base and len values for
58945         prepare_address_space, and store the result in ah.
58946         (close_archive): If ah->mmap_base is not NULL, use that and
58947         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
58948         * sysdeps/generic/libc-mmap.h: New file.
58949
58950 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
58951
58952         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
58953         (ALIGN_UP): Likewise.
58954         (PTR_ALIGN_DOWN): Likewise.
58955         (PTR_ALIGN_UP): Likewise.
58956
58957 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58958
58959         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
58960         entry mapped to PPC_PLATFORM_POWER8.
58961         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
58962         POWER8.
58963         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
58964         (_dl_string_platform): Add case for exporting platform position for
58965         POWER8.
58966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
58967         search path to sysdeps/powerpc/powerpc32/power8 directory.
58968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
58969         search path to sysdeps/powerpc/powerpc64/power8 directory.
58970         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
58971         power7 directories.
58972         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
58973         power7 directories.
58974
58975 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
58976
58977         * INSTALL: Regenerate.
58978
58979         * nscd/connections.c (nscd_init): Fix comment.
58980
58981 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
58982
58983         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
58984
58985         [BZ #15667]
58986         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
58987         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
58988
58989 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
58990
58991         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
58992         DL_DST_REQ_STATIC.
58993         (DL_DST_REQ_STATIC): Remove macro.
58994
58995 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
58996
58997         [BZ #7006]
58998         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
58999         with a shift of 0 bits.
59000
59001 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
59002
59003         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
59004         $(tststatic-ENV).
59005
59006 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
59007
59008         [BZ #15655]
59009         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
59010
59011 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59012
59013         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
59014         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
59015         accepts -fno-tree-loop-distribute-patterns.
59016         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
59017         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
59018         recursive call.
59019         * string/memset.c (memset): Likewise.
59020         * string/test-memmove.c (simple_memmove): Disable loop transformation
59021         to library calls.
59022         * string/test-memset.c (simple_memset): Likewise.
59023         * benchtests/bench-memmove.c (simple_memmove): Likewise.
59024         * benchtests/bench-memset.c (simple_memset): Likewise.
59025         * configure: Regenerated.
59026
59027 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
59028
59029         * math/test-misc.c (main): Ignore fesetround failure when failures
59030         of subsequent rounding tests would be ignored.
59031
59032         [BZ #15654]
59033         * math/fedisblxcpt.c (fedisableexcept): Return 0.
59034         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
59035         * math/fegetenv.c (__fegetenv): Return 0.
59036         * math/fegetexcept.c (fegetexcept): Return 0.
59037         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
59038         FE_TONEAREST.
59039         * math/feholdexcpt.c (feholdexcept): Return 0.
59040         * math/fesetenv.c (__fesetenv): Return 0.
59041         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
59042         argument FE_TONEAREST.
59043         * math/feupdateenv.c (__feupdateenv): Return 0.
59044         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
59045
59046 2013-06-18  Roland McGrath  <roland@hack.frob.com>
59047
59048         * elf/rtld-Rules (rtld-compile-command.S): New variable.
59049         (rtld-compile-command.s, rtld-compile-command.c): New variables.
59050         ($(objpfx)rtld-%.os rules): Use them.
59051
59052 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59053
59054         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
59055         fields.
59056
59057 2013-06-17  Roland McGrath  <roland@hack.frob.com>
59058
59059         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
59060         length of target pattern, then descending length of dependency pattern.
59061         * configure.in (AWK): Require gawk 3.1.2 or newer.
59062         * manual/install.texi (Tools for Compilation): Say that we do.
59063         * configure: Regenerated.
59064
59065         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
59066         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
59067         * scripts/sysd-rules.awk: ... this new script.
59068         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
59069         than a glob-style pattern.
59070
59071 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
59072
59073         * math/test-misc.c (main): Do not treat incorrectly rounded
59074         conversions as failure unless ROUNDING_TESTS passes.
59075
59076 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
59077
59078         [BZ #15631]
59079         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
59080         restore exception state around main square root computation, then
59081         check for inexactness explicitly.
59082
59083         * math/libm-test.inc (fma_test_data): Add another test.
59084
59085 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
59086
59087         * manual/threads.texi (Non-POSIX Extensions): New document
59088         node.  Document pthread_getattr_default_np and
59089         pthread_setattr_default_np.
59090
59091         * Versions.def (libpthread): Add GLIBC_2.18.
59092         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
59093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
59094         Likewise.
59095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
59096         Likewise.
59097         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
59098         Likewise.
59099         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
59100         Likewise.
59101         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
59102         Likewise.
59103         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
59104         Likewise.
59105         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
59106         Likewise.
59107         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
59108         Likewise.
59109         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
59110         Likewise.
59111
59112 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59113
59114         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
59115         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
59116
59117 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
59118             H.J. Lu  <hjl.tools@gmail.com>
59119
59120         [BZ #15627]
59121         * sysdeps/x86_64/rtld-memset.c: Remove file.
59122         * sysdeps/x86_64/rtld-memset.S: New file.
59123
59124 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
59125
59126         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
59127         (test_in_one_mode): Take arguments for whether the rounding mode
59128         is supported for each floating-point type.
59129         (do_test): Pass new arguments to test_in_one_mode using
59130         ROUNDING_TESTS.
59131
59132 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59133
59134         * posix/tst-waitid.c (do_test): Distinguish different instances of
59135         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
59136         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
59137         before entering the kernel for waitpid.
59138
59139 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59140
59141         * NEWS: Fix note on clock function precision.  Text by Roland
59142         McGrath.
59143
59144 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59145
59146         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
59147         it into place only when and if the sanity check passes.
59148
59149 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
59150
59151         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
59152         output for whether conversion result is exact.  Take argument
59153         indicating whether type is IBM long double.
59154         (round_for_all): Change need_exact field to ibm_ld.
59155         * stdlib/tst-strtod-round.c (struct exactness): New type.
59156         (struct test): Change bool ld_ok field to struct exactness exact.
59157         (TEST): Update all definitions for change to field.
59158         (tests): Regenerate array contents.
59159         (test_in_one_mode): Take pointer to new field instead of old ld_ok
59160         field value.  Check for IBM long double here.
59161         (do_test): Update calls to test_in_one_mode.
59162
59163 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59164
59165         [BZ #12515]
59166         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
59167         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
59168
59169 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59170
59171         [BZ #15605]
59172         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
59173         generated by the compiler on loop optimizations.
59174         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
59175         general definitions.
59176
59177 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
59178
59179         * math/bug-nextafter.c: Include <math-tests.h>.
59180         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59181         the relevant type.
59182         * math/bug-nexttoward.c: Include <math-tests.h>.
59183         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59184         the relevant type.
59185         * math/test-misc.c: Include <math-tests.h>.
59186         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59187         the relevant type.
59188
59189 2013-06-12  Andreas Jaeger  <aj@suse.de>
59190
59191         * po/ia.po: Update Interlingua translation from translation
59192         project.
59193
59194 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
59195
59196         * include/fenv.h: Include stdbool.h.
59197         (struct rm_ctx): New structure.
59198         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
59199         Define macro.
59200         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
59201         (SET_RESTORE_ROUNDF): Likewise.
59202         (SET_RESTORE_ROUNDL): Likewise.
59203         (SET_RESTORE_ROUND_NOEX): Likewise.
59204         (SET_RESTORE_ROUND_NOEXF): Likewise.
59205         (SET_RESTORE_ROUND_NOEXL): Likewise.
59206         (SET_RESTORE_ROUND_53BIT): Likewise.
59207         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
59208         (libc_feresetround_noexf_ctx): Likewise.
59209         (libc_feresetround_noexl_ctx): Likewise.
59210         (libc_feholdsetround_53bit_ctx): Likewise.
59211         (libc_feresetround_53bit_ctx): Likewise.
59212         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
59213         (libc_feholdexcept_setround_sse_ctx): New function.
59214         (libc_fesetenv_sse_ctx): Likewise.
59215         (libc_feupdateenv_sse_ctx): Likewise.
59216         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
59217         (libc_feholdexcept_setround_387_ctx): Likewise.
59218         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
59219         (libc_feholdsetround_387_prec_ctx): Likewise.
59220         (libc_feholdsetround_387_ctx): Likewise.
59221         (libc_feholdsetround_387_53bit_ctx): Likewise.
59222         (libc_feholdsetround_sse_ctx): Likewise.
59223         (libc_feresetround_sse_ctx): Likewise.
59224         (libc_feresetround_387_ctx): Likewise.
59225         (libc_feupdateenv_387_ctx): Likewise.
59226         (libc_feholdexcept_setroundf_ctx): Define macro.
59227         (libc_fesetenvf_ctx): Likewise.
59228         (libc_feupdateenvf_ctx): Likewise.
59229         (libc_feholdsetroundf_ctx): Likewise.
59230         (libc_feresetroundf_ctx): Likewise.
59231         (libc_feholdexcept_setround_ctx): Likewise.
59232         (libc_fesetenv_ctx): Likewise.
59233         (libc_feupdateenv_ctx): Likewise.
59234         (libc_feholdsetround_ctx): Likewise.
59235         (libc_feresetround_ctx): Likewise.
59236         (libc_feholdexcept_setroundl_ctx): Likewise.
59237         (libc_feupdateenvl_ctx): Likewise.
59238         (libc_feholdsetroundl_ctx): Likewise.
59239         (libc_feresetroundl_ctx): Likewise.
59240         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
59241         (libc_feresetround_53bit_ctx): Likewise.
59242
59243 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59244
59245         * locale/iso-639.def: Convert to UTF-8.
59246
59247 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
59248
59249         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
59250         (EXCEPTION_TESTS_double): Likewise.
59251         (EXCEPTION_TESTS_long_double): Likewise.
59252         (EXCEPTION_TESTS): Likewise.
59253         * math/libm-test.inc (test_exceptions): Only test exceptions if
59254         EXCEPTION_TESTS (FLOAT).
59255
59256 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59257
59258         * benchtests/Makefile (string-bench): Add strcpy_chk and
59259         stpcpy_chk.
59260         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
59261         * benchtests/bench-stpcpy_chk.c: New file.
59262         * benchtests/bench-strcpy_chk-ifunc.c: New file.
59263         * benchtests/bench-strcpy_chk.c: New file.
59264         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
59265         code.
59266         (do_test): Likewise.
59267
59268 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59269
59270         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
59271         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
59272         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
59273         with tabs where appropriate.
59274         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
59275         dl-procinfo.h.
59276         [PPC_PLATFORM_PPC440]: Likewise.
59277         [PPC_PLATFORM_PPC464]: Likewise.
59278         [PPC_PLATFORM_PPC476]: Likewise.
59279         (_dl_string_platform): Add support for detecting ppc405, ppc440,
59280         ppc464, and ppc476 platform strings merging from ports/
59281         dl-procinfo.h.
59282
59283 2013-06-11  Andreas Schwab  <schwab@suse.de>
59284
59285         [BZ #14991]
59286         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
59287         (from_ucs4_idx): Regenerate.
59288         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
59289         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
59290         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
59291         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
59292         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
59293         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
59294         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
59295         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
59296         from FROM_LOOP and TO_LOOP specific macros.
59297         (BODY): Handle combining characters.
59298         * iconvdata/BIG5HKSCS.irreversible: Update.
59299         * iconvdata/BIG5HKSCS.precomposed: New file.
59300         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
59301         characters.
59302         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
59303
59304 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59305
59306         * include/sys/time.h: Fix indentation and add copyright header.
59307
59308         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
59309         (do_test): Likewise.
59310         * string/test-memchr.c (do_one_test): Likewise.
59311         (do_test): Likewise.
59312         * string/test-memcmp.c (do_one_test): Likewise.
59313         (do_test): Likewise.
59314         * string/test-memcpy.c (do_one_test): Likewise.
59315         (do_test): Likewise.
59316         * string/test-memmem.c (do_one_test): Likewise.
59317         (do_test): Likewise.
59318         (do_random_tests): Likewise.
59319         * string/test-memmove.c (do_one_test): Likewise.
59320         (do_test): Likewise.
59321         * string/test-memset.c (do_one_test): Likewise.
59322         (do_test): Likewise.
59323         * string/test-rawmemchr.c (do_one_test): Likewise.
59324         (do_test): Likewise.
59325         * string/test-strcasecmp.c (do_one_test): Likewise.
59326         (do_test): Likewise.
59327         * string/test-strcasestr.c (do_one_test): Likewise.
59328         (do_test): Likewise.
59329         * string/test-strcat.c (do_one_test): Likewise.
59330         (do_test): Likewise.
59331         * string/test-strchr.c (do_one_test): Likewise.
59332         (do_test): Likewise.
59333         * string/test-strcmp.c (do_one_test): Likewise.
59334         (do_test): Likewise.
59335         * string/test-strcpy.c (do_one_test): Likewise.
59336         (do_test): Likewise.
59337         * string/test-string.h: Likewise.
59338         (test_init): Likewise.
59339         * string/test-strlen.c (do_one_test): Likewise.
59340         (do_test): Likewise.
59341         * string/test-strncasecmp.c (do_one_test): Likewise.
59342         (do_test): Likewise.
59343         * string/test-strncat.c (do_one_test): Likewise.
59344         (do_test): Likewise.
59345         * string/test-strncmp.c (do_one_test): Likewise.
59346         (do_test_limit): Likewise.
59347         (do_test): Likewise.
59348         * string/test-strncpy.c (do_one_test): Likewise.
59349         (do_test): Likewise.
59350         * string/test-strnlen.c (do_one_test): Likewise.
59351         (do_test): Likewise.
59352         * string/test-strpbrk.c (do_one_test): Likewise.
59353         (do_test): Likewise.
59354         * string/test-strrchr.c (do_one_test): Likewise.
59355         (do_test): Likewise.
59356         * string/test-strspn.c (do_one_test): Likewise.
59357         (do_test): Likewise.
59358         * string/test-strstr.c (do_one_test): Likewise.
59359         (do_test): Likewise.
59360
59361         * benchtests/Makefile (string-bench): Add string benchmarks.
59362         * benchtests/bench-bcopy-ifunc.c: New file.
59363         * benchtests/bench-bcopy.c: New file.
59364         * benchtests/bench-bzero-ifunc.c: New file.
59365         * benchtests/bench-bzero.c: New file.
59366         * benchtests/bench-memccpy-ifunc.c: New file.
59367         * benchtests/bench-memccpy.c: New file.
59368         * benchtests/bench-memchr-ifunc.c: New file.
59369         * benchtests/bench-memchr.c: New file.
59370         * benchtests/bench-memcmp-ifunc.c: New file.
59371         * benchtests/bench-memcmp.c: New file.
59372         * benchtests/bench-memmem-ifunc.c: New file.
59373         * benchtests/bench-memmem.c: New file.
59374         * benchtests/bench-memmove-ifunc.c: New file.
59375         * benchtests/bench-memmove.c: New file.
59376         * benchtests/bench-mempcpy-ifunc.c: New file.
59377         * benchtests/bench-mempcpy.c: New file.
59378         * benchtests/bench-memset-ifunc.c: New file.
59379         * benchtests/bench-memset.c: New file.
59380         * benchtests/bench-rawmemchr-ifunc.c: New file.
59381         * benchtests/bench-rawmemchr.c: New file.
59382         * benchtests/bench-stpcpy-ifunc.c: New file.
59383         * benchtests/bench-stpcpy.c: New file.
59384         * benchtests/bench-stpncpy-ifunc.c: New file.
59385         * benchtests/bench-stpncpy.c: New file.
59386         * benchtests/bench-strcasecmp-ifunc.c: New file.
59387         * benchtests/bench-strcasecmp.c: New file.
59388         * benchtests/bench-strcasestr-ifunc.c: New file.
59389         * benchtests/bench-strcasestr.c: New file.
59390         * benchtests/bench-strcat-ifunc.c: New file.
59391         * benchtests/bench-strcat.c: New file.
59392         * benchtests/bench-strchr-ifunc.c: New file.
59393         * benchtests/bench-strchr.c: New file.
59394         * benchtests/bench-strchrnul-ifunc.c: New file.
59395         * benchtests/bench-strchrnul.c: New file.
59396         * benchtests/bench-strcmp-ifunc.c: New file.
59397         * benchtests/bench-strcmp.c: New file.
59398         * benchtests/bench-strcpy-ifunc.c: New file.
59399         * benchtests/bench-strcpy.c: New file.
59400         * benchtests/bench-strcspn-ifunc.c: New file.
59401         * benchtests/bench-strcspn.c: New file.
59402         * benchtests/bench-strlen-ifunc.c: New file.
59403         * benchtests/bench-strlen.c: New file.
59404         * benchtests/bench-strncasecmp-ifunc.c: New file.
59405         * benchtests/bench-strncasecmp.c: New file.
59406         * benchtests/bench-strncat-ifunc.c: New file.
59407         * benchtests/bench-strncat.c: New file.
59408         * benchtests/bench-strncmp-ifunc.c: New file.
59409         * benchtests/bench-strncmp.c: New file.
59410         * benchtests/bench-strncpy-ifunc.c: New file.
59411         * benchtests/bench-strncpy.c: New file.
59412         * benchtests/bench-strnlen-ifunc.c: New file.
59413         * benchtests/bench-strnlen.c: New file.
59414         * benchtests/bench-strpbrk-ifunc.c: New file.
59415         * benchtests/bench-strpbrk.c: New file.
59416         * benchtests/bench-strrchr-ifunc.c: New file.
59417         * benchtests/bench-strrchr.c: New file.
59418         * benchtests/bench-strspn-ifunc.c: New file.
59419         * benchtests/bench-strspn.c: New file.
59420         * benchtests/bench-strstr-ifunc.c: New file.
59421         * benchtests/bench-strstr.c: New file.
59422
59423         * benchtests/Makefile: Disable parallel execution of targets.
59424         (string-bench): Add memcpy.
59425         (benchset): New variable to store a list of benchmark sets.
59426         (bench-func): Renamed from bench.
59427         (bench-set): New target.
59428         (bench): Depend on bench-func and bench-set.
59429         * benchtests/README: Add section on benchmark sets.
59430         * benchtests/bench-memcpy-ifunc.c: New file.
59431         * benchtests/bench-memcpy.c: New file.
59432         * benchtests/bench-string.h: New file.
59433
59434 2013-06-11  Andreas Schwab  <schwab@suse.de>
59435
59436         [BZ #15577]
59437         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
59438         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
59439         values in the triple.
59440         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
59441         terminator in the group key.
59442
59443 2013-06-11  Andreas Jaeger  <aj@suse.de>
59444
59445         * po/zh_TW.po: Update Chinese (traditional) translation from
59446         translation project.
59447
59448 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59449
59450         * include/time.h (__clock_gettime): Add libc_hidden_proto.
59451         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
59452         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
59453         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59454         (clock_getcpuclockid): Likewise.
59455         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
59456         Add weak_alias and libc_hidden_def.
59457         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
59458         * rt/clock_gettime.c (clock_gettime): Rename to
59459         __clock_gettime.  Add weak_alias and libc_hidden_def.
59460         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
59461         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
59462         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
59463         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
59464         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
59465         Likewise.
59466         * rt/clock_settime.c (clock_settime): Rename to
59467         __clock_settime.  Add weak_alias and libc_hidden_def.
59468         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
59469
59470 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
59471
59472         * mach/err_boot.sub: Remove trailing whitespace.
59473         * mach/err_ipc.sub: Likewise.
59474         * mach/err_mach.sub: Likewise.
59475
59476         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
59477         (ROUNDING_TESTS_double): Likewise.
59478         (ROUNDING_TESTS_long_double): Likewise.
59479         (ROUNDING_TESTS): Likewise.
59480         * math/libm-test.inc: Include <math-tests.h>.
59481         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
59482         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
59483         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
59484         (IF_ROUND_INIT_FE_UPWARD): Likewise.
59485
59486 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59487
59488         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
59489         of assigning.
59490
59491 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
59492
59493         * sysdeps/gnu/errlist.awk: Do not generate space at end of
59494         otherwise empty TRANS lines.
59495         * sysdeps/gnu/errlist.c: Regenerated.
59496
59497         * catgets/gencat.c (error_print): Use (void) in function
59498         definition.
59499         * crypt/crypt_util.c (__init_des): Likewise.
59500         * crypt/speeds.c (Stop): Likewise.
59501         (main): Likewise.
59502         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
59503         * inet/ruserpass.c (token): Likewise.
59504         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
59505         * intl/localealias.c (extend_alias_table): Likewise.
59506         * intl/plural-exp.c (init_germanic_plural): Likewise.
59507         * libio/fcloseall.c (__fcloseall): Likewise.
59508         * libio/genops.c (_IO_flush_all): Likewise.
59509         (_IO_flush_all_linebuffered): Likewise.
59510         (_IO_cleanup): Likewise.
59511         (_IO_iter_begin): Likewise.
59512         (_IO_iter_end): Likewise.
59513         (_IO_list_lock): Likewise.
59514         (_IO_list_unlock): Likewise.
59515         (_IO_list_resetlock): Likewise.
59516         * libio/getchar.c (getchar): Likewise.
59517         * libio/getchar_u.c (getchar_unlocked): Likewise.
59518         * libio/getwchar.c (getwchar): Likewise.
59519         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
59520         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
59521         * login/getpt.c (__getpt): Likewise.
59522         * login/tst-utmp.c (main): Likewise.
59523         * malloc/hooks.c (__malloc_check_init): Likewise.
59524         * malloc/malloc.c (__malloc_stats): Likewise.
59525         * malloc/mtrace.c (tr_break): Likewise.
59526         (mtrace): Likewise.
59527         (muntrace): Likewise.
59528         * misc/fstab.c (endfsent): Likewise.
59529         * misc/getclktck.c (__getclktck): Likewise.
59530         * misc/getdtsz.c (__getdtablesize): Likewise.
59531         * misc/gethostid.c (gethostid): Likewise.
59532         * misc/getpagesize.c (__getpagesize): Likewise.
59533         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
59534         (__get_nprocs): Likewise.
59535         (__get_phys_pages): Likewise.
59536         (__get_avphys_pages): Likewise.
59537         * misc/getttyent.c (getttyent): Likewise.
59538         (setttyent): Likewise.
59539         (endttyent): Likewise.
59540         * misc/getusershell.c (getusershell): Likewise.
59541         (endusershell): Likewise.
59542         (setusershell): Likewise.
59543         (initshells): Likewise.
59544         * misc/hsearch.c (__hdestroy): Likewise.
59545         * misc/sync.c (sync): Likewise.
59546         * misc/syslog.c (closelog_internal): Likewise.
59547         (closelog): Likewise.
59548         * misc/ttyslot.c (ttyslot): Likewise.
59549         * misc/vhangup.c (vhangup): Likewise.
59550         * posix/fork.c (__fork): Likewise.
59551         * posix/getegid.c (__getegid): Likewise.
59552         * posix/geteuid.c (__geteuid): Likewise.
59553         * posix/getgid.c (__getgid): Likewise.
59554         * posix/getpid.c (__getpid): Likewise.
59555         * posix/getppid.c (__getppid): Likewise.
59556         * posix/getuid.c (__getuid): Likewise.
59557         * posix/pause.c (pause): Likewise.
59558         * posix/setpgrp.c (setpgrp): Likewise.
59559         * posix/setsid.c (__setsid): Likewise.
59560         * posix/test-vfork.c (noop): Likewise.
59561         * resolv/gethnamaddr.c (_endhtent): Likewise.
59562         (_gethtent): Likewise.
59563         (ht_endhostent): Likewise.
59564         (gethostent): Likewise.
59565         (dns_service): Likewise.
59566         * stdlib/drand48.c (drand48): Likewise.
59567         * stdlib/lrand48.c (lrand48): Likewise.
59568         * stdlib/mrand48.c (mrand48): Likewise.
59569         * stdlib/rand.c (rand): Likewise.
59570         * stdlib/random.c (__random): Likewise.
59571         * stdlib/setenv.c (clearenv): Likewise.
59572         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
59573         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
59574         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
59575         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
59576         (__get_nprocs): Likewise.
59577         (__get_phys_pages): Likewise.
59578         (__get_avphys_pages): Likewise.
59579         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
59580         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
59581         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
59582         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
59583         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
59584         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
59585         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
59586         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
59587         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
59588         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
59589         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
59590         * sysdeps/mach/hurd/sync.c (sync): Likewise.
59591         * sysdeps/posix/clock.c (clock): Likewise.
59592         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
59593         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
59594         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
59595         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
59596         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
59597         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
59598         (__get_nprocs_conf): Likewise.
59599         (__get_phys_pages): Likewise.
59600         (__get_avphys_pages): Likewise.
59601         * time/clock.c (clock): Likewise.
59602         * time/tzset.c (__tzname_max): Likewise.
59603
59604 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
59605
59606         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
59607         (__bswap_32): Do not use "register".
59608         * crypt/crypt.c (_ufc_doit_r): Likewise.
59609         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
59610         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
59611         * gmon/gmon.c (__monstartup): Likewise.
59612         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
59613         * hurd/hurdmalloc.c (more_memory): Likewise.
59614         (malloc): Likewise.
59615         (free): Likewise.
59616         (realloc): Likewise.
59617         (malloc_fork_prepare): Likewise.
59618         (malloc_fork_parent): Likewise.
59619         (malloc_fork_child): Likewise.
59620         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
59621         (_svcauth_des): Likewise.
59622         * inet/inet_lnaof.c (inet_lnaof): Likewise.
59623         * inet/inet_net.c (inet_network): Likewise.
59624         * inet/inet_netof.c (inet_netof): Likewise.
59625         * inet/rcmd.c (__validuser2_sa): Likewise.
59626         * io/fts.c (fts_open): Likewise.
59627         (fts_load): Likewise.
59628         (fts_close): Likewise.
59629         (fts_read): Likewise.
59630         (fts_children): Likewise.
59631         (fts_build): Likewise.
59632         (fts_stat): Likewise.
59633         (fts_sort): Likewise.
59634         (fts_alloc): Likewise.
59635         (fts_lfree): Likewise.
59636         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
59637         (_IO_file_xsgetn): Likewise.
59638         (_IO_file_xsgetn_mmap): Likewise.
59639         * libio/iofopncook.c (_IO_cookie_read): Likewise.
59640         (_IO_cookie_write): Likewise.
59641         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
59642         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
59643         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
59644         * malloc/obstack.c (_obstack_begin): Likewise.
59645         (_obstack_begin_1): Likewise.
59646         (_obstack_newchunk): Likewise.
59647         (_obstack_allocated_p): Likewise.
59648         (obstack_free): Likewise.
59649         (_obstack_memory_used): Likewise.
59650         * misc/getttyent.c (getttynam): Likewise.
59651         (getttyent): Likewise.
59652         (skip): Likewise.
59653         (value): Likewise.
59654         * misc/getusershell.c (initshells): Likewise.
59655         * misc/syslog.c (__vsyslog_chk): Likewise.
59656         * misc/ttyslot.c (ttyslot): Likewise.
59657         * nis/nis_hash.c (__nis_hash): Likewise.
59658         * posix/fnmatch_loop.c (FCT): Likewise.
59659         * posix/getconf.c (print_all): Likewise.
59660         (main): Likewise.
59661         * posix/getopt.c (exchange): Likewise.
59662         * posix/glob.c (globfree): Likewise.
59663         (prefix_array): Likewise.
59664         (__glob_pattern_type): Likewise.
59665         * resolv/arpa/nameser.h (NS_GET16): Likewise.
59666         (NS_GET32): Likewise.
59667         (NS_PUT16): Likewise.
59668         (NS_PUT32): Likewise.
59669         * resolv/gethnamaddr.c (getanswer): Likewise.
59670         (gethostbyname2): Likewise.
59671         (gethostbyaddr): Likewise.
59672         (_gethtent): Likewise.
59673         (_gethtbyname2): Likewise.
59674         (_gethtbyaddr): Likewise.
59675         * resolv/ns_print.c (dst_s_get_int16): Likewise.
59676         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
59677         * resolv/res_init.c (__res_vinit): Likewise.
59678         (net_mask): Likewise.
59679         * resolv/res_mkquery.c (outchar): Likewise.
59680         (PRINT): Likewise.
59681         * stdio-common/printf_fp.c (outchar): Likewise.
59682         (PRINT): Likewise.
59683         * stdio-common/printf_fphex.c (outchar): Likewise.
59684         (PRINT): Likewise.
59685         * stdio-common/printf_size.c (outchar): Likewise.
59686         (PRINT): Likewise.
59687         * stdio-common/test_rdwr.c (main): Likewise.
59688         * stdio-common/tfformat.c (matches): Likewise.
59689         * stdio-common/vfprintf.c (outchar): Likewise.
59690         (printf_unknown): Likewise.
59691         (buffered_vfprintf): Likewise.
59692         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
59693         * stdio-common/xbug.c (AppendToBuffer): Likewise.
59694         (ReadFile): Likewise.
59695         * stdlib/qsort.c (SWAP): Likewise.
59696         (_quicksort): Likewise.
59697         * stdlib/setenv.c (__add_to_environ): Likewise.
59698         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
59699         * stdlib/strtol_l.c (__strtol_l): Likewise.
59700         * stdlib/tst-strtod.c (main): Likewise.
59701         * stdlib/tst-strtol.c (main): Likewise.
59702         * stdlib/tst-strtoll.c (main): Likewise.
59703         * string/bits/string2.h (__strcmp_cc): Likewise.
59704         (__strcmp_cg): Likewise.
59705         (__strcspn_c1): Likewise.
59706         (__strcspn_c2): Likewise.
59707         (__strcspn_c3): Likewise.
59708         (__strspn_c1): Likewise.
59709         (__strspn_c2): Likewise.
59710         (__strspn_c3): Likewise.
59711         (__strsep_1c): Likewise.
59712         (__strsep_2c): Likewise.
59713         (__strsep_3c): Likewise.
59714         * string/memccpy.c (__memccpy): Likewise.
59715         * string/stpcpy.c (__stpcpy): Likewise.
59716         * string/strcmp.c (strcmp): Likewise.
59717         * string/strrchr.c (strrchr): Likewise.
59718         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
59719         Likewise.
59720         * sysdeps/mach/hurd/getcwd.c
59721         (_hurd_canonicalize_directory_name_internal): Likewise.
59722         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
59723         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
59724         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
59725         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
59726         Likewise, in both definitions.
59727         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
59728         definitions.
59729         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
59730         64] (__bswap_64): Likewise.
59731         * time/test_time.c (main): Likewise.
59732         * time/tzfile.c (__tzfile_read): Likewise.
59733         (__tzfile_compute): Likewise.
59734         * time/tzset.c (__tzset_parse_tz): Likewise.
59735         (tzset_internal): Likewise.
59736         (compute_change): Likewise.
59737         * wcsmbs/wcscat.c (__wcscat): Likewise.
59738         * wcsmbs/wcschr.c (wcschr): Likewise.
59739         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
59740         * wcsmbs/wcscspn.c (wcscspn): Likewise.
59741         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
59742         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
59743         * wcsmbs/wcsspn.c (wcsspn): Likewise.
59744         * wcsmbs/wcsstr.c (wcsstr): Likewise.
59745         * wcsmbs/wmemchr.c (wmemchr): Likewise.
59746         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
59747         * wcsmbs/wmemset.c (wmemset): Likewise.
59748
59749 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
59750
59751         * scripts/config.guess: Update to version 2013-05-16.
59752         * scripts/config.sub: Update to version 2013-04-24.
59753         * scripts/install-sh: Update to version 2011-11-20.07.
59754         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
59755         * scripts/move-if-change: Update to version 2012-01-06 07:23.
59756
59757 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
59758
59759         * debug/fgetws_u_chk.c: Fix leading whitespaces.
59760         * elf/sln.c: Likewise.
59761         * hurd/hurd/ioctl.h: Likewise.
59762         * hurd/hurdmalloc.c: Likewise.
59763         * hurd/xattr.c: Likewise.
59764         * include/shlib-compat.h: Likewise.
59765         * inet/ruserpass.c: Likewise.
59766         * libio/iofgets_u.c: Likewise.
59767         * libio/iofgetws_u.c: Likewise.
59768         * locale/programs/ld-identification.c: Likewise.
59769         * locale/programs/ld-time.c: Likewise.
59770         * mach/msg-destroy.c: Likewise.
59771         * nss/nss_files/files-netgrp.c: Likewise.
59772         * resolv/res_data.c: Likewise.
59773         * soft-fp/op-1.h: Likewise.
59774         * soft-fp/op-2.h: Likewise.
59775         * soft-fp/op-4.h: Likewise.
59776         * soft-fp/op-common.h: Likewise.
59777         * stdio-common/printf_fphex.c: Likewise.
59778         * stdlib/strtod_l.c: Likewise.
59779         * sunrpc/rpc/clnt.h: Likewise.
59780         * sysdeps/generic/framestate.c: Likewise.
59781         * sysdeps/i386/bsd-_setjmp.S: Likewise.
59782         * sysdeps/i386/bsd-setjmp.S: Likewise.
59783         * sysdeps/i386/__longjmp.S: Likewise.
59784         * sysdeps/i386/setjmp.S: Likewise.
59785         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
59786         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
59787         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
59788         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
59789         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
59790         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
59791         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
59792         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
59793         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
59794         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
59795         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
59796         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
59797         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
59798         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
59799         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
59800         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
59801         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
59802         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
59803         * sysdeps/ieee754/support.c: Likewise.
59804         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59805         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
59806         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
59807         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
59808         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
59809         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
59810         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
59811         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
59812         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
59813         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
59814         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
59815         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
59816         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
59817         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
59818         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
59819         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
59820         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
59821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
59822
59823 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
59824
59825         * posix/transbug.c: Remove executable mode.
59826
59827 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
59828
59829         * crypt/speeds.c: Remove trailing whitespace.
59830         * dlfcn/default.c: Likewise.
59831         * elf/ifuncdep2.c: Likewise.
59832         * elf/ifuncmain1.c: Likewise.
59833         * elf/ifuncmain1vis.c: Likewise.
59834         * elf/testobj.h: Likewise.
59835         * elf/tst-stackguard1.c: Likewise.
59836         * gmon/sys/gmon.h: Likewise.
59837         * hurd/hurdmsg.c: Likewise.
59838         * hurd/new-fd.c: Likewise.
59839         * hurd/ports-get.c: Likewise.
59840         * iconvdata/ibm1008_420.c: Likewise.
59841         * inet/tst-getni1.c: Likewise.
59842         * inet/tst-getni2.c: Likewise.
59843         * libio/ioungetc.c: Likewise.
59844         * libio/wfiledoalloc.c: Likewise.
59845         * manual/libm-err-tab.pl: Likewise.
59846         * math/w_dremf.c: Likewise.
59847         * misc/ftruncate.c: Likewise.
59848         * posix/bug-glob2.c: Likewise.
59849         * posix/tst-pcre.c: Likewise.
59850         * posix/wait4.c: Likewise.
59851         * resolv/README: Likewise.
59852         * resolv/res_debug.h: Likewise.
59853         * resolv/tst-inet_ntop.c: Likewise.
59854         * setjmp/bug269-setjmp.c: Likewise.
59855         * soft-fp/extended.h: Likewise.
59856         * soft-fp/op-1.h: Likewise.
59857         * soft-fp/op-2.h: Likewise.
59858         * soft-fp/op-4.h: Likewise.
59859         * soft-fp/op-8.h: Likewise.
59860         * soft-fp/testit.c: Likewise.
59861         * stdio-common/bug16.c: Likewise.
59862         * stdlib/random.c: Likewise.
59863         * sunrpc/rpcsvc/rquota.x: Likewise.
59864         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
59865         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
59866         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
59867         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
59868         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
59869         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
59870         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
59871         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
59872         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
59873         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
59874         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
59875         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
59876         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
59877         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
59878         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
59879         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
59880         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
59881         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
59882         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
59883         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
59884         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
59885         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
59886         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
59887         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
59888         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
59889         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
59890         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
59891         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
59892         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
59893         * sysdeps/ieee754/s_lib_version.c: Likewise.
59894         * sysdeps/mach/hurd/check_fds.c: Likewise.
59895         * sysdeps/mach/hurd/getsockname.c: Likewise.
59896         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
59897         * sysdeps/mach/hurd/recvfrom.c: Likewise.
59898         * sysdeps/powerpc/bits/link.h: Likewise.
59899         * sysdeps/powerpc/dl-procinfo.c: Likewise.
59900         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
59901         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
59902         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
59903         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
59904         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
59905         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
59906         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
59907         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
59908         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
59909         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
59910         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
59911         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
59912         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
59913         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
59914         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
59915         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
59916         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
59917         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
59918         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
59919         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
59920         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
59921         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59922         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
59923         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
59924         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
59925         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
59926         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
59927         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
59928         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
59929         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
59930         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
59931         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
59932         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
59933         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
59934         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
59935         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
59936         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
59937         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
59938         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
59939         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
59940         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
59941         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
59942         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
59943         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
59944         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
59945         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
59946         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
59947         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
59948         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
59949         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
59950         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
59951         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
59952         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
59953         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
59954         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
59955         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
59956         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
59957         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
59958         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
59959         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
59960         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
59961         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
59962         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
59963         * sysdeps/powerpc/sysdep.h: Likewise.
59964         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59965         * sysdeps/s390/s390-64/sub_n.S: Likewise.
59966         * sysdeps/sh/dl-trampoline.S: Likewise.
59967         * sysdeps/sh/memset.S: Likewise.
59968         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
59969         * sysdeps/sh/strlen.S: Likewise.
59970         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
59971         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
59972         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
59973         * sysdeps/sparc/sparc32/rem.S: Likewise.
59974         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
59975         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
59976         * sysdeps/sparc/sparc32/strchr.S: Likewise.
59977         * sysdeps/sparc/sparc32/udiv.S: Likewise.
59978         * sysdeps/sparc/sparc32/urem.S: Likewise.
59979         * sysdeps/sparc/sparc64/add_n.S: Likewise.
59980         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
59981         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
59982         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
59983         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
59984         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
59985         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
59986         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
59987         * sysdeps/unix/bsd/times.c: Likewise.
59988         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
59989         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
59990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
59991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
59992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
59993         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
59994         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
59995         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
59996         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
59997         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
59998         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
59999         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
60000         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
60001         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
60002         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
60003         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
60004         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
60005         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
60006         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
60007         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
60008         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
60009         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
60010         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
60011         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
60012         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
60013         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
60014         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
60015         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
60016         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
60017         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
60018         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
60019         * sysdeps/x86_64/strcspn.S: Likewise.
60020
60021 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
60022
60023         * locale/C-translit.h: Revert #include <stdint.h> because this is a
60024         generated file.  Regenerate properly from gen-translit.pl.
60025         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
60026         locale/C-translit.h.
60027
60028 2013-06-05  Andreas Schwab  <schwab@suse.de>
60029
60030         [BZ #15100]
60031         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
60032         week as 6 instead of -1.
60033         * time/tst-strptime.c (day_tests): Add test case.
60034
60035 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
60036
60037         * sysdeps/generic/math_private.h
60038         (libc_feholdexcept_setround_53bit): Replace with
60039         libc_feholdsetround_53bit.
60040         (libc_feupdateenv_53bit): Replace with
60041         libc_feresetround_53bit.
60042         (SET_RESTORE_ROUND_53BIT): Adjust.
60043
60044 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
60045
60046         * string/test-strchrnul.c: Add copyright header.
60047
60048         * posix/tst-getaddrinfo4.c: Increase test timeout.
60049
60050 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
60051
60052         [BZ #15536]
60053         * math/libm-test.inc (MAX_EXP): Remove
60054         (MIN_EXP): Define.
60055         (ulp): Use MIN_EXP - MANT_DIG.
60056         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
60057
60058 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
60059
60060         * po/be.po: Revert last change.
60061         * po/zh_CN.po: Likewise.
60062         * po/header.pot: Likewise.
60063
60064 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
60065
60066         * Makefile ($(common-objpfx)linkobj/libc.so): Define
60067         link-libc-deps to empty as target-specific variable.
60068         * Makerules (link-libc-args): New variable.
60069         (libc-for-link): Likewise.
60070         (link-libc-deps): Likewise.
60071         (lib%.so): Depend on $(link-libc-deps).  Link with
60072         $(link-libc-args).
60073         (build-module): Link with $(link-libc-args).
60074         (build-module-asneeded): Likewise.
60075         (build-module-helper-objlist): Filter out $(link-libc-deps) from
60076         list of objects.
60077         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
60078         target-specific variable.
60079         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
60080         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
60081         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
60082         libc.
60083         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
60084         libc and ld.so.
60085         ($(objpfx)libpcprofile.so): Likewise.
60086         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
60087         libc_nonshared.a.
60088         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
60089         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
60090         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
60091         $(link-libc-deps).
60092         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
60093         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
60094         * login/Makefile ($(objpfx)libutil.so): Likewise.
60095         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
60096         * math/Makefile ($(objpfx)libm.so): Likewise.
60097         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
60098         $(objpfx)libnsl.so): Define libc-for-link as target-specific
60099         variable instead of depending directly on libc.
60100         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
60101         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
60102         $(link-libc-deps).
60103         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
60104         libc.
60105         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
60106         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
60107         ($(objpfx)libanl.so): Likewise.
60108         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
60109         ld.so.
60110         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
60111         $(link-libc-deps).
60112         * sysdeps/i386/fpu/Makefile: Remove file.
60113         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
60114         ($(objpfx)libm.so): Remove dependency on ld.so.
60115
60116 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
60117
60118         [BZ # 15553]
60119         * nis/yp_xdr.c (XDRMAXNAME): Define.
60120         (XDRMAXRECORD): Define.
60121         (xdr_domainname): Use XDRMAXNAME.
60122         (xdr_mapname): Likewise.
60123         (xdr_peername): Likewise.
60124         (xdr_keydat): Use XDRMAXRECORD.
60125         (xdr_valdat): Likewise.
60126
60127 2013-05-30  Jeff Law  <law@redhat.com>
60128
60129         [BZ #14256]
60130         * manual/errno.texi (ESTALE): Update to account for more than
60131         just NFS file systems.
60132         * sysdeps/gnu/errlist.c: Regenerated.
60133
60134 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60135
60136         [BZ #15465]
60137         * elf/Makefile (tests): Add tst-null-argv.
60138         (modules-names):  Add tst-null-argv-lib.
60139         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
60140         (tst-null-argv-ENV): Set environment for tst-null-argv.
60141         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
60142         (RTLD_PROGNAME): New macro.
60143         * elf/tst-null-argv.c: New test case.
60144         * elf/tst-null-argv-lib.c: Library for test case.
60145         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
60146         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
60147         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
60148         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
60149         * elf/dl-init.c (call_init): Likewise.
60150         (_dl_init): Likewise.
60151         * elf/dl-load.c (print_search_path): Likewise.
60152         (_dl_map_object): Likewise.
60153         * elf/dl-lookup.c (do_lookup_x): Likewise.
60154         (add_dependency): Likewise.
60155         (_dl_lookup_symbol_x): Likewise.
60156         (_dl_debug_bindings): Likewise.
60157         * elf/dl-open.c (_dl_show_scope): Likewise.
60158         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
60159         * elf/dl-version.c (match_symbol): Likewise.
60160         (_dl_check_map_versions): Likewise.
60161         * elf/rtld.c (dl_main): Likewise.
60162         (print_unresolved): Use RTLD_PROGNAME.
60163         (print_missing_version): Likewise.
60164         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
60165         (elf_machine_rela): Likewise.
60166         * sysdeps/powerpc/powerpc32/dl-machine.c
60167         (__process_machine_rela): Likewise.
60168         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
60169         Likewise.
60170         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60171         Likewise.
60172         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
60173         Likewise.
60174         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
60175         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
60176         Likewise.
60177         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
60178         Likewise.
60179         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
60180
60181 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
60182
60183         * po/be.po: Add descriptive title.
60184         * po/zh_CN.po: Likewise.
60185         * po/header.pot: Likewise.
60186
60187 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
60188
60189         * locale/programs/locarchive.c (create_archive): Inlucde fname in
60190         error message.
60191         (enlarge_archive): Likewise.
60192
60193 2013-05-28  Ben North  <ben@redfrontdoor.org>
60194
60195         * manual/arith.texi (frexp): It is the magnitude of the return
60196         value which lies in [0.5, 1), not the return value itself.
60197
60198 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60199
60200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60201
60202 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
60203
60204         * stdio-common/bug26.c (main): Correct fscanf template.
60205
60206         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
60207         declare _dl_skip_args.
60208
60209         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
60210         Don't declare.
60211
60212         * manual/platform.texi: Add missing @end deftypefun.
60213
60214 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60215
60216         [BZ #15529]
60217         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
60218         bit of mantissa of 2^16382.
60219         * math/libm-test.inc (hypot_test_data): Add more tests.
60220
60221         * math/libm-test.inc: Add drem and pow10 to list of tested
60222         functions.
60223         (pow10_test): New function.
60224         (drem_test): Likewise.
60225         (drem_test_tonearest): Likewise.
60226         (drem_test_towardzero): Likewise.
60227         (drem_test_downward): Likewise.
60228         (drem_test_upward): Likewise.
60229         (main): Call the new functions.
60230
60231         * math/libm-test.inc (finite_test_data): Remove.
60232         (finite_test): Run tests from isfinite_test_data.
60233         (gamma_test_data): Remove.
60234         (gamma_test): Run tests from lgamma_test_data.
60235         * sysdeps/i386/fpu/libm-test-ulps: Update.
60236         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60237
60238 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60239
60240         * manual/platform.texi: Add PowerPC PPR function set documentation.
60241         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
60242         implementation.
60243
60244 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
60245
60246         * math/libm-test.inc (MAX_EXP): Define.
60247         (ULPDIFF): Define.
60248         (ulp): New function.
60249         (check_float_internal): Use ULPDIFF.
60250         (cpow_test): Disable failing test.
60251         (check_ulp): Test ulp() implementation.
60252         (main): Call check_ulp before starting tests.
60253
60254 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60255
60256         * math/gen-libm-test.pl (generate_testfile): Do not handle
60257         START_DATA and END_DATA.
60258         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
60259         END_DATA.
60260         (acos_tonearest_test_data): Likewise.
60261         (acos_towardzero_test_data): Likewise.
60262         (acos_downward_test_data): Likewise.
60263         (acos_upward_test_data): Likewise.
60264         (acosh_test_data): Likewise.
60265         (asin_test_data): Likewise.
60266         (asin_tonearest_test_data): Likewise.
60267         (asin_towardzero_test_data): Likewise.
60268         (asin_downward_test_data): Likewise.
60269         (asin_upward_test_data): Likewise.
60270         (asinh_test_data): Likewise.
60271         (atan_test_data): Likewise.
60272         (atanh_test_data): Likewise.
60273         (atan2_test_data): Likewise.
60274         (cabs_test_data): Likewise.
60275         (cacos_test_data): Likewise.
60276         (cacosh_test_data): Likewise.
60277         (carg_test_data): Likewise.
60278         (casin_test_data): Likewise.
60279         (casinh_test_data): Likewise.
60280         (catan_test_data): Likewise.
60281         (catanh_test_data): Likewise.
60282         (cbrt_test_data): Likewise.
60283         (ccos_test_data): Likewise.
60284         (ccosh_test_data): Likewise.
60285         (ceil_test_data): Likewise.
60286         (cexp_test_data): Likewise.
60287         (cimag_test_data): Likewise.
60288         (clog_test_data): Likewise.
60289         (clog10_test_data): Likewise.
60290         (conj_test_data): Likewise.
60291         (copysign_test_data): Likewise.
60292         (cos_test_data): Likewise.
60293         (cos_tonearest_test_data): Likewise.
60294         (cos_towardzero_test_data): Likewise.
60295         (cos_downward_test_data): Likewise.
60296         (cos_upward_test_data): Likewise.
60297         (cosh_test_data): Likewise.
60298         (cosh_tonearest_test_data): Likewise.
60299         (cosh_towardzero_test_data): Likewise.
60300         (cosh_downward_test_data): Likewise.
60301         (cosh_upward_test_data): Likewise.
60302         (cpow_test_data): Likewise.
60303         (cproj_test_data): Likewise.
60304         (creal_test_data): Likewise.
60305         (csin_test_data): Likewise.
60306         (csinh_test_data): Likewise.
60307         (csqrt_test_data): Likewise.
60308         (ctan_test_data): Likewise.
60309         (ctan_tonearest_test_data): Likewise.
60310         (ctan_towardzero_test_data): Likewise.
60311         (ctan_downward_test_data): Likewise.
60312         (ctan_upward_test_data): Likewise.
60313         (ctanh_test_data): Likewise.
60314         (ctanh_tonearest_test_data): Likewise.
60315         (ctanh_towardzero_test_data): Likewise.
60316         (ctanh_downward_test_data): Likewise.
60317         (ctanh_upward_test_data): Likewise.
60318         (erf_test_data): Likewise.
60319         (erfc_test_data): Likewise.
60320         (exp_test_data): Likewise.
60321         (exp_tonearest_test_data): Likewise.
60322         (exp_towardzero_test_data): Likewise.
60323         (exp_downward_test_data): Likewise.
60324         (exp_upward_test_data): Likewise.
60325         (exp10_test_data): Likewise.
60326         (exp2_test_data): Likewise.
60327         (expm1_test_data): Likewise.
60328         (fabs_test_data): Likewise.
60329         (fdim_test_data): Likewise.
60330         (finite_test_data): Likewise.
60331         (floor_test_data): Likewise.
60332         (fma_test_data): Likewise.
60333         (fma_towardzero_test_data): Likewise.
60334         (fma_downward_test_data): Likewise.
60335         (fma_upward_test_data): Likewise.
60336         (fmax_test_data): Likewise.
60337         (fmin_test_data): Likewise.
60338         (fmod_test_data): Likewise.
60339         (fpclassify_test_data): Likewise.
60340         (frexp_test_data): Likewise.
60341         (gamma_test_data): Likewise.
60342         (hypot_test_data): Likewise.
60343         (ilogb_test_data): Likewise.
60344         (isfinite_test_data): Likewise.
60345         (isgreater_test_data): Likewise.
60346         (isgreaterequal_test_data): Likewise.
60347         (isinf_test_data): Likewise.
60348         (isless_test_data): Likewise.
60349         (islessequal_test_data): Likewise.
60350         (islessgreater_test_data): Likewise.
60351         (isnan_test_data): Likewise.
60352         (isnormal_test_data): Likewise.
60353         (issignaling_test_data): Likewise.
60354         (isunordered_test_data): Likewise.
60355         (j0_test_data): Likewise.
60356         (j1_test_data): Likewise.
60357         (jn_test_data): Likewise.
60358         (ldexp_test_data): Likewise.
60359         (lgamma_test_data): Likewise.
60360         (lrint_test_data): Likewise.
60361         (lrint_tonearest_test_data): Likewise.
60362         (lrint_towardzero_test_data): Likewise.
60363         (lrint_downward_test_data): Likewise.
60364         (lrint_upward_test_data): Likewise.
60365         (llrint_test_data): Likewise.
60366         (llrint_tonearest_test_data): Likewise.
60367         (llrint_towardzero_test_data): Likewise.
60368         (llrint_downward_test_data): Likewise.
60369         (llrint_upward_test_data): Likewise.
60370         (log_test_data): Likewise.
60371         (log10_test_data): Likewise.
60372         (log1p_test_data): Likewise.
60373         (log2_test_data): Likewise.
60374         (logb_test_data): Likewise.
60375         (logb_downward_test_data): Likewise.
60376         (lround_test_data): Likewise.
60377         (llround_test_data): Likewise.
60378         (modf_test_data): Likewise.
60379         (nearbyint_test_data): Likewise.
60380         (nextafter_test_data): Likewise.
60381         (nexttoward_test_data): Likewise.
60382         (pow_test_data): Likewise.
60383         (pow_tonearest_test_data): Likewise.
60384         (pow_towardzero_test_data): Likewise.
60385         (pow_downward_test_data): Likewise.
60386         (pow_upward_test_data): Likewise.
60387         (remainder_test_data): Likewise.
60388         (remainder_tonearest_test_data): Likewise.
60389         (remainder_towardzero_test_data): Likewise.
60390         (remainder_downward_test_data): Likewise.
60391         (remainder_upward_test_data): Likewise.
60392         (remquo_test_data): Likewise.
60393         (rint_test_data): Likewise.
60394         (rint_tonearest_test_data): Likewise.
60395         (rint_towardzero_test_data): Likewise.
60396         (rint_downward_test_data): Likewise.
60397         (rint_upward_test_data): Likewise.
60398         (round_test_data): Likewise.
60399         (scalb_test_data): Likewise.
60400         (scalbn_test_data): Likewise.
60401         (scalbln_test_data): Likewise.
60402         (signbit_test_data): Likewise.
60403         (sin_test_data): Likewise.
60404         (sin_tonearest_test_data): Likewise.
60405         (sin_towardzero_test_data): Likewise.
60406         (sin_downward_test_data): Likewise.
60407         (sin_upward_test_data): Likewise.
60408         (sincos_test_data): Likewise.
60409         (sinh_test_data): Likewise.
60410         (sinh_tonearest_test_data): Likewise.
60411         (sinh_towardzero_test_data): Likewise.
60412         (sinh_downward_test_data): Likewise.
60413         (sinh_upward_test_data): Likewise.
60414         (sqrt_test_data): Likewise.
60415         (tan_test_data): Likewise.
60416         (tan_tonearest_test_data): Likewise.
60417         (tan_towardzero_test_data): Likewise.
60418         (tan_downward_test_data): Likewise.
60419         (tan_upward_test_data): Likewise.
60420         (tanh_test_data): Likewise.
60421         (tgamma_test_data): Likewise.
60422         (trunc_test_data): Likewise.
60423         (y0_test_data): Likewise.
60424         (y1_test_data): Likewise.
60425         (yn_test_data): Likewise.
60426         (significand_test_data): Likewise.
60427
60428         * math/gen-libm-test.pl (@functions): Remove variable.
60429         (generate_testfile): Don't handle START and END lines.
60430         * math/libm-test.inc (START): New macro.
60431         (END): Likewise.
60432         (END_COMPLEX): Likewise.
60433         (acos_test): Use END macro without arguments.
60434         (acos_test_tonearest): Likewise.
60435         (acos_test_towardzero): Likewise.
60436         (acos_test_downward): Likewise.
60437         (acos_test_upward): Likewise.
60438         (acosh_test): Likewise.
60439         (asin_test): Likewise.
60440         (asin_test_tonearest): Likewise.
60441         (asin_test_towardzero): Likewise.
60442         (asin_test_downward): Likewise.
60443         (asin_test_upward): Likewise.
60444         (asinh_test): Likewise.
60445         (atan_test): Likewise.
60446         (atanh_test): Likewise.
60447         (atan2_test): Likewise.
60448         (cabs_test): Likewise.
60449         (cacos_test): Use END_COMPLEX macro without arguments.
60450         (cacosh_test): Likewise.
60451         (carg_test): Use END macro without arguments.
60452         (casin_test): Use END_COMPLEX macro without arguments.
60453         (casinh_test): Likewise.
60454         (catan_test): Likewise.
60455         (catanh_test): Likewise.
60456         (cbrt_test): Use END macro without arguments.
60457         (ccos_test): Use END_COMPLEX macro without arguments.
60458         (ccosh_test): Likewise.
60459         (ceil_test): Use END macro without arguments.
60460         (cexp_test): Use END_COMPLEX macro without arguments.
60461         (cimag_test): Use END macro without arguments.
60462         (clog_test): Use END_COMPLEX macro without arguments.
60463         (clog10_test): Likewise.
60464         (conj_test): Likewise.
60465         (copysign_test): Use END macro without arguments.
60466         (cos_test): Likewise.
60467         (cos_test_tonearest): Likewise.
60468         (cos_test_towardzero): Likewise.
60469         (cos_test_downward): Likewise.
60470         (cos_test_upward): Likewise.
60471         (cosh_test): Likewise.
60472         (cosh_test_tonearest): Likewise.
60473         (cosh_test_towardzero): Likewise.
60474         (cosh_test_downward): Likewise.
60475         (cosh_test_upward): Likewise.
60476         (cpow_test): Use END_COMPLEX macro without arguments.
60477         (cproj_test): Likewise.
60478         (creal_test): Use END macro without arguments.
60479         (csin_test): Use END_COMPLEX macro without arguments.
60480         (csinh_test): Likewise.
60481         (csqrt_test): Likewise.
60482         (ctan_test): Likewise.
60483         (ctan_test_tonearest): Likewise.
60484         (ctan_test_towardzero): Likewise.
60485         (ctan_test_downward): Likewise.
60486         (ctan_test_upward): Likewise.
60487         (ctanh_test): Likewise.
60488         (ctanh_test_tonearest): Likewise.
60489         (ctanh_test_towardzero): Likewise.
60490         (ctanh_test_downward): Likewise.
60491         (ctanh_test_upward): Likewise.
60492         (erf_test): Use END macro without arguments.
60493         (erfc_test): Likewise.
60494         (exp_test): Likewise.
60495         (exp_test_tonearest): Likewise.
60496         (exp_test_towardzero): Likewise.
60497         (exp_test_downward): Likewise.
60498         (exp_test_upward): Likewise.
60499         (exp10_test): Likewise.
60500         (exp2_test): Likewise.
60501         (expm1_test): Likewise.
60502         (fabs_test): Likewise.
60503         (fdim_test): Likewise.
60504         (finite_test): Likewise.
60505         (floor_test): Likewise.
60506         (fma_test): Likewise.
60507         (fma_test_towardzero): Likewise.
60508         (fma_test_downward): Likewise.
60509         (fma_test_upward): Likewise.
60510         (fmax_test): Likewise.
60511         (fmin_test): Likewise.
60512         (fmod_test): Likewise.
60513         (fpclassify_test): Likewise.
60514         (frexp_test): Likewise.
60515         (gamma_test): Likewise.
60516         (hypot_test): Likewise.
60517         (ilogb_test): Likewise.
60518         (isfinite_test): Likewise.
60519         (isgreater_test): Likewise.
60520         (isgreaterequal_test): Likewise.
60521         (isinf_test): Likewise.
60522         (isless_test): Likewise.
60523         (islessequal_test): Likewise.
60524         (islessgreater_test): Likewise.
60525         (isnan_test): Likewise.
60526         (isnormal_test): Likewise.
60527         (issignaling_test): Likewise.
60528         (isunordered_test): Likewise.
60529         (j0_test): Likewise.
60530         (j1_test): Likewise.
60531         (jn_test): Likewise.
60532         (ldexp_test): Likewise.
60533         (lgamma_test): Likewise.
60534         (lrint_test): Likewise.
60535         (lrint_test_tonearest): Likewise.
60536         (lrint_test_towardzero): Likewise.
60537         (lrint_test_downward): Likewise.
60538         (lrint_test_upward): Likewise.
60539         (llrint_test): Likewise.
60540         (llrint_test_tonearest): Likewise.
60541         (llrint_test_towardzero): Likewise.
60542         (llrint_test_downward): Likewise.
60543         (llrint_test_upward): Likewise.
60544         (log_test): Likewise.
60545         (log10_test): Likewise.
60546         (log1p_test): Likewise.
60547         (log2_test): Likewise.
60548         (logb_test): Likewise.
60549         (logb_test_downward): Likewise.
60550         (lround_test): Likewise.
60551         (llround_test): Likewise.
60552         (modf_test): Likewise.
60553         (nearbyint_test): Likewise.
60554         (nextafter_test): Likewise.
60555         (nexttoward_test): Likewise.
60556         (pow_test): Likewise.
60557         (pow_test_tonearest): Likewise.
60558         (pow_test_towardzero): Likewise.
60559         (pow_test_downward): Likewise.
60560         (pow_test_upward): Likewise.
60561         (remainder_test): Likewise.
60562         (remainder_test_tonearest): Likewise.
60563         (remainder_test_towardzero): Likewise.
60564         (remainder_test_downward): Likewise.
60565         (remainder_test_upward): Likewise.
60566         (remquo_test): Likewise.
60567         (rint_test): Likewise.
60568         (rint_test_tonearest): Likewise.
60569         (rint_test_towardzero): Likewise.
60570         (rint_test_downward): Likewise.
60571         (rint_test_upward): Likewise.
60572         (round_test): Likewise.
60573         (scalb_test): Likewise.
60574         (scalbn_test): Likewise.
60575         (scalbln_test): Likewise.
60576         (signbit_test): Likewise.
60577         (sin_test): Likewise.
60578         (sin_test_tonearest): Likewise.
60579         (sin_test_towardzero): Likewise.
60580         (sin_test_downward): Likewise.
60581         (sin_test_upward): Likewise.
60582         (sincos_test): Likewise.
60583         (sinh_test): Likewise.
60584         (sinh_test_tonearest): Likewise.
60585         (sinh_test_towardzero): Likewise.
60586         (sinh_test_downward): Likewise.
60587         (sinh_test_upward): Likewise.
60588         (sqrt_test): Likewise.
60589         (tan_test): Likewise.
60590         (tan_test_tonearest): Likewise.
60591         (tan_test_towardzero): Likewise.
60592         (tan_test_downward): Likewise.
60593         (tan_test_upward): Likewise.
60594         (tanh_test): Likewise.
60595         (tgamma_test): Likewise.
60596         (trunc_test): Likewise.
60597         (y0_test): Likewise.
60598         (y1_test): Likewise.
60599         (yn_test): Likewise.
60600         (significand_test): Likewise.
60601
60602 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
60603
60604         [BZ #15381]
60605         * libio/genops.c (_IO_no_init): Initialize wide struct info.
60606
60607 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
60608
60609         [BZ #14894]
60610         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
60611         __ppc_mdoio and __ppc_mdoom.
60612         * manual/platform.texi: Document new functions __ppc_yield,
60613         __ppc_mdoio and __ppc_mdoom.
60614
60615 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
60616
60617         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
60618         (main): Mention "tls" pseudo-hwcap is legacy.
60619         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
60620
60621 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
60622
60623         * math/gen-libm-test.pl (parse_args): Output only string of
60624         arguments as text for test name, not full call or descriptions of
60625         tests for extra outputs.
60626         (generate_testfile): Do not pass function name to parse_args.
60627         Generate this_func variable from START.
60628         * math/libm-test.inc (struct test_f_f_data): Rename test_name
60629         field to arg_str.
60630         (struct test_ff_f_data): Likewise.
60631         (test_ff_f_data_nexttoward): Likewise.
60632         (struct test_fi_f_data): Likewise.
60633         (struct test_fl_f_data): Likewise.
60634         (struct test_if_f_data): Likewise.
60635         (struct test_fff_f_data): Likewise.
60636         (struct test_c_f_data): Likewise.
60637         (struct test_f_f1_data): Likewise.  Remove field extra_name.
60638         (struct test_fF_f1_data): Likewise.
60639         (struct test_ffI_f1_data): Likewise.
60640         (struct test_c_c_data): Rename test_name field to arg_str.
60641         (struct test_cc_c_data): Likewise.
60642         (struct test_f_i_data): Likewise.
60643         (struct test_ff_i_data): Likewise.
60644         (struct test_f_l_data): Likewise.
60645         (struct test_f_L_data): Likewise.
60646         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
60647         and extra2_name.
60648         (COMMON_TEST_SETUP): New macro.
60649         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
60650         (COMMON_TEST_CLEANUP): Likewise.
60651         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
60652         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
60653         macros.
60654         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
60655         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
60656         macros.
60657         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
60658         (RUN_TEST_fff_f): Take argument string.  Call new setup and
60659         cleanup macros.
60660         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
60661         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
60662         macros.
60663         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
60664         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
60665         macros.
60666         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
60667         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
60668         cleanup macros.
60669         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
60670         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
60671         cleanup macros.
60672         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
60673         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
60674         cleanup macros.
60675         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
60676         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
60677         macros.
60678         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
60679         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
60680         macros.
60681         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
60682         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
60683         macros.
60684         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
60685         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
60686         cleanup macros.
60687         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
60688         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
60689         cleanup macros.
60690         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
60691         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
60692         macros.
60693         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
60694         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
60695         cleanup macros.
60696         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
60697         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
60698         macros.
60699         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
60700         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
60701         macros.
60702         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
60703         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
60704         cleanup macros.
60705         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
60706
60707 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
60708
60709         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
60710         to _sifields.sigfault.
60711         (si_addr_lsb): Define new macro.
60712         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
60713         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
60714         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
60715
60716 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
60717
60718         [BZ #15441]
60719         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
60720         returns -1.
60721         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
60722         null return -1.
60723         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
60724         loading the domain.
60725
60726 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
60727
60728         * math/gen-libm-test.pl (parse_args): Do not include expected
60729         result in test name.
60730         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
60731         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
60732         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
60733         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
60734         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
60735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60736
60737 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
60738
60739         * benchtests/Makefile: Sort function entries.
60740
60741         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
60742         tanh, asinh, acosh, atanh.
60743         * benchtests/acos-inputs: New file.
60744         * benchtests/acosh-inputs: New file.
60745         * benchtests/asin-inputs: New file.
60746         * benchtests/asinh-inputs: New file.
60747         * benchtests/atanh-inputs: New file.
60748         * benchtests/cosh-inputs: New file.
60749         * benchtests/log-inputs: New file.
60750         * benchtests/sinh-inputs: New file.
60751         * benchtests/tanh-inputs: New file.
60752
60753 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
60754
60755         [BZ #15339]
60756         * posix/tst-getaddrinfo4.c: New test.
60757         * posix/Makefile (tests): Add it.
60758
60759 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
60760
60761         [BZ #15339]
60762         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
60763         when no services were used.
60764         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
60765         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
60766
60767 2013-05-21  Andreas Schwab  <schwab@suse.de>
60768
60769         [BZ #15014]
60770         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
60771         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
60772         successful.
60773         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
60774         redundant variable declarations and reallocation of buffer when
60775         parsing as IPv6 address.  Always set NSS status when called from
60776         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
60777         buffer too small.  Correct computation of needed size.
60778         * nss/Makefile (tests): Add test-digits-dots.
60779         * nss/test-digits-dots.c: New test.
60780
60781 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
60782
60783         * benchtests/Makefile: Remove instructions for adding
60784         benchmark tests.
60785         * benchtests/README: New file to explain how to execute and
60786         enhance the benchmark tests.
60787
60788 2013-05-21  Andreas Schwab  <schwab@suse.de>
60789
60790         [BZ #15493]
60791         * setjmp/Makefile (tests): Add tst-sigsetjmp.
60792         * setjmp/tst-sigsetjmp.c: New test.
60793
60794 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
60795
60796         * sysdeps/x86_64/memset.S (memset): New implementation.
60797         (__bzero): Likewise.
60798         (__memset_tail): New function.
60799
60800 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
60801
60802         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
60803         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
60804         __memcpy_sse2_unaligned ifunc selection.
60805         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
60806         Add memcpy-sse2-unaligned.S.
60807         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
60808         Add: __memcpy_sse2_unaligned.
60809
60810 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
60811
60812         [BZ #15490]
60813         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
60814         math_force_eval before restoring floating-point envrionment.
60815         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
60816         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
60817         Likewise.
60818         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
60819         <math_private.h>.
60820         (__nearbyintl): Use math_force_eval before restoring
60821         floating-point environment.
60822         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
60823
60824         * math/gen-libm-test.pl (special_functions): Remove.
60825         (parse_args): Don't handle TEST_extra.  Handle functions with no
60826         return value.
60827         * math/libm-test.inc (struct test_sincos_data): Replace with
60828         struct test_fFF_11_data.
60829         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
60830         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
60831         (sincos_test_data): Change element type to struct
60832         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
60833         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
60834         RUN_TEST_LOOP_sincos.
60835         * math/README.libm-test: Don't mention special handling of
60836         individual functions.
60837         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
60838         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
60839         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
60840         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
60841         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
60842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60843
60844         * math/gen-libm-test.pl (get_variable): Remove function.
60845         (parse_args): Don't show pointer parameters to call in test
60846         names.  Use "extra output N" in test names for extra outputs
60847         rather than naming variables.
60848
60849 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
60850
60851         [BZ #15488]
60852         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
60853         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
60854         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
60855         double tests.
60856         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
60857         disable.
60858         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
60859         check_long_double.
60860
60861         * math/gen-libm-test.pl (@tests): Remove variable.
60862         ($count): Likewise.
60863         (new_test): Remove function.
60864         (show_exceptions): New function.
60865         (special_functions): Use show_exceptions instead of new_test.
60866         (parse_args): Likewise.
60867         (generate_testfile): Pass only function name in generated call to
60868         print_max_error or print_complex_max_error.
60869         (get_ulps): Do not handle complex tests specially.
60870         (output_test): Rename to ...
60871         (get_all_ulps_for_test): ... this.  Return a string rather than
60872         printing to a file.  Require ulps to be present.
60873         (output_ulps): Generate arrays rather than #defines.
60874         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
60875         (struct ulp_data): New type.
60876         (BUILD_COMPLEX_ULP): Remove macro.
60877         (compare_ulp_data): New function.
60878         (find_ulps): Likewise.
60879         (find_test_ulps): Likewise.
60880         (find_function_ulps): Likewise.
60881         (find_complex_function_ulps): Likewise.
60882         (print_max_error): Determine allowed ulps using
60883         find_function_ulps.
60884         (print_complex_max_error): Determine allowed ulps using
60885         find_complex_function_ulps.
60886         (check_float_internal): Determine max ulps using find_test_ulps.
60887         (check_float): Do not take max_ulp parameter.  Update call to
60888         check_float_internal.
60889         (check_complex): Likewise.
60890         (check_int): Do not take max_ulp parameter.
60891         (check_long): Likewise.
60892         (check_bool): Likewise.
60893         (check_longlong): Likewise.
60894         (struct test_f_f_data): Remove max_ulp field.
60895         (struct test_ff_f_data): Likewise.
60896         (struct test_ff_f_data_nexttoward): Likewise.
60897         (struct test_fi_f_data): Likewise.
60898         (struct test_fl_f_data): Likewise.
60899         (struct test_if_f_data): Likewise.
60900         (struct test_fff_f_data): Likewise.
60901         (struct test_c_f_data): Likewise.
60902         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
60903         (struct test_fF_f1_data): Likewise.
60904         (struct test_ffI_f1_data): Likewise.
60905         (struct test_c_c_data): Remove max_ulp field.
60906         (struct test_cc_c_data): Likewise.
60907         (struct test_f_i_data): Likewise.
60908         (struct test_ff_i_data): Likewise.
60909         (struct test_f_l_data): Likewise.
60910         (struct test_f_L_data): Likewise.
60911         (struct test_sincos_data): Likewise.
60912         (RUN_TEST_f_f): Do not handle ulps.
60913         (RUN_TEST_LOOP_f_f): Likewise.
60914         (RUN_TEST_2_f): Likewise.
60915         (RUN_TEST_LOOP_2_f): Likewise.
60916         (RUN_TEST_fff_f): Likewise.
60917         (RUN_TEST_LOOP_fff_f): Likewise.
60918         (RUN_TEST_c_f): Likewise.
60919         (RUN_TEST_LOOP_c_f): Likewise.
60920         (RUN_TEST_f_f1): Likewise.
60921         (RUN_TEST_LOOP_f_f1): Likewise.
60922         (RUN_TEST_fF_f1): Likewise.
60923         (RUN_TEST_LOOP_fF_f1): Likewise.
60924         (RUN_TEST_fI_f1): Likewise.
60925         (RUN_TEST_LOOP_fI_f1): Likewise.
60926         (RUN_TEST_ffI_f1): Likewise.
60927         (RUN_TEST_LOOP_ffI_f1): Likewise.
60928         (RUN_TEST_c_c): Likewise.
60929         (RUN_TEST_LOOP_c_c): Likewise.
60930         (RUN_TEST_cc_c): Likewise.
60931         (RUN_TEST_LOOP_cc_c): Likewise.
60932         (RUN_TEST_f_i): Likewise.
60933         (RUN_TEST_LOOP_f_i): Likewise.
60934         (RUN_TEST_f_i_tg): Likewise.
60935         (RUN_TEST_LOOP_f_i_tg): Likewise.
60936         (RUN_TEST_ff_i_tg): Likewise.
60937         (RUN_TEST_LOOP_ff_i_tg): Likewise.
60938         (RUN_TEST_f_b): Likewise.
60939         (RUN_TEST_LOOP_f_b): Likewise.
60940         (RUN_TEST_f_b_tg): Likewise.
60941         (RUN_TEST_LOOP_f_b_tg): Likewise.
60942         (RUN_TEST_f_l): Likewise.
60943         (RUN_TEST_LOOP_f_l): Likewise.
60944         (RUN_TEST_f_L): Likewise.
60945         (RUN_TEST_LOOP_f_L): Likewise.
60946         (RUN_TEST_sincos): Likewise.
60947         (RUN_TEST_LOOP_sincos): Likewise.
60948
60949 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
60950
60951         [BZ #15480]
60952         [BZ #15485]
60953         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
60954         main case of finite arguments, set rounding mode to FE_TONEAREST
60955         and discard exceptions.
60956         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
60957         exceptions.
60958         (remainder_tonearest_test_data): New variable.
60959         (remainder_test_tonearest): New function.
60960         (remainder_towardzero_test_data): New variable.
60961         (remainder_test_towardzero): New function.
60962         (remainder_downward_test_data): New variable.
60963         (remainder_test_downward): New function.
60964         (remainder_upward_test_data): New variable.
60965         (remainder_test_upward): New function.
60966         (main): Call the new test functions.
60967
60968         * math/libm-test.inc (struct test_f_f1_data): Remove field
60969         extra_init.
60970         (struct test_fF_f1_data): Likewise.
60971         (struct test_ffI_f1_data): Likewise.
60972         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
60973         based on value of EXTRA_EXPECTED.
60974         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
60975         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
60976         EXTRA_VAR based on value of EXTRA_EXPECTED.
60977         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
60978         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
60979         EXTRA_VAR based on value of EXTRA_EXPECTED.
60980         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
60981         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
60982         EXTRA_VAR based on value of EXTRA_EXPECTED.
60983         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
60984         * math/gen-libm-test.pl (parse_args): Don't output initializers
60985         for extra output values.
60986
60987         * math/libm-test.inc (check_int): Expect result to be exactly
60988         equal to expected value and do not handle ulps.
60989         (check_long): Likewise.
60990         (check_longlong): Likewise.
60991
60992         * math/libm-test.inc (ceil_test_data): Test for "inexact"
60993         exceptions.
60994         (cimag_test_data): Likewise.
60995         (conj_test_data): Likewise.
60996         (copysign_test_data): Likewise.
60997         (cproj_test_data): Likewise.
60998         (creal_test_data): Likewise.
60999         (fabs_test_data): Likewise.
61000         (fdim_test_data): Likewise.
61001         (finite_test_data): Likewise.
61002         (floor_test_data): Likewise.
61003         (fmax_test_data): Likewise.
61004         (fmin_test_data): Likewise.
61005         (fmod_test_data): Likewise.
61006         (fpclassify_test_data): Likewise.
61007         (frexp_test_data): Likewise.
61008         (ilogb_test_data): Likewise.
61009         (isfinite_test_data): Likewise.
61010         (isgreater_test_data): Likewise.
61011         (isgreaterequal_test_data): Likewise.
61012         (isinf_test_data): Likewise.
61013         (isless_test_data): Likewise.
61014         (islessequal_test_data): Likewise.
61015         (islessgreater_test_data): Likewise.
61016         (isnan_test_data): Likewise.
61017         (isnormal_test_data): Likewise.
61018         (issignaling_test_data): Likewise.
61019         (isunordered_test_data): Likewise.
61020         (ldexp_test_data): Likewise.
61021         (lrint_test_data): Likewise.
61022         (lrint_test_data) [TEST_FLOAT]: Disable one test.
61023         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
61024         (lrint_tonearest_test_data): Test for "inexact" exceptions.
61025         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
61026         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
61027         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
61028         test input.
61029         (lrint_towardzero_test_data): Test for "inexact" exceptions.
61030         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
61031         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
61032         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
61033         that test input.
61034         (lrint_downward_test_data): Test for "inexact" exceptions.
61035         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
61036         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
61037         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
61038         test input.
61039         (lrint_upward_test_data): Test for "inexact" exceptions.
61040         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
61041         test input.
61042         (llrint_test_data): Test for "inexact" exceptions.
61043         (llrint_test_data) [TEST_FLOAT]: Disable one test.
61044         (llrint_tonearest_test_data): Test for "inexact" exceptions.
61045         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
61046         (llrint_towardzero_test_data): Test for "inexact" exceptions.
61047         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
61048         (llrint_downward_test_data): Test for "inexact" exceptions.
61049         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
61050         (llrint_upward_test_data): Test for "inexact" exceptions.
61051         (logb_test_data): Likewise.
61052         (logb_downward_test_data): Likewise.
61053         (nextafter_test_data): Likewise.
61054         (nexttoward_test_data): Likewise.
61055         (remainder_test_data): Likewise.
61056         (remquo_test_data): Likewise.
61057         (scalbn_test_data): Likewise.
61058         (scalbln_test_data): Likewise.
61059         (signbit_test_data): Likewise.
61060         (sqrt_test_data): Likewise.
61061         (significand_test_data): Likewise.
61062
61063 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
61064
61065         [BZ #15424]
61066         * benchtests/bench-modf.c (struct args): Mark arg0 as
61067         volatile.
61068         * scripts/bench.pl: Mark members of struct args as volatile.
61069
61070 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61071
61072         [BZ # 15497]
61073         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
61074         negative infinity on POWER6 or lower.
61075         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
61076
61077 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
61078
61079         [BZ #15442]
61080         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
61081         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
61082         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
61083         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
61084         (_FP_SETQNAN): New macro.
61085         (_FP_SETQNAN_SEMIRAW): Likewise.
61086         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
61087         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
61088         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
61089         (FP_EXTEND): Use _FP_FRAC_SNANP.
61090         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
61091         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
61092         into account.
61093         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
61094         New macro.
61095         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
61096         Likewise.
61097
61098 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61099
61100         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
61101         with DIVIDE_BY_ZERO_EXCEPTION.
61102         (gamma_test_data): Likewise.
61103         (lgamma_test_data): Likewise.
61104         (log_test_data): Likewise.
61105         (log10_test_data): Likewise.
61106         (log2_test_data): Likewise.
61107         (tgamma_test_data): Likewise.
61108
61109         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
61110         (acos_test_tonearest): Likewise.
61111         (acos_test_towardzero): Likewise.
61112         (acos_test_downward): Likewise.
61113         (acos_test_upward): Likewise.
61114         (acosh_test): Likewise.
61115         (asin_test): Likewise.
61116         (asin_test_tonearest): Likewise.
61117         (asin_test_towardzero): Likewise.
61118         (asin_test_downward): Likewise.
61119         (asin_test_upward): Likewise.
61120         (asinh_test): Likewise.
61121         (atan_test): Likewise.
61122         (atanh_test): Likewise.
61123         (atan2_test): Likewise.
61124         (cabs_test): Likewise.
61125         (cacos_test): Likewise.
61126         (cacosh_test): Likewise.
61127         (casin_test): Likewise.
61128         (casinh_test): Likewise.
61129         (catan_test): Likewise.
61130         (catanh_test): Likewise.
61131         (cbrt_test): Likewise.
61132         (ccos_test): Likewise.
61133         (ccosh_test): Likewise.
61134         (cexp_test): Likewise.
61135         (clog_test): Likewise.
61136         (clog10_test): Likewise.
61137         (cos_test): Likewise.
61138         (cos_test_tonearest): Likewise.
61139         (cos_test_towardzero): Likewise.
61140         (cos_test_downward): Likewise.
61141         (cos_test_upward): Likewise.
61142         (cosh_test): Likewise.
61143         (cosh_test_tonearest): Likewise.
61144         (cosh_test_towardzero): Likewise.
61145         (cosh_test_downward): Likewise.
61146         (cosh_test_upward): Likewise.
61147         (cpow_test): Likewise.
61148         (csin_test): Likewise.
61149         (csinh_test): Likewise.
61150         (csqrt_test): Likewise.
61151         (ctan_test): Likewise.
61152         (ctan_test_tonearest): Likewise.
61153         (ctan_test_towardzero): Likewise.
61154         (ctan_test_downward): Likewise.
61155         (ctan_test_upward): Likewise.
61156         (ctanh_test): Likewise.
61157         (ctanh_test_tonearest): Likewise.
61158         (ctanh_test_towardzero): Likewise.
61159         (ctanh_test_downward): Likewise.
61160         (ctanh_test_upward): Likewise.
61161         (erf_test): Likewise.
61162         (erfc_test): Likewise.
61163         (exp_test): Likewise.
61164         (exp_test_tonearest): Likewise.
61165         (exp_test_towardzero): Likewise.
61166         (exp_test_downward): Likewise.
61167         (exp_test_upward): Likewise.
61168         (exp10_test): Likewise.
61169         (exp2_test): Likewise.
61170         (expm1_test): Likewise.
61171         (fmod_test): Likewise.
61172         (gamma_test): Likewise.
61173         (hypot_test): Likewise.
61174         (j0_test): Likewise.
61175         (j1_test): Likewise.
61176         (jn_test): Likewise.
61177         (lgamma_test): Likewise.
61178         (log_test): Likewise.
61179         (log10_test): Likewise.
61180         (log1p_test): Likewise.
61181         (log2_test): Likewise.
61182         (logb_test_downward): Likewise.
61183         (pow_test): Likewise.
61184         (pow_test_tonearest): Likewise.
61185         (pow_test_towardzero): Likewise.
61186         (pow_test_downward): Likewise.
61187         (pow_test_upward): Likewise.
61188         (remainder_test): Likewise.
61189         (remquo_test): Likewise.
61190         (sin_test): Likewise.
61191         (sin_test_tonearest): Likewise.
61192         (sin_test_towardzero): Likewise.
61193         (sin_test_downward): Likewise.
61194         (sin_test_upward): Likewise.
61195         (sincos_test): Likewise.
61196         (sinh_test): Likewise.
61197         (sinh_test_tonearest): Likewise.
61198         (sinh_test_towardzero): Likewise.
61199         (sinh_test_downward): Likewise.
61200         (sinh_test_upward): Likewise.
61201         (sqrt_test): Likewise.
61202         (tan_test): Likewise.
61203         (tan_test_tonearest): Likewise.
61204         (tan_test_towardzero): Likewise.
61205         (tan_test_downward): Likewise.
61206         (tan_test_upward): Likewise.
61207         (tanh_test): Likewise.
61208         (tgamma_test): Likewise.
61209         (y0_test): Likewise.
61210         (y1_test): Likewise.
61211         (yn_test): Likewise.
61212
61213         * math/gen-libm-test.pl (adjust_arg): Remove function.
61214         (special_function): Remove argument $in_func.  Only handle
61215         generating output for tables of tests, not inside functions.
61216         (parse_args): Likewise.
61217         (generate_testfile): Remove variable $in_func.  Update call to
61218         parse_args.
61219         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
61220         (MINUS_ZERO_INIT): Rename macro to minus_zero.
61221         (PLUS_INFTY_INIT): Rename macro to plus_infty.
61222         (MINUS_INFTY_INIT): Rename macro to minus_infty.
61223         (QNAN_VALUE_INIT): Rename macro to qnan_value.
61224         (MAX_VALUE_INIT): Rename macro to max_value.
61225         (MIN_VALUE_INIT): Rename macro to min_value.
61226         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
61227         (plus_zero): Remove variable.
61228         (minus_zero): Likewise.
61229         (plus_infty): Likewise.
61230         (minus_infty): Likewise.
61231         (qnan_value): Likewise.
61232         (max_value): Likewise.
61233         (min_value): Likewise.
61234         (min_subnorm_value): Likewise.
61235
61236 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
61237
61238         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
61239         uint64_t or uint32_t usage.
61240         * crypt/sha256-block.c: Likewise.
61241         * crypt/sha256-crypt.c: Likewise.
61242         * crypt/sha256.c: Likewise.
61243         * crypt/sha512-block.c: Likewise.
61244         * crypt/sha512-crypt.c: Likewise.
61245         * crypt/sha512.c: Likewise.
61246         * debug/backtrace-tst.c: Likewise.
61247         * debug/pcprofiledump.c: Likewise.
61248         * elf/cache.c: Likewise.
61249         * elf/dl-cache.c: Likewise.
61250         * elf/dl-misc.c: Likewise.
61251         * elf/dl-profile.c: Likewise.
61252         * elf/dl-support.c: Likewise.
61253         * elf/ldconfig.c: Likewise.
61254         * elf/sprof.c: Likewise.
61255         * iconv/dummy-repertoire.c: Likewise.
61256         * iconv/iconv_charmap.c: Likewise.
61257         * iconv/skeleton.c: Likewise.
61258         * iconvdata/8bit-generic.c: Likewise.
61259         * iconvdata/cp737.h: Likewise.
61260         * iconvdata/cp775.h: Likewise.
61261         * iconvdata/ibm1008.h: Likewise.
61262         * iconvdata/ibm1025.h: Likewise.
61263         * iconvdata/ibm1046.h: Likewise.
61264         * iconvdata/ibm1097.h: Likewise.
61265         * iconvdata/ibm1112.h: Likewise.
61266         * iconvdata/ibm1122.h: Likewise.
61267         * iconvdata/ibm1123.h: Likewise.
61268         * iconvdata/ibm1124.h: Likewise.
61269         * iconvdata/ibm1129.h: Likewise.
61270         * iconvdata/ibm1130.h: Likewise.
61271         * iconvdata/ibm1132.h: Likewise.
61272         * iconvdata/ibm1133.h: Likewise.
61273         * iconvdata/ibm1137.h: Likewise.
61274         * iconvdata/ibm1140.h: Likewise.
61275         * iconvdata/ibm1141.h: Likewise.
61276         * iconvdata/ibm1142.h: Likewise.
61277         * iconvdata/ibm1143.h: Likewise.
61278         * iconvdata/ibm1144.h: Likewise.
61279         * iconvdata/ibm1145.h: Likewise.
61280         * iconvdata/ibm1146.h: Likewise.
61281         * iconvdata/ibm1147.h: Likewise.
61282         * iconvdata/ibm1148.h: Likewise.
61283         * iconvdata/ibm1149.h: Likewise.
61284         * iconvdata/ibm1153.h: Likewise.
61285         * iconvdata/ibm1154.h: Likewise.
61286         * iconvdata/ibm1155.h: Likewise.
61287         * iconvdata/ibm1156.h: Likewise.
61288         * iconvdata/ibm1157.h: Likewise.
61289         * iconvdata/ibm1158.h: Likewise.
61290         * iconvdata/ibm1160.h: Likewise.
61291         * iconvdata/ibm1161.h: Likewise.
61292         * iconvdata/ibm1162.h: Likewise.
61293         * iconvdata/ibm1163.h: Likewise.
61294         * iconvdata/ibm1164.h: Likewise.
61295         * iconvdata/ibm1166.h: Likewise.
61296         * iconvdata/ibm1167.h: Likewise.
61297         * iconvdata/ibm12712.h: Likewise.
61298         * iconvdata/ibm1390.h: Likewise.
61299         * iconvdata/ibm1399.h: Likewise.
61300         * iconvdata/ibm16804.h: Likewise.
61301         * iconvdata/ibm4517.h: Likewise.
61302         * iconvdata/ibm4899.h: Likewise.
61303         * iconvdata/ibm4909.h: Likewise.
61304         * iconvdata/ibm4971.h: Likewise.
61305         * iconvdata/ibm5347.h: Likewise.
61306         * iconvdata/ibm803.h: Likewise.
61307         * iconvdata/ibm856.h: Likewise.
61308         * iconvdata/ibm901.h: Likewise.
61309         * iconvdata/ibm902.h: Likewise.
61310         * iconvdata/ibm9030.h: Likewise.
61311         * iconvdata/ibm9066.h: Likewise.
61312         * iconvdata/ibm921.h: Likewise.
61313         * iconvdata/ibm922.h: Likewise.
61314         * iconvdata/ibm9448.h: Likewise.
61315         * iconvdata/isiri-3342.h: Likewise.
61316         * iconvdata/jis0201.h: Likewise.
61317         * include/link.h: Likewise.
61318         * include/netdb.h: Likewise.
61319         * inet/check_native.c: Likewise.
61320         * inet/check_pf.c: Likewise.
61321         * inet/getipv4sourcefilter.c: Likewise.
61322         * inet/getnameinfo.c: Likewise.
61323         * inet/getsourcefilter.c: Likewise.
61324         * inet/htonl.c: Likewise.
61325         * inet/setipv4sourcefilter.c: Likewise.
61326         * inet/setsourcefilter.c: Likewise.
61327         * inet/test-inet6_opt.c: Likewise.
61328         * inet/tst-network.c: Likewise.
61329         * locale/C-collate.c: Likewise.
61330         * locale/C-ctype.c: Likewise.
61331         * locale/C-time.c: Likewise.
61332         * locale/C-translit.h: Likewise.
61333         * locale/loadarchive.c: Likewise.
61334         * locale/programs/3level.h: Likewise.
61335         * locale/programs/charmap.c: Likewise.
61336         * locale/programs/charmap.h: Likewise.
61337         * locale/programs/ld-address.c: Likewise.
61338         * locale/programs/ld-collate.c: Likewise.
61339         * locale/programs/ld-ctype.c: Likewise.
61340         * locale/programs/ld-identification.c: Likewise.
61341         * locale/programs/ld-measurement.c: Likewise.
61342         * locale/programs/ld-messages.c: Likewise.
61343         * locale/programs/ld-monetary.c: Likewise.
61344         * locale/programs/ld-name.c: Likewise.
61345         * locale/programs/ld-numeric.c: Likewise.
61346         * locale/programs/ld-paper.c: Likewise.
61347         * locale/programs/ld-telephone.c: Likewise.
61348         * locale/programs/ld-time.c: Likewise.
61349         * locale/programs/linereader.c: Likewise.
61350         * locale/programs/locale.c: Likewise.
61351         * locale/programs/locarchive.c: Likewise.
61352         * locale/programs/locfile.h: Likewise.
61353         * locale/programs/repertoire.c: Likewise.
61354         * locale/programs/simple-hash.c: Likewise.
61355         * locale/programs/simple-hash.h: Likewise.
61356         * malloc/memusage.c: Likewise.
61357         * malloc/memusagestat.c: Likewise.
61358         * nis/nis_defaults.c: Likewise.
61359         * nis/nis_hash.c: Likewise.
61360         * nis/nis_print.c: Likewise.
61361         * nis/nis_xdr.c: Likewise.
61362         * nscd/connections.c: Likewise.
61363         * nscd/hstcache.c: Likewise.
61364         * nscd/nscd_gethst_r.c: Likewise.
61365         * nscd/nscd_getserv_r.c: Likewise.
61366         * nscd/nscd_helper.c: Likewise.
61367         * nscd/servicescache.c: Likewise.
61368         * nss/makedb.c: Likewise.
61369         * nss/nss_db/db-XXX.c: Likewise.
61370         * nss/nss_db/db-initgroups.c: Likewise.
61371         * nss/nss_db/db-netgrp.c: Likewise.
61372         * nss/nss_files/files-network.c: Likewise.
61373         * nss/nss_files/files-parse.c: Likewise.
61374         * posix/bug-regex5.c: Likewise.
61375         * posix/fnmatch_loop.c: Likewise.
61376         * posix/regcomp.c: Likewise.
61377         * posix/regexec.c: Likewise.
61378         * posix/tst-rfc3484-2.c: Likewise.
61379         * posix/tst-rfc3484-3.c: Likewise.
61380         * posix/tst-rfc3484.c: Likewise.
61381         * resolv/nss_dns/dns-canon.c: Likewise.
61382         * resolv/nss_dns/dns-network.c: Likewise.
61383         * resolv/res_init.c: Likewise.
61384         * resolv/res_mkquery.c: Likewise.
61385         * resolv/tst-aton.c: Likewise.
61386         * stdlib/cxa_atexit.c: Likewise.
61387         * stdlib/cxa_finalize.c: Likewise.
61388         * stdlib/gen-fpioconst.c: Likewise.
61389         * stdlib/strtol_l.c: Likewise.
61390         * string/tst-endian.c: Likewise.
61391         * sunrpc/auth_des.c: Likewise.
61392         * sunrpc/clnt_udp.c: Likewise.
61393         * sunrpc/rtime.c: Likewise.
61394         * sunrpc/svcauth_des.c: Likewise.
61395         * sunrpc/xdr.c: Likewise.
61396         * sunrpc/xdr_intXX_t.c: Likewise.
61397         * sunrpc/xdr_rec.c: Likewise.
61398         * sysdeps/generic/ldconfig.h: Likewise.
61399         * sysdeps/generic/ldsodefs.h: Likewise.
61400         * sysdeps/generic/memusage.h: Likewise.
61401         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
61402         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
61403         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
61404         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
61405         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
61406         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
61407         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
61408         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
61409         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
61410         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
61411         * sysdeps/posix/getaddrinfo.c: Likewise.
61412         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
61413         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
61414         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
61415         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
61416         * sysdeps/powerpc/test-gettimebase.c: Likewise.
61417         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
61418         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
61419         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
61420         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
61421         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
61422         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
61423         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
61424         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
61425         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
61426         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
61427         * sysdeps/x86_64/dl-tls.h: Likewise.
61428         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
61429         * time/alt_digit.c: Likewise.
61430         * time/era.c: Likewise.
61431         * wcsmbs/tst-c16c32-1.c: Likewise.
61432
61433 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61434
61435         * math/libm-test.inc (struct test_sincos_data): New type.
61436         (RUN_TEST_LOOP_sincos): New macro.
61437         (sincos_test_data): New variable.
61438         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
61439
61440 2013-05-16  Richard Henderson  <rth@redhat.com>
61441
61442         * math/atest-exp2.c (LIMB64): New macro.
61443         (CONSTSZ): New macro.
61444         (mp_exp1, mp_exp_m1, mp_log2): New variables.
61445         (hexdig): Move ...
61446         (print_mpn_fp): ... to function scope.
61447         (read_mpn_hex): Remove.
61448         (get_log2): Remove.
61449         (exp2_mpn): Use mp_log2.
61450         (main): Use mp_exp1.
61451
61452 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61453
61454         * math/libm-test.inc: Remove comment about not testing "inexact"
61455         exceptions.
61456         (INEXACT_EXCEPTION): New macro.
61457         (NO_INEXACT_EXCEPTION): Likewise.
61458         (INVALID_EXCEPTION_OK): Update value.
61459         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61460         (OVERFLOW_EXCEPTION_OK): Likewise.
61461         (UNDERFLOW_EXCEPTION_OK): Likewise.
61462         (IGNORE_ZERO_INF_SIGN): Likewise.
61463         (ERRNO_UNCHANGED): Likewise.
61464         (ERRNO_EDOM): Likewise.
61465         (ERRNO_ERANGE): Likewise.
61466         (test_exceptions): Handle testing "inexact" exceptions.
61467         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
61468         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
61469         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
61470         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
61471         INEXACT_EXCEPTION.
61472         (rint_towardzero_test_data): Likewise.
61473         (rint_downward_test_data): Likewise.
61474         (rint_upward_test_data): Likewise.
61475
61476         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
61477         with OVERFLOW_EXCEPTION.
61478         (exp10_test_data): Likewise.
61479         (exp2_test_data): Likewise.
61480         (expm1_test_data): Likewise.
61481         (lgamma_test_data): Likewise.
61482         (pow_test_data): Likewise.
61483         (tgamma_test_data): Likewise.
61484         (yn_test_data): Remove duplicate test of overflow.
61485
61486         * math/libm-test.inc (struct test_cc_c_data): New type.
61487         (RUN_TEST_LOOP_cc_c): New macro.
61488         (cpow_test_data): New variable.
61489         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
61490
61491         * math/libm-test.inc (struct test_f_L_data): New type.
61492         (RUN_TEST_LOOP_f_L): New macro.
61493         (llrint_test_data): New variable.
61494         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
61495         (llrint_tonearest_test_data): New variable.
61496         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
61497         (llrint_towardzero_test_data): New variable.
61498         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
61499         (llrint_downward_test_data): New variable.
61500         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
61501         (llrint_upward_test_data): New variable.
61502         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
61503         (llround_test_data): New variable.
61504         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
61505
61506 2013-05-13  Peter Collingbourne  <pcc@google.com>
61507
61508         * math/atest-exp2.c (get_log2): Remove const attribute.
61509
61510 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
61511
61512         * math/libm-test.inc (struct test_f_l_data): New type.
61513         (RUN_TEST_LOOP_f_l): New macro.
61514         (lrint_test_data): New variable.
61515         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
61516         (lrint_tonearest_test_data): New variable.
61517         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
61518         (lrint_towardzero_test_data): New variable.
61519         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
61520         (lrint_downward_test_data): New variable.
61521         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
61522         (lrint_upward_test_data): New variable.
61523         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
61524         (lround_test_data): New variable.
61525         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
61526
61527 2013-05-15  Peter Collingbourne  <pcc@google.com>
61528
61529         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
61530         (EXTRACT_WORDS64) Use where appropriate.
61531         (INSERT_WORDS64) Likewise.
61532
61533         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
61534         constraints with x constraints.
61535         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
61536
61537         * malloc/obstack.c (_obstack_compat): Add initializer.
61538
61539 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
61540
61541         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
61542         si_trapno and add si_addr_lsb to _sifields.sigfault.
61543         (si_trapno): Remove macro.
61544         (si_addr_lsb): Define new macro.
61545         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
61546
61547 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
61548
61549         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
61550         instead of TEST_f_l.
61551         (llrint_test_tonearest): Likewise.
61552         (llrint_test_towardzero): Likewise.
61553         (llrint_test_downward): Likewise.
61554         (llrint_test_upward): Likewise.
61555         (llround_test): Likewise.
61556
61557         * math/libm-test.inc (struct test_f_i_data): Add comment.
61558         (RUN_TEST_LOOP_f_b): New macro.
61559         (RUN_TEST_LOOP_f_b_tg): Likewise.
61560         (finite_test_data): New variable.
61561         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
61562         (isfinite_test_data): New variable.
61563         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61564         (isinf_test_data): New variable.
61565         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61566         (isnan_test_data): New variable.
61567         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61568         (isnormal_test_data): New variable.
61569         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61570         (issignaling_test_data): New variable.
61571         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61572         (signbit_test_data): New variable.
61573         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61574
61575         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
61576         with INVALID_EXCEPTION.
61577         (acosh_test_data): Likewise.
61578         (asin_test_data): Likewise.
61579         (atanh_test_data): Likewise.
61580         (fmod_test_data): Likewise.
61581         (log_test_data): Likewise.
61582         (log10_test_data): Likewise.
61583         (log2_test_data): Likewise.
61584         (pow_test_data): Likewise.
61585         (sqrt_test_data): Likewise.
61586         (y0_test_data): Likewise.
61587         (y1_test_data): Likewise.
61588         (yn_test_data): Likewise.
61589
61590         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
61591         function contents.
61592
61593         * math/libm-test.inc (struct test_ff_i_data): New type.
61594         (RUN_TEST_LOOP_ff_i_tg): New macro.
61595         (isgreater_test_data): New variable.
61596         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61597         (isgreaterequal_test_data): New variable.
61598         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61599         (isless_test_data): New variable.
61600         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61601         (islessequal_test_data): New variable.
61602         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61603         (islessgreater_test_data): New variable.
61604         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61605         (isunordered_test_data): New variable.
61606         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61607
61608 2013-05-14  David S. Miller  <davem@davemloft.net>
61609
61610         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61611
61612 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
61613
61614         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
61615
61616         * math/libm-test.inc (struct test_fF_f1_data): Change type of
61617         extra_test to int.
61618         (struct test_f_i_data): Change type of max_ulp to int.
61619
61620         * math/libm-test.inc (test_ffI_f1_data): New type.
61621         (RUN_TEST_LOOP_ffI_f1): New macro.
61622         (remquo_test_data): New variable.
61623         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
61624
61625         * setjmp/tst-setjmp-fp.c: New file.
61626         * setjmp/Makefile (tests): Add tst-setjmp-fp.
61627         (link-libm): New variable.
61628         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
61629
61630         * math/libm-test.inc (struct test_f_i_data): New type.
61631         (RUN_TEST_LOOP_f_i): New macro.
61632         (RUN_TEST_LOOP_f_i_tg): Likewise.
61633         (fpclassify_test_data): New variable.
61634         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
61635         (ilogb_test_data): New variable.
61636         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
61637
61638         * math/libm-test.inc (scalbln_test): Correct function name in END
61639         call.
61640
61641         * math/libm-test.inc (struct test_f_f1_data): Add comment.
61642         (RUN_TEST_LOOP_fI_f1): New macro.
61643         (frexp_test_data): New variable.
61644         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
61645
61646         * math/libm-test.inc (struct test_fF_f1_data): New type.
61647         (RUN_TEST_LOOP_fF_f1): New macro.
61648         (modf_test_data): New variable.
61649         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
61650
61651         * math/libm-test.inc (struct test_f_f1_data): New type.
61652         (RUN_TEST_LOOP_f_f1): New macro.
61653         (gamma_test_data): New variable.
61654         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
61655         (lgamma_test_data): New variable.
61656         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
61657
61658 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
61659
61660         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
61661         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
61662         (main): Comment "tls" pseudo-hwcap.
61663
61664 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
61665
61666         * math/libm-test.inc (struct test_fl_f_data): New type.
61667         (RUN_TEST_LOOP_fl_f): New variable.
61668         (scalbln_test_data): New variable.
61669         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
61670
61671         * math/libm-test.inc (struct test_fi_f_data): New type.
61672         (RUN_TEST_LOOP_fi_f): New macro.
61673         (ldexp_test_data): New variable.
61674         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
61675         (scalbn_test_data): New variable.
61676         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
61677
61678         * math/libm-test.inc (struct test_c_f_data): New type.
61679         (RUN_TEST_LOOP_c_f): New macro.
61680         (cabs_test_data): New variable.
61681         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
61682         (carg_test_data): New variable.
61683         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
61684         (cimag_test_data): New variable.
61685         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
61686         (creal_test_data): New variable.
61687         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
61688
61689         * math/libm-test.inc (struct test_if_f_data): New type.
61690         (RUN_TEST_LOOP_if_f): New macro.
61691         (jn_test_data): New variable.
61692         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
61693         (yn_test_data): New variable.
61694         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
61695
61696         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
61697
61698 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61699
61700         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
61701         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
61702
61703 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
61704
61705         * benchtests/Makefile (CPPFLAGS-nonlib): Add
61706         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
61707         (bench-deps): Add bench-timing.h.
61708         * benchtests-bench-skeleton.c: Include bench-timing.h.
61709         (main): Use TIMING_* macros instead of clock_gettime.
61710         * benchtests/bench-timing.h: New file.
61711
61712         [BZ #14582]
61713         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
61714         Renamed from _LIB_VERSION.
61715         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
61716
61717 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
61718
61719         * math/libm-test.inc (struct test_fff_f_data): New type.
61720         (RUN_TEST_LOOP_fff_f): New macro.
61721         (fma_test_data): New variable.
61722         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
61723         (fma_towardzero_test_data): New variable.
61724         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
61725         (fma_downward_test_data): New variable.
61726         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
61727         (fma_upward_test_data): New variable.
61728         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
61729
61730         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
61731         (struct test_c_c_data): New type.
61732         (RUN_TEST_LOOP_c_c): New macro.
61733         (cacos_test_data): New variable.
61734         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
61735         (cacosh_test_data): New variable.
61736         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
61737         (casin_test_data): New variable.
61738         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
61739         (casinh_test_data): New variable.
61740         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
61741         (catan_test_data): New variable.
61742         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
61743         (catanh_test_data): New variable.
61744         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
61745         (ccos_test_data): New variable.
61746         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
61747         (ccosh_test_data): New variable.
61748         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
61749         (cexp_test_data): New variable.
61750         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
61751         (clog_test_data): New variable.
61752         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
61753         (clog10_test_data): New variable.
61754         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
61755         (conj_test_data): New variable.
61756         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
61757         (cproj_test_data): New variable.
61758         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
61759         (csin_test_data): New variable.
61760         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
61761         (csinh_test_data): New variable.
61762         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
61763         (csqrt_test_data): New variable.
61764         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
61765         (ctan_test_data): New variable.
61766         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
61767         (ctan_tonearest_test_data): New variable.
61768         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
61769         (ctan_towardzero_test_data): New variable.
61770         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
61771         (ctan_downward_test_data): New variable.
61772         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
61773         (ctan_upward_test_data): New variable.
61774         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
61775         (ctanh_test_data): New variable.
61776         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
61777         (ctanh_tonearest_test_data): New variable.
61778         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
61779         (ctanh_towardzero_test_data): New variable.
61780         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
61781         (ctanh_downward_test_data): New variable.
61782         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
61783         (ctanh_upward_test_data): New variable.
61784         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
61785         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
61786         of BUILD_COMPLEX.
61787
61788         * math/libm-test.inc (struct test_ff_f_data): New type.
61789         (struct test_ff_f_data_nexttoward): Likewise.
61790         (RUN_TEST_LOOP_2_f): New macro.
61791         (RUN_TEST_LOOP_ff_f): Likewise.
61792         (atan2_test_data): New variable.
61793         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
61794         (copysign_test_data): New variable.
61795         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
61796         (fdim_test_data): New variable.
61797         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
61798         (fmax_test_data): New variable.
61799         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
61800         (fmin_test_data): New variable.
61801         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
61802         (fmod_test_data): New variable.
61803         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
61804         (hypot_test_data): New variable.
61805         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
61806         (nextafter_test_data): New variable.
61807         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
61808         (nexttoward_test_data): New variable.
61809         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
61810         (pow_test_data): New variable.
61811         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
61812         (pow_tonearest_test_data): New variable.
61813         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
61814         (pow_towardzero_test_data): New variable.
61815         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
61816         (pow_downward_test_data): New variable.
61817         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
61818         (pow_upward_test_data): New variable.
61819         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
61820         (remainder_test_data): New variable.
61821         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
61822         (scalb_test_data): New variable.
61823         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
61824         * sysdeps/i386/fpu/libm-test-ulps: Update.
61825
61826 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
61827
61828         * math/libm-test.inc (fma_test): Use max_value instead of local
61829         variable fltmax.
61830         (nextafter_test): Likewise.
61831
61832         * math/libm-test.inc (acos_towardzero_test_data): New variable.
61833         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61834         (acos_downward_test_data): New variable.
61835         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61836         (acos_upward_test_data): New variable.
61837         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61838         (acosh_test_data): New variable.
61839         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
61840         (asin_test_data): New variable.
61841         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
61842         (asin_tonearest_test_data): New variable.
61843         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61844         (asin_towardzero_test_data): New variable.
61845         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61846         (asin_downward_test_data): New variable.
61847         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61848         (asin_upward_test_data): New variable.
61849         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61850         (asinh_test_data): New variable.
61851         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
61852         (atan_test_data): New variable.
61853         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
61854         (atanh_test_data): New variable.
61855         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
61856         (cbrt_test_data): New variable.
61857         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
61858         (ceil_test_data): New variable.
61859         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
61860         (cos_test_data): New variable.
61861         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
61862         (cos_tonearest_test_data): New variable.
61863         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61864         (cos_towardzero_test_data): New variable.
61865         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61866         (cos_downward_test_data): New variable.
61867         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61868         (cos_upward_test_data): New variable.
61869         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61870         (cosh_test_data): New variable.
61871         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
61872         (cosh_tonearest_test_data): New variable.
61873         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61874         (cosh_towardzero_test_data): New variable.
61875         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61876         (cosh_downward_test_data): New variable.
61877         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61878         (cosh_upward_test_data): New variable.
61879         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61880         (erf_test_data): New variable.
61881         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
61882         (erfc_test_data): New variable.
61883         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
61884         (exp_test_data): New variable.
61885         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
61886         (exp_tonearest_test_data): New variable.
61887         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61888         (exp_towardzero_test_data): New variable.
61889         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61890         (exp_downward_test_data): New variable.
61891         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61892         (exp_upward_test_data): New variable.
61893         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61894         (exp10_test_data): New variable.
61895         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
61896         (exp2_test_data): New variable.
61897         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
61898         (expm1_test_data): New variable.
61899         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
61900         (fabs_test_data): New variable.
61901         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
61902         (floor_test_data): New variable.
61903         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
61904         (j0_test_data): New variable.
61905         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
61906         (j1_test_data): New variable.
61907         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
61908         (log_test_data): New variable.
61909         (log_test): Run tests with RUN_TEST_LOOP_f_f.
61910         (log10_test_data): New variable.
61911         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
61912         (log1p_test_data): New variable.
61913         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
61914         (log2_test_data): New variable.
61915         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
61916         (logb_test_data): New variable.
61917         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
61918         (logb_downward_test_data): New variable.
61919         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61920         (nearbyint_test_data): New variable.
61921         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
61922         (rint_test_data): New variable.
61923         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
61924         (rint_tonearest_test_data): New variable.
61925         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61926         (rint_towardzero_test_data): New variable.
61927         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61928         (rint_downward_test_data): New variable.
61929         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61930         (rint_upward_test_data): New variable.
61931         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61932         (round_test_data): New variable.
61933         (round_test): Run tests with RUN_TEST_LOOP_f_f.
61934         (sin_test_data): New variable.
61935         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
61936         (sin_tonearest_test_data): New variable.
61937         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61938         (sin_towardzero_test_data): New variable.
61939         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61940         (sin_downward_test_data): New variable.
61941         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61942         (sin_upward_test_data): New variable.
61943         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61944         (sinh_test_data): New variable.
61945         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
61946         (sinh_tonearest_test_data): New variable.
61947         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61948         (sinh_towardzero_test_data): New variable.
61949         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61950         (sinh_downward_test_data): New variable.
61951         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61952         (sinh_upward_test_data): New variable.
61953         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61954         (sqrt_test_data): New variable.
61955         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
61956         (tan_test_data): New variable.
61957         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
61958         (tan_tonearest_test_data): New variable.
61959         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61960         (tan_towardzero_test_data): New variable.
61961         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61962         (tan_downward_test_data): New variable.
61963         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61964         (tan_upward_test_data): New variable.
61965         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61966         (tanh_test_data): New variable.
61967         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
61968         (tgamma_test_data): New variable.
61969         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
61970         (trunc_test_data): New variable.
61971         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
61972         (y0_test_data): New variable.
61973         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
61974         (y1_test_data): New variable.
61975         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
61976         (significand_test_data): New variable.
61977         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
61978
61979 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
61980
61981         [BZ #12387]
61982         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
61983
61984 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
61985
61986         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
61987
61988 2013-05-10  Andreas Jaeger  <aj@suse.de>
61989
61990         [BZ #15448]
61991         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
61992         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
61993
61994 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
61995
61996         * math/gen-libm-test.pl (adjust_arg): New function.
61997         (special_functions): Handle generating output in both functions
61998         and arrays.
61999         (parse_args): Likewise.
62000         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
62001         $in_func argument to parse_args.
62002         * math/libm-test.inc (struct test_f_f_data): New type.
62003         (IF_ROUND_INIT_): New macro.
62004         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
62005         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
62006         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
62007         (IF_ROUND_INIT_FE_UPWARD): Likewise.
62008         (ROUND_RESTORE_): Likewise.
62009         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
62010         (ROUND_RESTORE_FE_TONEAREST): Likewise.
62011         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
62012         (ROUND_RESTORE_FE_UPWARD): Likewise.
62013         (RUN_TEST_LOOP_f_f): New macro.
62014         (acos_test_data): New variable.
62015         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
62016         (acos_tonearest_test_data): New variable.
62017         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62018
62019 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
62020
62021         * benchtests/bench-skeleton.c (startup): Fix coding style.
62022
62023 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
62024
62025         [BZ #6809]
62026         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
62027         negative infinity argument.
62028         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
62029         negative infinity argument.
62030         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
62031         negative infinity argument.
62032         * math/libm-test.inc (tgamma_test): Expect errno to be set for
62033         domain errors.
62034
62035 2013-05-10  Florian Weimer  <fweimer@redhat.com>
62036
62037         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
62038         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
62039         * iconv/iconv_prog.c (main): Likewise.
62040         * locale/programs/charmap-dir.c (charmap_readdir)
62041         (fopen_uncompressed): Likewise.
62042         * locale/programs/locfile.c (siblings_uncached)
62043         (write_locale_data): Use lstat64 instead of lstat.
62044         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
62045         stat.
62046
62047 2013-05-10  Andreas Jaeger  <aj@suse.de>
62048
62049         [BZ #15395]
62050         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
62051         localization.
62052         Include <locale.h>.
62053
62054 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
62055
62056         * elf/dl-close.c (_dl_close_worker): Add comments.
62057
62058 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
62059
62060         [BZ #15359]
62061         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
62062         high part of pi/2.
62063         (__ieee754_rem_pio2l): Update comments.
62064
62065         [BZ #15429]
62066         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
62067         high part of pi/2.
62068         (__ieee754_rem_pio2l): Update comments.
62069
62070         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
62071         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
62072
62073         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
62074         M_PI_4l.
62075
62076         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
62077         (M_PI_34_LOG10El): Likewise.
62078         (M_PI2_LOG10El): Likewise.
62079         (M_PI4_LOG10El): Likewise.
62080         (M_PI_LOG10El): Likewise.
62081
62082 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62083
62084         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62085
62086 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
62087
62088         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
62089         (MINUS_ZERO_INIT): Likewise.
62090         (PLUS_INFTY_INIT): Likewise.
62091         (MINUS_INFTY_INIT): Likewise.
62092         (QNAN_VALUE_INIT): Likewise.
62093         (MAX_VALUE_INIT): Likewise.
62094         (MIN_VALUE_INIT): Likewise.
62095         (MIN_SUBNORM_VALUE_INIT): Likewise.
62096         (plus_zero): Initialize with PLUS_ZERO_INIT.
62097         (minus_zero): Initialize with MINUS_ZERO_INIT.
62098         (plus_infty): Initialize with PLUS_INFTY_INIT.
62099         (minus_infty): Initialize with MINUS_INFTY_INIT.
62100         (qnan_value): Initialize with QNAN_VALUE_INIT.
62101         (max_value): Initialize with MAX_VALUE_INIT.
62102         (min_value): Initialize with MIN_VALUE_INIT.
62103         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
62104
62105         * math/libm-test.inc (RUN_TEST_if_f): New macro.
62106         (jn_test): Use TEST_if_f instead of TEST_ff_f.
62107         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
62108         (yn_test): Use TEST_if_f instead of TEST_ff_f.
62109
62110         * math/libm-test.inc (RUN_TEST_f_f): New macro.
62111         (RUN_TEST_2_f): Likewise.
62112         (RUN_TEST_ff_f): Likewise.
62113         (RUN_TEST_fi_f): Likewise.
62114         (RUN_TEST_fl_f): Likewise.
62115         (RUN_TEST_fff_f): Likewise.
62116         (RUN_TEST_c_f): Likewise.
62117         (RUN_TEST_f_f1): Likewise.
62118         (RUN_TEST_fF_f1): Likewise.
62119         (RUN_TEST_fI_f1): Likewise.
62120         (RUN_TEST_ffI_f1): Likewise.
62121         (RUN_TEST_c_c): Likewise.
62122         (RUN_TEST_cc_c): Likewise.
62123         (RUN_TEST_f_i): Likewise.
62124         (RUN_TEST_f_i_tg): Likewise.
62125         (RUN_TEST_ff_i_tg): Likewise.
62126         (RUN_TEST_f_b): Likewise.
62127         (RUN_TEST_f_b_tg): Likewise.
62128         (RUN_TEST_f_l): Likewise.
62129         (RUN_TEST_f_L): Likewise.
62130         (RUN_TEST_sincos): Likewise.
62131         * math/gen-libm-test.pl (new_test): Take new argument to indicate
62132         whether to show exceptions.  Do not include ");\n" in return
62133         value.
62134         (special_functions): Output call to RUN_TEST_sincos instead of
62135         check_float calls.  Update calls to new_test.
62136         (parse_args): Output call to single RUN_TEST_* macro instead of
62137         check_* calls and other assignments.  Update calls to new_test.
62138
62139         [BZ #2546]
62140         [BZ #2560]
62141         [BZ #5159]
62142         [BZ #15426]
62143         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
62144         input to result for tgamma overflow.
62145         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
62146         (gamma_coeff): New variable.
62147         (NCOEFF): New macro.
62148         (gamma_positive): New function.
62149         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
62150         underflow here.  Use gamma_positive instead of exp (lgamma) for
62151         other arguments.
62152         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
62153         (gamma_coeff): New variable.
62154         (NCOEFF): New macro.
62155         (gammaf_positive): New function.
62156         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
62157         underflow here.  Use gamma_positive instead of exp (lgamma) for
62158         other arguments.
62159         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
62160         (gamma_coeff): New variable.
62161         (NCOEFF): New macro.
62162         (gammal_positive): New function.
62163         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
62164         underflow here.  Use gamma_positive instead of exp (lgamma) for
62165         other arguments.
62166         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
62167         (gamma_coeff): New variable.
62168         (NCOEFF): New macro.
62169         (gammal_positive): New function.
62170         (__ieee754_gammal_r): Handle positive infinity, overflow and
62171         underflow here.  Handle NaN the same as positive infinity.  Remove
62172         check x < 0xffffffff for negative integers.  Use gamma_positive
62173         instead of exp (lgamma) for other arguments.
62174         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
62175         (gamma_coeff): New variable.
62176         (NCOEFF): New macro.
62177         (gammal_positive): New function.
62178         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
62179         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
62180         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
62181         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
62182         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
62183         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
62184         * sysdeps/generic/math_private.h (__gamma_productf): New
62185         prototype.
62186         (__gamma_product): Likewise.
62187         (__gamma_productl): Likewise.
62188         * math/Makefile (libm-calls): Add gamma_product.
62189         * math/libm-test.inc (tgamma_test): Add more tests.
62190         * sysdeps/i386/fpu/libm-test-ulps: Update.
62191         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62192
62193 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
62194
62195         * benchtests/bench-skeleton.c (main): Preheat CPU.
62196
62197 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
62198
62199         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
62200
62201 2013-05-07  Roland McGrath  <roland@hack.frob.com>
62202
62203         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
62204         and _dl_skip_args_internal.
62205
62206 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
62207
62208         * manual/message.texi (Message Translation): Talk about users.
62209         Message to key mapping impacts design.
62210
62211 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62212
62213         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
62214
62215         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
62216
62217         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
62218         * sysdeps/wordsize-64/glob64.c: ... here.
62219
62220         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
62221         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
62222         New macros.
62223
62224         * debug/getlogin_r_chk.c: Moved to ...
62225         * login/getlogin_r_chk.c: ... here.
62226         * debug/Makefile (routines): Move getlogin_r_chk to ...
62227         * login/Makefile (routines): ... here.
62228         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
62229         * login/Versions (libc: GLIBC_2.4): ... here.
62230
62231         * io/poll.c (__poll): Renamed from poll.
62232         Add libc_hidden_def.
62233         (poll): Define as weak alias.
62234
62235         * debug/ptsname_r_chk.c: Moved to ...
62236         * login/ptsname_r_chk.c: ... here.
62237         * debug/Makefile (routines): Move ptsname_r_chk to ...
62238         * login/Makefile (routines): ... here.
62239         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
62240         * login/Versions (libc: GLIBC_2.4): ... here.
62241
62242         * posix/getlogin.c: Moved to ...
62243         * login/getlogin.c: ... here.
62244         * posix/getlogin_r.c: Moved to ...
62245         * login/getlogin_r.c: ... here.
62246         * posix/getlogin_r.c: Moved to ...
62247         * login/getlogin_r.c: ... here.
62248         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
62249         * login/Makefile (routines): ... here.
62250         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
62251         * login/Versions (libc: GLIBC_2.0): ... here.
62252
62253         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
62254         (setrlimit): Define as weak alias.
62255
62256         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
62257         Call __ names for open, ftruncate, and close.
62258         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
62259         (truncate): Define as weak alias.
62260
62261 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
62262
62263         * math/gen-libm-test.pl (parse_args): Initialize x before each
62264         test of frexp, modf and remquo.
62265
62266         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
62267         test signgam value.
62268
62269 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62270
62271         [BZ #15418]
62272         [BZ #15419]
62273         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
62274         internal tests.
62275         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
62276
62277 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62278
62279         * elf/dl-writev.h: New file.
62280         * elf/dl-misc.c: Include it.
62281         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
62282         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
62283
62284 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
62285
62286         * math/libm-test.inc (noXFails): Remove variable.
62287         (noXPasses): Likewise.
62288         (BUILD_COMPLEX_INT): Remove macro.
62289         (print_screen): Remove xfail argument.
62290         (print_screen_max_error): Likewise.
62291         (update_stats): Likewise.
62292         (print_max_error): Likewise.  Update calls to other affected
62293         functions.
62294         (print_complex_max_error): Likewise.
62295         (test_single_exception): Update calls to print_screen.
62296         (test_single_errno): Likewise.
62297         (check_float_internal): Remove xfail argument.  Update calls to
62298         other affected functions.
62299         (check_float): Likewise.
62300         (check_complex): Likewise.
62301         (check_int): Likewise.
62302         (check_long): Likewise.
62303         (check_bool): Likewise.
62304         (check_longlong): Likewise.
62305         (main): Don't print noXFails and noXPasses.
62306         * math/gen-libm-test.pl (top level): Don't mention expected
62307         failure handling in comment.
62308         (new_test): Don't handle expected failures.
62309         (parse_args): Don't mention expected failure handling in comment.
62310         (generate_testfile): Don't handle expected failures.
62311         (parse_ulps): Likewise.
62312         (print_ulps_file): Likewise.
62313         (get_failure): Remove function.
62314         (output_test): Don't handle expected failures.
62315         * make/README.libm-test: Don't mention expected failure handling.
62316
62317         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
62318         (minus_zero): Likewise.
62319         (plus_infty): Likewise.
62320         (minus_infty): Likewise.
62321         (qnan_value): Likewise.
62322         (max_value): Likewise.
62323         (min_value): Likewise.
62324         (min_subnorm_value): Likewise.
62325         (initialize): Do not initialize those variables dynamically.
62326
62327 2013-05-03  Roland McGrath  <roland@hack.frob.com>
62328
62329         * io/open.c (__open_2): Moved to ...
62330         * io/open_2.c: ... this new file.
62331         * io/open64.c (__open64_2): Moved to ...
62332         * io/open64_2.c: ... this new file.
62333         * io/openat.c (__openat_2): Moved to ...
62334         * io/openat_2.c: ... this new file.
62335         * io/openat64.c (__openat64_2): Moved to ...
62336         * io/openat64_2.c: ... this new file.
62337         * io/Makefile (routines): Add them.
62338         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
62339         * sysdeps/unix/sysv/linux/open_2.c: File removed.
62340         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
62341         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
62342         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
62343         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
62344         (__openat64): Add hidden_ver.
62345         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
62346         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
62347
62348         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
62349         Separately conditionalize setting of GLRO(dl_sysinfo) so
62350         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
62351         as well, but the actual setting is only under [NEED_DL_SYSINFO].
62352
62353 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62354
62355         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
62356         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
62357         definition.
62358         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
62359         * sysdeps/unix/sysv/linux/powerpc/init-first.c
62360         (_libc_vdso_platform_setup): Add __vdso_time initialization.
62361         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
62362         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
62363
62364 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
62365
62366         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
62367         test signgam value.
62368
62369         * math/libm-test.inc (hypot_test): Do not use
62370         IGNORE_ZERO_INF_SIGN.
62371
62372 2013-05-03  Andreas Jaeger  <aj@suse.de>
62373
62374         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
62375         Linux 3.9.
62376         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
62377         (PF_MAX): Adjust for VSOCK change.
62378
62379 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62380
62381         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62382
62383 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
62384
62385         [BZ #15264]
62386         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
62387         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
62388         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
62389
62390 2013-05-02  David S. Miller  <davem@davemloft.net>
62391
62392         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62393
62394 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
62395
62396         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
62397
62398 2013-05-01  Roland McGrath  <roland@hack.frob.com>
62399
62400         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
62401
62402 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
62403
62404         [BZ #14952]
62405         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
62406         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62407         Use __attribute__ ((__gnu_inline__)).
62408         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62409         Don't use __attribute__ ((__gnu_inline__)).
62410
62411 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
62412
62413         [BZ #15423]
62414         * math/s_catan.c (__catan): Handle small real or imaginary part of
62415         input specially to avoid spurious underflow.
62416         * math/s_catanf.c (__catanf): Likewise.
62417         * math/s_catanh.c (__catanh): Likewise.
62418         * math/s_catanhf.c (__catanhf): Likewise.
62419         * math/s_catanhl.c (__catanhl): Likewise.
62420         * math/s_catanl.c (__catanl): Likewise.
62421         * math/libm-test.inc (catan_test): Add more tests.
62422         (catanh_test): Likewise.
62423         * sysdeps/i386/fpu/libm-test-ulps: Update.
62424         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62425
62426 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62427
62428         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62429
62430 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
62431
62432         [BZ #15416]
62433         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
62434         accurately for denominator in atan2.
62435         * math/s_catanf.c (__catanf): Likewise.
62436         * math/s_catanh.c (__catanh): Likewise.
62437         * math/s_catanhf.c (__catanhf): Likewise.
62438         * math/s_catanhl.c (__catanhl): Likewise.
62439         * math/s_catanl.c (__catanl): Likewise.
62440         * math/libm-test.inc (catan_test): Add more tests.
62441         (catanh_test): Likewise.
62442         * sysdeps/i386/fpu/libm-test-ulps: Update.
62443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62444
62445 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
62446
62447         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
62448
62449         * benchtests/Makefile (bench): Remove slow benchmarks.
62450         * benchtests/atan-inputs: Add slow benchmark inputs.
62451         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
62452         (BENCH_FUNC): Accept variant offset.
62453         (VARIANT): Define.
62454         * benchtests/bench-skeleton.c (main): Run benchmark for each
62455         variant.
62456         * benchtests/cos-inputs: Add slow benchmark inputs.
62457         * benchtests/exp-inputs: Likewise.
62458         * benchtests/pow-inputs: Likewise.
62459         * benchtests/sin-inputs: Likewise.
62460         * benchtests/slowatan-inputs: Remove.
62461         * benchtests/slowatan.c: Remove.
62462         * benchtests/slowcos-inputs: Remove.
62463         * benchtests/slowcos.c: Remove.
62464         * benchtests/slowexp-inputs: Remove.
62465         * benchtests/slowexp.c: Remove.
62466         * benchtests/slowpow-inputs: Remove.
62467         * benchtests/slowpow.c: Remove.
62468         * benchtests/slowsin-inputs: Remove.
62469         * benchtests/slowsin.c: Remove.
62470         * benchtests/slowtan-inputs: Remove.
62471         * benchtests/slowtan.c: Remove.
62472         * benchtests/tan-inputs: Add slow benchmark inputs.
62473         * scripts/bench.pl: Parse comments and directives.
62474
62475         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
62476         in CPPFLAGS.
62477         ($(objpfx)bench-%.c): Remove *-ITER.
62478         * benchtests/bench-modf.c: Remove definition of ITER.
62479         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
62480         (main): Loop for DURATION seconds instead of fixed number of
62481         iterations.
62482         * scripts/bench.pl: Don't expect iterations in parameters.
62483
62484 2013-04-29  Roland McGrath  <roland@hack.frob.com>
62485
62486         * io/fchdir.c (__fchdir): Renamed from fchdir.
62487         (fchdir): Define as weak alias.
62488
62489 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
62490
62491         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
62492         (ERRNO_EDOM): Likewise.
62493         (ERRNO_ERANGE): Likewise.
62494         (noErrnoTests): New variable.
62495         (init_max_error): Set errno to 0.
62496         (test_single_errno): New function.
62497         (test_errno): Likewise.
62498         (check_float_internal): Call test_errno.  Set errno to 0.
62499         (check_complex): Refer to errno tests in comment.
62500         (check_int): Call test_errno.  Set errno to 0.
62501         (check_long): Likewise.
62502         (check_bool): Likewise.
62503         (check_longlong): Likewise.
62504         (cos_test): Use ERRNO_* flags for errno tests instead of
62505         check_int.
62506         (expm1_test): Likewise.
62507         (fmod_test): Likewise.
62508         (ilogb_test): Likewise.
62509         (lgamma_test): Likewise.
62510         (pow_test): Likewise.
62511         (remainder_test): Likewise.
62512         (sin_test): Likewise.
62513         (tan_test): Likewise.
62514         (yn_test): Likewise.
62515         (initialize): Set errno to 0.
62516         (main): Print number of errno tests.
62517         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
62518
62519 2013-04-29  Andreas Jaeger  <aj@suse.de>
62520
62521         [BZ #15084]
62522         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
62523         and RES_USEVC.
62524
62525         [BZ #15085]
62526         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
62527         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
62528         unimplemented.
62529
62530         [BZ #15380]
62531         * stdlib/random.c (__initstate): Return NULL if
62532         __initstate fails.
62533
62534         [BZ #15086]
62535         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
62536         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
62537         RES_SNGLKUPREOP.
62538
62539 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62540
62541         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62542
62543 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
62544
62545         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
62546         of individual tests.
62547         (casin_test): Likewise.
62548         (casinh_test): Likewise.
62549
62550 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
62551
62552         [BZ #15409]
62553         * math/s_catan.c (__catan): Handle arguments with large real or
62554         imaginary part separately without squaring.
62555         * math/s_catanf.c (__catanf): Likewise.
62556         * math/s_catanh.c (__catanh): Likewise.
62557         * math/s_catanhf.c (__catanhf): Likewise.
62558         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
62559         and redefine.
62560         (__catanhl): Handle arguments with large real or imaginary part
62561         separately without squaring.
62562         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
62563         and redefine.
62564         (__catanl): Handle arguments with large real or imaginary part
62565         separately without squaring.
62566         * math/libm-test.inc (catan_test): Add more tests.
62567         (catanh_test): Likewise.
62568         * sysdeps/i386/fpu/libm-test-ulps: Update.
62569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62570
62571 2013-04-27  Andreas Jaeger  <aj@suse.de>
62572
62573         [BZ #15007]
62574         * stdlib/stdlib.h: Update guards for qecvt.
62575         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
62576         <stdlib.h>.
62577
62578 2013-04-27  Allan McRae  <allan@archlinux.org>
62579
62580         * sysdeps/i386/fpu/libm-test-ulps: Update.
62581
62582 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
62583
62584         [BZ #15406]
62585         * math/s_catan.c: Include <float.h>.
62586         (__catan): Ensure underflow exception occurs for underflowed
62587         result.
62588         * math/s_catanf.c: Include <float.h>.
62589         (__catanf): Ensure underflow exception occurs for underflowed
62590         result.
62591         * math/s_catanh.c: Include <float.h>.
62592         (__catanh): Ensure underflow exception occurs for underflowed
62593         result.
62594         * math/s_catanhf.c: Include <float.h>.
62595         (__catanhf): Ensure underflow exception occurs for underflowed
62596         result.
62597         * math/s_catanhl.c: Include <float.h>.
62598         (__catanhl): Ensure underflow exception occurs for underflowed
62599         result.
62600         * math/s_catanl.c: Include <float.h>.
62601         (__catanl): Ensure underflow exception occurs for underflowed
62602         result.
62603         * math/libm-test.inc (catan_test): Add more tests.
62604         (catanh_test): Likewise.
62605
62606         [BZ #15405]
62607         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
62608         underflowed result.
62609         * math/s_ccoshf.c (__ccoshf): Likewise.
62610         * math/s_ccoshl.c (__ccoshl): Likewise.
62611         * math/s_csin.c (__csin): Likewise.
62612         * math/s_csinf.c (__csinf): Likewise.
62613         * math/s_csinh.c (__csinh): Likewise.
62614         * math/s_csinhf.c (__csinhf): Likewise.
62615         * math/s_csinhl.c (__csinhl): Likewise.
62616         * math/s_csinl.c (__csinl): Likewise.
62617         * math/libm-test.inc (ccos_test): Add more tests.
62618         (ccosh_test): Likewise.
62619         (csin_test): Likewise.
62620         (csinh_test): Likewise.
62621
62622 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62623
62624         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
62625         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
62626         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
62627         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
62628         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
62629         powerpc/power5+/fpu folders.
62630         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
62631
62632
62633 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
62634
62635         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
62636
62637 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
62638
62639         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
62640         additions to variable.
62641         [$(config-machine) = x86_64] (modules-names): Likewise.
62642         ($(objpfx)tst-audit3): Remove dependency.
62643         ($(objpfx)tst-audit3.out): Likewise.
62644         ($(objpfx)tst-audit4): Likewise.
62645         ($(objpfx)tst-audit4.out): Likewise.
62646         ($(objpfx)tst-audit5): Likewise.
62647         ($(objpfx)tst-audit5.out): Likewise.
62648         ($(objpfx)tst-audit6): Likewise.
62649         ($(objpfx)tst-audit6.out): Likewise.
62650         ($(objpfx)tst-audit7): Likewise.
62651         ($(objpfx)tst-audit7.out): Likewise.
62652         (tst-audit3-ENV): Remove variable.
62653         (tst-audit4-ENV): Likewise.
62654         (tst-audit5-ENV): Likewise.
62655         (tst-audit6-ENV): Likewise.
62656         (tst-audit7-ENV): Likewise.
62657         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
62658         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
62659         addition to variable.
62660         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
62661         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
62662         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
62663         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
62664         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
62665         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
62666         tst-audit3, tst-audit4 and tst-audit5.
62667         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
62668         tst-audit6 and tst-audit7.
62669         [$(subdir) = elf] (modules-names): Add audit modules for those
62670         tests.
62671         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
62672         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
62673         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
62674         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
62675         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
62676         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
62677         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
62678         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
62679         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
62680         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
62681         [$(subdir) = elf] (tst-audit3-ENV): New variable.
62682         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
62683         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
62684         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
62685         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
62686         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
62687         Likewise.
62688         [$(subdir) = elf && $(config-cflags-avx) = yes]
62689         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
62690         [$(subdir) = elf && $(config-cflags-avx) = yes]
62691         (CFLAGS-tst-auditmod4a.c): Likewise.
62692         [$(subdir) = elf && $(config-cflags-avx) = yes]
62693         (CFLAGS-tst-auditmod4b.c): Likewise.
62694         [$(subdir) = elf && $(config-cflags-avx) = yes]
62695         (CFLAGS-tst-auditmod6b.c): Likewise.
62696         [$(subdir) = elf && $(config-cflags-avx) = yes]
62697         (CFLAGS-tst-auditmod6c.c): Likewise.
62698         [$(subdir) = elf && $(config-cflags-avx) = yes]
62699         (CFLAGS-tst-auditmod7b.c): Likewise.
62700         * elf/tst-audit3.c: Move to ...
62701         * sysdeps/x86_64/tst-audit3.c: ... here.
62702         * elf/tst-audit4.c: Move to ...
62703         * sysdeps/x86_64/tst-audit4.c: ... here.
62704         * elf/tst-audit5.c: Move to ...
62705         * sysdeps/x86_64/tst-audit5.c: ... here.
62706         * elf/tst-audit6.c: Move to ...
62707         * sysdeps/x86_64/tst-audit6.c: ... here.
62708         * elf/tst-audit7.c: Move to ...
62709         * sysdeps/x86_64/tst-audit7.c: ... here.
62710         * elf/tst-auditmod3a.c: Move to ...
62711         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
62712         * elf/tst-auditmod3b.c: Move to ...
62713         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
62714         * elf/tst-auditmod4a.c: Move to ...
62715         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
62716         * elf/tst-auditmod4b.c: Move to ...
62717         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
62718         * elf/tst-auditmod5a.c: Move to ...
62719         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
62720         * elf/tst-auditmod5b.c: Move to ...
62721         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
62722         * elf/tst-auditmod6a.c: Move to ...
62723         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
62724         * elf/tst-auditmod6b.c: Move to ...
62725         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
62726         * elf/tst-auditmod6c.c: Move to ...
62727         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
62728         * elf/tst-auditmod7a.c: Move to ...
62729         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
62730         * elf/tst-auditmod7b.c: Move to ...
62731         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
62732
62733 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
62734
62735         [BZ #15366]
62736         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
62737         define unconditionally.
62738         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
62739         define unconditionally.
62740         (INT8_C, INT16_C, etc.): Likewise.
62741
62742 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
62743
62744         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
62745         __ehdr_start with hidden visibility.
62746
62747         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
62748
62749 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
62750
62751         * math/libm-test.inc (cos_test): Use accurate hex constants.
62752         (sincost_test): Likewise.
62753
62754 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
62755
62756         * math/libm-test.inc (catan_test): Add more tests.
62757         (catanh_test): Likewise.
62758
62759         * math/s_catanf.c (__catanf): Use suffixed floating-point
62760         constants.
62761         * math/s_catanhf.c (__catanhf): Likewise.
62762         * math/s_catanhl.c (__catanhl): Likewise.
62763         * math/s_catanl.c (__catanl): Likewise.
62764
62765         [BZ #15394]
62766         * math/s_catan.c (__catan): Calculate imaginary part of result
62767         with log1p not log unless computing log of number close to 0.
62768         * math/s_catanf.c (__catanf): Likewise.
62769         * math/s_catanl.c (__catanl): Likewise.
62770         * math/s_catanh.c (__catanh): Calculate real part of result with
62771         log1p not log unless computing log of number close to 0.
62772         * math/s_catanhf.c (__catanhf): Likewise.
62773         * math/s_catanhl.c (__catanhl): Likewise.
62774         * math/libm-test.inc (catan_test): Add more tests.
62775         (catanh_test): Likewise.
62776         * sysdeps/i386/fpu/libm-test-ulps: Update.
62777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62778
62779 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
62780
62781         * benchtests/Makefile: Mention files in which fast and slow
62782         paths of math functions are implemented.
62783
62784 2013-04-23  Roland McGrath  <roland@hack.frob.com>
62785
62786         * sysdeps/posix/timespec_get.c: New file.
62787
62788 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62789
62790         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
62791         POWER.
62792         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
62793         for POWER.
62794         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
62795         powerpc/power5/fpu folders.
62796         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
62797         * benchtests/Makefile: Add modf testcase.
62798         * benchtests/bench-modf.c: New file: Benchmark test for mo
62799
62800 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
62801
62802         [BZ #14888]
62803         * time/Makefile (tests): Add tst-strptime-whitespace.
62804         * time/strptime_l.c (get_number): Use ISSPACE.
62805         (__strptime_internal): Likewise.
62806         * time/tst-strptime-whitespace.c: New test case.
62807
62808 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
62809
62810         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
62811         member.
62812         (_nss_files_init): Set it here.
62813
62814 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
62815
62816         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
62817         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
62818         unsigned.
62819
62820 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
62821
62822         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
62823
62824 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
62825
62826         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
62827         size just once.
62828
62829 2013-04-21  David S. Miller  <davem@davemloft.net>
62830
62831         * po/ru.po: Update Russion translation from translation project.
62832
62833 2013-04-17  Adam Conrad  <adconrad@0c3.net>
62834
62835         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
62836         and setfsgid.
62837
62838 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
62839
62840         * configure.in: Remove i386 configure warning. Remove i386 case.
62841         * configure: Regenerate.
62842         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
62843         Add example to error message.
62844         * sysdeps/i386/configure: Regenerate.
62845
62846 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
62847
62848         * benchtests/Makefile (bench): Add cos, tan, slowcos and
62849         slowtan.
62850         * benchtests/cos-inputs: New file.
62851         * benchtests/slowcos-inputs: New file.
62852         * benchtests/slowcos.c: New file.
62853         * benchtests/slowtan-inputs: New file.
62854         * benchtests/slowtan.c: New file.
62855         * benchtests/tan-inputs: New file.
62856
62857 2013-04-16  Roland McGrath  <roland@hack.frob.com>
62858
62859         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
62860         considered kosher.
62861
62862 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
62863
62864         * benchtests/Makefile: Include cppflags-iterator.mk to add
62865         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
62866
62867         * Makefile.in (bench-clean): New target.
62868         * benchtests/Makefile (bench-clean): Likewise.
62869
62870 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
62871
62872         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
62873
62874 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
62875
62876         * stdio-common/tstdiomisc.c: Fix coding-style violation.
62877
62878 2013-04-15  Andreas Schwab  <schwab@suse.de>
62879
62880         * nscd/grpcache.c (cache_addgr): Properly check for short write.
62881         * nscd/initgrcache.c (addinitgroupsX): Likewise.
62882         * nscd/pwdcache.c (cache_addpw): Likewise.
62883         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
62884         more than recsize.
62885
62886 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62887
62888         * benchtests/Makefile (bench): Write all output to
62889         bench-out.tmp together.
62890
62891 2013-04-15  Andreas Schwab  <schwab@suse.de>
62892
62893         * nscd/nscd.c (main): Don't fork again after closing files.
62894
62895 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62896
62897         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
62898
62899         * benchtests/Rules (bench-deps): Collect dependencies into a
62900         single variable.  Add Makefile to dependencies.
62901         ($(objpfx)bench-%.c): Depend on bench-deps.
62902
62903 2013-04-12  Roland McGrath  <roland@hack.frob.com>
62904             Xavier Roche  <roche+kml2@exalead.com>
62905
62906         [BZ #15361]
62907         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
62908         just that it's a file descriptor.
62909         * manual/llio.texi (Synchronizing AIO Operations): Update description
62910         for EBADF error from aio_fsync.
62911
62912 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
62913
62914         * Rules (bench): Move target definition...
62915         * benchtests/Makefile: ... here.
62916
62917 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
62918
62919         * math/libm-test.inc (cos_test): Fix PI/2 test.
62920         (sincos_test): Likewise.
62921         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
62922         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
62923
62924 2013-04-11  Andreas Schwab  <schwab@suse.de>
62925
62926         [BZ #13988]
62927         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
62928         accept exponent character only when digits were seen.
62929         * stdio-common/Makefile (tests): Add bug26.
62930         * stdio-common/bug26.c: New file.
62931
62932         [BZ #14293]
62933         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
62934         non-freeable.
62935
62936 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
62937
62938         * Makeconfig (rtld-prefix): Define built linker prefix.
62939         * Rules (run-bench): Use it.
62940         * math/Makefile (run-regen-ulps): Likewise.
62941
62942         * Rules (bench): Remove eval.
62943
62944 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
62945             Roland McGrath  <roland@hack.frob.com>
62946             Ondrej Bilka  <neleai@seznam.cz>
62947
62948         [BZ #15346]
62949         * time/getdate.c: Include ctype.h and alloca.h.
62950         (__getdate_r): Trim leading and trailing spaces of input.
62951         * time/tst-getdate.c (tests): Add tests with leading and
62952         trailing spaces.
62953
62954 2013-04-08  Roland McGrath  <roland@hack.frob.com>
62955
62956         [BZ #14280]
62957         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
62958         when computing value.
62959
62960 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62961
62962         * math/README.libm-test (How can I generate "libm-test-ulps"?):
62963         Use testrun.sh to run libm tests.
62964
62965         [BZ #15309]
62966         * elf/dl-open.c (dl_open_worker): memset all of seen array.
62967
62968 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
62969
62970         [BZ #15264]
62971         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
62972
62973 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62974
62975         * Makefile.in (regen-ulps): New target.
62976         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
62977         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
62978         [ifneq (no,$(PERL)] (regen-ulps): New target.
62979         [ifeq (no,$(PERL)] (regen-ulps): New target.
62980         * math/libm-test.inc (ulps_file_name): Define.
62981         (output_dir): New variable.
62982         (options): Add "output-dir" option.
62983         (parse_opt): Handle 'o' case.
62984         (main): If output_dir is non-NULL use it as a prefix
62985         otherwise use "".
62986         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
62987
62988 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62989
62990         [BZ #10060, #10062]
62991         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
62992         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
62993         fail configure if __sync_val_compare_and_swap is not inlined.
62994         * sysdeps/i386/configure: Regenerate.
62995         * configure.in: Build for i686 when configured for i386.
62996         * configure: Regenerate.
62997         * README: Remove i386 reference.
62998
62999 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63000
63001         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
63002         * sysdeps/s390/s390-64/sysdep.h: Likewise.
63003
63004 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
63005
63006         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
63007         (lmsnanval): New variables.
63008         (F): Add conversion tests.
63009         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
63010         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
63011
63012         * stdio-common/tstdiomisc.c (F): Properly collect individual
63013         tests' results.
63014
63015         [BZ #14686, #15336]
63016         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
63017         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
63018         Instead, use input NaN values or generate a qNaN by arithmetic
63019         operation.  Also fix bugs to comply with the standard.
63020         * math/libm-test.inc (remainder_test): Add more tests.
63021
63022         [BZ #15335, #15342]
63023         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
63024         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
63025         input NaN values or generate a qNaN by arithmetic operation.
63026
63027         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
63028         unreachable code.
63029
63030         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
63031         definitions.
63032
63033 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
63034
63035         [BZ #14478]
63036         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
63037         underflowed result.
63038         * math/s_cexpf.c (__cexpf): Likewise.
63039         * math/s_cexpl.c (__cexpl): Likewise.
63040         * math/libm-test.inc (cexp_test): Add more tests.
63041
63042 2013-04-03  Andreas Schwab  <schwab@suse.de>
63043
63044         [BZ #15330]
63045         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
63046         order arrays from heap if bigger than alloca cutoff.
63047
63048 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
63049
63050         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
63051         (SNAN_TESTS_double): Refer to GCC PR56831.
63052         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
63053         GCC PR56828.
63054
63055 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
63056
63057         * Rules (bench): Move bench.out after the run is complete.
63058
63059         * Rules (bench): Echo currently running benchmark.
63060
63061         * benchtests/Makefile (bench): Add atan and slowatan.
63062         * benchtests/atan-inputs: New file.
63063         * benchtests/slowatan-inputs: New file.
63064         * benchtests/slowatan.c: New file.
63065
63066         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
63067         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
63068         its value.
63069
63070         [BZ #15305]
63071         * sysdeps/unix/sysv/linux/kernel-features.h
63072         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
63073         __ASSUME_XFS_RESTRICTED_CHOWN.
63074         * sysdeps/unix/sysv/linux/pathconf.c
63075         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
63076         Save and restore errno.
63077
63078 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
63079
63080         [BZ #15327]
63081         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
63082         arguments using __kernel_casinh.
63083         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
63084         arguments using __kernel_casinhf.
63085         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
63086         arguments using __kernel_casinhl.
63087         * math/libm-test.inc (cacosh_test): Add more tests.
63088         * sysdeps/i386/fpu/libm-test-ulps: Update.
63089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63090
63091 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
63092
63093         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
63094         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
63095
63096         * bench/Makefile (bench): Add sin and slowsin.
63097         * benchtests/sin-inputs: New file.
63098         * benchtests/slowsin-inputs: New file.
63099         * benchtests/slowsin.c: New file.
63100
63101         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
63102         (bench): Add slowexp and slowpow.
63103         (exp-ITER): Increase iterations.
63104         (pow-ITER): Likewise.
63105         * benchtests/exp-inputs: Change input.
63106         * benchtests/pow-inputs: Likewise.
63107         * benchtests/slowexp-inputs: New file.
63108         * benchtests/slowexp.c: New file.
63109         * benchtests/slowpow-inputs: New file.
63110         * benchtests/slowpow.c: New file.
63111
63112 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63113
63114         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
63115         instructions.
63116         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
63117         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
63118         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
63119         * benchtests/Makefile: Add rint benchtest.
63120         * benchtests/rint-inputs: Input for rint benchtest.
63121
63122 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
63123
63124         * Versions.def (libm): Add GLIBC_2.18.
63125         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
63126         hidden libm prototypes.
63127         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
63128         * math/Makefile (libm-calls): Add s_issignaling.
63129         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
63130         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
63131         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
63132         declaration.
63133         * math/math.h [__USE_GNU] (issignaling): New macro.
63134         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
63135         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
63136         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
63137         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
63138         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
63139         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
63140         * manual/arith.texi (issignaling): New section.
63141         * manual/libm-err-tab.pl (@all_functions): Update comment.
63142         * math/gen-libm-test.pl (parse_args): Apply special handling for
63143         issignaling.
63144         * math/libm-test.inc (print_float, issignaling_test): New
63145         functions.
63146         (check_float_internal): Add issignaling checks.
63147         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
63148         default definition.
63149         * sysdeps/powerpc/math-tests.h: New file.
63150         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
63151         tests.
63152         * math/test-snan.c (TEST_FUNC): Likewise.
63153
63154 2013-03-30  David S. Miller  <davem@davemloft.net>
63155
63156         * po/de.po: Update from translation team.
63157
63158 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
63159
63160         [BZ #10357]
63161         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63162         imaginary part less than 1.0 and real part less than 0.5
63163         specially.
63164         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63165         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63166         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
63167         (cacos_test): Add more tests.
63168         (casin_test): Likewise.
63169         (casinh_test): Likewise.
63170         * sysdeps/i386/fpu/libm-test-ulps: Update.
63171         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63172
63173 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
63174
63175         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
63176         ONE with its value.
63177
63178         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
63179         (__pow_mp): Replace ONE and MONE with their values.
63180         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63181         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
63182         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63183         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
63184         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63185         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63186
63187         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
63188
63189         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
63190         (__pow_mp): Replace ZERO and MZERO with their values.
63191         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63192         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63193         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63194         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
63195         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63196         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
63197         (__sqr): Likewise.
63198
63199         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
63200
63201         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
63202
63203 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63204
63205         * include/stdlib.h [!SHARED] (__call_tls_dtors):
63206         Declare with __attribute__ ((weak)).
63207         * stdlib/exit.c (__libc_atexit) [!SHARED]:
63208         Call __call_tls_dtors only if it's not NULL.
63209
63210 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63211
63212         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
63213         didn't do it already, then set _dl_phdr and _dl_phnum based on the
63214         magic __ehdr_start linker symbol if it's defined.
63215         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
63216         them up here if it was already done.
63217
63218         * elf/dl-support.c (_dl_phdr): Make pointer to const.
63219         (_dl_aux_init): Use const in cast when setting it.
63220         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
63221         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
63222         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
63223
63224         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
63225         Declare them here.
63226         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
63227         * csu/libc-tls.c: Nor here.
63228         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
63229
63230         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
63231         (__libc_message): Never call vsyslog.
63232
63233 2013-03-28  Alan Modra  <amodra@gmail.com>
63234
63235         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
63236         Define as empty.
63237         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
63238         Likewise.
63239
63240 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63241
63242         [BZ #15214]
63243         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
63244         underflow.
63245         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63246
63247 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63248
63249         [BZ #15304]
63250         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
63251         Don't add gid passed as argument.
63252
63253         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
63254
63255 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
63256
63257         [BZ #15307]
63258         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63259         imaginary part between 1.0 and 1.5 and real part less than 0.5
63260         specially.
63261         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63262         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63263         * math/libm-test.inc (cacos_test): Add more tests.
63264         (casin_test): Likewise.
63265         (casinh_test): Likewise.
63266         * sysdeps/i386/fpu/libm-test-ulps: Update.
63267         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63268
63269 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
63270
63271         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
63272         constants.
63273         (norm): Likewise.
63274         (denorm): Likewise.
63275         (__dbl_mp): Likewise.
63276         (add_magnitudes): Likewise.
63277         (sub_magnitudes): Likewise.
63278         (__add): Likewise.
63279         (__sub): Likewise.
63280         (__mul): Likewise.
63281         (__sqr): Likewise.
63282         (__inv): Likewise.
63283         (__dvd): Likewise.
63284
63285         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
63286         commented code.
63287         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
63288         (__dubcos): Likewise.
63289         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
63290         (__ieee754_acos): Likewise.
63291         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63292         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
63293         (__exp1): Likewise.
63294         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63295         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
63296         (log1): Likewise.
63297         (my_log2): Likewise.
63298         (checkint): Likewise.
63299         * sysdeps/ieee754/dbl-64/e_remainder.c
63300         (__ieee754_remainder): Likewise.
63301         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63302         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
63303         (bsloww): Likewise.
63304         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63305
63306         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
63307         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
63308         MANTISSA_STORE_T to store computations on mantissa.  Use
63309         macros for rounding and division.
63310         (denorm): Likewise.
63311         (__dbl_mp): Likewise.
63312         (add_magnitudes): Likewise.
63313         (sub_magnitudes): Likewise.
63314         (__mul): Likewise.
63315         (__sqr): Likewise.
63316         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
63317         powers of two in terms of TWOPOW macro.
63318         (mp_no): Make type of mantissa as MANTISSA_T.
63319         [!RADIXI]: Define RADIXI.
63320         [!TWO52]: Define TWO52.
63321         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
63322
63323 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63324
63325         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
63326         llroundl symbol when building for PPC32.
63327
63328 2013-03-24  Mark H Weaver  <mhw@netris.org>
63329
63330         * manual/arith.texi (Normalization Functions): Fix prototypes for
63331         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
63332
63333 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63334
63335         [BZ #13889]
63336         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
63337         high value to check if expl overflow.
63338         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
63339         to check for underflow and overflow.
63340         * math/libm-test.inc: Add exp test.
63341
63342 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
63343
63344         [BZ #11120]
63345         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
63346         with NOT_IN_libc.
63347
63348 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63349
63350         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
63351         symbol.
63352
63353 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
63354
63355         * math/gen-libm-test.pl (parse_args, special_functions): Properly
63356         wrap blocks consisting of several statements.
63357
63358         * sysdeps/generic/math-tests.h: New file.
63359         * sysdeps/i386/fpu/math-tests.h: Likewise.
63360         * math/test-snan.c: Include it.
63361         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
63362
63363 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63364
63365         [BZ #15285]
63366         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
63367         (__ieee754_j0l): Do not improve calculations using cos of twice
63368         input for inputs above LDBL_MAX / 2.0L.
63369         (__ieee754_y0l): Likewise.
63370         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
63371         (__ieee754_j1l): Do not improve calculations using cos of twice
63372         input for inputs above LDBL_MAX / 2.0L.
63373         (__ieee754_y1l): Likewise.
63374         * math/libm-test.inc (j0_test): Add another test.
63375         (j1_test): Likewise.
63376         (y0_test): Likewise.
63377         (y1_test): Likewise.
63378         * sysdeps/i386/fpu/libm-test-ulps: Update.
63379
63380 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63381
63382         * Rules ($(objpfx)bench-%.c): Include code from a C source
63383         file.
63384
63385 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63386
63387         [BZ #15287]
63388         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63389         imaginary part 1.0 and real part less than 0.5 specially.
63390         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63391         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63392         * math/libm-test.inc (cacos_test): Add more tests.
63393         (casin_test): Likewise.
63394         (casinh_test): Likewise.
63395         * sysdeps/i386/fpu/libm-test-ulps: Update.
63396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63397
63398 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63399
63400         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
63401         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
63402
63403 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
63404
63405         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
63406         * config.make.in (config-cflags-sse4): Remove variable.
63407         (config-cflags-avx): Likewise.
63408         (config-cflags-sse2avx): Likewise.
63409         (config-cflags-novzeroupper): Likewise.
63410         (config-asflags-i686): Likewise.
63411         (have-mfma4): Likewise.
63412         (have-as-vis3): Likewise.
63413         (MIG): Likewise.
63414         * configure.in (MIG): Do not AC_SUBST.
63415         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
63416         (libc_cv_cc_sse4): Do not AC_SUBST.
63417         (libc_cv_cc_avx): Likewise.
63418         (libc_cv_cc_sse2avx): Likewise.
63419         (libc_cv_cc_novzeroupper): Likewise.
63420         (libc_cv_cc_fma4): Likewise.
63421         (libc_cv_as_i686): Likewise.
63422         (libc_cv_sparc_as_vis3): Likewise.
63423         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
63424         LIBC_CONFIG_VAR.
63425         (config-asflags-i686): Likewise.
63426         (config-cflags-avx): Likewise.
63427         (config-cflags-sse2avx): Likewise.
63428         (have-mfma4): Likewise.
63429         (config-cflags-novzeroupper): Likewise.
63430         * sysdeps/mach/configure.in (MIG): Likewise.
63431         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
63432         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
63433         LIBC_CONFIG_VAR.
63434         (config-cflags-avx): Likewise.
63435         (config-cflags-sse2avx): Likewise.
63436         (have-mfma4): Likewise.
63437         (config-cflags-novzeroupper): Likewise.
63438         * configure: Regenerated.
63439         * sysdeps/i386/configure: Likewise.
63440         * sysdeps/mach/configure: Likewise.
63441         * sysdeps/sparc/configure: Likewise.
63442         * sysdeps/x86_64/configure: Likewise.
63443
63444 2013-03-20  Roland McGrath  <roland@hack.frob.com>
63445
63446         [BZ #14812]
63447         * locale/programs/localedef.c (options): Put N_ translation marker
63448         on argument names, not just descriptions.
63449
63450 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
63451
63452         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
63453
63454 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
63455
63456         [BZ #14176]
63457         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
63458
63459 2013-03-19  Roland McGrath  <roland@hack.frob.com>
63460
63461         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
63462         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
63463         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
63464         [!BEFORE_ABORT] (before_abort): New function.
63465         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
63466         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
63467         (writev_for_fatal): New function.
63468         (WRITEV_FOR_FATAL): New macro; call that.
63469         (backtrace_and_maps): New function.
63470         (BEFORE_ABORT): New macro; call that.
63471         (struct str_list): Type removed.
63472         (__libc_message, __libc_fatal): Functions removed.
63473         Include <sysdeps/posix/libc_fatal.c> instead.
63474
63475 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
63476
63477         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
63478         constants.
63479         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
63480         double constants.
63481
63482 2013-03-19  Andreas Schwab  <schwab@suse.de>
63483
63484         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
63485         * sysdeps/gnu/configure: Regenerate.
63486
63487         * configure.in: Substitute libc_cv_rtlddir.
63488         * configure: Regenerate.
63489         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
63490         * Makeconfig (rtlddir, inst_rtlddir): New variables.
63491         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
63492         * elf/Makefile (install-others, CFLAGS-interp.c)
63493         (ldso_install, common-ldd-rewrite): Likewise.
63494         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
63495         $(inst_slibdir)/$(rtld-installed-name).
63496         * scripts/rellns-sh: Add -p option.
63497         * Makerules (make-shlib-link): Use rellns-sh to get relative name
63498         for source.
63499
63500 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
63501
63502         * manual/nptl.texi: Renamed to ...
63503         * manual/threads.texi: ... this.
63504         * manual/Makefile (chapters): Update.
63505
63506 2013-03-18  Roland McGrath  <roland@hack.frob.com>
63507
63508         [BZ #14812]
63509         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
63510         on argument names, not just descriptions.
63511         * malloc/memusagestat.c (options): Likewise.
63512         * nss/getent.c (options): Likewise.
63513
63514 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
63515
63516         [BZ #14812]
63517         * iconv/iconv_prog.c (options): Put N_ translation marker
63518         on argument names, not just descriptions.
63519         * iconv/iconvconfig.c (options): Likewise.
63520
63521 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
63522
63523         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
63524         implementation which is faster on all x86_64 architectures.
63525         Tested on AMD, Intel Nehalem, SNB, IVB.
63526         * sysdeps/x86_64/strnlen.S: Likewise.
63527
63528         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
63529         Remove all multiarch strlen and strnlen versions.
63530         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
63531         Remove strlen and strnlen related parts.
63532
63533         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
63534         Inline strlen part.
63535         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
63536
63537         * sysdeps/x86_64/multiarch/strlen.S: Remove.
63538         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
63539         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
63540         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
63541         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
63542         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
63543
63544 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
63545
63546         * manual/memory.texi (Malloc Tunable Parameters):
63547         Sort parameters alphabetically. Add comments for missing entries.
63548
63549 2013-03-17  David S. Miller  <davem@davemloft.net>
63550
63551         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63552
63553 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
63554
63555         [BZ #15283]
63556         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
63557         for arguments at most half maximum finite value.
63558         * math/libm-test.inc (j0_test): Add more tests.
63559         (j1_test): Likewise.
63560         (y0_test): Likewise.
63561         (y1_test): Likewise.
63562         * sysdeps/i386/fpu/libm-test-ulps: Update.
63563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63564
63565         [BZ #14155]
63566         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
63567         1 / x and functions P and Q for arguments above 0x1p256L.
63568         (__ieee754_y0l): Likewise.
63569         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
63570         (__ieee754_y1l): Likewise.
63571         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
63572         (j1_test): Likewise.
63573         (y0_test): Likewise.
63574         (y1_test): Likewise.
63575
63576 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
63577
63578         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
63579         variable.
63580
63581 2013-03-15  Roland McGrath  <roland@hack.frob.com>
63582
63583         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
63584         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
63585         zero since it's initialized to EXEC_PAGESIZE.
63586
63587         * sysdeps/unix/sysv/linux/ldsodefs.h
63588         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
63589         * sysdeps/generic/ldsodefs.h: ... here.
63590
63591 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
63592
63593         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
63594
63595         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
63596         math/test-snan.c.
63597         * math/test-snan.c: Renamed from
63598         sysdeps/powerpc/fpu/test-powerpc-snan.c.
63599         * math/Makefile (tests): Add test-snan.
63600         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
63601         test-powerpc-snan.
63602
63603         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
63604         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
63605         functions.
63606         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
63607         __builtin_nan family of functions.
63608         * math/libm-test.inc (initialize): Initialize qnan_value with
63609         __builtin_nan family of functions.
63610         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
63611         Remove variables.
63612         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
63613         Remove functions.
63614         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
63615         storage class.  Initialize qNaN_var and sNaN_var with
63616         __builtin_nan and __builtin_nans families of functions,
63617         respectively.
63618
63619         * math/libm-test.inc (acosh_test): Also test with qNaN input.
63620         (sqrt_test): Remove duplicate test with qNaN input.
63621         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
63622         (round_test, signbit_test, significand_test): Note missing +/-Inf
63623         as well as qNaN tests.
63624
63625         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
63626         qNaN_var.  Fix a few strings, too.
63627         * math/libm-test.inc (nan_value): Rename to qnan_value.
63628         * math/gen-libm-test.pl (%beautify): Adjust to that.
63629         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
63630         * math/test-misc.c (main): Likewise.
63631         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
63632         to __qnan_bytes, and __qnan_union, respectively.
63633         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
63634         Likewise.
63635         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
63636         and lqnanval, respectively.
63637         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
63638         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
63639         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
63640         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
63641
63642         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
63643         * math/test-misc.c (main) [__x86_64__]: Enable test for long
63644         doubles.
63645
63646         * math/test-misc.c (main): Fix copy'n'pastos.
63647         * misc/tst-efgcvt.c (special): Likewise.
63648
63649         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
63650         Remove declarations.
63651
63652 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63653
63654         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
63655         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
63656         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
63657         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
63658
63659 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63660
63661         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
63662         macro to return vdso values correctly in IFUNC implementations.
63663         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
63664         Optimization by using IFUNC.
63665
63666 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63667             Richard Henderson  <rth@redhat.com>
63668             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63669
63670         * Makefile.in (bench): New target.
63671         * NEWS: Mention the benchmark framework.
63672         * Rules (bench): Likewise.
63673         (binaries-bench): Generate binaries for functions to
63674         benchmark.
63675         * benchtests/Makefile: New makefile for benchmark tests.
63676         * benchtests/bench-skeleton.c: New skeleton file for benchmark
63677         programs.
63678         * benchtests/exp-inputs: New input file for EXP function.
63679         * benchtests/pow-inputs: New input file for POW function.
63680         * scripts/bench.pl: New script to generate source files for
63681         benchmark programs.
63682
63683 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63684
63685         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
63686         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
63687         computations on mantissa.  Use macros for rounding and
63688         division.
63689         (denorm): Likewise.
63690         (__dbl_mp): Likewise.
63691         (add_magnitudes): Likewise.
63692         (sub_magnitudes): Likewise.
63693         (__mul): Likewise.
63694         (__sqr): Likewise.
63695         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
63696         powers of two in terms of TWOPOW macro.
63697         (mp_no): Make type of mantissa as MANTISSA_T.
63698         [!RADIXI]: Define RADIXI.
63699         [!TWO52]: Define TWO52.
63700         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
63701
63702         * manual/nptl.texi (cindex): Modify threads to pthreads.
63703
63704 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
63705
63706         * sysdeps/x86_64/preconfigure: Regenerated.
63707
63708 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
63709
63710         [BZ #14155]
63711         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
63712         0x1p28 and above.
63713         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
63714         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
63715         0x1p28 and above.
63716         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
63717         * math/libm-test.inc (j0_test): Do not allow one spurious
63718         underflow exception.
63719         (y1_test): Likewise.
63720
63721 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
63722
63723         * manual/Makefile (chapters): Add nptl.
63724         * manual/debug.texi (Debugging Support): Add link to Threads
63725         chapter.
63726         * manual/nptl.texi: New file.
63727
63728         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
63729
63730 2013-03-14  Petr Baudis  <pasky@ucw.cz>
63731
63732         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
63733         for non-NULL pointer before the memory validity test. Pointed
63734         out by Holger Brunck <holger.brunck@keymile.com>.
63735
63736 2013-03-13  Andreas Schwab  <schwab@suse.de>
63737
63738         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
63739         instead of .os.
63740
63741 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
63742
63743         * timezone/zic.c: Update from tzcode 2013b.
63744
63745 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
63746
63747         * manual/install.texi (Configuring and compiling):
63748         Mention i686 and i586.
63749         * INSTALL: Regenerate.
63750
63751 2013-03-12  Roland McGrath  <roland@hack.frob.com>
63752
63753         * sysdeps/init_array/elf-init.c: New file.
63754         * csu/elf-init.c
63755         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
63756         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
63757
63758         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
63759         __gmon_start__ as global, but as static with a .preinit_array pointer.
63760         * sysdeps/init_array/gmon-start.c: New file.  Use that.
63761         * sysdeps/init_array/crti.S: New file, empty except for comments.
63762         * sysdeps/init_array/crtn.S: Likewise.
63763
63764 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
63765
63766         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
63767         definining bcopy.
63768         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63769         Remove Prefer_SSE_for_memop.
63770         * sysdeps/x86_64/multiarch/init-arch.h: Remove
63771         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
63772         HAS_PREFER_SSE_FOR_MEMOP.
63773         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
63774         memset-x86-64.
63775         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
63776         Remove bzero, memset ifunc support.
63777         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
63778         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
63779         * sysdeps/x86_64/multiarch/memset.S: Likewise.
63780         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
63781
63782 2013-03-11  Andreas Schwab  <schwab@suse.de>
63783
63784         [BZ #15234]
63785         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
63786         by SHLIB_COMPAT.
63787         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
63788         (GLIBC_2.16): Remove pthread_atfork.
63789
63790 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
63791
63792         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
63793         (ptestcases.h): Likewise.
63794
63795 2013-03-08  Roland McGrath  <roland@hack.frob.com>
63796
63797         * Makeconfig ($(common-objpfx)config.status): Depend on
63798         sysdeps/*/preconfigure{,.in} too.
63799
63800 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
63801
63802         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
63803         (__free_hook): Use void * instead of __malloc_ptr_t.
63804         (__malloc_hook): Likewise.
63805         (__realloc_hook): Likewise.
63806         (__memalign_hook): Likewise.
63807         (__after_morecore_hook): Likewise.
63808         * malloc/arena.c (save_malloc_hook): Likewise.
63809         (save_free_hook): Likewise.
63810         * malloc/hooks.c (malloc_hook_ini): Likewise.
63811         (realloc_hook_ini): Likewise.
63812         (memalign_hook_ini): Likewise.
63813         * malloc/malloc.c (malloc_hook_ini): Likewise.
63814         (realloc_hook_ini): Likewise.
63815         (memalign_hook_ini): Likewise.
63816         (__free_hook): Likewise.
63817         (__malloc_hook): Likewise.
63818         (__realloc_hook): Likewise.
63819         (__memalign_hook): Likewise.
63820         (__libc_malloc): Likewise.
63821         (__libc_free): Likewise.
63822         (__libc_realloc): Likewise.
63823         (__libc_memalign): Likewise.
63824         (__libc_valloc): Likewise.
63825         (__libc_pvalloc): Likewise.
63826         (__libc_calloc): Likewise.
63827         (__posix_memalign): Likewise.
63828         * malloc/morecore.c (__sbrk): Likewise.
63829         (__default_morecore): Likewise.
63830
63831         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
63832
63833         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
63834         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
63835         __malloc_ptrdiff_t.
63836
63837         * malloc/malloc.h (__malloc_size_t): Remove macro.
63838         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
63839         __malloc_size_t.
63840         (old_memalign_hook): Likewise.
63841         (old_realloc_hook): Likewise.
63842         (struct hdr): Likewise.
63843         (flood): Likewise.
63844         (mallochook): Likewise.
63845         (memalignhook): Likewise.
63846         (reallochook): Likewise.
63847         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
63848         (tr_old_realloc_hook): Likewise.
63849         (tr_old_memalign_hook): Likewise.
63850         (tr_mallochook): Likewise.
63851         (tr_reallochook): Likewise.
63852         (tr_memalignhook): Likewise.
63853
63854 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63855
63856         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
63857         default_ldbl_pack and using as default implementation.
63858         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
63859         implementation.
63860         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
63861         redundant definition.
63862         (ldbl_insert_mantissa): Likewise.
63863         (ldbl_canonicalize): Likewise.
63864         (ldbl_nearbyint): Likewise.
63865         (ldbl_pack): Rename to ldbl_pack_ppc.
63866         (ldbl_unpack): Rename to ldbl_unpack_ppc.
63867         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
63868         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
63869
63870 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
63871
63872         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
63873         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
63874         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
63875         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
63876         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
63877         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
63878         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
63879         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
63880
63881 2013-03-07  Andreas Jaeger  <aj@suse.de>
63882
63883         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
63884         bits/mman-linux.h.
63885
63886 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
63887
63888         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
63889         Include mpa.h and declare __MPEXP.
63890         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
63891         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
63892         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
63893         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
63894         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
63895         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
63896         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
63897
63898         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
63899         (__slowpow): Use long double EXPL and LOGL functions to
63900         compute POW.
63901         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
63902         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
63903         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
63904         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
63905         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
63906         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
63907
63908         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
63909         intermediate variable to calculate exponent.
63910         (__sqr): Likewise.
63911         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
63912         Likewise.
63913         (__sqr): Likewise.
63914
63915         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
63916         [!NO__SQR]: Define __sqr.
63917         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
63918         and NO__SQR.  Remove all code except __mul and __sqr.  Include
63919         sysdeps/ieee754/dbl-64/mpa.c.
63920         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
63921
63922         [BZ #12723]
63923         * posix/Makefile (tests): Add tst-pathconf.
63924         * posix/tst-pathconf.c: New test case.
63925         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
63926         _PC_PIPE_BUF.
63927         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
63928
63929 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
63930
63931         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
63932
63933 2013-03-06  Andreas Jaeger  <aj@suse.de>
63934
63935         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
63936         definition via __MAP_ANONYMOUS.
63937
63938         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
63939         it's not part of Linux headers.
63940
63941         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
63942         (MAP_HUGE_MASK): Define.
63943
63944         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
63945         Define.
63946         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63947         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
63948         Define.
63949         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63950         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
63951         Define.
63952         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63953         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
63954         Define.
63955         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63956
63957         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
63958         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
63959         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
63960         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
63961         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
63962         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
63963
63964         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
63965         Handle f2fs.
63966
63967         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
63968         Handle f2fs and efivarfs.
63969
63970         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
63971         f2fs.
63972
63973         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
63974         (EFIVARFS_MAGIC): Add.
63975         (F2FS_LINK_MAX): Add.
63976
63977 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
63978
63979         * stdio-common/vfprintf.c: Replace __builtin_expect with
63980         __glibc_unlikely.
63981
63982 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
63983
63984         [BZ #13550]
63985         * sysdeps/generic/bp-sym.h: Remove file.
63986         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
63987         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
63988         <bp-sym.h> and <bp-asm.h>.
63989         (__longjmp): Don't use BP_SYM.
63990         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
63991         and <bp-asm.h>.
63992         (memcpy): Don't use BP_SYM.
63993         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
63994         <bp-sym.h> and <bp-asm.h>.
63995         (memcpy): Don't use BP_SYM.
63996         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
63997         <bp-asm.h>.
63998         (memcpy): Don't use BP_SYM.
63999         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
64000         <bp-asm.h>.
64001         (memset): Don't use BP_SYM.
64002         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64003         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64004         (__bzero): Don't use BP_SYM.
64005         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64006         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64007         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
64008         <bp-sym.h> and <bp-asm.h>.
64009         (memcmp): Don't use BP_SYM.  Remove comment about bounded
64010         pointers.
64011         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
64012         <bp-sym.h> and <bp-asm.h>.
64013         (memcpy): Don't use BP_SYM.
64014         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
64015         <bp-sym.h> and <bp-asm.h>.
64016         (memset): Don't use BP_SYM.
64017         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64018         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64019         (__bzero): Don't use BP_SYM.
64020         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64021         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64022         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
64023         <bp-sym.h> and <bp-asm.h>.
64024         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64025         pointers.
64026         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
64027         <bp-sym.h> and <bp-asm.h>.
64028         (memcpy): Don't use BP_SYM.
64029         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
64030         <bp-sym.h> and <bp-asm.h>.
64031         (memset): Don't use BP_SYM.
64032         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64033         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64034         (__bzero): Don't use BP_SYM.
64035         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64036         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64037         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
64038         <bp-sym.h> and <bp-asm.h>.
64039         (__memchr): Don't use BP_SYM.
64040         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
64041         <bp-sym.h> and <bp-asm.h>.
64042         (memcmp): Don't use BP_SYM.  Remove comment about bounded
64043         pointers.
64044         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
64045         <bp-sym.h> and <bp-asm.h>.
64046         (memcpy): Don't use BP_SYM.
64047         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
64048         <bp-sym.h> and <bp-asm.h>.
64049         (__mempcpy): Don't use BP_SYM.
64050         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
64051         <bp-sym.h> and <bp-asm.h>.
64052         (__memrchr): Don't use BP_SYM.
64053         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
64054         <bp-sym.h> and <bp-asm.h>.
64055         (memset): Don't use BP_SYM.
64056         (__bzero): Likewise.
64057         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
64058         <bp-sym.h> and <bp-asm.h>.
64059         (__rawmemchr): Don't use BP_SYM.
64060         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
64061         <bp-sym.h> and <bp-asm.h>.
64062         (__STRCMP): Don't use BP_SYM.
64063         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
64064         <bp-sym.h> and <bp-asm.h>.
64065         (strchr): Don't use BP_SYM.
64066         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
64067         <bp-sym.h> and <bp-asm.h>.
64068         (__strchrnul): Don't use BP_SYM.
64069         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
64070         <bp-sym.h> and <bp-asm.h>.
64071         (strlen): Don't use BP_SYM.
64072         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
64073         <bp-sym.h> and <bp-asm.h>.
64074         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64075         pointers.
64076         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
64077         <bp-sym.h> and <bp-asm.h>.
64078         (__strnlen): Don't use BP_SYM.
64079         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
64080         <bp-sym.h> and <bp-asm.h>.
64081         (__GI__setjmp): Don't use BP_SYM.
64082         (_setjmp): Likewise.
64083         (__sigsetjmp): Likewise.
64084         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
64085         (L(start_addresses)): Don't use BP_SYM.
64086         (_start): Likewise.
64087         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
64088         <bp-asm.h>.
64089         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
64090         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
64091         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64092         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64093         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
64094         <bp-asm.h>.
64095         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
64096         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
64097         about bounded pointers.
64098         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64099         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64100         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
64101         <bp-asm.h>.
64102         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
64103         about bounded pointers.  Remove GKM FIXME comments.
64104         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64105         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
64106         <bp-asm.h>.
64107         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
64108         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
64109         Remove GKM FIXME comments.
64110         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64111         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64112         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
64113         <bp-asm.h>.
64114         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
64115         about bounded pointers.  Remove GKM FIXME comment.
64116         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
64117         and <bp-asm.h>.
64118         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64119         pointers.
64120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
64121         <bp-sym.h> and <bp-asm.h>.
64122         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
64124         <bp-sym.h> and <bp-asm.h>.
64125         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64126         comment.
64127
64128 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
64129
64130         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
64131         call free(NULL).
64132
64133 2013-03-05  David S. Miller  <davem@davemloft.net>
64134
64135         * po/es.po: Update from translation team.
64136
64137 2013-03-05  Andreas Jaeger  <aj@suse.de>
64138
64139         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
64140         <bits/mman-linux.h>.
64141         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64142         is fine.
64143         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
64144         <bits/mman-linux.h> to end of file.
64145         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64146         is fine.
64147         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
64148         <bits/mman-linux.h> to end of file.
64149         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64150         is fine.
64151         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
64152         <bits/mman-linux.h> to end of file.
64153
64154         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
64155         (MCL_CURRENT, MCL_FUTURE): Define here.
64156
64157 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64158
64159         [BZ #15232]
64160         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
64161         attribute_hidden.
64162         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64163
64164 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64165
64166         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
64167         fourth parameter needed for rt_sigprocmask syscall.
64168         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
64169         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
64170         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
64171         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
64172         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
64173         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
64174
64175 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
64176
64177         [BZ #13550]
64178         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
64179         comment about bounded pointers.
64180         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
64181         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
64182
64183 2013-03-04  Andreas Jaeger  <aj@suse.de>
64184
64185         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
64186         common definitions.
64187
64188         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
64189         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
64190         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
64191         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
64192         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
64193         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
64194
64195 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64196
64197         [BZ #15055]
64198         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
64199         __ieee754_sqrl instead of __sqrl.
64200
64201 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
64202
64203         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
64204         * sysdeps/powerpc/fpu_control.h: ... here.
64205         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
64206         * sysdeps/powerpc/bits/fenvinline.h: ... here.
64207         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
64208         * sysdeps/powerpc/bits/mathinline.h: ... here.
64209
64210 2013-03-01  Roland McGrath  <roland@hack.frob.com>
64211
64212         * elf/dl-hwcaps.c (_dl_important_hwcaps):
64213         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
64214         to just [NEED_DL_SYSINFO_DSO].
64215         * elf/dl-support.c: Likewise.
64216         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
64217         * elf/rtld.c (dl_main): Likewise.
64218         * elf/setup-vdso.h (setup_vdso): Likewise.
64219         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
64220         * sysdeps/unix/sysv/linux/dl-sysdep.c
64221         (_dl_discover_osversion): Likewise.
64222
64223 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
64224
64225         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
64226         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64227
64228 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
64229
64230         * NEWS: Mention libm performance improvements and non-x86 PI
64231         futex support.
64232
64233         * csu/libc-start.c (__pthread_initialize_minimal): Change
64234         function arguments.
64235         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64236
64237 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
64238
64239         [BZ #13550]
64240         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
64241         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
64242         <bp-sym.h> and <bp-asm.h>.
64243         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64244         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
64245         and <bp-asm.h>.
64246         (memcpy): Don't use BP_SYM.
64247         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
64248         <bp-asm.h>.
64249         (__mpn_add_n): Don't use BP_SYM.
64250         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
64251         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
64252         and <bp-asm.h>.
64253         (__mpn_addmul_1): Don't use BP_SYM.
64254         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64255         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
64256         <bp-sym.h>.
64257         (_setjmp): Don't use BP_SYM.
64258         (__novmx_setjmp): Likewise.
64259         (__GI__setjmp): Likewise.
64260         (__vmx_setjmp): Likewise.
64261         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
64262         <bp-sym.h>.
64263         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
64264         (__bzero): Don't use BP_SYM.
64265         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64266         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64267         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
64268         <bp-sym.h> and <bp-asm.h>.
64269         (memcpy): Don't use BP_SYM.
64270         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
64271         <bp-sym.h> and <bp-asm.h>.
64272         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64273         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
64274         <bp-sym.h> and <bp-asm.h>.
64275         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64276         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
64277         <bp-asm.h>.
64278         (__mpn_lshift): Don't use BP_SYM.
64279         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64280         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
64281         <bp-asm.h>.
64282         (memset): Don't use BP_SYM.
64283         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64284         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64285         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
64286         <bp-asm.h>.
64287         (__mpn_mul_1): Don't use BP_SYM.
64288         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64289         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
64290         <bp-sym.h> and <bp-asm.h>.
64291         (memcmp): Don't use BP_SYM.
64292         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
64293         <bp-sym.h> and <bp-asm.h>.
64294         (memcpy): Don't use BP_SYM.
64295         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
64296         <bp-sym.h> and <bp-asm.h>.
64297         (memset): Don't use BP_SYM.
64298         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
64299         <bp-sym.h> and <bp-asm.h>.
64300         (strncmp): Don't use BP_SYM.
64301         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
64302         <bp-sym.h> and <bp-asm.h>.
64303         (memcpy): Don't use BP_SYM.
64304         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
64305         <bp-sym.h> and <bp-asm.h>.
64306         (memset): Don't use BP_SYM.
64307         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
64308         <bp-sym.h> and <bp-asm.h>.
64309         (__memchr): Don't use BP_SYM.
64310         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
64311         <bp-sym.h> and <bp-asm.h>.
64312         (memcmp): Don't use BP_SYM.
64313         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
64314         <bp-sym.h> and <bp-asm.h>.
64315         (memcpy): Don't use BP_SYM.
64316         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
64317         <bp-sym.h> and <bp-asm.h>.
64318         (__mempcpy): Don't use BP_SYM.
64319         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
64320         <bp-sym.h> and <bp-asm.h>.
64321         (__memrchr): Don't use BP_SYM.
64322         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
64323         <bp-sym.h> and <bp-asm.h>.
64324         (memset): Don't use BP_SYM.
64325         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
64326         <bp-sym.h> and <bp-asm.h>.
64327         (__rawmemchr): Don't use BP_SYM.
64328         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
64329         <bp-sym.h> and <bp-asm.h>.
64330         (__STRCMP): Don't use BP_SYM.
64331         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
64332         <bp-sym.h> and <bp-asm.h>.
64333         (strchr): Don't use BP_SYM.
64334         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
64335         <bp-sym.h> and <bp-asm.h>.
64336         (__strchrnul): Don't use BP_SYM.
64337         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
64338         <bp-sym.h> and <bp-asm.h>.
64339         (strlen): Don't use BP_SYM.
64340         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
64341         <bp-sym.h> and <bp-asm.h>.
64342         (strncmp): Don't use BP_SYM.
64343         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
64344         <bp-sym.h> and <bp-asm.h>.
64345         (__strnlen): Don't use BP_SYM.
64346         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
64347         <bp-asm.h>.
64348         (__mpn_rshift): Don't use BP_SYM.
64349         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64350         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
64351         <bp-sym.h> and <bp-asm.h>.
64352         (__sigsetjmp): Don't use BP_SYM.
64353         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
64354         (L(start_addresses)): Don't use BP_SYM.
64355         (_start): Likewise.
64356         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
64357         <bp-asm.h>.
64358         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
64359         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64360         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64361         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
64362         <bp-asm.h>.
64363         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
64364         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64365         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64366         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
64367         <bp-asm.h>.
64368         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64369         comments.
64370         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64371         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
64372         <bp-asm.h>.
64373         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
64374         FIXME comments.
64375         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64376         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64377         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
64378         <bp-asm.h>.
64379         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64380         comment.
64381         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
64382         and <bp-asm.h>.
64383         (strncmp): Don't use BP_SYM,
64384         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
64385         <bp-asm.h>.
64386         (__mpn_sub_n): Don't use BP_SYM.
64387         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64388         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
64389         and <bp-asm.h>.
64390         (__mpn_submul_1): Don't use BP_SYM.
64391         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
64393         <bp-sym.h> and <bp-asm.h>.
64394         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
64396         <bp-sym.h> and <bp-asm.h>.
64397         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64398         comment.
64399
64400 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
64401
64402         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
64403         Use ZK to minimize writes to Z.
64404         (sub_magnitudes): Simplify code a bit.
64405         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
64406         Use ZK to minimize writes to Z.
64407         (sub_magnitudes): Simplify code a bit.
64408
64409 2013-02-27  Roland McGrath  <roland@hack.frob.com>
64410
64411         * csu/gmon-start.c: Add special exception to license text.
64412
64413 2013-02-27  Richard Henderson  <rth@redhat.com>
64414
64415         * scripts/config.guess: Update from config.git.
64416         * scripts/config.sub: Likewise.
64417
64418 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
64419
64420         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
64421
64422         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
64423
64424         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
64425
64426         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
64427
64428         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
64429
64430 2013-02-26  Roland McGrath  <roland@hack.frob.com>
64431
64432         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
64433         [$(build-shared = yes].
64434
64435 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64436
64437         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
64438         (__mul): Reduce iterations for calculating mantissa.
64439
64440         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
64441         MPTWO.
64442         (__mpranred): Likewise.
64443
64444         [BZ #15160]
64445         * malloc/memusagestat.c (main): Draw graphs for heap and stack
64446         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
64447
64448 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64449
64450         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
64451         Define __attribute__.
64452
64453 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64454
64455         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
64456         unused.
64457         * posix/regex_internal.h (__attribute): Remove.
64458         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
64459         (re_string_context_at): Likewise.
64460         (bitset_not): Use __attribute__ and mark function as possibly
64461         unused.
64462         (bitset_merge): Likewise.
64463         (bitset_mask): Likewise.
64464         (re_string_char_size_at): Likewise.
64465         (re_string_wchar_at): Likewise.
64466         (re_string_elem_size_at): Likewise.
64467
64468 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64469
64470         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
64471         code.
64472         (cc32): Likewise.
64473
64474         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
64475         (__acr): Likewise.
64476         (__cpy): Likewise.
64477         (norm): Likewise.
64478         (denorm): Likewise.
64479         (__dbl_mp): Likewise.
64480         (add_magnitudes): Likewise.
64481         (sub_magnitudes): Likewise.
64482         (__mul): Likewise.
64483         (__inv): Likewise.
64484
64485         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
64486         style.
64487
64488         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
64489         style.
64490
64491         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
64492         code.
64493
64494         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
64495         up changes with default code.
64496         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
64497         Likewise.
64498
64499 2013-02-24  Allan McRae  <allan@archlinux.org>
64500
64501         * manual/socket.texi (The Internet Namespace): Order menu items
64502         to match that in the file.
64503
64504         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
64505         node listing of the info page menu.
64506
64507 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
64508
64509         [BZ #13550]
64510         * sysdeps/i386/bp-asm.h: Remove file.
64511         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
64512         (PARMS): Do not use macros from bp-asm.h.
64513         (S1): Likewise.
64514         (S2): Likewise.
64515         (SIZE): Likewise.
64516         (__mpn_add_n): Do not use BP_SYM
64517         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
64518         "bp-asm.h".
64519         (PARMS): Do not use macros from bp-asm.h.
64520         (S1): Likewise.
64521         (SIZE): Likewise.
64522         (__mpn_addmul_1): Do not use BP_SYM
64523         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
64524         "bp-asm.h".
64525         (PARMS): Do not use macros from bp-asm.h.
64526         (SIGMSK): Likewise.
64527         (_setjmp): Likewise.  Do not use BP_SYM.
64528         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
64529         "bp-asm.h".
64530         (PARMS): Do not use macros from bp-asm.h.
64531         (SIGMSK): Likewise.
64532         (setjmp): Likewise.  Do not use BP_SYM.
64533         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
64534         "bp-asm.h".
64535         (PARMS): Do not use macros from bp-asm.h.
64536         (__frexp): Do not use BP_SYM.
64537         (frexp): Likewise.
64538         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
64539         "bp-asm.h".
64540         (PARMS): Do not use macros from bp-asm.h.
64541         (__frexpf): Do not use BP_SYM.
64542         (frexpf): Likewise.
64543         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
64544         "bp-asm.h".
64545         (PARMS): Do not use macros from bp-asm.h.
64546         (__frexpl): Do not use BP_SYM.
64547         (frexpl): Likewise.
64548         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
64549         "bp-asm.h".
64550         (PARMS): Do not use macros from bp-asm.h.
64551         (__remquo): Do not use BP_SYM.
64552         (remquo): Likewise.
64553         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
64554         "bp-asm.h".
64555         (PARMS): Do not use macros from bp-asm.h.
64556         (__remquof): Do not use BP_SYM.
64557         (remquof): Likewise.
64558         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
64559         "bp-asm.h".
64560         (PARMS): Do not use macros from bp-asm.h.
64561         (__remquol): Do not use BP_SYM.
64562         (remquol): Likewise.
64563         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
64564         "bp-asm.h".
64565         (PARMS): Do not use macros from bp-asm.h.
64566         (DEST): Likewise.
64567         (SRC): Likewise.
64568         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
64569         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
64570         "bp-asm.h".
64571         (PARMS): Do not use macros from bp-asm.h.
64572         (strlen): Do not use BP_SYM.
64573         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
64574         "bp-asm.h".
64575         (PARMS): Do not use macros from bp-asm.h.
64576         (S1): Likewise.
64577         (S2): Likewise.
64578         (SIZE): Likewise.
64579         (__mpn_add_n): Do not use BP_SYM.
64580         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
64581         "bp-asm.h".
64582         (PARMS): Do not use macros from bp-asm.h.
64583         (S1): Likewise.
64584         (SIZE): Likewise.
64585         (__mpn_addmul_1): Do not use BP_SYM.
64586         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
64587         weak_alias.
64588         (bzero): Likewise.
64589         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
64590         "bp-asm.h".
64591         (PARMS): Do not use macros from bp-asm.h.
64592         (S): Likewise.
64593         (SIZE): Likewise.
64594         (__mpn_lshift): Do not use BP_SYM.
64595         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
64596         "bp-asm.h".
64597         (PARMS): Do not use macros from bp-asm.h.
64598         (DEST): Likewise.
64599         (SRC): Likewise.
64600         (LEN): Likewise.
64601         (memcpy): Likewise.  Do not use BP_SYM.
64602         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
64603         libc_hidden_def and weak_alias.
64604         (mempcpy): Do not use BP_SYM in weak_alias.
64605         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
64606         "bp-asm.h".
64607         (PARMS): Do not use macros from bp-asm.h.
64608         (DEST): Likewise.
64609         (LEN): Likewise.
64610         [!BZERO_P] (CHR): Likewise.
64611         (memset): Likewise.  Do not use BP_SYM.
64612         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
64613         "bp-asm.h".
64614         (PARMS): Do not use macros from bp-asm.h.
64615         (S1): Likewise.
64616         (SIZE): Likewise.
64617         (__mpn_mul_1): Do not use BP_SYM.
64618         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
64619         "bp-asm.h".
64620         (PARMS): Do not use macros from bp-asm.h.
64621         (S): Likewise.
64622         (SIZE): Likewise.
64623         (__mpn_rshift): Do not use BP_SYM.
64624         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
64625         "bp-asm.h".
64626         (PARMS): Do not use macros from bp-asm.h.
64627         (STR): Likewise.
64628         (CHR): Likewise.
64629         (strchr): Likewise.  Do not use BP_SYM.
64630         (index): Do not use BP_SYM in weak_alias.
64631         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
64632         "bp-asm.h".
64633         (PARMS): Do not use macros from bp-asm.h.
64634         (DEST): Likewise.
64635         (SRC): Likewise.
64636         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
64637         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
64638         "bp-asm.h".
64639         (PARMS): Do not use macros from bp-asm.h.
64640         (strlen): Do not use BP_SYM.
64641         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
64642         "bp-asm.h".
64643         (PARMS): Do not use macros from bp-asm.h.
64644         (S1): Likewise.
64645         (S2): Likewise.
64646         (SIZE): Likewise.
64647         (__mpn_sub_n): Do not use BP_SYM.
64648         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
64649         "bp-asm.h".
64650         (PARMS): Do not use macros from bp-asm.h.
64651         (S1): Likewise.
64652         (SIZE): Likewise.
64653         (__mpn_submul_1): Do not use BP_SYM.
64654         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
64655         "bp-asm.h".
64656         (PARMS): Do not use macros from bp-asm.h.
64657         (S1): Likewise.
64658         (S2): Likewise.
64659         (SIZE): Likewise.
64660         (__mpn_add_n): Do not use BP_SYM.
64661         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
64662         weak_alias.
64663         (bzero): Likewise.
64664         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
64665         "bp-asm.h".
64666         (PARMS): Do not use macros from bp-asm.h.
64667         (BLK2): Likewise.
64668         (LEN): Likewise.
64669         (memcmp): Do not use BP_SYM.
64670         (bcmp): Do not use BP_SYM in weak_alias.
64671         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
64672         "bp-asm.h".
64673         (PARMS): Do not use macros from bp-asm.h.
64674         (DEST): Likewise.
64675         (SRC): Likewise.
64676         (LEN): Likewise.
64677         (memcpy): Likewise.  Do not use BP_SYM.
64678         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
64679         "bp-asm.h".
64680         (PARMS): Do not use macros from bp-asm.h.
64681         (DEST): Likewise.
64682         (SRC): Likewise.
64683         (LEN): Likewise.
64684         (memmove): Likewise.  Do not use BP_SYM.
64685         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
64686         "bp-asm.h".
64687         (PARMS): Do not use macros from bp-asm.h.
64688         (DEST): Likewise.
64689         (SRC): Likewise.
64690         (LEN): Likewise.
64691         (__mempcpy): Likewise.  Do not use BP_SYM.
64692         (mempcpy): Do not use BP_SYM in weak_alias.
64693         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
64694         "bp-asm.h".
64695         (PARMS): Do not use macros from bp-asm.h.
64696         (DEST): Likewise.
64697         (LEN): Likewise.
64698         [!BZERO_P] (CHR): Likewise.
64699         (memset): Likewise.  Do not use BP_SYM.
64700         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
64701         "bp-asm.h".
64702         (PARMS): Do not use macros from bp-asm.h.
64703         (STR2): Likewise.
64704         (strcmp): Do not use BP_SYM.
64705         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
64706         "bp-asm.h".
64707         (PARMS): Do not use macros from bp-asm.h.
64708         (STR): Likewise.
64709         (DELIM): Likewise.
64710         [USE_AS_STRTOK_R] (SAVE): Likewise.
64711         (FUNCTION): Likewise.  Do not use BP_SYM.
64712         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
64713         aliases.
64714         (strtok_r): Likewise.
64715         (__GI___strtok_r): Likewise.
64716         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
64717         (PARMS): Do not use macros from bp-asm.h.
64718         (S): Likewise.
64719         (SIZE): Likewise.
64720         (__mpn_lshift): Do not use BP_SYM.
64721         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
64722         (PARMS): Do not use macros from bp-asm.h.
64723         (STR): Likewise.
64724         (CHR): Likewise.
64725         (__memchr): Do not use BP_SYM.
64726         (memchr): Do not use BP_SYM in weak_alias.
64727         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
64728         (PARMS): Do not use macros from bp-asm.h.
64729         (BLK2): Likewise.
64730         (LEN): Likewise.
64731         (memcmp): Do not use BP_SYM.
64732         (bcmp): Do not use BP_SYM in weak_alias.
64733         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
64734         (PARMS): Do not use macros from bp-asm.h.
64735         (S1): Likewise.
64736         (SIZE): Likewise.
64737         (__mpn_mul_1): Do not use BP_SYM.
64738         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
64739         "bp-asm.h".
64740         (PARMS): Do not use macros from bp-asm.h.
64741         (STR): Likewise.
64742         (CHR): Likewise.
64743         (__rawmemchr): Do not use BP_SYM.
64744         (rawmemchr): Do not use BP_SYM in weak_alias.
64745         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
64746         (PARMS): Do not use macros from bp-asm.h.
64747         (S): Likewise.
64748         (SIZE): Likewise.
64749         (__mpn_rshift): Do not use BP_SYM.
64750         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
64751         (PARMS): Do not use macros from bp-asm.h.
64752         (SIGMSK): Likewise.
64753         (__sigsetjmp): Likewise.  Do not use BP_SYM.
64754         * sysdeps/i386/start.S: Do not include "bp-sym.h".
64755         (_start): Do not use BP_SYM.
64756         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
64757         (PARMS): Do not use macros from bp-asm.h.
64758         (DEST): Likewise.
64759         (SRC): Likewise.
64760         (__stpcpy): Likewise.  Do not use BP_SYM.
64761         (stpcpy): Do not use BP_SYM in weak_alias.
64762         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
64763         "bp-asm.h".
64764         (PARMS): Do not use macros from bp-asm.h.
64765         (DEST): Likewise.
64766         (SRC): Likewise.
64767         (LEN): Likewise.
64768         (__stpncpy): Likewise.  Do not use BP_SYM.
64769         (stpncpy): Do not use BP_SYM in weak_alias.
64770         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
64771         (PARMS): Do not use macros from bp-asm.h.
64772         (STR): Likewise.
64773         (CHR): Likewise.
64774         (strchr): Likewise.  Do not use BP_SYM.
64775         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
64776         "bp-asm.h".
64777         (PARMS): Do not use macros from bp-asm.h.
64778         (STR): Likewise.
64779         (CHR): Likewise.
64780         (__strchrnul): Likewise.  Do not use BP_SYM.
64781         (strchrnul): Do not use BP_SYM in weak_alias.
64782         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
64783         "bp-asm.h".
64784         (PARMS): Do not use macros from bp-asm.h.
64785         (STOP): Likewise.
64786         (strcspn): Do not use BP_SYM.
64787         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
64788         "bp-asm.h".
64789         (PARMS): Do not use macros from bp-asm.h.
64790         (STR): Likewise.
64791         (STOP): Likewise.
64792         (strpbrk): Likewise.  Do not use BP_SYM.
64793         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
64794         "bp-asm.h".
64795         (PARMS): Do not use macros from bp-asm.h.
64796         (STR): Likewise.
64797         (CHR): Likewise.
64798         (strrchr): Likewise.  Do not use BP_SYM.
64799         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
64800         (PARMS): Do not use macros from bp-asm.h.
64801         (SKIP): Likewise.
64802         (strspn): Do not use BP_SYM.
64803         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
64804         (PARMS): Do not use macros from bp-asm.h.
64805         (STR): Likewise.
64806         (DELIM): Likewise.
64807         (SAVE): Likewise.
64808         (FUNCTION): Likewise.  Do not use BP_SYM.
64809         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
64810         aliases.
64811         (strtok_r): Likewise.
64812         (__GI___strtok_r): Likewise.
64813         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
64814         (PARMS): Do not use macros from bp-asm.h.
64815         (S1): Likewise.
64816         (S2): Likewise.
64817         (SIZE): Likewise.
64818         (__mpn_sub_n): Do not use BP_SYM.
64819         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
64820         "bp-asm.h".
64821         (PARMS): Do not use macros from bp-asm.h.
64822         (S1): Likewise.
64823         (SIZE): Likewise.
64824         (__mpn_submul_1): Do not use BP_SYM.
64825         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
64826         <bp-sym.h>.
64827         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
64828         and <bp-asm.h>.
64829         (PARMS): Do not use macros from bp-asm.h.
64830         (FLAGS): Likewise.
64831         (PTID): Likewise.
64832         (TLS): Likewise.
64833         (CTID): Likewise.
64834         (__clone): Do not use BP_SYM.
64835         (clone): Do not use BP_SYM in weak_alias.
64836         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
64837         and <bp-asm.h>.
64838         (PARMS): Do not use macros from bp-asm.h.
64839         (LEN): Likewise.
64840         (__mmap64): Do not use BP_SYM.
64841         (mmap64): Do not use BP_SYM in weak_alias.
64842         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
64843         <bp-sym.h> and <bp-asm.h>.
64844         (PARMS): Do not use macros from bp-asm.h.
64845         (__posix_fadvise64_l64): Do not use BP_SYM.
64846         * sysdeps/unix/sysv/linux/i386/semtimedop.S
64847         (PARMS): Do not use macros from bp-asm.h.
64848         (NSOPS): Likewise.
64849         (semtimedop): Do not use BP_SYM.
64850         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
64851         and <bp-asm.h>.
64852
64853 2013-02-21  Allan McRae  <allan@archlinux.org>
64854
64855         * manual/message.texi (Charset conversion in gettext):
64856         Move @end statement to beginning of line.
64857
64858 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
64859
64860         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
64861         static.
64862         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
64863         Likewise.
64864
64865         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
64866         (denorm): Likewise.
64867         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
64868         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
64869
64870 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64871
64872         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
64873         tail-call to the resolved function if pltexit isn't needed.
64874
64875 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
64876
64877         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
64878         or Y being zero as being unlikely.
64879         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
64880         Likewise.
64881
64882 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
64883
64884         * manual/nss.texi (System Databases and Name Service Switch):
64885         Remove frobnicate @pxref.
64886
64887 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
64888
64889         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
64890         __attribute__ ((unused)) to __attribute__ ((__unused__)).
64891
64892 2013-02-20  Petr Machata  <pmachata@redhat.com>
64893
64894         * elf/elf.h (R_ARM_TARGET1): New macro.
64895         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
64896         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
64897         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
64898         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
64899         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
64900         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
64901         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
64902         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
64903         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
64904         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
64905         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
64906         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
64907         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
64908         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
64909         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
64910         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
64911         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
64912         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
64913         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
64914         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
64915         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
64916         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
64917         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
64918         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
64919         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
64920         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
64921         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
64922         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
64923         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
64924         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
64925         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
64926         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
64927         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
64928         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
64929         (R_ARM_THM_GOT_BREL12): Likewise.
64930         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
64931         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
64932         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
64933         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
64934         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
64935         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
64936         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
64937         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
64938         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
64939
64940 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
64941
64942         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
64943         __attribute_used__ to __attribute__ ((unused)).
64944
64945 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
64946
64947         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
64948         powerpc mpa.c.
64949         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
64950         comment formatting.
64951         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
64952
64953 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
64954
64955         [BZ #13550]
64956         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
64957         Remove macro.
64958         (ENTER): Remove both macro definitions.
64959         (LEAVE): Likewise.
64960         (CHECK_BOUNDS_LOW): Likewise.
64961         (CHECK_BOUNDS_HIGH): Likewise.
64962         (CHECK_BOUNDS_BOTH): Likewise.
64963         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
64964         (RETURN_BOUNDED_POINTER): Likewise.
64965         (RETURN_NULL_BOUNDED_POINTER): Likewise.
64966         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
64967         (POP_ERRNO_LOCATION_RETURN): Likewise.
64968         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
64969         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64970         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
64971         macros.
64972         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64973         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
64974         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
64975         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
64976         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
64977         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
64978         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
64979         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
64980         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
64981         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
64982         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
64983         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
64984         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64985         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
64986         removed macros.
64987         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64988         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
64989         macros.
64990         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64991         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
64992         * sysdeps/i386/i586/memset.S (memset): Likewise.
64993         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
64994         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64995         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
64996         macros.
64997         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64998         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
64999         Change uses of L(2) to L(out).
65000         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
65001         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
65002         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
65003         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65004         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
65005         removed macros.
65006         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65007         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
65008         macros.
65009         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65010         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
65011         (RETURN): Do not use macro LEAVE.
65012         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
65013         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
65014         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
65015         * sysdeps/i386/i686/memset.S (memset): Likewise.
65016         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
65017         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
65018         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
65019         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
65020         Likewise.
65021         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
65022         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
65023         L(1_2) and L(1_3) into L(1).
65024         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
65025         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
65026         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65027         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
65028         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
65029         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
65030         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
65031         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65032         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
65033         macros.
65034         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
65035         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65036         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
65037         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
65038         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
65039         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
65040         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
65041         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
65042         * sysdeps/i386/strcspn.S (strcspn): Likewise.
65043         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
65044         * sysdeps/i386/strrchr.S (strrchr): Likewise.
65045         * sysdeps/i386/strspn.S (strspn): Likewise.
65046         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
65047         conditional code.
65048         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
65049         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
65050         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
65051         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
65052         L(1_3) into L(1_1).
65053         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
65054         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65055         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
65056         macros.
65057         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65058
65059 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
65060
65061         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
65062         macro.
65063
65064 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
65065
65066         * math/atest-exp.c (exp_mpn): Remove ROUND.
65067         * math/atest-exp2.c (exp_mpn): Likewise.
65068         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
65069
65070         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
65071         * stdlib/tst-tls-atexit-lib.c: Likewise.
65072         * stdlib/tst-tls-atexit.c: Likewise.
65073
65074 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65075
65076         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
65077         and __attribute_alloc_size__.
65078
65079 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65080
65081         * include/programs/xmalloc.h: Change __attribute_alloc_size to
65082         __attribute_alloc_size__.
65083         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
65084         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
65085
65086 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65087
65088         * include/programs/xmalloc.h: New file.
65089         * catgets/gencat.c: Include it.
65090         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
65091         * elf/pldd.c: Likewise.
65092         * iconv/iconv_charmap.c: Likewise.
65093         * iconv/iconvconfig.c: Likewise.
65094         * iconv/strtab.c: Likewise.
65095         * locale/programs/locale.c: Likewise.
65096         * locale/programs/localedef.h: Likewise.
65097         * locale/programs/simple-hash.c: Likewise.
65098         * nscd/nscd.h: Likewise.
65099         * nss/makedb.c: Likewise.
65100         * sysdeps/generic/ldconfig.h: Likewise.
65101
65102 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
65103
65104         * Versions.def: Add GLIBC_2.18.
65105         * include/link.h (struct link_map): New member l_tls_dtor_count.
65106         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
65107         (__call_tls_dtors): Likewise.
65108         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
65109         __cxa_thread_atexit_impl.
65110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65111         Likewise.
65112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65113         Likewise.
65114         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
65115         Likewise.
65116         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
65117         Likewise.
65118         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
65119         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
65120         Likewise.
65121         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
65122         Likewise.
65123         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
65124         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
65125         Likewise.
65126         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
65127         (tests): Add test case tst-tls-atexit.
65128         (modules-names): Add shared library for tst-tls-atexit.
65129         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
65130         (GLIBC_PRIVATE): Add __call_tls_dtors.
65131         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
65132         for libstdc++.
65133         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
65134         * stdlib/tst-tls-atexit.c: New test case.
65135         * stdlib/tst-tls-atexit-lib.c: New test case.
65136
65137         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
65138
65139         * elf/Versions (ld): Add _dl_find_dso_for_object.
65140         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
65141         * elf/dl-open.c (_dl_find_dso_for_object): New function.
65142         (dl_open_worker): Use _dl_find_dso_for_object.
65143         * elf/dl-sym.c (do_sym): Likewise.
65144         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
65145
65146 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65147
65148         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
65149         Syntactic changes only.
65150         (_dl_runtime_profile): Do a tail-call to the resolved function.
65151
65152 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
65153
65154         [BZ #13550]
65155         * sysdeps/x86_64/bp-asm.h: Remove file.
65156         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
65157         <bp-sym.h> and <bp-asm.h>.
65158         (__clone): Do not use BP_SYM.
65159         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
65160         <bp-sym.h> and <bp-asm.h>.
65161         * sysdeps/unix/x86_64/sysdep.S: Likewise.
65162         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
65163         "bp-asm.h".
65164         (_setjmp): Do not use BP_SYM.
65165         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
65166         "bp-asm.h".
65167         (setjmp): Do not use BP_SYM.
65168         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
65169         libc_hidden_def.
65170         (mempcpy): Do not use BP_SYM in weak_alias.
65171         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
65172         "bp-asm.h".
65173         (strchr): Do not use BP_SYM.
65174         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
65175         "bp-asm.h".
65176         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
65177         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
65178         (_start): Do not use BP_SYM.
65179         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
65180         "bp-asm.h".
65181         (strcat): Do not use BP_SYM.
65182         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
65183         "bp-asm.h".
65184         (STRCMP): Do not use BP_SYM.
65185         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
65186         "bp-asm.h".
65187         (STRCPY): Do not use BP_SYM.
65188         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
65189         "bp-asm.h".
65190         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
65191         "bp-asm.h".
65192         (FUNCTION): Do not use BP_SYM.
65193         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
65194         weak_alias.
65195         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
65196
65197 2013-02-17  Andreas Jaeger  <aj@suse.de>
65198
65199         * time/Versions: Sort entries.
65200         * string/Versions: Likewise.
65201         * resolv/Versions: Likewise.
65202         * posix/Versions: Likewise.
65203         * iconv/Versions: Likewise.
65204         * elf/Versions: Likewise.
65205         * wcsmbs/Versions: Likewise.
65206
65207 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
65208
65209         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
65210         loop termination condition.
65211
65212         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
65213         variable to calculate EZ.
65214         (__sqr): Likewise.
65215
65216         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
65217         the lower precision input.
65218
65219 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
65220
65221         [BZ #13550]
65222         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
65223         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
65224         (run-via-rtld-prefix): Do not handle %-bp tests.
65225         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
65226         (all-object-suffixes): Remove .ob.
65227         (bppfx): Remove variable.
65228         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
65229         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
65230         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
65231         [$(build-bounded) = yes] (libtype.ob): Likewise.
65232         * Makerules (elide-routines.ob): Remove variable.
65233         (do-tests-clean): Do not handle *-bp.out.
65234         (common-mostlyclean): Do not handle *-bp and *-bp.out.
65235         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
65236         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
65237         (tests): Do not include $(tests-bp.out).
65238         (xtests): Do not include $(xtests-bp.out).
65239         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
65240         [$(build-bounded) = yes] ($(addprefix
65241         $(objpfx),$(binaries-bounded))): Remove rule.
65242         ($(objpfx)%-bp.out): Remove rule.
65243         * config.make.in (build-bounded): Remove variable.
65244         * crypt/Makefile [$(build-bounded) = yes]
65245         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
65246         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
65247         append to variable.
65248         [$(build-bounded) = yes] (install-lib): Likewise.
65249         [$(build-bounded) = yes] (generated): Likewise.
65250         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
65251         Remove rule.
65252         * intl/Makefile [$(build-bounded) = yes]
65253         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
65254         * math/Makefile [$(build-bounded) = yes]
65255         ($(tests:%=$(objpfx)%-bp): Likewise.
65256         * misc/Makefile [$(build-bounded) = yes]
65257         ($(objpfx)tst-tsearch-bp): Likewise.
65258         * nptl/Makeconfig (bounded-thread-library): Remove variable.
65259         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
65260         Remove dependency.
65261         * string/Makefile (o-objects.ob): Remove variable.
65262         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
65263         (CFLAGS-.ob): Remove variable.
65264         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
65265         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
65266         both definitions of variable.
65267         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
65268         (ASFLAGS-.ob): Remove variable.
65269
65270 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
65271
65272         [BZ #13550]
65273         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
65274         Remove __BOUNDED_POINTERS__ from condition.
65275         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
65276         * string/bits/string2.h [!__NO_STRING_INLINES &&
65277         !__BOUNDED_POINTERS__]: Likewise.
65278         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
65279         Likewise.
65280         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
65281         Remove conditional code.
65282         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
65283         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
65284         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
65285         condition.
65286
65287         [BZ #13550]
65288         * csu/libc-start.c: Do not include <bp-sym.h>.
65289         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
65290         * elf/dl-open.c: Do not include <bp-sym.h>.
65291         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
65292         * math/fegetenv.c: Do not include <bp-sym.h>.
65293         (fegetenv): Do not use BP_SYM in versioned symbols.
65294         * nptl/sysdeps/pthread/bits/libc-lockP.h
65295         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
65296         <bp-sym.h>.
65297         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65298         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
65299         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65300         (__pthread_mutex_destroy): Likewise.
65301         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65302         (__pthread_mutex_lock): Likewise.
65303         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65304         (__pthread_mutex_trylock): Likewise.
65305         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65306         (__pthread_mutex_unlock): Likewise.
65307         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65308         (__pthread_mutexattr_init): Likewise.
65309         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65310         (__pthread_mutexattr_destroy): Likewise.
65311         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65312         (__pthread_mutexattr_settype): Likewise.
65313         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65314         (__pthread_rwlock_init): Likewise.
65315         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65316         (__pthread_rwlock_destroy): Likewise.
65317         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65318         (__pthread_rwlock_rdlock): Likewise.
65319         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65320         (__pthread_rwlock_tryrdlock): Likewise.
65321         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65322         (__pthread_rwlock_wrlock): Likewise.
65323         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65324         (__pthread_rwlock_trywrlock): Likewise.
65325         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65326         (__pthread_rwlock_unlock): Likewise.
65327         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65328         (__pthread_key_create): Likewise.
65329         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65330         (__pthread_setspecific): Likewise.
65331         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65332         (__pthread_getspecific): Likewise.
65333         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
65334         Likewise.
65335         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65336         (_pthread_cleanup_push_defer): Likewise.
65337         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65338         (_pthread_cleanup_pop_restore): Likewise.
65339         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65340         (pthread_setcancelstate): Likewise.
65341         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
65342         <bp-sym.h>.
65343         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
65344         (memchr): Do not use BP_SYM in weak_alias.
65345         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
65346         (fegetenv): Do not use BP_SYM in versioned symbols.
65347         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
65348         (fesetenv): Do not use BP_SYM in versioned symbols.
65349         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65350         (feupdateenv): Do not use BP_SYM in versioned symbols.
65351         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65352         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65353         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
65354         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
65355         (open64): Do not use BP_SYM in weak_alias.
65356         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
65357         (fegetenv): Do not use BP_SYM in versioned symbols.
65358         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
65359         (fesetenv): Do not use BP_SYM in versioned symbols.
65360         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65361         (feupdateenv): Do not use BP_SYM in versioned symbols.
65362         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
65363         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
65364         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
65365         (feraiseexcept): Do not use BP_SYM in versioned symbols.
65366         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65367         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65368         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
65369         <bp-sym.h>.
65370         (__libc_start_main): Do not use BP_SYM.
65371
65372 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
65373
65374         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
65375         redundant return line.
65376         (norm): Likewise.
65377         (denorm): Likewise.
65378         (dbl_mp): Likewise.
65379         (sub_magnitudes): Likewise.
65380         (__add): Likewise.
65381         (__sub): Likewise.
65382         (__mul): Likewise.
65383         (__inv): Likewise.
65384         (__dvd): Likewise.
65385         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
65386         (norm): Likewise.
65387         (denorm): Likewise.
65388         (dbl_mp): Likewise.
65389         (sub_magnitudes): Likewise.
65390         (__add): Likewise.
65391         (__sub): Likewise.
65392         (__mul): Likewise.
65393         (__inv): Likewise.
65394         (__dvd): Likewise.
65395
65396         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
65397         instead of __mul.
65398         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
65399         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
65400         (cc32): Likewise.
65401
65402         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
65403         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
65404         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
65405         of __mul for squares.
65406         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
65407         function
65408         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
65409         Likewise.
65410         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
65411         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
65412
65413 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
65414
65415         [BZ #13550]
65416         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
65417         code.
65418         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
65419         prototype or function definition.  Rename ubp_* variables and
65420         parameters.  Remove argv definitions conditional on
65421         [__BOUNDED_POINTERS__].
65422         * debug/backtrace.c (__backtrace): Do not use __unbounded.
65423         * elf/dl-runtime.c (_dl_fixup): Likewise.
65424         * include/set-hooks.h (RUN_HOOK): Likewise.
65425         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
65426         definition.
65427         * string/strcpy.c (strcpy): Do not use __unbounded.
65428         * sysdeps/generic/frame.h (struct layout): Likewise.
65429         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
65430         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
65431         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
65432         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
65433         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
65434         (__backtrace): Likewise.
65435         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
65436         use __ptrvalue.
65437         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
65438         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
65439         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
65440         Likewise.
65441         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
65442         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
65443         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
65444         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
65445         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
65446         Do not use __unbounded.
65447         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
65448         Rename __unboundedrlimits parameter to rlimits in prototype.
65449         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
65450         Do not use __unbounded.
65451         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
65452         not use __ptrvalue.
65453         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
65454         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
65455         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
65456         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
65457         __ptrvalue or __unbounded.
65458         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
65459         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
65460         use __unbounded.
65461         (__new_msgctl): Do not use __ptrvalue.
65462         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
65463         __unbounded.
65464         (__libc_msgrcv): Do not use __ptrvalue.
65465         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
65466         startup_info): Do not use __unbounded.
65467         (__libc_start_main): Likewise.  Rename ubp_* variables and
65468         parameters.  Remove argv definitions conditional on
65469         [__BOUNDED_POINTERS__].
65470         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
65471         __ptrvalue.
65472         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
65473         use __unbounded.
65474         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
65475         or __ptrvalue.
65476         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
65477         use __unbounded.
65478         (__new_shmctl): Do not use __ptrvalue.
65479         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
65480         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
65481         Likewise.
65482         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
65483         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
65484         (__libc_sigaction): Likewise.
65485         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
65486         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
65487         Likewise.
65488         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
65489
65490 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
65491
65492         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
65493
65494         * string/mempcpy.c: Implement by calling memcpy.
65495
65496 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
65497
65498         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
65499
65500         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
65501         evaluation.
65502
65503         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
65504         values in the mantissa.
65505
65506         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
65507         minimize writes to Z.
65508         (sub_magnitudes): Simplify code a bit.
65509
65510 2013-02-12  Roland McGrath  <roland@hack.frob.com>
65511
65512         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
65513         from the message.  The linker prefixes all warnings with that already.
65514
65515 2013-02-12  Andreas Schwab  <schwab@suse.de>
65516
65517         [BZ #15078]
65518         * posix/regexec.c (extend_buffers): Add parameter min_len.
65519         (check_matching): Pass minimum needed length.
65520         (clean_state_log_if_needed): Likewise.
65521         (get_subexp): Likewise.
65522         * posix/Makefile (tests): Add bug-regex34.
65523         (bug-regex34-ENV): Define.
65524         * posix/bug-regex34.c: New file.
65525
65526         [BZ #11561]
65527         * posix/regcomp.c (parse_bracket_exp): When looking up collating
65528         elements compare against the byte sequence of it, not its name.
65529         * posix/Makefile (tests): Add bug-regex35.
65530         (bug-regex35-ENV): Define.
65531         * posix/bug-regex35.c: New file.
65532
65533 2013-02-11  Tom de Vries  <tom@codesourcery.com>
65534
65535         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
65536         comment.
65537         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
65538         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
65539         (CHECK_EOL): Add undef.
65540
65541 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
65542
65543         * bits/stdlib-bsearch.h: New file.
65544         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
65545         * stdlib/stdlib.h: Likewise.
65546
65547 2013-02-11  Roland McGrath  <roland@hack.frob.com>
65548
65549         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
65550         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
65551         declaration.
65552         * manual/search.texi (Array Search Function): Add missing const in
65553         lfind prototype.
65554         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
65555         declaration to use rlim_t.
65556         (Basic Scheduling Functions): Remove erroneous const from
65557         sched_getparam prototype.  Remove erroneous * from
65558         sched_get_priority_max and sched_get_priority_min prototypes.
65559         (Resource Usage): Fix summary @comment on vtimes to refer to
65560         sys/vtimes.h rather than vtimes.h.
65561         Add missing *s in vtimes prototype.
65562         (Limits on Resources): Fix ulimit prototype to return long int.
65563         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
65564         prototypes to use long int rather than double.
65565         (BSD Random): Fix initstate and setstate to use char *, not void *.
65566         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
65567         prototype to make second argument 'struct aiocb64 *const[]'.
65568         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
65569         (Status of AIO Operations): Remove erroneous const in aio_return and
65570         aio_return64 prototypes.
65571         (Synchronizing I/O): Fix sync prototype to return void.
65572         * manual/startup.texi (Suboptions): Remove an erroneous const in
65573         getsubopt prototype.
65574         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
65575         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
65576         use size_t rather than int.
65577         (Scanning All Users): Likewise for getpwent_r.
65578         (Setting Groups): Add missing const to setgroups prototype.
65579         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
65580         * manual/socket.texi (Host Names): Fix gethostbyaddr and
65581         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
65582         'const void *' rather than 'const char *'.
65583         (Host Address Functions): Likewise for inet_ntop.
65584         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
65585         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
65586         ssize_t for return value.
65587         (Sending Data): Likewise for send, sendto, sendmsg.
65588         (Socket Option Functions): Add a missing const in setsockopt prototype.
65589         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
65590         use wchar_t for the argument.
65591         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
65592         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
65593         take no arguments.
65594         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
65595         double/float/long double for second argument.
65596         Fix return types of significand, significandf, significandl.
65597         * manual/filesys.texi (Setting Permissions): Use mode_t for second
65598         argument in fchmod prototype.
65599         (File Owner): Use uid_t and gid_t in fchown prototype.
65600         (File Times): Add const to utimes, futimes, and lutimes prototypes.
65601         (Making Special Files): Use mode_t and dev_t in mknod prototype.
65602         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
65603         use 'const struct dirent **' as argument types to CMP function pointer
65604         argument.
65605         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
65606         (File Times): Fix summary magic @comment for struct utimbuf and utime
65607         to refer to utime.h, not time.h.
65608         * manual/string.texi (Argz Functions): Add missing const in
65609         argz_extract and argz_next prototypes.
65610         (Finding Tokens in a String): Likewise for basename.
65611         (String/Array Comparison): Fix typo in wcscasecmp prototype.
65612         (Copying and Concatenation): Fix typo in wmemmove prototype.
65613         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
65614         (Signal Stack): Remove erroneous const in sigstack prototype.
65615         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
65616         prototype.
65617         (Simple Calendar Time): Likewise for stime.
65618         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
65619         prototype.
65620         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
65621         say sys/sysctl.h instead.
65622         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
65623         and vsyslog prototypes.
65624
65625 2013-02-11  Tom de Vries  <tom@codesourcery.com>
65626
65627         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
65628         Remove.
65629
65630 2013-02-11  Roland McGrath  <roland@hack.frob.com>
65631
65632         * misc/sys/mman.h: Fix typo in mremap comment.
65633
65634 2013-02-08  Roland McGrath  <roland@hack.frob.com>
65635
65636         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
65637         the '\0' terminator.
65638
65639 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
65640
65641         [BZ #13550]
65642         * debug/segfault.c: Don't include <bp-checks.h>.
65643         * sysdeps/generic/bp-checks.h: Remove file.
65644         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
65645         (__GETDENTS): Don't use CHECK_N.
65646         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
65647         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
65648         (__getgroups): Don't use CHECK_N.
65649         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
65650         (setgroups): Don't use CHECK_N.
65651         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
65652         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
65653         (__libc_msgrcv): Don't use CHECK_N.
65654         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
65655         (__libc_msgsnd): Don't use CHECK_N.
65656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
65657         <bp-checks.h>.
65658         (__libc_pread): Don't use CHECK_N.
65659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
65660         include <bp-checks.h>.
65661         (__libc_pread64): Don't use CHECK_N.
65662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
65663         include <bp-checks.h>.
65664         (__libc_pwrite): Don't use CHECK_N.
65665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
65666         include <bp-checks.h>.
65667         (__libc_pwrite64): Don't use CHECK_N.
65668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
65669         <bp-checks.h>.
65670         (__libc_pread): Don't use CHECK_N.
65671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
65672         include <bp-checks.h>.
65673         (__libc_pread64): Don't use CHECK_N.
65674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
65675         include <bp-checks.h>.
65676         (__libc_pwrite): Don't use CHECK_N.
65677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
65678         include <bp-checks.h>.
65679         (__libc_pwrite64): Don't use CHECK_N.
65680         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
65681         (do_pread): Don't use CHECK_N.
65682         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
65683         (do_pread64): Don't use CHECK_N.
65684         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
65685         (do_pwrite): Don't use CHECK_N.
65686         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
65687         (do_pwrite64): Don't use CHECK_N.
65688         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
65689         (__libc_readv): Don't use CHECK_N.
65690         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
65691         (semop): Don't use CHECK_N.
65692         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
65693         <bp-checks.h>.
65694         (semtimedop): Don't use CHECK_N.
65695         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
65696         (__libc_pread): Don't use CHECK_N.
65697         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
65698         <bp-checks.h>.
65699         (__libc_pread64): Don't use CHECK_N.
65700         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
65701         <bp-checks.h>.
65702         (__libc_pwrite): Don't use CHECK_N.
65703         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
65704         <bp-checks.h>.
65705         (__libc_pwrite64): Don't use CHECK_N.
65706         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
65707         <bp-checks.h>.
65708         (__libc_msgrcv): Don't use CHECK_N.
65709         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
65710         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
65711         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
65712         (__libc_writev): Don't use CHECK_N.
65713
65714 2013-02-08  Roland McGrath  <roland@hack.frob.com>
65715
65716         * string/strcpy.c: Removed unused variable.
65717
65718         * Makeconfig (+sysdep-includes): Define with := rather than =.
65719         Use an existing include/ subdir of each sysdeps dir before it.
65720
65721 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65722
65723         * nscd/connection.c (register_traced_file): Comment function.
65724         [HAVE_INOTIFY] (union __inev): Define.
65725         [HAVE_INOTIFY] (inotify_check_files): New function.
65726         [HAVE_INOTIFY] (clear_db_cache): Likewise.
65727         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
65728         clear_db_cache.
65729         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
65730
65731 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65732
65733         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
65734         loaded if not already and that a failure is permanent.
65735
65736 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65737
65738         [BZ #15006]
65739         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
65740         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
65741
65742 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
65743
65744         [BZ #13550]
65745         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
65746         (CHECK_1_NULL_OK): Likewise.
65747         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
65748         (__fxstat): Do not use CHECK_1.
65749         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
65750         <bp-checks.h>.
65751         (___fxstat64): Do not use CHECK_1.
65752         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
65753         <bp-checks.h>.
65754         (__fxstatat): Do not use CHECK_1.
65755         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
65756         <bp-checks.h>.
65757         (__fxstatat64): Do not use CHECK_1.
65758         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
65759         <bp-checks.h>.
65760         (__fxstat): Do not use CHECK_1.
65761         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
65762         <bp-checks.h>.
65763         (__fxstatat): Do not use CHECK_1.
65764         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
65765         <bp-checks.h>.
65766         (__getresgid): Do not use CHECK_1.
65767         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
65768         <bp-checks.h>.
65769         (__getresuid): Do not use CHECK_1.
65770         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
65771         <bp-checks.h>.
65772         (__lxstat): Do not use CHECK_1.
65773         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
65774         <bp-checks.h>.
65775         (__old_msgctl): Do not use CHECK_1.
65776         (__new_msgctl): Likewise.
65777         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
65778         <bp-checks.h>.
65779         (__new_setrlimit): Do not use CHECK_1.
65780         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
65781         <bp-checks.h>.
65782         (__old_shmctl): Do not use CHECK_1.
65783         (__new_shmctl): Likewise.
65784         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
65785         <bp-checks.h>.
65786         (__xstat): Do not use CHECK_1.
65787         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
65788         (__lxstat): Do not use CHECK_1.
65789         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
65790         <bp-checks.h>.
65791         (___lxstat64): Do not use CHECK_1.
65792         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
65793         (__old_msgctl): Do not use CHECK_1.
65794         (__new_msgctl): Likewise.
65795         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
65796         <bp-checks.h>.
65797         (__gettimeofday): Do not use CHECK_1.
65798         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
65799         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
65800         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
65801         <bp-checks.h>.
65802         (__gettimeofday): Do not use CHECK_1.
65803         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
65804         (__old_shmctl): Do not use CHECK_1_NULL_OK.
65805         (__new_shmctl): Do not use CHECK_1.
65806         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
65807         <bp-checks.h>.
65808         (do_sigtimedwait): Do not use CHECK_1.
65809         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
65810         <bp-checks.h>.
65811         (do_sigwaitinfo): Do not use CHECK_1.
65812         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
65813         <bp-checks.h>.
65814         (msgctl): Do not use CHECK_1.
65815         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
65816         <bp-checks.h>.
65817         (shmctl): Do not use CHECK_1.
65818         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
65819         (ustat): Do not use CHECK_1.
65820         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
65821         <bp-checks.h>.
65822         (__fxstat): Do not use CHECK_1.
65823         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
65824         <bp-checks.h>.
65825         (__fxstatat): Do not use CHECK_1.
65826         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
65827         <bp-checks.h>.
65828         (__lxstat): Do not use CHECK_1.
65829         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
65830         <bp-checks.h>.
65831         (__xstat): Do not use CHECK_1.
65832         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
65833         (__xstat): Do not use CHECK_1.
65834         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
65835         (___xstat64): Do not use CHECK_1.
65836
65837         [BZ #13550]
65838         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
65839         definitions.
65840         (CHECK_BOUNDS_HIGH): Likewise.
65841         * string/strcpy.c: Do not include <bp-checks.h>.
65842         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
65843
65844 2013-02-07  Roland McGrath  <roland@hack.frob.com>
65845
65846         * nscd/nscd-client.h (__nscd_drop_map_ref):
65847         Add __attribute__ ((unused)).
65848         * nis/nss-nisplus.h (niserr2nss): Likewise.
65849
65850         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
65851         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
65852
65853         * csu/libc-tls.c (init_static_tls, init_slotinfo):
65854         Remove inline keyword.
65855         * include/rounding-mode.h (round_away): Likewise.
65856         * libio/wfileops.c (adjust_wide_data): Likewise.
65857         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
65858         (__m128i_strloadu_tolower): Likewise.
65859         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
65860         (__m128i_strloadu_tolower): Likewise.
65861         * time/mktime.c (ydhms_diff): Likewise.
65862         * locale/elem-hash.h (elem_hash): Likewise.
65863         * locale/setlocale.c (setdata): Likewise.
65864         * posix/regex_internal.h (re_string_char_size_at): Likewise.
65865         (re_string_wchar_at): Likewise.
65866         (bitset_not, bitset_merge, bitset_mask): Likewise.
65867         [!(__GNUC__ > 3)] (inline): Remove macro.
65868         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
65869         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
65870         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
65871         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
65872         * string/memcmp.c (memcmp_bytes): Likewise.
65873         * locale/programs/locarchive.c (compute_hashval): Likewise.
65874         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
65875         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
65876         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
65877         * nss/getent.c (print_rpc, print_protocols): Likewise.
65878         (print_passwd, print_group, print_aliases): Likewise.
65879         * nis/nss-nisplus.h (niserr2nss): Likewise.
65880         * nscd/connections.c (restart_p): Likewise.
65881         Change return type to bool.
65882
65883 2013-02-05  Roland McGrath  <roland@hack.frob.com>
65884
65885         * Makeconfig (all-Depend-files): Add existing
65886         $(sorted-subdirs:=/Depend) files.
65887         (all-subdirs): Remove nss.
65888         * sysdeps/unix/inet/Subdirs: Add it here instead.
65889         * hesiod/Depend: New file.
65890
65891         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
65892         instead of calling alloca.
65893
65894         * io/lseek.c (__lseek): Rename to __libc_lseek.
65895         Define __lseek as an alias.
65896
65897         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
65898
65899 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
65900
65901         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
65902         else clause and remove check for non-standard endianness.
65903
65904 2013-02-04  David S. Miller  <davem@davemloft.net>
65905
65906         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65907
65908 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
65909
65910         [BZ #13550]
65911         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
65912         (__ubp_memchr): Remove prototype.
65913         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
65914         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
65915         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
65916         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
65917         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
65918         Remove alias.
65919         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
65920         (__ubp_memchr): Likewise.
65921         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
65922         (__ubp_memchr): Likewise.
65923         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
65924         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
65925         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
65926         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
65927         CHECK_STRING.
65928         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
65929         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
65930         (__getcwd): Do not use CHECK_STRING.
65931         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
65932         <bp-checks.h>.
65933         (__real_chown): Do not use CHECK_STRING.
65934         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
65935         <bp-checks.h>.
65936         (fchownat): Do not use CHECK_STRING.
65937         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
65938         CHECK_STRING.
65939         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
65940         <bp-checks.h>.
65941         (__lchown): Do not use CHECK_STRING.
65942         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
65943         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
65944         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
65945         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
65946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
65947         include <bp-checks.h>.
65948         (truncate64): Do not use CHECK_STRING.
65949         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
65950         <bp-checks.h>.
65951         (__real_chown): Do not use CHECK_STRING.
65952         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
65953         <bp-checks.h>.
65954         (__lchown): Do not use CHECK_STRING.
65955         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
65956         <bp-checks.h>.
65957         (__chown): Do not use CHECK_STRING.
65958         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
65959         <bp-checks.h>.
65960         (truncate64): Do not use CHECK_STRING.
65961         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
65962         Likewise.
65963         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
65964         (__xmknod): Do not use CHECK_STRING.
65965         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
65966         <bp-checks.h>.
65967         (__xmknodat): Do not use CHECK_STRING.
65968         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
65969         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
65970
65971 2013-02-04  Andreas Schwab  <schwab@suse.de>
65972
65973         [BZ #14142]
65974         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
65975         * include/netdb.h: Likewise for h_errno.
65976         * elf/tst-stackguard1.c: Include <tls.h>.
65977
65978 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
65979
65980         * elf/link.h (struct link_map): Extend the l_addr comment.
65981         * include/link.h (struct link_map): Likewise.
65982
65983 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
65984
65985         [BZ #13550]
65986         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
65987         (BOUNDED_1): Remove macro.
65988         * debug/backtrace.c: Don't include <bp-checks.h>.
65989         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
65990         (__backtrace): Likewise.
65991         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
65992         <bp-checks.h>.
65993         (__backtrace): Don't use BOUNDED_1.
65994         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
65995         <bp-checks.h>.
65996         (__backtrace): Don't use BOUNDED_1.
65997         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
65998         (__backtrace): Don't use BOUNDED_1.
65999         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
66000         (shmat): Don't use BOUNDED_N.
66001
66002 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
66003
66004         [BZ #13550]
66005         * sysdeps/generic/bp-start.h: Remove file.
66006         * csu/libc-start.c: Don't include <bp-start.h>.
66007         (LIBC_START_MAIN): Set up __environ directly instead of using
66008         INIT_ARGV_and_ENVIRON.
66009         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
66010         <bp-start.h>.
66011
66012         [BZ #13550]
66013         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
66014         definitions.
66015         (CHECK_FCNTL): Likewise.
66016         (CHECK_N_PAGES): Likewise.
66017
66018         [BZ #13550]
66019         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
66020         definitions.
66021         (CHECK_SIGSET_NULL_OK): Likewise.
66022         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
66023         <bp-checks.h>.
66024         (sigpending): Don't use CHECK_SIGSET.
66025         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
66026         <bp-checks.h>.
66027         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66028         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
66029         <bp-checks.h>.
66030         (do_sigsuspend): Don't use CHECK_SIGSET.
66031         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
66032         use CHECK_SIGSET.
66033         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
66034         (do_sigwait): Don't use CHECK_SIGSET.
66035         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
66036         use CHECK_SIGSET.
66037         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
66038         include <bp-checks.h>.
66039         (sigpending): Don't use CHECK_SIGSET.
66040         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
66041         include <bp-checks.h>.
66042         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66043         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
66044         <bp-checks.h>.
66045         (sigpending): Don't use CHECK_SIGSET.
66046         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
66047         <bp-checks.h>.
66048         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66049
66050         [BZ #13550]
66051         * sysdeps/generic/bp-semctl.h: Remove file.
66052         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
66053         <bp-checks.h> and <bp-semctl.h>.
66054         (__old_semctl): Don't use CHECK_SEMCTL.
66055         (__new_semctl): Likewise.
66056         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
66057         and <bp-semctl.h>.
66058         (__old_semctl): Don't use CHECK_SEMCTL.
66059         (__new_semctl): Likewise.
66060         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
66061         <bp-checks.h> and <bp-semctl.h>.
66062         (__old_semctl): Don't use CHECK_SEMCTL.
66063         (__new_semctl): Likewise.
66064         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
66065         <bp-checks.h> and <bp-semctl.h>.
66066         (semctl): Don't use CHECK_SEMCTL.
66067
66068         [BZ #13550]
66069         * Makerules (elide-bp-thunks): Remove variable.
66070         (elide-routines.oS): Don't use $(elide-bp-thunks).
66071         (elide-routines.os): Likewise.
66072         (elide-routines.o): Likewise.
66073         (elide-routines.op): Likewise.
66074         (elide-routines.og): Likewise.
66075         (objects): Don't use $(bp-thunks).
66076         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
66077         include.
66078         (common-generated): Do not add s-proto-bp.d.
66079         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
66080         (int): Likewise.
66081         (typ): Likewise.
66082         Do not generate makefile rules for bounded-pointer thunks.
66083         * sysdeps/generic/bp-thunks.h: Remove file.
66084         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
66085         * sysdeps/unix/s-proto-bp.S: Likewise.
66086
66087         [BZ #15062]
66088         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
66089         parts of result separately when argument is not close to line from
66090         -i to i and one part of argument is small.
66091         * math/k_casinhf.c (__kernel_casinhf): Likewise.
66092         * math/k_casinhl.c (__kernel_casinhl): Likewise.
66093         * math/libm-test.inc (cacos_test): Add more tests.
66094         (casin_test): Likewise.
66095         (casinh_test): Likewise.
66096         * sysdeps/i386/fpu/libm-test-ulps: Update.
66097         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66098
66099 2013-01-31  David S. Miller  <davem@davemloft.net>
66100
66101         * po/de.po: Update from translation team.
66102
66103 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
66104
66105         * time/tzfile.c: Include stdint.h for SIZE_MAX.
66106
66107 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
66108
66109         * configure.in (_AC_PROG_CC_C89): New definition.
66110         * configure: Regenerate.
66111
66112         * configure.in (AC_PROG_CPP): New definition.
66113         * configure: Regenerate.
66114
66115 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66116
66117         * debug/tst-backtrace.h: New file.
66118         * debug/tst-backtrace2.c: Include tst-backtrace.h.
66119         (ret): Remove variable.
66120         (x): Likewise.
66121         (FAIL): Remove macro.
66122         (NO_INLINE): Likewise.
66123         (fn1): Use match function instead of strstr.
66124         * debug/tst-backtrace3.c: Include tst-backtrace.h.
66125         (ret): Remove variable.
66126         (x): Likewise.
66127         (FAIL): Remove macro.
66128         (NO_INLINE): Likewise.
66129         (fn): Use match function instead of strstr.
66130         * debug/tst-backtrace4.c: Include tst-backtrace.h.
66131         (ret): Remove variable.
66132         (x): Likewise.
66133         (FAIL): Remove macro.
66134         (NO_INLINE): Likewise.
66135         (handle_signal): Use match function instead of strstr.
66136         * debug/tst-backtrace5.c: Include tst-backtrace.h.
66137         (ret): Remove variable.
66138         (x): Likewise.
66139         (FAIL): Remove macro.
66140         (NO_INLINE): Likewise.
66141         (handle_signal): Use match function instead of strstr.
66142
66143 2013-01-23  Roland McGrath  <roland@hack.frob.com>
66144
66145         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
66146
66147 2013-01-23  David S. Miller  <davem@davemloft.net>
66148
66149         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
66150         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
66151         argument of CAS if possible.
66152         * sysdeps/sparc/sparc64/bits/atomic.h
66153         (__arch_compare_and_exchange_val_32_acq): Likewise.
66154         (__arch_compare_and_exchange_val_64_acq): Likewise.
66155
66156 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
66157
66158         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
66159         * sysdeps/posix/ulimit.c: ... this.
66160         Include <limits.h>.
66161         * sysdeps/unix/bsd/ulimit.c: Remove file.
66162
66163 2013-01-23  Adam Conrad  <adconrad@0c3.net>
66164
66165         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
66166         (LDFLAGS-tst-array5): Likewise.
66167
66168 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66169
66170         [BZ #15036]
66171         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
66172         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
66173         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
66174         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
66175
66176 2013-01-21  David S. Miller  <davem@davemloft.net>
66177
66178         * sysdeps/sparc/backtrace.c: New file.
66179         * sysdeps/sparc/sparc32/backtrace.h: New file.
66180         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
66181         * sysdeps/sparc/sparc64/backtrace.h: New file.
66182         * sysdeps/sparc/sparc64/backtrace.c: Delete.
66183         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
66184         -funwind-tables.
66185
66186 2013-01-21  Andreas Schwab  <schwab@suse.de>
66187
66188         [BZ #15020]
66189         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
66190         closed its stdout.
66191
66192 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
66193
66194         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
66195         "mpa2.h".
66196         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66197
66198 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
66199             Mark Mitchell  <mark@codesourcery.com>
66200             Tom de Vries  <tom@codesourcery.com>
66201             Paul Pluzhnikov  <ppluzhnikov@google.com>
66202
66203         * debug/tst-backtrace2.c: New file.
66204         * debug/tst-backtrace3.c: Likewise.
66205         * debug/tst-backtrace4.c: Likewise.
66206         * debug/tst-backtrace5.c: Likewise.
66207         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
66208         (CFLAGS-tst-backtrace3.c): Likewise.
66209         (CFLAGS-tst-backtrace4.c): Likewise.
66210         (CFLAGS-tst-backtrace5.c): Likewise.
66211         (LDFLAGS-tst-backtrace2): Likewise.
66212         (LDFLAGS-tst-backtrace3): Likewise.
66213         (LDFLAGS-tst-backtrace4): Likewise.
66214         (LDFLAGS-tst-backtrace5): Likewise.
66215         (tests): Add new tests tst-backtrace2, tst-backtrace3,
66216         tst-backtrace4 and tst-backtrace5.
66217
66218 2013-01-18  Anton Blanchard  <anton@samba.org>
66219             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
66220
66221         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
66222         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
66223         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
66224         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
66225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
66226         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
66227         "+r" and remove output regs list as redundant.  Add explicit inline
66228         asm to specify register of return val to work around compiler codegen
66229         bug.  Remove (int) cast on return value.  Add return type parameter to
66230         use in macro so that this macro does not truncate return value for
66231         64-bit values.
66232         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
66233         pass to INTERNAL_VSYSCALL_NCS.
66234         (INLINE_VSYSCALL): Add 'long int' as return type to
66235         INTERNAL_VSYSCALL_NCS macro invocation.
66236         (INTERNAL_VSYSCALL): Add 'long int' as return type to
66237         INTERNAL_VSYSCALL_NCS macro invocation.
66238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
66239
66240 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
66241
66242         [BZ #14496]
66243         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
66244         Fix application of SIMD FP exception mask.
66245
66246         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
66247         mp_no from a power of two.
66248         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
66249         __mpexp_twomm1.  Use __pow_mp.
66250
66251         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
66252         multiplication.
66253
66254 2013-01-17  David S. Miller  <davem@davemloft.net>
66255
66256         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66257
66258 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66259
66260         [BZ #15023]
66261         * include/complex.h: Condition contents on [!_COMPLEX_H].
66262         (__kernel_casinhf): New prototype.
66263         (__kernel_casinh): Likewise.
66264         (__kernel_casinhl): Likewise.
66265         * math/Makefile (libm_calls): Add k_casinh.
66266         * math/k_casinh.c: New file.
66267         * math/k_casinhf.c: Likewise.
66268         * math/k_casinhl.c: Likewise.
66269         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
66270         finite nonzero arguments.
66271         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
66272         finite nonzero arguments.
66273         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
66274         finite nonzero arguments.
66275         * math/s_casinh.c: Do not include <float.h>.
66276         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
66277         * math/s_casinhf.c: Do not include <float.h>.
66278         (__casinhf): Move code for finite nonzero arguments to
66279         k_casinhf.c.
66280         * math/s_casinhl.c: Do not include <float.h>.
66281         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
66282         redefine.
66283         (__casinhl): Move code for finite nonzero arguments to
66284         k_casinhl.c.
66285         * math/libm-test.inc (cacos_test): Add more tests.
66286         * sysdeps/i386/fpu/libm-test-ulps: Update.
66287         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66288
66289 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
66290
66291         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
66292         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
66293         [!HAVE_MREMAP]: Remove [defined linux] case.
66294         * malloc/arena.c: Do not include <malloc-sysdep.h>.
66295
66296 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
66297
66298         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
66299
66300 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
66301
66302         * elf/elf.h (R_386_SIZE32): New relocation.
66303         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
66304         R_386_SIZE32.
66305         (elf_machine_rela): Likewise.
66306         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
66307         R_X86_64_SIZE64 and R_X86_64_SIZE32.
66308
66309 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66310
66311         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
66312         (FP_FAST_FMA): Do not define.
66313         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
66314         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
66315         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
66316         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
66317         !_SOFT_FLOAT]: Likewise.
66318         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
66319         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
66320         value.
66321         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
66322         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
66323         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
66324         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
66325         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
66326         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
66327         file.
66328
66329 2013-01-16  Andreas Schwab  <schwab@suse.de>
66330
66331         [BZ #14327]
66332         * include/stdlib.h (__mktemp): Add declaration.
66333         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
66334         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
66335
66336 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
66337
66338         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
66339         definitions.
66340         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
66341         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
66342         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
66343         definitions here.
66344         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
66345         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
66346         definitions.
66347         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
66348         and ONE.
66349         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
66350         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
66351         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
66352         definitions.
66353         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
66354         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
66355         definitions.
66356         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
66357
66358         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
66359
66360 2013-01-15  David S. Miller  <davem@davemloft.net>
66361
66362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66363         trunc{,f} to libm-sysdep_routes.
66364         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
66366         file.
66367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
66368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
66369         file.
66370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
66371         file.
66372         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
66373         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
66374         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
66375         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
66376         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
66377         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
66378         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
66379         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
66380
66381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66382         nearbyint{,f} to libm-sysdep_routes.
66383         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
66385         New file.
66386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
66387         file.
66388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
66389         New file.
66390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
66391         file.
66392         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
66393         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
66394         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
66395         file.
66396         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
66397         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
66398         file.
66399         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
66400         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
66401         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
66402
66403         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
66404         libc_feholdexcept and libc_fesetenv.
66405
66406 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
66407
66408         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
66409
66410 2013-01-14  David S. Miller  <davem@davemloft.net>
66411
66412         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
66413         (SPARC_ASM_VIS2_IFUNC): Likewise.
66414         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
66415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
66416         use of 'siam' instruction.
66417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
66418         Likewise.
66419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
66420         Likewise.
66421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
66422         Likewise.
66423         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
66424         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
66425         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
66426         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
66427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
66428         file.
66429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
66430         file.
66431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
66432         file.
66433         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
66434         file.
66435         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
66436         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
66437         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
66438         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
66439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
66440         new VIS2 routines.
66441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66444         Likewise.
66445         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66446         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66447         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66448         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
66450         routines to libm-sysdep_routines.
66451         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66452
66453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66454         fdim/fdimf to libm-sysdep_routines.
66455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
66456         file.
66457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
66458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
66459         file.
66460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
66461         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
66462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
66463         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
66464         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
66465         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
66466         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
66467
66468 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
66469
66470         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
66471         to optimize copies.
66472
66473         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
66474         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
66475         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66476
66477         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
66478         local variable MPTWO.
66479         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
66480         Likewise.
66481
66482 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66483
66484         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
66485         GLOB_NOESCAPE.
66486
66487 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66488
66489         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
66490
66491 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66492
66493         * manual/pattern.texi (glob_t): Document gl_flags.
66494         (glob64_t): Likewise.
66495
66496 2013-01-11  David S. Miller  <davem@davemloft.net>
66497
66498         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
66499         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
66500         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
66501         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
66502         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
66503         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
66504         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
66505         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
66506         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
66507         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
66508         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
66509         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
66510         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
66511
66512         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
66513         sparc V9 rather than using V8 code.
66514         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66515         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66516
66517         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66518         Move to...
66519         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
66520         Here.
66521
66522 2013-01-11  Roland McGrath  <roland@hack.frob.com>
66523
66524         [BZ #14941]
66525         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
66526         not in the main loop.
66527         * configure: Regenerated.
66528
66529 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
66530
66531         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
66532         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
66533         to just #else.
66534         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
66535         [!__GLIBC_HAVE_LONG_LONG] case.
66536         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
66537         condition to just #else.
66538         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
66539         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
66540         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
66541         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
66542         unconditional.
66543         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
66544         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
66545         #elif condition to just #else.
66546         * sysdeps/unix/sysv/linux/sys/sysmacros.h
66547         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
66548         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
66549         #elif condition to just #else.
66550
66551 2013-01-11  Steve Ellcey  <sellcey@mips.com>
66552
66553         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
66554         (EF_MIPS_ARCH_64): Fix value.
66555         (EF_MIPS_ARCH_32R2): New.
66556         (EF_MIPS_ARCH_64R2): New.
66557
66558 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
66559
66560         * Makeconfig (+link-pie-before-libc): New.
66561         (+link-pie-after-libc): Likewise.
66562         (+link-pie-tests): Likewise.
66563         (+link-pie): Rewritten.
66564         (link-before-libc): Remove $(config-LDFLAGS).
66565         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
66566         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
66567         (config-LDFLAGS): Renamed to ...
66568         (rtld-LDFLAGS): This.
66569         (rtld-tests-LDFLAGS): New macro.
66570         (link-libc-rpath-link): Likewise.
66571         (link-libc-tests-rpath-link): Likewise.
66572         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
66573         (link-libc): Prepand $(link-libc-rpath-link).
66574         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
66575         (test-program-prefix): New macro.
66576         (test-via-rtld-prefix): Likewise.
66577         (test-program-cmd): Likewise.
66578         (host-test-program-cmd): Likewise.
66579         * Makefile ($(common-objpfx)testrun.sh): Replace
66580         $(run-program-prefix) with $(test-program-prefix).
66581         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
66582         $(rtld-LDFLAGS).
66583         ($(common-objpfx)shlib.lds): Likewise.
66584         (build-module-helper): Likewise.
66585         ($(common-objpfx)format.lds): Likewise.
66586         * Rules (binaries-pie-tests): New.
66587         (binaries-pie-notests): Likewise.
66588         (binaries-pie): Rewritten.
66589         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
66590         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
66591         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
66592         (make-test-out): Replace $(host-built-program-cmd) with
66593         $(host-test-program-cmd).
66594         * config.make.in (build-hardcoded-path-in-tests): New variable.
66595         * configure.in (--enable-hardcoded-path-in-tests): New configure
66596         option.
66597         (hardcoded_path_in_tests): New AC_SUBST.
66598         * configure: Regenerated.
66599         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
66600         $(built-program-cmd) with $(test-program-cmd).
66601         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
66602         (test_program_cmd): This.
66603         * elf/Makefile ($(objpfx)order.out): Run test with
66604         $(test-program-prefix).
66605         ($(objpfx)order2.out): Likewise.
66606         ($(objpfx)tst-initorder.out): Likewise.
66607         ($(objpfx)tst-initorder2.out): Likewise.
66608         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
66609         $(test-program-cmd).
66610         ($(objpfx)tst-array1-static.out): Likewise.
66611         ($(objpfx)tst-array2.out): Likewise.
66612         ($(objpfx)tst-array3.out): Likewise.
66613         ($(objpfx)tst-array4.out): Likewise.
66614         ($(objpfx)tst-array5.out): Likewise.
66615         ($(objpfx)tst-array5-static.out): Likewise.
66616         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
66617         $(test-program-cmd).
66618         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
66619         $(run-program-prefix) with $(test-program-prefix).
66620         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
66621         (test_program_prefix): This.
66622         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
66623         $(run-program-prefix) with $(test-program-prefix).
66624         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
66625         (test_program_prefix): This.
66626         * iconvdata/tst-tables.sh: Likewise.
66627         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
66628         $(run-program-prefix) with $(test-program-prefix).
66629         ($(objpfx)tst-translit.out): Likewise.
66630         ($(objpfx)tst-gettext2.out): Likewise.
66631         ($(objpfx)tst-gettext4.out): Likewise.
66632         ($(objpfx)tst-gettext6.out): Likewise.
66633         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
66634         (test_program_prefix): This.
66635         * intl/tst-gettext2.sh: Likewise.
66636         * intl/tst-gettext4.sh  Likewise.
66637         * intl/tst-gettext6.sh: Likewise.
66638         * intl/tst-translit.sh: Likewise.
66639         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
66640         with $(test-program-cmd).
66641         * libio/Makefile ($(objpfx)test-freopen.out): Replace
66642         $(run-program-prefix) with $(test-program-prefix).
66643         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
66644         (test_program_prefix): This.
66645         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
66646         $(run-program-prefix) with $(test-program-prefix).
66647         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
66648         (test_program_prefix): This.
66649         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
66650         * posix/Makefile ($(objpfx)globtest.out): Replace
66651         $(run-via-rtld-prefix) and $(test-wrapper) with
66652         $(test-program-prefix) and $(test-via-rtld-prefix).
66653         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
66654         $(test-program-prefix).
66655         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
66656         $(host-test-program-cmd).
66657         (tst-spawn-ARGS): Likewise.
66658         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
66659         $(test-program-prefix).
66660         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
66661         (test_via_rtld_prefix): This.
66662         (test_wrapper): Renamed to ...
66663         (test_program_prefix): This.
66664         (run_program_prefix): Replaced by test_program_prefix.
66665         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
66666         (test_program_prefix): This.
66667         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
66668         with $(host-test-program-cmd).
66669         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
66670         $(run-program-prefix) with $(test-program-prefix).
66671         ($(objpfx)tst-printf.out): Likewise.
66672         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
66673         $(test-program-cmd).
66674         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
66675         (test_program_prefix): This.
66676         * stdio-common/tst-unbputc.sh: Likewise.
66677         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
66678         $(run-program-prefix) with $(test-program-prefix).
66679         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
66680         (test_program_prefix): This.
66681         * string/Makefile ($(objpfx)tst-svc.out):  Replace
66682         $(built-program-cmd) with $(test-program-cmd).
66683
66684 2013-01-11  Andreas Jaeger  <aj@suse.de>
66685
66686         [BZ #15003]
66687         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
66688         value. Sync with Linux 3.7.
66689
66690 2013-01-10  David S. Miller  <davem@davemloft.net>
66691
66692         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
66693         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66694         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66695
66696 2013-01-10  Roland McGrath  <roland@hack.frob.com>
66697
66698         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
66699         never set.
66700         * configure: Regenerated.
66701
66702 2013-01-10  David S. Miller  <davem@davemloft.net>
66703
66704         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
66705         sparc V9 rather than using V8 code.
66706         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66707         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66708
66709 2013-01-10  Roland McGrath  <roland@hack.frob.com>
66710
66711         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
66712         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
66713         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
66714         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
66715         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
66716         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
66717         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
66718         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
66719         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
66720         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
66721         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
66722         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
66723         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
66724         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
66725         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
66726         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
66727         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
66728         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
66729         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
66730         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
66731         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
66732         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
66733         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
66734         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
66735         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
66736         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
66737         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
66738
66739 2013-01-10  David S. Miller  <davem@davemloft.net>
66740
66741         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66742
66743 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
66744
66745         * posix/Makefile (tests-static): New variable.
66746         (tests): Add $(tests-static).
66747         (tst-exec-static-ARGS): New variable.
66748         (tst-spawn-static-ARGS): Likewise.
66749         * posix/tst-exec-static.c: New file.
66750         * posix/tst-spawn-static.c: Likewise.
66751         * posix/tst-exec.c: Support run directly.
66752         * posix/tst-spawn.c: Likewise.
66753
66754 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
66755
66756         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
66757         long.
66758         * math/bits/mathcalls.h (llrint): Likewise.
66759         (llround): Likewise.
66760         * stdlib/stdlib.h (struct drand48_data): Likewise.
66761         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
66762         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
66763         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
66764         Likewise.
66765         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
66766         Likewise.
66767         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
66768         (elf_greg_t): Likewise.
66769         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
66770         (__jmp_buf): Likewise.
66771         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
66772         definitions.
66773         (llrint): Likewise, for all definitions.
66774         (llrintl): Likewise.
66775
66776         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
66777         Remove [__GNUC__] condition.
66778         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
66779         condition to just [__USE_ISOC99].
66780         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
66781
66782 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
66783
66784         [BZ #14200]
66785         * sysdeps/unix/sysv/linux/x86/bits/environments.h
66786         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
66787         defined.
66788         (_POSIX_V6_ILP32_OFF32): Likewise.
66789         (_XBS5_ILP32_OFF32): Likewise.
66790         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
66791         (__ILP32_OFFBIG_LDFLAGS): Likewise.
66792
66793 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
66794
66795         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
66796
66797         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
66798         doubles __mpexp_twomm1.  Adjust usage.
66799         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
66800         Remove.
66801
66802 2013-01-10  Andreas Schwab  <schwab@suse.de>
66803
66804         [BZ #14964]
66805         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
66806         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
66807
66808 2013-01-09  David S. Miller  <davem@davemloft.net>
66809
66810         [BZ #15003]
66811         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
66812         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
66813         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
66814         (TCP_FASTOPEN): Define.
66815         (tcp_repair_opt): New structure.
66816         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
66817         enum values.
66818         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
66819         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
66820         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
66821         (tcp_cookie_transactions): New structure.
66822
66823 2013-01-09  Anton Blanchard  <anton@samba.org>
66824
66825         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
66826         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
66827         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
66828         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
66829
66830 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
66831
66832         * include/features.h (__USE_ANSI): Remove.
66833
66834 2013-01-09  Roland McGrath  <roland@hack.frob.com>
66835
66836         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
66837
66838         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
66839
66840 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
66841
66842         * sysdeps/s390/fpu/libm-test-ulps: Update.
66843
66844         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66845
66846         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
66847         (__acr): Likewise.
66848         (__cpy): Likewise.
66849         (norm): Likewise.
66850         (denorm): Likewise.
66851         (__mp_dbl): Likewise.
66852         (__dbl_mp): Likewise.
66853         (add_magnitudes): Likewise.
66854         (sub_magnitudes): Likewise.
66855         (__add): Likewise.
66856         (__sub): Likewise.
66857         (__mul): Likewise.
66858         (__inv): Likewise.
66859         (__dvd): Likewise.
66860         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
66861         (__acr): Likewise.
66862         (__cpy): Likewise.
66863         (norm): Likewise.
66864         (denorm): Likewise.
66865         (__mp_dbl): Likewise.
66866         (__dbl_mp): Likewise.
66867         (add_magnitudes): Likewise.
66868         (sub_magnitudes): Likewise.
66869         (__add): Likewise.
66870         (__sub): Likewise.
66871         (__mul): Likewise.
66872         (__inv): Likewise.
66873         (__dvd): Likewise.
66874         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
66875         (__acr): Likewise.
66876         (__cpy): Likewise.
66877         (norm): Likewise.
66878         (denorm): Likewise.
66879         (__mp_dbl): Likewise.
66880         (__dbl_mp): Likewise.
66881         (add_magnitudes): Likewise.
66882         (sub_magnitudes): Likewise.
66883         (__add): Likewise.
66884         (__sub): Likewise.
66885         (__mul): Likewise.
66886         (__inv): Likewise.
66887         (__dvd): Likewise.
66888
66889 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
66890
66891         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
66892         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
66893         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
66894         2 && __USE_EXTERN_INLINES]: Likewise.
66895
66896 2013-01-08  Andreas Jaeger  <aj@suse.de>
66897
66898         [BZ #14985]
66899         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
66900         Remove.
66901         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
66902         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
66903
66904 2013-01-07  Anton Blanchard  <anton@samba.org>
66905
66906         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
66907         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
66908         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
66909         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
66910         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
66911         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66912         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
66913         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
66914         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
66915         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
66916         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
66917         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
66918         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66919         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
66920         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
66921         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
66922         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
66923         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
66924         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
66925         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
66926         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
66927         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
66928         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
66929         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
66930         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
66931         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
66932         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
66933         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
66934         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
66935         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66936         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
66937         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66938         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
66939         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
66940         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
66941         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
66942         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
66943         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
66944         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
66945         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
66946         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
66947         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
66948         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
66949
66950 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
66951
66952         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
66953         (__MALLOC_PMT): Likewise.
66954         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
66955         [__GNUC__], only on [_LIBC].
66956         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
66957         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
66958         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
66959         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
66960         forward declaration.
66961         (realloc_hook_ini): Likewise.
66962         (memalign_hook_ini): Likewise.
66963         (__libc_memalign): Do not use __MALLOC_PMT in variable
66964         declaration.
66965         (__libc_valloc): Likewise.
66966         (__libc_pvalloc): Likewise.
66967         (__libc_calloc): Likewise.
66968         (__posix_memalign): Likewise.
66969
66970         [BZ #14996]
66971         * math/s_casinh.c: Include <float.h>.
66972         (__casinh): Do not do computation with squaring and square root
66973         for large arguments.
66974         * math/s_casinhf.c: Include <float.h>.
66975         (__casinhf): Do not do computation with squaring and square root
66976         for large arguments.
66977         * math/s_casinhl.c: Include <float.h>.
66978         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
66979         (__casinhl): Do not do computation with squaring and square root
66980         for large arguments.
66981         * math/libm-test.inc (casin_test): Add more tests.
66982         (casinh_test): Likewise.
66983         * sysdeps/i386/fpu/libm-test-ulps: Update.
66984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66985
66986 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
66987
66988         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
66989         (__x86_64_raw_data_cache_size): Likewise.
66990         (__x86_64_data_cache_size_half): Likewise.
66991         (__x86_64_raw_data_cache_size_half): Likewise.
66992         (__x86_64_shared_cache_size): Likewise.
66993         (__x86_64_raw_shared_cache_size): Likewise.
66994         (__x86_64_shared_cache_size_half): Likewise.
66995         (__x86_64_raw_shared_cache_size_half): Likewise.
66996         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
66997         to ...
66998         (__x86_data_cache_size): This.
66999         (__x86_64_raw_data_cache_size): Renamed to ...
67000         (__x86_raw_data_cache_size): This.
67001         (__x86_64_data_cache_size_half): Renamed to ...
67002         (__x86_data_cache_size_half): This.
67003         (__x86_64_raw_data_cache_size_half): Renamed to ...
67004         (__x86_raw_data_cache_size_half): This.
67005         (__x86_64_shared_cache_size): Renamed to ...
67006         (__x86_shared_cache_size): This.
67007         (__x86_64_raw_shared_cache_size): Renamed to ...
67008         (__x86_raw_shared_cache_size): This.
67009         (__x86_64_shared_cache_size_half): Renamed to ...
67010         (__x86_shared_cache_size_half): This.
67011         (__x86_64_raw_shared_cache_size_half): Renamed to ...
67012         (__x86_raw_shared_cache_size_half): This.
67013         * sysdeps/x86_64/memcpy.S: Updated.
67014         * sysdeps/x86_64/memset.S: Likewise.
67015         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
67016         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
67017         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
67018
67019 2013-01-04  David S. Miller  <davem@davemloft.net>
67020
67021         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67022
67023 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
67024
67025         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
67026         1 to avoid redefinition warning.
67027         (__USE_GNU): Don't define.
67028         (init_signaling_nan): Protoize.
67029
67030         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67031
67032 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67033
67034         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
67035         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
67036         (__cpymn): Likewise.
67037         (norm): Remove commented code.
67038         (denorm): Likewise.
67039         (__mp_dbl): Likewise.
67040         (__inv): Likewise.
67041         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
67042         (__cpymn): Likewise.
67043         (norm): Remove commented code.
67044         (denorm): Likewise.
67045         (__mp_dbl): Likewise.
67046         (__inv): Likewise.
67047
67048         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
67049         mp_no value for 1.0 and 2.0.
67050         (norm): Use RADIXI instead of radixi.d.
67051         (denorm): Likewise.
67052         (__mul): Use 0.0 instead of zero.d.
67053         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
67054         mp_no value for 1.0 and 2.0.
67055         (norm): Use RADIXI instead of radixi.d.
67056         (denorm): Likewise.
67057         (__mul): Use 0.0 instead of zero.d.
67058
67059 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
67060
67061         [BZ #14994]
67062         * math/s_casinh.c (__casinh): Reduce finite argument to first
67063         quadrant then set signs of results at the end.
67064         * math/s_casinhf.c (__casinhf): Likewise.
67065         * math/s_casinhl.c (__casinhl): Likewise.
67066         * math/libm-test.inc (casin_test): Add more tests.
67067         (casinh_test): Likewise.
67068         * sysdeps/i386/fpu/libm-test-ulps: Update.
67069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67070
67071 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67072
67073         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
67074
67075         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
67076
67077         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
67078         declarations.
67079         (denorm): Likewise.
67080         (__mp_dbl): Likewise.
67081         (__inv): Likewise.
67082
67083         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
67084         and adjust the header comment.
67085
67086         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
67087         variable name from declaration.
67088
67089 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
67090
67091         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
67092         Initialize COMMON_CPUID_INDEX_7 element.
67093         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
67094         (CPUID_RTM): Likewise.
67095         (HAS_RTM): Likewise.
67096         (COMMON_CPUID_INDEX_7): New enum.
67097
67098 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
67099
67100         [BZ #14981]
67101         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
67102         size is zero, record memory as freed.
67103
67104 2013-01-03  Andreas Jaeger  <aj@suse.de>
67105
67106         * po/ia.po: Add new Interlingua translation.
67107
67108 2012-01-03  Allan McRae  <allan@archlinux.org>
67109
67110         * locale/programs/localedef.c: Fix description of '--posix' flag.
67111
67112 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
67113
67114         * NEWS: Update dates in second copyright notice.
67115         * README: Update copyright dates in example.
67116         * manual/libc.texinfo: Update copyright dates.
67117         * scripts/test-installation.pl: Update copyright date in --version
67118         output.
67119
67120         * hurd/ctty-input.c: Fix copyright notice formatting.
67121         * hurd/ctty-output.c: Likewise.
67122         * hurd/dtable.c: Likewise.
67123         * hurd/hurd-raise.c: Likewise.
67124         * hurd/hurdprio.c: Likewise.
67125         * hurd/msgportdemux.c: Likewise.
67126         * misc/sys/file.h: Likewise.
67127         * misc/sys/ioctl.h: Likewise.
67128         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
67129         * sysdeps/mach/hurd/chdir.c: Likewise.
67130         * sysdeps/mach/hurd/fchdir.c: Likewise.
67131         * sysdeps/mach/hurd/rename.c: Likewise.
67132         * sysdeps/mach/hurd/rmdir.c: Likewise.
67133         * sysdeps/mach/hurd/seekdir.c: Likewise.
67134         * sysdeps/mach/hurd/setsid.c: Likewise.
67135         * sysdeps/posix/wait3.c: Likewise.
67136
67137         * All files with FSF copyright notices: Update copyright dates
67138         using scripts/update-copyrights.
67139         * intl/plural.c: Regenerated.
67140         * locale/programs/charmap-kw.h: Likewise.
67141         * locale/programs/locfile-kw.h: Likewise.
67142
67143 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
67144
67145         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
67146         four values.
67147
67148         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
67149         calculation loop and add branch prediction.
67150
67151         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
67152         check access beyond bounds of m1np.
67153
67154         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67155         MPTWO.
67156         (__inv): Remove local variable MPTWO to use the global
67157         constant.
67158         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
67159         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67160         variable MPTWO.
67161         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
67162         MP3HALFS static const.
67163
67164 2013-01-01  David S. Miller  <davem@davemloft.net>
67165
67166         * po/ca.po: Update from translation team.
67167
67168 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
67169
67170         * scripts/update-copyrights: New file.
67171         * Makeconfig: Reformat copyright notice.
67172         * ctype/ctype.h: Likewise.
67173         * debug/swprintf_chk.c: Likewise.
67174         * elf/dl-cache.c: Likewise.
67175         * elf/dl-debug.c: Likewise.
67176         * elf/dl-object.c: Likewise.
67177         * grp/initgroups.c: Likewise.
67178         * hurd/Makefile: Likewise.
67179         * hurd/hurd/signal.h: Likewise.
67180         * hurd/hurdfault.c: Likewise.
67181         * hurd/hurdioctl.c: Likewise.
67182         * hurd/hurdlookup.c: Likewise.
67183         * hurd/intr-msg.c: Likewise.
67184         * iconv/gconv_open.c: Likewise.
67185         * libio/swprintf.c: Likewise.
67186         * locale/lc-ctype.c: Likewise.
67187         * locale/nl_langinfo.c: Likewise.
67188         * mach/Machrules: Likewise.
67189         * mach/Makefile: Likewise.
67190         * malloc/obstack.h: Likewise.
67191         * manual/Makefile: Likewise.
67192         * manual/tsort.awk: Likewise.
67193         * misc/bits/stab.def: Likewise.
67194         * nis/nis_print_group_entry.c: Likewise.
67195         * nis/nis_table.c: Likewise.
67196         * nis/nss_compat/compat-pwd.c: Likewise.
67197         * nis/nss_compat/compat-spwd.c: Likewise.
67198         * po/Makefile: Likewise.
67199         * posix/fnmatch.c: Likewise.
67200         * posix/regex.h: Likewise.
67201         * resolv/Makefile: Likewise.
67202         * resolv/nss_dns/dns-network.c: Likewise.
67203         * resolv/res_hconf.c: Likewise.
67204         * scripts/gen-sorted.awk: Likewise.
67205         * soft-fp/soft-fp.h: Likewise.
67206         * stdio-common/printf.h: Likewise.
67207         * stdlib/monetary.h: Likewise.
67208         * stdlib/random.c: Likewise.
67209         * stdlib/random_r.c: Likewise.
67210         * sysdeps/generic/Makefile: Likewise.
67211         * sysdeps/gnu/Makefile: Likewise.
67212         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67213         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67214         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67215         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67216         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67217         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67218         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67219         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67220         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67221         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67222         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
67223         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
67224         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
67225         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
67226         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
67227         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
67228         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
67229         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67230         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67231         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67232         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67233         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67234         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67235         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
67236         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
67237         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
67238         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
67239         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
67240         * sysdeps/mach/hurd/errnos.awk: Likewise.
67241         * sysdeps/mach/hurd/fork.c: Likewise.
67242         * sysdeps/mach/hurd/getcwd.c: Likewise.
67243         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
67244         * sysdeps/mach/hurd/mmap.c: Likewise.
67245         * sysdeps/mach/hurd/utimes.c: Likewise.
67246         * sysdeps/mach/hurd/xmknod.c: Likewise.
67247         * sysdeps/posix/profil.c: Likewise.
67248         * sysdeps/posix/readdir_r.c: Likewise.
67249         * sysdeps/powerpc/bits/mathdef.h: Likewise.
67250         * sysdeps/powerpc/bits/setjmp.h: Likewise.
67251         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
67252         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
67253         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
67254         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67255         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67256         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
67257         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67258         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67259         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67260         * sysdeps/pthread/lio_listio.c: Likewise.
67261         * sysdeps/sparc/dl-procinfo.h: Likewise.
67262         * sysdeps/unix/i386/sysdep.S: Likewise.
67263         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
67264         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
67265         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
67266         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
67267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
67268         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
67269         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
67270         * sysdeps/unix/sysv/linux/speed.c: Likewise.
67271         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
67272         * sysdeps/wordsize-32/divdi3.c: Likewise.
67273         * time/sys/time.h: Likewise.
67274         * wcsmbs/Makefile: Likewise.
67275
67276 2013-01-01  David S. Miller  <davem@davemloft.net>
67277
67278         * po/fr.po: Update from translation team.
67279
67280         * catgets/gencat.c: Update copyright year.
67281         * csu/version.c: Likewise.
67282         * debug/catchsegv.sh: Likewise.
67283         * debug/pcprofiledump.c: Likewise.
67284         * debug/xtrace.sh: Likewise.
67285         * elf/ldconfig.c: Likewise.
67286         * elf/ldd.bash.in: Likewise.
67287         * elf/pldd.c: Likewise.
67288         * elf/sotruss.ksh: Likewise.
67289         * elf/sprof.c: Likewise.
67290         * iconv/iconv_prog.c: Likewise.
67291         * iconv/iconvconfig.c: Likewise.
67292         * locale/programs/locale.c: Likewise.
67293         * locale/programs/localedef.c: Likewise.
67294         * login/programs/pt_chown.c: Likewise.
67295         * malloc/memusage.sh: Likewise.
67296         * malloc/memusagestat.c: Likewise.
67297         * malloc/mtrace.pl: Likewise.
67298         * nscd/nscd.c: Likewise.
67299         * nss/getent.c: Likewise.
67300         * nss/makedb.c: Likewise.
67301         * posix/getconf.c: Likewise.
67302
67303 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
67304
67305         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
67306         numbers.
67307
67308 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
67309
67310         * math/bits/mathcalls.h (modf): Use __nonnull.
67311
67312 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
67313
67314         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
67315         (split): Use macro CN instead of the bare value.
67316         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
67317         could be used.
67318         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
67319         instead of the bare value.
67320         (power1): Likewise.
67321
67322 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67323
67324         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
67325         __ATAN_TWOM.
67326         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67327
67328         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
67329         their values.
67330         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
67331         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
67332         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
67333         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
67334
67335 2012-12-28  Andreas Jaeger  <aj@suse.de>
67336
67337         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
67338         values are from Linux 3.7.
67339
67340         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
67341         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
67342
67343 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67344
67345         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
67346         TRUE case.
67347
67348         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
67349         (norm): Likewise.
67350         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
67351         variables with preprocessor constants.
67352         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67353         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
67354         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
67355
67356 2012-12-27  Bruno Haible  <bruno@clisp.org>
67357
67358         [BZ #14317]
67359         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
67360         only if needed.
67361
67362 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67363
67364         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
67365         and use variable directly.
67366         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
67367
67368         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67369         MPONE.
67370         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
67371         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67372         variable MPONE.
67373         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
67374         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
67375         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
67376         include directive.  Remove local variable MPONE.
67377         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
67378         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
67379         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
67380
67381 2012-12-25  David S. Miller  <davem@davemloft.net>
67382
67383         * version.h (RELEASE): Set to "development".
67384         (VERSION): Set to "2.17.90".
67385         * NEWS: Add 2.18 section.
67386
67387 2012-12-21  David S. Miller  <davem@davemloft.net>
67388
67389         * po/hr.po: Update from translation team.
67390
67391 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67392
67393         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
67394
67395 2012-12-19  Steve Ellcey  <sellcey@mips.com>
67396
67397         * NEWS:  Mention new memcpy for MIPS.
67398
67399 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67400
67401         * manual/contrib.texi (Contributors): Spelling correction.
67402
67403 2012-12-15  David S. Miller  <davem@davemloft.net>
67404
67405         * po/ru.po: Update from translation team.
67406
67407 2012-12-13  David S. Miller  <davem@davemloft.net>
67408
67409         * NEWS: Mention IFUNC testsuite enhancements.
67410
67411         * po/pl.po: Update from translation team.
67412         * po/bg.po: Likewise.
67413
67414         * manual/contrib.texi (Contributors): Update entries for Hongjiu
67415         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
67416
67417 2012-12-11  David S. Miller  <davem@davemloft.net>
67418
67419         * po/sv.po: Update from translation team.
67420
67421         * po/vi.po: Update from translation team.
67422
67423         * po/cs.po: Update from translation team.
67424
67425         * po/de.po: Update from translation team.
67426         * po/eo.po: Likewise.
67427         * po/nl.po: Likewise.
67428
67429 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
67430
67431         [BZ #14246]
67432         * manual/argp.texi (Argp Helper Functions): Move node to follow
67433         Argp Parsing State.
67434
67435         [BZ #14872]
67436         * manual/conf.texi (Limits on File System Capacity): Mention if
67437         terminating null is included in the max size.
67438
67439 2012-12-10  Andreas Jaeger  <aj@suse.de>
67440
67441         * po/cs.po: Update from translation team.
67442
67443 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
67444
67445         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
67446         void pointer and cast to uintptr_t.
67447         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
67448         path.
67449         * sysdeps/s390/s390-64/memcpy.S: Likewise.
67450         * sysdeps/s390/s390-64/memset.S: Likewise.
67451
67452 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
67453
67454         [BZ #14833]
67455         * menual/message.texi (Message Translation): Fix typos.
67456         (Helper programs for gettext): Likewise.
67457
67458 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
67459
67460         [BZ #14898]
67461         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
67462         Change to -1.
67463
67464 2012-12-07  David S. Miller  <davem@davemloft.net>
67465
67466         * po/libc.pot: Update.
67467
67468 2012-12-07  Richard Henderson  <rth@redhat.com>
67469
67470         [BZ #10114]
67471         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
67472         normal/normal case to before the switch.
67473         (_FP_DIV): Likewise.
67474
67475 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
67476             Mike Frysinger  <vapier@gentoo.org>
67477
67478         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
67479         check for __NR_fadvise64_64.
67480
67481 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
67482
67483         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
67484         0, not just to plain "0" as a statement.
67485         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
67486         with cw.
67487
67488 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
67489
67490         * NEWS: Use sourceware.org in Bugzilla URL.
67491
67492 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
67493
67494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
67495         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
67496
67497         * stdio-common/tst-put-error.c (do_test): Add newline to the
67498         padded test to ensure flush.
67499
67500 2012-12-05  Jeff Law  <law@redhat.com>
67501
67502         * sunrpc/etc.rpc (fedfs_admin): Add entry.
67503
67504 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
67505
67506         * README: Don't refer to ports add-on as distributed separately.
67507         Mention AArch64 in list of systems supported in the ports add-on.
67508
67509         * LICENSES: Add more non-FSF copyright and license notices.
67510
67511         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
67512         ((unused)).
67513
67514         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
67515
67516         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
67517         10000 as width of padded output.
67518
67519 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
67520
67521         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
67522
67523         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
67524         variable LX with __attribute__ ((unused)).
67525         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
67526         Likewise.
67527         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
67528         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67529         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
67530         with __attribute__ ((unused)).
67531
67532 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
67533
67534         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
67535
67536 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
67537
67538         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
67539         (CFLAGS-nldbl-acos.c): New variable.
67540         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
67541         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
67542         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
67543         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
67544         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
67545         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
67546         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
67547         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
67548         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
67549         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
67550         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
67551         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
67552         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
67553         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
67554         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
67555         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
67556         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
67557         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
67558         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
67559         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
67560         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
67561         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
67562         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
67563         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
67564         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
67565         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
67566         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
67567         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
67568         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
67569         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
67570         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
67571         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
67572         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
67573         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
67574         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
67575         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
67576         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
67577         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
67578         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
67579         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
67580         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
67581         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
67582         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
67583         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
67584         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
67585         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
67586         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
67587         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
67588         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
67589         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
67590         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
67591         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
67592         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
67593         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
67594         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
67595         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
67596         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
67597         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
67598         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
67599         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
67600         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
67601         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
67602         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
67603         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
67604         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
67605         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
67606         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
67607         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
67608         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
67609         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
67610         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
67611         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
67612         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
67613         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
67614         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
67615         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
67616         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
67617         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
67618         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
67619         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
67620         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
67621         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
67622         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
67623         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
67624         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
67625         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
67626         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
67627         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
67628         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
67629         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
67630         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
67631         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
67632         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
67633         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
67634         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
67635         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
67636         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
67637
67638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
67639         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
67640
67641         [BZ #14914]
67642         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
67643         whole low double instead of just low 47 bits when splitting values
67644         into two parts.
67645
67646 2012-12-03  Allan McRae  <allan@archlinux.org>
67647
67648         * manual/stdio.texi (Predefined Printf Handlers): Remove
67649         @hsep and @vsep usage.
67650
67651 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
67652
67653         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
67654         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
67655
67656 2012-12-03  Jeff Law  <law@redhat.com>
67657
67658         * time/sys/time.h (settimeofday): Do not mark TV argument
67659         as __nonnull.
67660
67661 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
67662
67663         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
67664         when currently writing and seek to current position when not.
67665         * libio/Makefile (tests): Remove bug-fclose1.
67666         * libio/bug-fclose1.c: Delete.
67667
67668 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
67669
67670         * manual/arith.texi (feenableexcept): Fix typo.
67671         (fedisableexcept): Likewise.
67672
67673 2012-11-30  Roland McGrath  <roland@hack.frob.com>
67674
67675         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
67676         second, differently-typed declaration, rather than a cast.
67677
67678 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
67679
67680         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
67681         * include/rpc/svc.h: ... here.
67682
67683 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
67684
67685         [BZ #13013]
67686         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
67687         depending n and resplen2 to catch cases where answer
67688         equals answerp2.
67689
67690 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
67691
67692         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
67693         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
67694
67695 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
67696
67697         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
67698
67699 2012-11-29  Roland McGrath  <roland@hack.frob.com>
67700
67701         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
67702
67703 2012-11-28  Jeff Law  <law@redhat.com>
67704
67705         [BZ #13761]
67706         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
67707         dataset_temporary.  Track alloca usage into alloca_used.
67708         If dataset is large allocate and release it via malloc/free.
67709
67710 2012-06-04  Florian Weimer  <fweimer@redhat.com>
67711
67712         [BZ #14197]
67713         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
67714
67715 2012-11-28  David S. Miller  <davem@davemloft.net>
67716
67717         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67718
67719 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
67720
67721         [BZ #14803]
67722         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
67723         of pi/2 rounded to nearest to 64 bits.
67724         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
67725         nearest to 64 bits.
67726         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
67727         bits.
67728
67729 2012-11-28  Jeff Law <law@redhat.com>
67730             Martin Osvald <mosvald@redhat.com>
67731
67732         [BZ #14889]
67733         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
67734         * sunrpc/svc.c: Include time.h.
67735         (__svc_accept_failed): New function.
67736         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
67737         any reason other than EINTR, call __svc_accept_failed.
67738         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
67739         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
67740
67741 2012-11-28  Andreas Schwab  <schwab@suse.de>
67742
67743         * scripts/abilist.awk: Also handle indirect functions in .opd
67744         section.
67745
67746 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
67747
67748         [BZ #13881]
67749         * sysdeps/x86/fpu/powl_helper.c: New file.
67750         * sysdeps/x86/fpu/Makefile: Likewise.
67751         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
67752         (p3): New object.
67753         (__ieee754_powl): Use __powl_helper for finite arguments except
67754         integer exponents below 8.
67755         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
67756         (p3): New object.
67757         (__ieee754_powl): Use __powl_helper for finite arguments except
67758         integer exponents below 8.
67759         * math/libm-test.inc (pow_test): Add more tests and enable some
67760         previously disabled tests.
67761         * sysdeps/i386/fpu/libm-test-ulps: Update.
67762         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67763
67764 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67765             Carlos O'Donell  <carlos_odonell@mentor.com>
67766
67767         * nss/makedb.c (is_prime): Assert that input is odd and greater
67768         than 4.  Note that fact in a comment too.
67769         (next_prime): Add 4 to input.
67770
67771 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67772
67773         [BZ #11741]
67774         * libio/Makefile (tests): Add test case tst-fwrite-error.
67775         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
67776         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
67777         * libio/tst-fwrite-error.c: New test case.
67778
67779 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
67780
67781         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
67782         before casting to void *.
67783         * include/libc-internal.h (__pointer_type): New macro.
67784         (__integer_if_pointer_type_sub): Likewise.
67785         (__integer_if_pointer_type): Likewise.
67786         (cast_to_integer): Likewise.
67787         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
67788         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
67789         before casting to atomic64_t.
67790         (atomic_exchange_acq): Likewise.
67791         (__arch_exchange_and_add_body): Likewise.
67792         (__arch_add_body): Likewise.
67793         (atomic_add_negative): Likewise.
67794         (atomic_add_zero): Likewise.
67795
67796 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
67797
67798         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
67799         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
67800         (add_fdes): Likewise.
67801         (linear_search_fdes): Likewise.
67802         (binary_search_unencoded_fdes): Likewise.
67803
67804 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
67805
67806         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
67807
67808 2012-11-24  Adam Conrad  <adconrad@0c3.net>
67809
67810         * configure.in: Autodetect C++ header directories.
67811         * configure: Regenerated.
67812
67813 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
67814
67815         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
67816
67817 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
67818
67819         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67820
67821 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
67822
67823         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
67824         LDBL_MANT_DIG == 106]: Disable some tests.
67825         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
67826         Likewise.
67827         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
67828         Likewise.
67829
67830         [BZ #14871]
67831         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
67832         input for small inputs.  Return +/- pi/2 for large inputs.
67833         * math/libm-test.inc (atan_test): Add more tests.
67834
67835         * sysdeps/generic/unwind-dw2-fde-glibc.c
67836         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
67837         __attribute__ ((unused)).
67838
67839         [BZ #14645]
67840         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
67841         x * y if x and y are nonzero and z is zero.
67842
67843         [BZ #14811]
67844         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
67845         nonzero exponents with absolute value below 0x1p-117 to +/-
67846         0x1p-117.
67847
67848         [BZ #14869]
67849         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
67850         up arguments below 2**-450, not just those below 2**-500.
67851         * math/libm-test.inc (hypot_test): Add another test.
67852
67853         [BZ #14868]
67854         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
67855         Return a+b for ratio over 2**120, not 2**60.
67856         * math/libm-test.inc (hypot_test): Add another test.
67857
67858         * math/libm-test.inc (clog_test): Use
67859         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
67860         (clog10_test): Likewise.
67861
67862         [BZ #6778]
67863         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
67864
67865 2012-11-22  Andreas Schwab  <schwab@suse.de>
67866
67867         * sysdeps/i386/fpu/libm-test-ulps: Update.
67868
67869 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
67870
67871         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
67872         printf output with newline.
67873
67874 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
67875
67876         [BZ #14865]
67877         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
67878         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
67879         -z nodlopen, -z initfirst and -z execstack support.
67880         * configure: Regenerated.
67881
67882         * elf/elf.h (DF_1_NODIRECT): New macro.
67883         (DF_1_IGNMULDEF): Likewise.
67884         (DF_1_NOKSYMS): Likewise.
67885         (DF_1_NOHDR): Likewise.
67886         (DF_1_EDITED): Likewise.
67887         (DF_1_NORELOC): Likewise.
67888         (DF_1_SYMINTPOSE): Likewise.
67889         (DF_1_GLOBAUDIT): Likewise.
67890         (DF_1_SINGLETON): Likewise.
67891         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
67892         DT_1_SUPPORTED_MASK bits.
67893         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
67894
67895 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
67896
67897         * sysdeps/unix/make-syscalls.sh: Document prefixes.
67898
67899 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
67900
67901         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
67902         macro.
67903
67904         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
67905         (sendmmsg): Move declarations...
67906         * socket/sys/socket.h: ... here.
67907         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
67908         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
67909         include it from...
67910         * socket/recvmmsg.c: ... this new file.
67911         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
67912         (sendmmsg): Rename to __sendmmsg, create weak alias and make
67913         definition of __sendmmsg hidden.
67914         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
67915         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
67916         Move ENOSYS stub into and include it from...
67917         * socket/sendmmsg.c: ... this new file.
67918         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
67919         (sysdep_routines): Move recvmmsg and sendmmsg...
67920         * socket/Makefile (routines): ... here.
67921         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
67922         (GLIBC_PRIVATE): Add __sendmmsg.
67923         * include/sys/socket.h (__sendmmsg): Add declarations.
67924         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
67925         sendmmsg.
67926
67927 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
67928
67929         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
67930         variable I1 with __attribute__ ((unused)).
67931         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
67932
67933 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
67934
67935         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
67936         DUMMY variables with __attribute__ ((unused)).
67937
67938         * bits/byteswap.h: Include <bits/types.h>.
67939         (__bswap_64): Use __uint64_t instead of unsigned long long int.
67940
67941 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
67942
67943         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
67944         string_t.  Do not manually set errno.
67945         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
67946         length with __strnlen.  Make sure to both set errno and return it on
67947         failure.
67948
67949 2012-11-19  David S. Miller  <davem@davemloft.net>
67950
67951         With help from Joseph Myers.
67952         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
67953         very large arguments properly.
67954         * math/libm-test.inc (atan_test): New tests.
67955         (atan2_test): New tests.
67956         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67957         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
67958
67959 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
67960
67961         [BZ #14856]
67962         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
67963         Define to 3.
67964
67965         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
67966         [POSIX] (EADDRNOTAVAIL): Likewise.
67967         [POSIX] (EAFNOSUPPORT): Likewise.
67968         [POSIX] (EALREADY): Likewise.
67969         [POSIX] (ECONNABORTED): Likewise.
67970         [POSIX] (ECONNREFUSED): Likewise.
67971         [POSIX] (ECONNRESET): Likewise.
67972         [POSIX] (EDESTADDRREQ): Likewise.
67973         [POSIX] (EDQUOT): Likewise.
67974         [POSIX] (EHOSTUNREACH): Likewise.
67975         [POSIX] (EIDRM): Likewise.
67976         [POSIX] (EISCONN): Likewise.
67977         [POSIX] (ELOOP): Likewise.
67978         [POSIX] (EMULTIHOP): Likewise.
67979         [POSIX] (ENETDOWN): Likewise.
67980         [POSIX] (ENETUNREACH): Likewise.
67981         [POSIX] (ENOBUFS): Likewise.
67982         [POSIX] (ENODATA): Likewise.
67983         [POSIX] (ENOLINK): Likewise.
67984         [POSIX] (ENOMSG): Likewise.
67985         [POSIX] (ENOPROTOOPT): Likewise.
67986         [POSIX] (ENOSR): Likewise.
67987         [POSIX] (ENOSTR): Likewise.
67988         [POSIX] (ENOTCONN): Likewise.
67989         [POSIX] (ENOTSOCK): Likewise.
67990         [POSIX] (EOPNOTSUPP): Likewise.
67991         [POSIX] (EOVERFLOW): Likewise.
67992         [POSIX] (EPROTO): Likewise.
67993         [POSIX] (EPROTONOSUPPORT): Likewise.
67994         [POSIX] (EPROTOTYPE): Likewise.
67995         [POSIX] (ESTALE): Likewise.
67996         [POSIX] (ETIME): Likewise.
67997         [POSIX] (ETXTBSY): Likewise.
67998         [POSIX] (EWOULDBLOCK): Likewise.
67999         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
68000         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
68001         [POSIX] (SEEK_CUR): Likewise.
68002         [POSIX] (SEEK_END): Likewise.
68003         [POSIX || UNIX98] (mode_t): Do not require.
68004         [POSIX] (off_t): Likewise.
68005         [POSIX] (pid_t): Likewise.
68006         [POSIX] (sys/stat.h): Do not allow header.
68007         [POSIX] (unistd.h): Likewise.
68008         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
68009         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
68010         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
68011         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
68012         require.
68013         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
68014         sigevent): Specify elements.
68015         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
68016         entry.
68017         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
68018         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
68019
68020         * conform/data/cpio.h-data [POSIX]: Disable whole file.
68021         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
68022         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
68023         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
68024         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
68025         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
68026         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
68027         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
68028         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
68029         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
68030         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
68031         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
68032         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
68033         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
68034         Likewise.
68035         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
68036         Likewise.
68037         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
68038         Likewise.
68039         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
68040         Likewise.
68041         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
68042         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
68043         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
68044         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
68045         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
68046         Specify lower bound on value.
68047         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
68048         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
68049         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
68050         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
68051         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
68052         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
68053         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
68054         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
68055         value.
68056         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
68057         as optional.
68058         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
68059         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
68060         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
68061         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
68062         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
68063         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
68064         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
68065         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
68066         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
68067         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
68068         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
68069         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
68070         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
68071         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
68072         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
68073         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
68074         entry.
68075         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
68076         optional.
68077         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
68078         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
68079         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
68080         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
68081         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
68082         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
68083         Likewise.
68084         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
68085         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
68086         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
68087         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
68088         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
68089         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
68090         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
68091         as optional.
68092         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
68093         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
68094         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
68095         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
68096         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
68097         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
68098         specify as optional.
68099         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
68100         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
68101         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
68102         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
68103         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
68104         [XPG3] (NL_LANGMAX): Likewise.
68105         [POSIX || XPG3] (NL_MSGMAX): Likewise.
68106         [POSIX || XPG3] (NL_NMAX): Likewise.
68107         [POSIX || XPG3] (NL_SETMAX): Likewise.
68108         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
68109         [XPG3] (NZERO): Likewise.
68110         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
68111         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
68112         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
68113         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
68114         (REG_ERANGE): Expect.
68115         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
68116         optional-constant.
68117         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
68118         Use (void) in prototype.
68119         [POSIX] (*_t): Allow.
68120         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
68121         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
68122         (WRDE_BADVAL): Expect.
68123
68124         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
68125         expect.
68126         [XPG3 || XPG4] (O_RSYNC): Likewise.
68127         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
68128         Likewise.
68129         [XPG3 || XPG4] (pthread_sigmask): Likewise.
68130         [XPG3 || XPG4] (sigqueue): Likewise.
68131         [XPG3 || XPG4] (sigtimedwait): Likewise.
68132         [XPG3 || XPG4] (sigwaitinfo): Likewise.
68133         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
68134         [XPG3 || XPG4] (vsnprintf): Likewise.
68135         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
68136         Likewise.
68137         [XPG3 || XPG4] (blksize_t): Likewise.
68138         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
68139         Likewise.
68140         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
68141         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
68142         [XPG3 || XPG4] (struct itimerspec): Likewise.
68143         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
68144         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
68145         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
68146         [XPG3 || XPG4] (clockid_t): Likewise.
68147         [XPG3 || XPG4] (timer_t): Likewise.
68148         [XPG3 || XPG4] (clock_getres): Likewise.
68149         [XPG3 || XPG4] (clock_gettime): Likewise.
68150         [XPG3 || XPG4] (clock_settime): Likewise.
68151         [XPG3 || XPG4] (nanosleep): Likewise.
68152         [XPG3 || XPG4] (timer_create): Likewise.
68153         [XPG3 || XPG4] (timer_delete): Likewise.
68154         [XPG3 || XPG4] (timer_gettime): Likewise.
68155         [XPG3 || XPG4] (timer_getoverrun): Likewise.
68156         [XPG3 || XPG4] (timer_settime): Likewise.
68157         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
68158         [XPG3 || XPG4] (getlogin_r): Likewise.
68159         [XPG3 || XPG4] (pread): Likewise.
68160         [XPG3 || XPG4] (pthread_atfork): Likewise.
68161         [XPG3 || XPG4] (pwrite): Likewise.
68162
68163         [BZ #14835]
68164         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
68165         <bits/siginfo.h>.
68166
68167 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
68168
68169         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
68170         finalizing MALLSTREAM.
68171
68172         * sysdeps/mach/hurd/syncfs.c: New file.
68173
68174 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
68175
68176         [BZ #14719]
68177         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
68178         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
68179         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
68180         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
68181         (_nss_dns_gethostbyname4_r): Likewise.
68182         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
68183         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
68184
68185 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
68186
68187         [BZ #13763]
68188         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
68189
68190 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
68191
68192         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
68193         * elf/cache.c (print_entry): Print ",AArch64" for
68194         FLAG_AARCH64_LIB64
68195
68196         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
68197         * elf/cache.c (print_entry): Print ",hard-float" for
68198         FLAG_ARM_LIBHF.
68199
68200 2012-11-18  David S. Miller  <davem@davemloft.net>
68201
68202         With help from Joseph Myers.
68203         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
68204         cutoff to 2**-13.
68205         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
68206         cutoff to 2**-25.
68207         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
68208         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
68209         small.
68210         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
68211         * math/libm-test.inc (y0_test): New tests.
68212         (y1_test): New tests.
68213         * sysdeps/i386/fpu/libm-test-ulps: Update.
68214         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68215         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68216
68217 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
68218
68219         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
68220         64-bit targets.
68221         * configure: Regenerated.
68222
68223 2012-11-17  David S. Miller  <davem@davemloft.net>
68224
68225         [BZ #14811]
68226         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
68227         nonzero exponents with absolute value below 0x1p-128 to +/-
68228         0x1p-128.
68229
68230 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
68231
68232         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
68233
68234         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
68235
68236         * posix/getconf-speclist.c: New file.
68237         * posix/posix-envs.def: Likewise.
68238         * posix/confstr.c (START_ENV_GROUP): New macro.
68239         (END_ENV_GROUP): Likewise.
68240         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68241         (KNOWN_PRESENT_ENV_STRING): Likewise.
68242         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68243         (UNKNOWN_ENVIRONMENT): Likewise.
68244         (confstr): Include posix-envs.def instead of handling
68245         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
68246         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
68247         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
68248         (END_ENV_GROUP): Likewise.
68249         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68250         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68251         (UNKNOWN_ENVIRONMENT): Likewise.
68252         (__sysconf): Include posix-envs.def instead of handling associated
68253         cases directly here.
68254         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
68255         preprocessing getconf-speclist.c rather than running getconf or
68256         generating empty file.
68257
68258 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
68259
68260         * scripts/check-local-headers.sh: Ignore 'mach' headers.
68261
68262 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
68263
68264         [BZ #14672]
68265         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
68266
68267 2012-11-16  David S. Miller  <davem@davemloft.net>
68268
68269         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
68270         smaller than LDBL_EPSILON/2.0L, just return xm1.
68271
68272 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
68273
68274         * elf/tst-array1.c (init): Set constructor priority to 1000.
68275         (fini): Set destructor priority to 1000.
68276         * elf/tst-array2dep.c: Likewise.
68277
68278 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68279
68280         [BZ #11741]
68281         * libio/fileops.c (_IO_new_file_write): Correctly return error.
68282         (_IO_new_file_xsputn): Also return EOF if none of the input
68283         data was written when overflow failed.
68284         * libio/iopadn.c (_IO_padn): Likewise.
68285         * libio/iowpadn.c (_IO_wpadn): Likewise.
68286         * stdio-common/tst-put-error.c: Add copyright notice.
68287         (do_test): Add case for printing padded string.
68288         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
68289         _IO_padn returned error.
68290         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
68291         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
68292         return EOF.
68293
68294 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68295
68296         * libio/libioP.h: Add comment note that the references to C++
68297         bits are now obsolete.
68298
68299 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68300
68301         * math/libm-test.inc (check_complex): Use asprintf.
68302
68303 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
68304
68305         * debug/pcprofiledump.c (print_version): Update copyright year.
68306         * malloc/memusagestat.c (print_version): Likewise.
68307
68308 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
68309
68310         [BZ #14831]
68311         * elf/Makefile (tests): Add tst-audit8.
68312         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
68313         ($(objpfx)tst-audit8.out): New target.
68314         (tst-audit8-ENV): New variable.
68315         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
68316         audit if l_reloc_result is NULL.
68317         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
68318         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
68319         * elf/tst-audit8.c: New file.
68320
68321 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68322
68323         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
68324         * misc/Makefile (CFLAGS-select.c): Define.
68325         * posix/Makefile (CFLAGS-pause.c): Define.
68326
68327 2012-11-13  David S. Miller  <davem@davemloft.net>
68328
68329         * crypt/Makefile: Move test targets after toplevel Rules
68330         inclusion.  Grab any necessary sysdep routines when linking.
68331         * crypt/md5.c (md5_process_block): Remove define, we will always
68332         name it __md5_process_block.
68333         (md5_finish_ctx): Update md5_process_block call.
68334         (md5_stream): Likewise.
68335         (md5_process_bytes): Likewise.
68336         (md5_process_block): Rename to __md5_process_block and move to ...
68337         * crypt/md5-block.c: ... here.
68338         * crypt/sha256.c (sha256_process_block): Move to ...
68339         * crypt/sha256-block.c: ... here.
68340         * crypt/sha512.c (sha512_process_block): Move to ...
68341         * crypt/sha512-block.c: ... here.
68342         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
68343         path.
68344         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
68345         * sysdeps/sparc/sparc64/multiarch/Makefile
68346         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
68347         crypt subdir.
68348         (localedef-aux): Add md5 crypto assembler when in locale subdir.
68349         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
68350         multiarch changes.
68351         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
68352         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
68353         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
68354         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
68355         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
68356         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
68357         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
68358         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
68359         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
68360         file.
68361         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
68362         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
68363         file.
68364         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
68365
68366 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
68367
68368         * timezone/tzselect.ksh: Update from tzcode git revision
68369         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
68370         * timezone/zdump.c: Likewise.
68371         * timezone/zic.c: Likewise.
68372         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
68373         in TZVERSION setting, not $(PKGVERSION).
68374         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
68375         REPORT_BUGS_TO settings.
68376
68377         [BZ #14838]
68378         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
68379         macro.
68380
68381 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68382
68383         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
68384         detection to immediately after _FP_ROUND().
68385         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
68386         bits are 0.
68387
68388 2012-11-11  David S. Miller  <davem@davemloft.net>
68389
68390         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
68391         inttypes.h
68392         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
68393         __close rather than their public counterparts.
68394
68395 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
68396
68397         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
68398         file.
68399         [UNIX98] (sem_timedwait): Do not expect.
68400         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
68401         [XPG4 || UNIX98] (sockatmark): Do not expect.
68402         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
68403         (clock_getcpuclockid): Do not expect.
68404         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
68405         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
68406         Do not expect.
68407         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
68408         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
68409         [UNIX98] (vwscanf): Likewise.
68410         [UNIX98] (vswscanf): Likewise.
68411
68412 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
68413
68414         * timezone/version.h: Remove file.
68415         * timezone/README: Do not refer to version.h.
68416         * timezone/Makefile ($(objpfx)zic.o): New dependency on
68417         $(objpfx)version.h.
68418         ($(objpfx)zdump.o): Likewise.
68419         ($(objpfx)version.h): New target.
68420
68421         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
68422         2012i.
68423         * timezone/README: Don't mention modification to tzselect.ksh.
68424         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
68425         work on unmodified tzselect.ksh.  Substitute version numbers in
68426         tzselect.ksh.
68427
68428         * Makefile (format-me): Remove.
68429         (INSTALL): Adjust indentation.  Use commands directly instead of
68430         using $(format-me).
68431
68432         * aclocal.m4 (ACX_PKGVERSION): New macro.
68433         (ACX_BUGURL): Likewise.
68434         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
68435         (PKGVERSION): New AC_DEFINE_UNQUOTED.
68436         (REPORT_BUGS_TO): Likewise.
68437         * configure: Regenerated.
68438         * config.h.in (PKGVERSION): New macro.
68439         (REPORT_BUGS_TO): Likewise.
68440         * config.make.in (PKGVERSION): New variable.
68441         (PKGVERSION_TEXI): Likewise.
68442         (REPORT_BUGS_TO): Likewise.
68443         (REPORT_BUGS_TEXI): Likewise.
68444         * Makefile (format-me): Use -I$(common-objpfx)manual.
68445         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
68446         ($(common-objpfx)manual/%): New target.
68447         (manual/%): Remove target.
68448         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
68449         (print_version): Use PKGVERSION.
68450         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
68451         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
68452         and REPORT_BUGS_TO.
68453         ($(objpfx)xtrace): Likewise.
68454         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
68455         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
68456         (print_version): Use PKGVERSION.
68457         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
68458         (do_version): Use PKGVERSION.
68459         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
68460         REPORT_BUGS_TO.
68461         (common-ldd-rewrite): Likewise.
68462         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
68463         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
68464         (print_version): Use PKGVERSION.
68465         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
68466         * elf/pldd.c (argp_program_bug_address): Remove variable.
68467         (more_help): New function.
68468         (argp): Use more_help.
68469         (print_version): Use PKGVERSION.
68470         * elf/sln.c (main): Use PKGVERSION.
68471         (usage): Use REPORT_BUGS_TO.
68472         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
68473         (top level): Use PKGVERSION.
68474         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
68475         (print_version): Use PKGVERSION.
68476         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
68477         (print_version): Use PKGVERSION.
68478         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
68479         (print_version): Use PKGVERSION.
68480         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
68481         (print_version): Use PKGVERSION.
68482         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
68483         (print_version): Use PKGVERSION.
68484         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
68485         (print_version): Use PKGVERSION.
68486         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
68487         and BUGURL.
68488         ($(objpfx)memusage): Likewise.
68489         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
68490         (do_version): Use PKGVERSION.
68491         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
68492         (print_version): Use PKGVERSION.
68493         * malloc/mtrace.pl ($PACKAGE): Remove variable.
68494         ($PKGVERSION): New variable.
68495         ($REPORT_BUGS_TO): Likewise.
68496         (usage): Use $REPORT_BUGS_TO.
68497         (top level): Use $PKGVERSION.
68498         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
68499         ($(objpfx)pkgvers.texi): New rule.
68500         ($(objpfx)stamp-pkgvers): Likewise.
68501         * manual/install.texi: Include pkgvers.texi.
68502         (--with-pkgversion): Document new configure option.
68503         (--with-bugurl): Likewise.
68504         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
68505         than necessarily for this particular distribution.  Use
68506         REPORT_BUGS_TO for where to report bugs.
68507         * INSTALL: Regenerated.
68508         * manual/libc.texinfo: Include pkgvers.texi.
68509         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
68510         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
68511         (print_version): Use PKGVERSION.
68512         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
68513         (print_version): Use PKGVERSION.
68514         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
68515         (print_version): Use PKGVERSION.
68516         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
68517         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
68518         macro.
68519         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
68520         (print_version): Use PKGVERSION.
68521         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
68522         (print_version): Use PKGVERSION.
68523         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
68524         and PKGVERSION.
68525
68526         * timezone/checktab.awk: Update from tzcode 2012i.
68527         * timezone/ialloc.c: Likewise.
68528         * timezone/private.h: Likewise.
68529         * timezone/scheck.c: Likewise.
68530         * timezone/tzfile.h: Likewise.
68531         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
68532         (TZVERSION): Hardcode tzcode version number.
68533         * timezone/zdump.c: Update from tzcode 2012i.
68534         * timezone/zic.c: Likewise.
68535         * timezone/version.h: New file.
68536         * timezone/README: Describe version.h.  Update upstream location.
68537
68538         [BZ #14824]
68539         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
68540         (mktemp): Enable declaration.
68541         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
68542         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
68543         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
68544         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
68545         Likewise.
68546         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
68547         Likewise.
68548         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
68549         Likewise.
68550         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
68551         Likewise.
68552         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
68553         Likewise.
68554         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
68555         Likewise.
68556
68557         [BZ #14821]
68558         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
68559         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
68560         for copies of such integer values.
68561         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
68562         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
68563
68564 2012-11-09  Andreas Jaeger  <aj@suse.de>
68565
68566         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
68567         definitions and declarations that are provided by
68568         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
68569
68570 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68571
68572         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
68573         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
68574         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
68575         definition.
68576
68577 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68578
68579         * elf/elf.h: Update comment before AArch64 relocations.
68580
68581 2012-11-07  David S. Miller  <davem@davemloft.net>
68582
68583         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
68584         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
68585         (__start_context): Declare.
68586         (__makecontext_ret): Delete.
68587         (__makecontext): Hook up __start_context instead of
68588         __makecontext_ret.
68589         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
68590         (sysdep_routines): Add __start_context when in stdlib.
68591
68592 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68593
68594         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
68595         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
68596         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
68597         hardcoded "nm".
68598         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
68599         (READELF): New variable.  Use it instead of hardcoded "readelf".
68600
68601 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
68602
68603         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
68604         * sysdeps/x86/Makefile: Here.
68605         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
68606         * sysdeps/x86/tst-xmmymm.sh: This.
68607
68608 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68609
68610         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
68611         expectations.
68612         [UNIX98] (pthread_barrier_t): Do not expect.
68613         [UNIX98] (pthread_barrierattr_t): Likewise.
68614         [UNIX98] (pthread_spinlock_t): Likewise.
68615         [UNIX98] (pthread_barrier_destroy): Likewise.
68616         [UNIX98] (pthread_barrier_init): Likewise.
68617         [UNIX98] (pthread_barrier_wait): Likewise.
68618         [UNIX98] (pthread_barrierattr_destroy): Likewise.
68619         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
68620         [UNIX98] (pthread_barrierattr_init): Likewise.
68621         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
68622         [UNIX98] (pthread_getcpuclockid): Likewise.
68623         [UNIX98] (pthread_mutex_timedlock): Likewise.
68624         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
68625         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
68626         [UNIX98] (pthread_sigmask): Likewise.
68627         [UNIX98] (pthread_spin_destroy): Likewise.
68628         [UNIX98] (pthread_spin_init): Likewise.
68629         [UNIX98] (pthread_spin_lock): Likewise.
68630         [UNIX98] (pthread_spin_trylock): Likewise.
68631         [UNIX98] (pthread_spin_unlock): Likewise.
68632         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
68633         Do not expect.
68634         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
68635         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
68636         [XPG3 || XPG4] (pthread_cond_t): Likewise.
68637         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
68638         [XPG3 || XPG4] (pthread_key_t): Likewise.
68639         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
68640         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
68641         [XPG3 || XPG4] (pthread_once_t): Likewise.
68642         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
68643         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
68644         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
68645         [XPG3 || XPG4] (pthread_t): Likewise.
68646
68647         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
68648         not expect.
68649         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
68650
68651         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
68652         Change function return type to int.
68653
68654         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
68655         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
68656         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
68657         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
68658         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
68659         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
68660         [!POSIX] (posix_madvise): Likewise.
68661         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
68662         && !UNIX98].
68663         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
68664         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
68665         (mode_t): Likewise.
68666         (posix_mem_offset): Likewise.
68667         (posix_typed_mem_get_info): Likewise.
68668         (posix_typed_mem_open): Likewise.
68669
68670         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
68671         Change condition to [XOPEN2K8].
68672
68673         * conform/conformtest.pl: Preprocess allow-header data with -x c
68674         instead of from stdin.
68675         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
68676         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
68677         [C99-based standards] (cerfc): Likewise.
68678         [C99-based standards] (cexp2): Likewise.
68679         [C99-based standards] (cexpm1): Likewise.
68680         [C99-based standards] (clog10): Likewise.
68681         [C99-based standards] (clog1p): Likewise.
68682         [C99-based standards] (clog2): Likewise.
68683         [C99-based standards] (clgamma): Likewise.
68684         [C99-based standards] (ctgamma): Likewise.
68685         [C99-based standards] (cerff): Likewise.
68686         [C99-based standards] (cerfcf): Likewise.
68687         [C99-based standards] (cexp2f): Likewise.
68688         [C99-based standards] (cexpm1f): Likewise.
68689         [C99-based standards] (clog10f): Likewise.
68690         [C99-based standards] (clog1pf): Likewise.
68691         [C99-based standards] (clog2f): Likewise.
68692         [C99-based standards] (clgammaf): Likewise.
68693         [C99-based standards] (ctgammaf): Likewise.
68694         [C99-based standards] (cerfl): Likewise.
68695         [C99-based standards] (cerfcl): Likewise.
68696         [C99-based standards] (cexp2l): Likewise.
68697         [C99-based standards] (cexpm1l): Likewise.
68698         [C99-based standards] (clog10l): Likewise.
68699         [C99-based standards] (clog1pl): Likewise.
68700         [C99-based standards] (clog2l): Likewise.
68701         [C99-based standards] (clgammal): Likewise.
68702         [C99-based standards] (ctgammal): Likewise.
68703         * conform/data/inttypes.h-data [C99-based standards]: Include
68704         stdint.h-data.  Remove all expectations for stdint.h contents.
68705         [C99-based standards] (PRI*): Do not allow.
68706         [C99-based standards] (SCN*): Likewise.
68707         [C99-based standards] (*_t): Likewise.
68708         [C99-based-standards] (PRId8): Expect macro.
68709         [C99-based-standards] (PRIi8): Likewise.
68710         [C99-based-standards] (PRIo8): Likewise.
68711         [C99-based-standards] (PRIu8): Likewise.
68712         [C99-based-standards] (PRIx8): Likewise.
68713         [C99-based-standards] (PRIX8): Likewise.
68714         [C99-based-standards] (SCNd8): Likewise.
68715         [C99-based-standards] (SCNi8): Likewise.
68716         [C99-based-standards] (SCNo8): Likewise.
68717         [C99-based-standards] (SCNu8): Likewise.
68718         [C99-based-standards] (SCNx8): Likewise.
68719         [C99-based-standards] (PRIdLEAST8): Likewise.
68720         [C99-based-standards] (PRIiLEAST8): Likewise.
68721         [C99-based-standards] (PRIoLEAST8): Likewise.
68722         [C99-based-standards] (PRIuLEAST8): Likewise.
68723         [C99-based-standards] (PRIxLEAST8): Likewise.
68724         [C99-based-standards] (PRIXLEAST8): Likewise.
68725         [C99-based-standards] (SCNdLEAST8): Likewise.
68726         [C99-based-standards] (SCNiLEAST8): Likewise.
68727         [C99-based-standards] (SCNoLEAST8): Likewise.
68728         [C99-based-standards] (SCNuLEAST8): Likewise.
68729         [C99-based-standards] (SCNxLEAST8): Likewise.
68730         [C99-based-standards] (PRIdFAST8): Likewise.
68731         [C99-based-standards] (PRIiFAST8): Likewise.
68732         [C99-based-standards] (PRIoFAST8): Likewise.
68733         [C99-based-standards] (PRIuFAST8): Likewise.
68734         [C99-based-standards] (PRIxFAST8): Likewise.
68735         [C99-based-standards] (PRIXFAST8): Likewise.
68736         [C99-based-standards] (SCNdFAST8): Likewise.
68737         [C99-based-standards] (SCNiFAST8): Likewise.
68738         [C99-based-standards] (SCNoFAST8): Likewise.
68739         [C99-based-standards] (SCNuFAST8): Likewise.
68740         [C99-based-standards] (SCNxFAST8): Likewise.
68741         [C99-based-standards] (PRId16): Likewise.
68742         [C99-based-standards] (PRIi16): Likewise.
68743         [C99-based-standards] (PRIo16): Likewise.
68744         [C99-based-standards] (PRIu16): Likewise.
68745         [C99-based-standards] (PRIx16): Likewise.
68746         [C99-based-standards] (PRIX16): Likewise.
68747         [C99-based-standards] (SCNd16): Likewise.
68748         [C99-based-standards] (SCNi16): Likewise.
68749         [C99-based-standards] (SCNo16): Likewise.
68750         [C99-based-standards] (SCNu16): Likewise.
68751         [C99-based-standards] (SCNx16): Likewise.
68752         [C99-based-standards] (PRIdLEAST16): Likewise.
68753         [C99-based-standards] (PRIiLEAST16): Likewise.
68754         [C99-based-standards] (PRIoLEAST16): Likewise.
68755         [C99-based-standards] (PRIuLEAST16): Likewise.
68756         [C99-based-standards] (PRIxLEAST16): Likewise.
68757         [C99-based-standards] (PRIXLEAST16): Likewise.
68758         [C99-based-standards] (SCNdLEAST16): Likewise.
68759         [C99-based-standards] (SCNiLEAST16): Likewise.
68760         [C99-based-standards] (SCNoLEAST16): Likewise.
68761         [C99-based-standards] (SCNuLEAST16): Likewise.
68762         [C99-based-standards] (SCNxLEAST16): Likewise.
68763         [C99-based-standards] (PRIdFAST16): Likewise.
68764         [C99-based-standards] (PRIiFAST16): Likewise.
68765         [C99-based-standards] (PRIoFAST16): Likewise.
68766         [C99-based-standards] (PRIuFAST16): Likewise.
68767         [C99-based-standards] (PRIxFAST16): Likewise.
68768         [C99-based-standards] (PRIXFAST16): Likewise.
68769         [C99-based-standards] (SCNdFAST16): Likewise.
68770         [C99-based-standards] (SCNiFAST16): Likewise.
68771         [C99-based-standards] (SCNoFAST16): Likewise.
68772         [C99-based-standards] (SCNuFAST16): Likewise.
68773         [C99-based-standards] (SCNxFAST16): Likewise.
68774         [C99-based-standards] (PRId32): Likewise.
68775         [C99-based-standards] (PRIi32): Likewise.
68776         [C99-based-standards] (PRIo32): Likewise.
68777         [C99-based-standards] (PRIu32): Likewise.
68778         [C99-based-standards] (PRIx32): Likewise.
68779         [C99-based-standards] (PRIX32): Likewise.
68780         [C99-based-standards] (SCNd32): Likewise.
68781         [C99-based-standards] (SCNi32): Likewise.
68782         [C99-based-standards] (SCNo32): Likewise.
68783         [C99-based-standards] (SCNu32): Likewise.
68784         [C99-based-standards] (SCNx32): Likewise.
68785         [C99-based-standards] (PRIdLEAST32): Likewise.
68786         [C99-based-standards] (PRIiLEAST32): Likewise.
68787         [C99-based-standards] (PRIoLEAST32): Likewise.
68788         [C99-based-standards] (PRIuLEAST32): Likewise.
68789         [C99-based-standards] (PRIxLEAST32): Likewise.
68790         [C99-based-standards] (PRIXLEAST32): Likewise.
68791         [C99-based-standards] (SCNdLEAST32): Likewise.
68792         [C99-based-standards] (SCNiLEAST32): Likewise.
68793         [C99-based-standards] (SCNoLEAST32): Likewise.
68794         [C99-based-standards] (SCNuLEAST32): Likewise.
68795         [C99-based-standards] (SCNxLEAST32): Likewise.
68796         [C99-based-standards] (PRIdFAST32): Likewise.
68797         [C99-based-standards] (PRIiFAST32): Likewise.
68798         [C99-based-standards] (PRIoFAST32): Likewise.
68799         [C99-based-standards] (PRIuFAST32): Likewise.
68800         [C99-based-standards] (PRIxFAST32): Likewise.
68801         [C99-based-standards] (PRIXFAST32): Likewise.
68802         [C99-based-standards] (SCNdFAST32): Likewise.
68803         [C99-based-standards] (SCNiFAST32): Likewise.
68804         [C99-based-standards] (SCNoFAST32): Likewise.
68805         [C99-based-standards] (SCNuFAST32): Likewise.
68806         [C99-based-standards] (SCNxFAST32): Likewise.
68807         [C99-based-standards] (PRId64): Likewise.
68808         [C99-based-standards] (PRIi64): Likewise.
68809         [C99-based-standards] (PRIo64): Likewise.
68810         [C99-based-standards] (PRIu64): Likewise.
68811         [C99-based-standards] (PRIx64): Likewise.
68812         [C99-based-standards] (PRIX64): Likewise.
68813         [C99-based-standards] (SCNd64): Likewise.
68814         [C99-based-standards] (SCNi64): Likewise.
68815         [C99-based-standards] (SCNo64): Likewise.
68816         [C99-based-standards] (SCNu64): Likewise.
68817         [C99-based-standards] (SCNx64): Likewise.
68818         [C99-based-standards] (PRIdLEAST64): Likewise.
68819         [C99-based-standards] (PRIiLEAST64): Likewise.
68820         [C99-based-standards] (PRIoLEAST64): Likewise.
68821         [C99-based-standards] (PRIuLEAST64): Likewise.
68822         [C99-based-standards] (PRIxLEAST64): Likewise.
68823         [C99-based-standards] (PRIXLEAST64): Likewise.
68824         [C99-based-standards] (SCNdLEAST64): Likewise.
68825         [C99-based-standards] (SCNiLEAST64): Likewise.
68826         [C99-based-standards] (SCNoLEAST64): Likewise.
68827         [C99-based-standards] (SCNuLEAST64): Likewise.
68828         [C99-based-standards] (SCNxLEAST64): Likewise.
68829         [C99-based-standards] (PRIdFAST64): Likewise.
68830         [C99-based-standards] (PRIiFAST64): Likewise.
68831         [C99-based-standards] (PRIoFAST64): Likewise.
68832         [C99-based-standards] (PRIuFAST64): Likewise.
68833         [C99-based-standards] (PRIxFAST64): Likewise.
68834         [C99-based-standards] (PRIXFAST64): Likewise.
68835         [C99-based-standards] (SCNdFAST64): Likewise.
68836         [C99-based-standards] (SCNiFAST64): Likewise.
68837         [C99-based-standards] (SCNoFAST64): Likewise.
68838         [C99-based-standards] (SCNuFAST64): Likewise.
68839         [C99-based-standards] (SCNxFAST64): Likewise.
68840         [C99-based-standards] (PRIdMAX): Likewise.
68841         [C99-based-standards] (PRIiMAX): Likewise.
68842         [C99-based-standards] (PRIoMAX): Likewise.
68843         [C99-based-standards] (PRIuMAX): Likewise.
68844         [C99-based-standards] (PRIxMAX): Likewise.
68845         [C99-based-standards] (PRIXMAX): Likewise.
68846         [C99-based-standards] (SCNdMAX): Likewise.
68847         [C99-based-standards] (SCNiMAX): Likewise.
68848         [C99-based-standards] (SCNoMAX): Likewise.
68849         [C99-based-standards] (SCNuMAX): Likewise.
68850         [C99-based-standards] (SCNxMAX): Likewise.
68851         [C99-based-standards] (PRIdPTR): Likewise.
68852         [C99-based-standards] (PRIiPTR): Likewise.
68853         [C99-based-standards] (PRIoPTR): Likewise.
68854         [C99-based-standards] (PRIuPTR): Likewise.
68855         [C99-based-standards] (PRIxPTR): Likewise.
68856         [C99-based-standards] (PRIXPTR): Likewise.
68857         [C99-based-standards] (SCNdPTR): Likewise.
68858         [C99-based-standards] (SCNiPTR): Likewise.
68859         [C99-based-standards] (SCNoPTR): Likewise.
68860         [C99-based-standards] (SCNuPTR): Likewise.
68861         [C99-based-standards] (SCNxPTR): Likewise.
68862         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
68863         allow.
68864         * conform/data/stdint.h-data: Update comments to clarify
68865         requirements.
68866         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
68867         type.
68868         [C99-based standards] (INT8_MAX): Likewise.
68869         [C99-based standards] (INT16_MIN): Likewise.
68870         [C99-based standards] (INT16_MAX): Likewise.
68871         [C99-based standards] (INT32_MIN): Likewise.
68872         [C99-based standards] (INT32_MAX): Likewise.
68873         [C99-based standards] (INT64_MIN): Likewise.
68874         [C99-based standards] (INT64_MAX): Likewise.
68875         [C99-based standards] (UINT8_MAX): Likewise.
68876         [C99-based standards] (UINT16_MAX): Likewise.
68877         [C99-based standards] (UINT32_MAX): Likewise.
68878         [C99-based standards] (UINT64_MAX): Likewise.
68879         [C99-based standards] (INT_LEAST8_MIN): Likewise.
68880         [C99-based standards] (INT_LEAST8_MAX): Likewise.
68881         [C99-based standards] (INT_LEAST16_MIN): Likewise.
68882         [C99-based standards] (INT_LEAST16_MAX): Likewise.
68883         [C99-based standards] (INT_LEAST32_MIN): Likewise.
68884         [C99-based standards] (INT_LEAST32_MAX): Likewise.
68885         [C99-based standards] (INT_LEAST64_MIN): Likewise.
68886         [C99-based standards] (INT_LEAST64_MAX): Likewise.
68887         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
68888         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
68889         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
68890         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
68891         [C99-based standards] (INT_FAST8_MIN): Likewise.
68892         [C99-based standards] (INT_FAST8_MAX): Likewise.
68893         [C99-based standards] (INT_FAST16_MIN): Likewise.
68894         [C99-based standards] (INT_FAST16_MAX): Likewise.
68895         [C99-based standards] (INT_FAST32_MIN): Likewise.
68896         [C99-based standards] (INT_FAST32_MAX): Likewise.
68897         [C99-based standards] (INT_FAST64_MIN): Likewise.
68898         [C99-based standards] (INT_FAST64_MAX): Likewise.
68899         [C99-based standards] (UINT_FAST8_MAX): Likewise.
68900         [C99-based standards] (UINT_FAST16_MAX): Likewise.
68901         [C99-based standards] (UINT_FAST32_MAX): Likewise.
68902         [C99-based standards] (UINT_FAST64_MAX): Likewise.
68903         [C99-based standards] (INTPTR_MIN): Likewise.
68904         [C99-based standards] (INTPTR_MAX): Likewise.
68905         [C99-based standards] (UINTPTR_MAX): Likewise.
68906         [C99-based standards] (INTMAX_MIN): Likewise.
68907         [C99-based standards] (INTMAX_MAX): Likewise.
68908         [C99-based standards] (UINTMAX_MAX): Likewise.
68909         [C99-based standards] (PTRDIFF_MIN): Likewise.
68910         [C99-based standards] (PTRDIFF_MAX): Likewise.
68911         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
68912         [C99-based standards] (SIZE_MAX): Likewise.
68913         [C99-based standards] (WCHAR_MAX): Likewise.
68914         [C99-based standards] (WINT_MAX): Likewise.
68915         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
68916         constraint on value.
68917         [C99-based standards] (WCHAR_MIN): Likewise.
68918         [C99-based standards] (WINT_MIN): Likewise.
68919         [C99-based standards] (*_t): Allow.
68920         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
68921         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
68922         Include math.h-data and complex.h-data.  Remove all expectations
68923         of math.h and complex.h contents.
68924         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
68925         at end of line.
68926         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
68927         (struct tm): Expect tag.
68928         [C99-based-standards] (wcstof): Expect function.
68929         [C99-based-standards] (wcstold): Likewise.
68930         [C99-based-standards] (wcstoll): Likewise.
68931         [C99-based-standards] (wcstoull): Likewise.
68932         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
68933         macro-int-constant.  Specify type.
68934         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
68935         constraint on value.
68936         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
68937         Specify type.
68938         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
68939         Specify value.
68940         [ISO C standards]: Do not allow headers.
68941         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
68942         wcs[abcdefghijklmnopqrstuvwxyz]*.
68943         [ISO C standards] (*_t): Do not allow.
68944         * conform/data/wctype.h-data [C99-based standards] (iswblank):
68945         Expect function.
68946         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
68947         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
68948         Specify type.
68949         [ISO C standards]: Do not allow headers.
68950         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
68951         is[abcdefghijklmnopqrstuvwxyz]*.
68952         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
68953         to[abcdefghijklmnopqrstuvwxyz]*.
68954         [ISO C standards] (*_t): Do not allow.
68955         * conform/data/stdalign.h-data: New file.
68956         * conform/data/stdbool.h-data: Likewise.
68957         * conform/data/stdnoreturn.h-data: Likewise.
68958
68959 2012-11-07  Roland McGrath  <roland@hack.frob.com>
68960
68961         [BZ #14815]
68962         * manual/filesys.texi (Directory Entries): Typo fix.
68963         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
68964
68965 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68966
68967         * elf/elf.h (EM_AARCH64): New macro.
68968         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
68969         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
68970         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
68971         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
68972         (R_AARCH64_TLSDESC): Likewise.
68973         (NT_ARM_TLS): Likewise.
68974         (NT_ARM_HW_BREAK): Likewise.
68975         (NT_ARM_HW_WATCH): Likewise.
68976
68977 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68978
68979         [BZ #14811]
68980         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
68981         (__ieee754_powl): Saturate nonzero exponents with absolute value
68982         below 0x1p-79 to +/- 0x1p-79.
68983         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
68984         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
68985         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
68986         nonzero exponents with absolute value below 0x1p-32 to +/-
68987         0x1p-32.
68988         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
68989         (__ieee754_powl): Saturate nonzero exponents with absolute value
68990         below 0x1p-79 to +/- 0x1p-79.
68991         * math/libm-test.inc (pow_test): Add more tests.
68992
68993 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68994
68995         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
68996         _dl_s390_cap_flags with kernel. Increase string length.
68997         (_dl_s390_platforms): Add z196 and zEC12.
68998
68999 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69000
69001         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
69002         Change XOPEN21K to XOPEN2K.
69003
69004 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
69005
69006         * string/memmove.c: Use memcpy when possible.
69007
69008 2012-11-06  Andreas Jaeger  <aj@suse.de>
69009
69010         * po/eo.po: Update from translation team.
69011
69012 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
69013
69014         [BZ #14793]
69015         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
69016         exponent and small x and y exponents, scale x or y up.  Increase
69017         by 2 the exponent used in scaling up.
69018         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69019         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69020         * math/libm-test.inc (fma_test): Add more tests.
69021         (fma_test_towardzero): Likewise.
69022         (fma_test_downward): Likewise.
69023         (fma_test_upward): Likewise.
69024
69025 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
69026
69027         [BZ #14805]
69028         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
69029         fenv_t *.
69030
69031         [BZ #14801]
69032         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
69033         namespace for names of struct fields.
69034         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
69035         fenv_t fields.
69036         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
69037         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
69038
69039 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69040
69041         [BZ #3665]
69042         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
69043
69044 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
69045
69046         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
69047         PTR_DEMANGLE.
69048
69049         [BZ #5246]
69050         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
69051         PTR_DEMANGLE.
69052
69053 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
69054
69055         [BZ #14797]
69056         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
69057         definitely overflow as x * y not x * y + z.
69058         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69059         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69060         * math/libm-test.inc (fma_test): Add more tests.
69061         (fma_test_towardzero): Likewise.
69062         (fma_test_downward): Likewise.
69063         (fma_test_upward): Likewise.
69064
69065 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
69066
69067         [BZ #157]
69068
69069         * include/stub-tag.h: Remove file.
69070         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
69071         '#include' of it.
69072         * manual/maint.texi (Porting): Don't reference it.
69073         * Makerules ($(objpfx)stubs): Likewise.
69074         * dirent/closedir.c: Don't include <stub-tag.h>.
69075         * dirent/dirfd.c: Likewise.
69076         * dirent/fdopendir.c: Likewise.
69077         * dirent/getdents.c: Likewise.
69078         * dirent/getdents64.c: Likewise.
69079         * dirent/opendir.c: Likewise.
69080         * dirent/readdir.c: Likewise.
69081         * dirent/readdir64.c: Likewise.
69082         * dirent/readdir64_r.c: Likewise.
69083         * dirent/readdir_r.c: Likewise.
69084         * dirent/rewinddir.c: Likewise.
69085         * dirent/seekdir.c: Likewise.
69086         * dirent/telldir.c: Likewise.
69087         * gmon/profil.c: Likewise.
69088         * grp/setgroups.c: Likewise.
69089         * inet/if_index.c: Likewise.
69090         * io/access.c: Likewise.
69091         * io/chdir.c: Likewise.
69092         * io/chmod.c: Likewise.
69093         * io/chown.c: Likewise.
69094         * io/close.c: Likewise.
69095         * io/dup.c: Likewise.
69096         * io/dup2.c: Likewise.
69097         * io/dup3.c: Likewise.
69098         * io/euidaccess.c: Likewise.
69099         * io/faccessat.c: Likewise.
69100         * io/fchdir.c: Likewise.
69101         * io/fchmod.c: Likewise.
69102         * io/fchmodat.c: Likewise.
69103         * io/fchown.c: Likewise.
69104         * io/fchownat.c: Likewise.
69105         * io/fcntl.c: Likewise.
69106         * io/flock.c: Likewise.
69107         * io/fstatfs.c: Likewise.
69108         * io/fstatfs64.c: Likewise.
69109         * io/fstatvfs.c: Likewise.
69110         * io/fstatvfs64.c: Likewise.
69111         * io/futimens.c: Likewise.
69112         * io/fxstat.c: Likewise.
69113         * io/fxstat64.c: Likewise.
69114         * io/fxstatat.c: Likewise.
69115         * io/fxstatat64.c: Likewise.
69116         * io/getcwd.c: Likewise.
69117         * io/isatty.c: Likewise.
69118         * io/lchmod.c: Likewise.
69119         * io/lchown.c: Likewise.
69120         * io/link.c: Likewise.
69121         * io/linkat.c: Likewise.
69122         * io/lseek.c: Likewise.
69123         * io/lseek64.c: Likewise.
69124         * io/lxstat64.c: Likewise.
69125         * io/mkdir.c: Likewise.
69126         * io/mkdirat.c: Likewise.
69127         * io/mkfifo.c: Likewise.
69128         * io/mkfifoat.c: Likewise.
69129         * io/open.c: Likewise.
69130         * io/open64.c: Likewise.
69131         * io/openat.c: Likewise.
69132         * io/openat64.c: Likewise.
69133         * io/pipe.c: Likewise.
69134         * io/pipe2.c: Likewise.
69135         * io/poll.c: Likewise.
69136         * io/posix_fadvise.c: Likewise.
69137         * io/posix_fadvise64.c: Likewise.
69138         * io/posix_fallocate.c: Likewise.
69139         * io/posix_fallocate64.c: Likewise.
69140         * io/read.c: Likewise.
69141         * io/readlink.c: Likewise.
69142         * io/readlinkat.c: Likewise.
69143         * io/rmdir.c: Likewise.
69144         * io/sendfile.c: Likewise.
69145         * io/sendfile64.c: Likewise.
69146         * io/statfs.c: Likewise.
69147         * io/statfs64.c: Likewise.
69148         * io/statvfs.c: Likewise.
69149         * io/statvfs64.c: Likewise.
69150         * io/symlink.c: Likewise.
69151         * io/symlinkat.c: Likewise.
69152         * io/ttyname.c: Likewise.
69153         * io/ttyname_r.c: Likewise.
69154         * io/umask.c: Likewise.
69155         * io/unlink.c: Likewise.
69156         * io/unlinkat.c: Likewise.
69157         * io/utime.c: Likewise.
69158         * io/utimensat.c: Likewise.
69159         * io/write.c: Likewise.
69160         * io/xmknod.c: Likewise.
69161         * io/xmknodat.c: Likewise.
69162         * io/xstat.c: Likewise.
69163         * io/xstat64.c: Likewise.
69164         * login/getpt.c: Likewise.
69165         * login/grantpt.c: Likewise.
69166         * login/unlockpt.c: Likewise.
69167         * math/e_acoshl.c: Likewise.
69168         * math/e_acosl.c: Likewise.
69169         * math/e_asinl.c: Likewise.
69170         * math/e_atan2l.c: Likewise.
69171         * math/e_atanhl.c: Likewise.
69172         * math/e_coshl.c: Likewise.
69173         * math/e_expl.c: Likewise.
69174         * math/e_fmodl.c: Likewise.
69175         * math/e_gammal_r.c: Likewise.
69176         * math/e_hypotl.c: Likewise.
69177         * math/e_j0l.c: Likewise.
69178         * math/e_j1l.c: Likewise.
69179         * math/e_jnl.c: Likewise.
69180         * math/e_lgammal_r.c: Likewise.
69181         * math/e_log10l.c: Likewise.
69182         * math/e_log2l.c: Likewise.
69183         * math/e_logl.c: Likewise.
69184         * math/e_powl.c: Likewise.
69185         * math/e_rem_pio2l.c: Likewise.
69186         * math/e_sinhl.c: Likewise.
69187         * math/e_sqrtl.c: Likewise.
69188         * math/fclrexcpt.c: Likewise.
69189         * math/fedisblxcpt.c: Likewise.
69190         * math/feenablxcpt.c: Likewise.
69191         * math/fegetenv.c: Likewise.
69192         * math/fegetexcept.c: Likewise.
69193         * math/fegetround.c: Likewise.
69194         * math/feholdexcpt.c: Likewise.
69195         * math/fesetenv.c: Likewise.
69196         * math/fesetround.c: Likewise.
69197         * math/feupdateenv.c: Likewise.
69198         * math/fgetexcptflg.c: Likewise.
69199         * math/fraiseexcpt.c: Likewise.
69200         * math/fsetexcptflg.c: Likewise.
69201         * math/ftestexcept.c: Likewise.
69202         * math/k_cosl.c: Likewise.
69203         * math/k_rem_pio2l.c: Likewise.
69204         * math/k_sinl.c: Likewise.
69205         * math/k_tanl.c: Likewise.
69206         * math/s_asinhl.c: Likewise.
69207         * math/s_atanl.c: Likewise.
69208         * math/s_cbrtl.c: Likewise.
69209         * math/s_erfl.c: Likewise.
69210         * math/s_expm1l.c: Likewise.
69211         * math/s_log1pl.c: Likewise.
69212         * math/s_tanhl.c: Likewise.
69213         * misc/acct.c: Likewise.
69214         * misc/brk.c: Likewise.
69215         * misc/chflags.c: Likewise.
69216         * misc/chroot.c: Likewise.
69217         * misc/fchflags.c: Likewise.
69218         * misc/fgetxattr.c: Likewise.
69219         * misc/flistxattr.c: Likewise.
69220         * misc/fremovexattr.c: Likewise.
69221         * misc/fsetxattr.c: Likewise.
69222         * misc/fsync.c: Likewise.
69223         * misc/ftruncate.c: Likewise.
69224         * misc/futimes.c: Likewise.
69225         * misc/futimesat.c: Likewise.
69226         * misc/getdomain.c: Likewise.
69227         * misc/getdtsz.c: Likewise.
69228         * misc/gethostid.c: Likewise.
69229         * misc/gethostname.c: Likewise.
69230         * misc/getloadavg.c: Likewise.
69231         * misc/getpagesize.c: Likewise.
69232         * misc/getsysstats.c: Likewise.
69233         * misc/getxattr.c: Likewise.
69234         * misc/gtty.c: Likewise.
69235         * misc/ioctl.c: Likewise.
69236         * misc/lgetxattr.c: Likewise.
69237         * misc/listxattr.c: Likewise.
69238         * misc/llistxattr.c: Likewise.
69239         * misc/lremovexattr.c: Likewise.
69240         * misc/lsetxattr.c: Likewise.
69241         * misc/lutimes.c: Likewise.
69242         * misc/madvise.c: Likewise.
69243         * misc/mincore.c: Likewise.
69244         * misc/mlock.c: Likewise.
69245         * misc/mlockall.c: Likewise.
69246         * misc/mmap.c: Likewise.
69247         * misc/mprotect.c: Likewise.
69248         * misc/msync.c: Likewise.
69249         * misc/munlock.c: Likewise.
69250         * misc/munlockall.c: Likewise.
69251         * misc/munmap.c: Likewise.
69252         * misc/preadv.c: Likewise.
69253         * misc/preadv64.c: Likewise.
69254         * misc/ptrace.c: Likewise.
69255         * misc/pwritev.c: Likewise.
69256         * misc/pwritev64.c: Likewise.
69257         * misc/readv.c: Likewise.
69258         * misc/reboot.c: Likewise.
69259         * misc/remap_file_pages.c: Likewise.
69260         * misc/removexattr.c: Likewise.
69261         * misc/revoke.c: Likewise.
69262         * misc/select.c: Likewise.
69263         * misc/setdomain.c: Likewise.
69264         * misc/setegid.c: Likewise.
69265         * misc/seteuid.c: Likewise.
69266         * misc/sethostid.c: Likewise.
69267         * misc/sethostname.c: Likewise.
69268         * misc/setregid.c: Likewise.
69269         * misc/setreuid.c: Likewise.
69270         * misc/setxattr.c: Likewise.
69271         * misc/sstk.c: Likewise.
69272         * misc/stty.c: Likewise.
69273         * misc/swapoff.c: Likewise.
69274         * misc/swapon.c: Likewise.
69275         * misc/sync.c: Likewise.
69276         * misc/syncfs.c: Likewise.
69277         * misc/syscall.c: Likewise.
69278         * misc/truncate.c: Likewise.
69279         * misc/ualarm.c: Likewise.
69280         * misc/usleep.c: Likewise.
69281         * misc/ustat.c: Likewise.
69282         * misc/utimes.c: Likewise.
69283         * misc/vhangup.c: Likewise.
69284         * misc/writev.c: Likewise.
69285         * posix/_exit.c: Likewise.
69286         * posix/alarm.c: Likewise.
69287         * posix/execve.c: Likewise.
69288         * posix/fexecve.c: Likewise.
69289         * posix/fork.c: Likewise.
69290         * posix/fpathconf.c: Likewise.
69291         * posix/getaddrinfo.c: Likewise.
69292         * posix/getegid.c: Likewise.
69293         * posix/geteuid.c: Likewise.
69294         * posix/getgid.c: Likewise.
69295         * posix/getgroups.c: Likewise.
69296         * posix/getlogin.c: Likewise.
69297         * posix/getlogin_r.c: Likewise.
69298         * posix/getpgid.c: Likewise.
69299         * posix/getpid.c: Likewise.
69300         * posix/getppid.c: Likewise.
69301         * posix/getresgid.c: Likewise.
69302         * posix/getresuid.c: Likewise.
69303         * posix/getsid.c: Likewise.
69304         * posix/getuid.c: Likewise.
69305         * posix/glob64.c: Likewise.
69306         * posix/nanosleep.c: Likewise.
69307         * posix/pathconf.c: Likewise.
69308         * posix/pause.c: Likewise.
69309         * posix/posix_madvise.c: Likewise.
69310         * posix/pread.c: Likewise.
69311         * posix/pread64.c: Likewise.
69312         * posix/pwrite.c: Likewise.
69313         * posix/pwrite64.c: Likewise.
69314         * posix/sched_getaffinity.c: Likewise.
69315         * posix/sched_getp.c: Likewise.
69316         * posix/sched_gets.c: Likewise.
69317         * posix/sched_primax.c: Likewise.
69318         * posix/sched_primin.c: Likewise.
69319         * posix/sched_rr_gi.c: Likewise.
69320         * posix/sched_setaffinity.c: Likewise.
69321         * posix/sched_setp.c: Likewise.
69322         * posix/sched_sets.c: Likewise.
69323         * posix/sched_yield.c: Likewise.
69324         * posix/setgid.c: Likewise.
69325         * posix/setlogin.c: Likewise.
69326         * posix/setpgid.c: Likewise.
69327         * posix/setresgid.c: Likewise.
69328         * posix/setresuid.c: Likewise.
69329         * posix/setsid.c: Likewise.
69330         * posix/setuid.c: Likewise.
69331         * posix/sleep.c: Likewise.
69332         * posix/spawni.c: Likewise.
69333         * posix/sysconf.c: Likewise.
69334         * posix/times.c: Likewise.
69335         * posix/wait.c: Likewise.
69336         * posix/wait3.c: Likewise.
69337         * posix/wait4.c: Likewise.
69338         * posix/waitpid.c: Likewise.
69339         * resolv/gai_sigqueue.c: Likewise.
69340         * resource/getpriority.c: Likewise.
69341         * resource/getrlimit.c: Likewise.
69342         * resource/getrusage.c: Likewise.
69343         * resource/nice.c: Likewise.
69344         * resource/setpriority.c: Likewise.
69345         * resource/setrlimit.c: Likewise.
69346         * resource/ulimit.c: Likewise.
69347         * rt/aio_cancel.c: Likewise.
69348         * rt/aio_fsync.c: Likewise.
69349         * rt/aio_read.c: Likewise.
69350         * rt/aio_sigqueue.c: Likewise.
69351         * rt/aio_suspend.c: Likewise.
69352         * rt/aio_write.c: Likewise.
69353         * rt/clock_getres.c: Likewise.
69354         * rt/clock_gettime.c: Likewise.
69355         * rt/clock_nanosleep.c: Likewise.
69356         * rt/clock_settime.c: Likewise.
69357         * rt/lio_listio.c: Likewise.
69358         * rt/mq_close.c: Likewise.
69359         * rt/mq_getattr.c: Likewise.
69360         * rt/mq_notify.c: Likewise.
69361         * rt/mq_open.c: Likewise.
69362         * rt/mq_receive.c: Likewise.
69363         * rt/mq_send.c: Likewise.
69364         * rt/mq_setattr.c: Likewise.
69365         * rt/mq_timedreceive.c: Likewise.
69366         * rt/mq_timedsend.c: Likewise.
69367         * rt/mq_unlink.c: Likewise.
69368         * rt/shm_open.c: Likewise.
69369         * rt/shm_unlink.c: Likewise.
69370         * rt/timer_create.c: Likewise.
69371         * rt/timer_delete.c: Likewise.
69372         * rt/timer_getoverr.c: Likewise.
69373         * rt/timer_gettime.c: Likewise.
69374         * rt/timer_settime.c: Likewise.
69375         * setjmp/__longjmp.c: Likewise.
69376         * setjmp/setjmp.c: Likewise.
69377         * signal/kill.c: Likewise.
69378         * signal/killpg.c: Likewise.
69379         * signal/raise.c: Likewise.
69380         * signal/sigaction.c: Likewise.
69381         * signal/sigaltstack.c: Likewise.
69382         * signal/sigblock.c: Likewise.
69383         * signal/sigignore.c: Likewise.
69384         * signal/sigintr.c: Likewise.
69385         * signal/signal.c: Likewise.
69386         * signal/sigpause.c: Likewise.
69387         * signal/sigpending.c: Likewise.
69388         * signal/sigqueue.c: Likewise.
69389         * signal/sigreturn.c: Likewise.
69390         * signal/sigset.c: Likewise.
69391         * signal/sigsetmask.c: Likewise.
69392         * signal/sigstack.c: Likewise.
69393         * signal/sigsuspend.c: Likewise.
69394         * signal/sigtimedwait.c: Likewise.
69395         * signal/sigvec.c: Likewise.
69396         * signal/sigwait.c: Likewise.
69397         * signal/sigwaitinfo.c: Likewise.
69398         * signal/sysv_signal.c: Likewise.
69399         * socket/accept.c: Likewise.
69400         * socket/accept4.c: Likewise.
69401         * socket/bind.c: Likewise.
69402         * socket/connect.c: Likewise.
69403         * socket/getpeername.c: Likewise.
69404         * socket/getsockname.c: Likewise.
69405         * socket/getsockopt.c: Likewise.
69406         * socket/isfdtype.c: Likewise.
69407         * socket/listen.c: Likewise.
69408         * socket/recv.c: Likewise.
69409         * socket/recvfrom.c: Likewise.
69410         * socket/recvmsg.c: Likewise.
69411         * socket/send.c: Likewise.
69412         * socket/sendmsg.c: Likewise.
69413         * socket/sendto.c: Likewise.
69414         * socket/setsockopt.c: Likewise.
69415         * socket/shutdown.c: Likewise.
69416         * socket/sockatmark.c: Likewise.
69417         * socket/socket.c: Likewise.
69418         * socket/socketpair.c: Likewise.
69419         * stdio-common/ctermid.c: Likewise.
69420         * stdio-common/cuserid.c: Likewise.
69421         * stdio-common/remove.c: Likewise.
69422         * stdio-common/rename.c: Likewise.
69423         * stdio-common/renameat.c: Likewise.
69424         * stdio-common/tempname.c: Likewise.
69425         * stdlib/getcontext.c: Likewise.
69426         * stdlib/makecontext.c: Likewise.
69427         * stdlib/setcontext.c: Likewise.
69428         * stdlib/swapcontext.c: Likewise.
69429         * stdlib/system.c: Likewise.
69430         * streams/fattach.c: Likewise.
69431         * streams/fdetach.c: Likewise.
69432         * streams/getmsg.c: Likewise.
69433         * streams/getpmsg.c: Likewise.
69434         * streams/putmsg.c: Likewise.
69435         * streams/putpmsg.c: Likewise.
69436         * sysdeps/unix/bsd/getpt.c: Likewise.
69437         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
69438         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
69439         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
69440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
69441         Likewise.
69442         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
69443         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
69444         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
69445         * sysvipc/msgctl.c: Likewise.
69446         * sysvipc/msgget.c: Likewise.
69447         * sysvipc/msgrcv.c: Likewise.
69448         * sysvipc/msgsnd.c: Likewise.
69449         * sysvipc/semctl.c: Likewise.
69450         * sysvipc/semget.c: Likewise.
69451         * sysvipc/semop.c: Likewise.
69452         * sysvipc/semtimedop.c: Likewise.
69453         * sysvipc/shmat.c: Likewise.
69454         * sysvipc/shmctl.c: Likewise.
69455         * sysvipc/shmdt.c: Likewise.
69456         * sysvipc/shmget.c: Likewise.
69457         * termios/tcdrain.c: Likewise.
69458         * termios/tcflow.c: Likewise.
69459         * termios/tcflush.c: Likewise.
69460         * termios/tcgetattr.c: Likewise.
69461         * termios/tcgetpgrp.c: Likewise.
69462         * termios/tcsendbrk.c: Likewise.
69463         * termios/tcsetattr.c: Likewise.
69464         * termios/tcsetpgrp.c: Likewise.
69465         * time/adjtime.c: Likewise.
69466         * time/clock.c: Likewise.
69467         * time/getitimer.c: Likewise.
69468         * time/gettimeofday.c: Likewise.
69469         * time/setitimer.c: Likewise.
69470         * time/settimeofday.c: Likewise.
69471         * time/stime.c: Likewise.
69472         * time/time.c: Likewise.
69473
69474 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
69475
69476         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
69477         /usr/old/bin.
69478
69479         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
69480         instead of spaces.
69481         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
69482
69483 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
69484
69485         [BZ #14796]
69486         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
69487         FE_TONEAREST before applying Dekker multiplication and Knuth
69488         addition.  Clear inexact exceptions and check for exact zero
69489         results afterwards.
69490         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69491         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
69492         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69493         * math/libm-test.inc (fma_test): Add more tests.
69494         (fma_test_towardzero): Likewise.
69495         (fma_test_downward): Likewise.
69496         (fma_test_upward): Likewise.
69497         * sysdeps/generic/math_private.h (default_libc_fesetround): New
69498         function.
69499         (libc_fesetround): New macro.
69500         (libc_fesetroundf): Likewise.
69501         (libc_fesetroundl): Likewise.
69502         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
69503         function.
69504         (libc_fesetround_387): Likewise.
69505         (libc_fesetroundf): New macro.
69506         (libc_fesetround): Likewise.
69507         (libc_fesetroundl): Likewise.
69508         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
69509         function.
69510         (libc_fesetroundf): New macro.
69511         (libc_fesetround): Likewise.
69512         (libc_fesetroundl): Likewise.
69513         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
69514         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
69515         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
69516         libm_hidden_ver.
69517         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
69518         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
69519         libm_hidden_def.
69520         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
69521         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
69522         libm_hidden_ver.
69523         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
69524         libm_hidden_def.
69525
69526         [BZ #3439]
69527         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
69528         integer constant usable in #if and use that to give value to enum
69529         constant.
69530         (FE_DIVBYZERO): Likewise.
69531         (FE_UNDERFLOW): Likewise.
69532         (FE_OVERFLOW): Likewise.
69533         (FE_INVALID): Likewise.
69534         (FE_INVALID_SNAN): Likewise.
69535         (FE_INVALID_ISI): Likewise.
69536         (FE_INVALID_IDI): Likewise.
69537         (FE_INVALID_ZDZ): Likewise.
69538         (FE_INVALID_IMZ): Likewise.
69539         (FE_INVALID_COMPARE): Likewise.
69540         (FE_INVALID_SOFTWARE): Likewise.
69541         (FE_INVALID_SQRT): Likewise.
69542         (FE_INVALID_INTEGER_CONVERSION): Likewise.
69543         (FE_TONEAREST): Likewise.
69544         (FE_TOWARDZERO): Likewise.
69545         (FE_UPWARD): Likewise.
69546         (FE_DOWNWARD): Likewise.
69547         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
69548         (FE_DIVBYZERO): Likewise.
69549         (FE_OVERFLOW): Likewise.
69550         (FE_UNDERFLOW): Likewise.
69551         (FE_INEXACT): Likewise.
69552         (FE_TONEAREST): Likewise.
69553         (FE_DOWNWARD): Likewise.
69554         (FE_UPWARD): Likewise.
69555         (FE_TOWARDZERO): Likewise.
69556         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
69557         (FE_UNDERFLOW): Likewise.
69558         (FE_OVERFLOW): Likewise.
69559         (FE_DIVBYZERO): Likewise.
69560         (FE_INVALID): Likewise.
69561         (FE_TONEAREST): Likewise.
69562         (FE_TOWARDZERO): Likewise.
69563         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
69564         (FE_OVERFLOW): Likewise.
69565         (FE_UNDERFLOW): Likewise.
69566         (FE_DIVBYZERO): Likewise.
69567         (FE_INEXACT): Likewise.
69568         (FE_TONEAREST): Likewise.
69569         (FE_TOWARDZERO): Likewise.
69570         (FE_UPWARD): Likewise.
69571         (FE_DOWNWARD): Likewise.
69572         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
69573         (FE_DIVBYZERO): Likewise.
69574         (FE_OVERFLOW): Likewise.
69575         (FE_UNDERFLOW): Likewise.
69576         (FE_INEXACT): Likewise.
69577         (FE_TONEAREST): Likewise.
69578         (FE_DOWNWARD): Likewise.
69579         (FE_UPWARD): Likewise.
69580         (FE_TOWARDZERO): Likewise.
69581
69582 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
69583
69584         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
69585
69586 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
69587
69588         * scripts/cross-test-ssh.sh (command): Use newlines to separate
69589         commands.  Quote $PWD.
69590         (blacklist_exports): Don't use remove_newlines.  Replace "declare
69591         -x" by "export".
69592         (remove_newlines): Remove.
69593
69594 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
69595
69596         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
69597         * stdlib/stdlib.h (atof): Moved to ...
69598         * include/bits/stdlib-float.h: Here.  New file.
69599         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
69600         * stdlib/bits/stdlib-float.h: New file.
69601         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
69602         -mno-sse -mno-mmx.
69603         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
69604         <xmmintrin.h>.
69605
69606 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
69607
69608         * conform/conformtest.pl (@headers): Add fenv.h.
69609         * conform/data/fenv.h-data: New file.
69610         * include/fenv.h [_ISOMAC]: Disable all contents of file except
69611         include of <math/fenv.h>.
69612
69613         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
69614         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
69615         && !UNIX98].  Enables tests for XOPEN2K8.
69616         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
69617         POSIX2008]: Likewise.
69618
69619         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
69620         (struct rusage): Do not expect type or its members.
69621
69622         [BZ #3439]
69623         * math/math.h (FP_NAN): Define macro to integer constant usable in
69624         #if and use that to give value to enum constant.
69625         (FP_INFINITE): Likewise.
69626         (FP_ZERO): Likewise.
69627         (FP_SUBNORMAL): Likewise.
69628         (FP_NORMAL): Likewise.
69629
69630 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
69631
69632         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
69633         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
69634         arguments.
69635
69636 2012-11-02  Roland McGrath  <roland@hack.frob.com>
69637
69638         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
69639         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
69640         autoconf-time if not.
69641         * configure.in: Remove AC_PREREQ.
69642
69643 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69644
69645         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
69646         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
69647         of the internal implementation.
69648
69649 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
69650
69651         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
69652         except include of <misc/sys/syslog.h>.
69653
69654 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
69655
69656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
69657         function returns with a NULL context exit with zero.
69658
69659 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69660
69661         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
69662
69663 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
69664
69665         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
69666         (run_program_cmd): This.
69667         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
69668         (tst_langinfo): New variable.  Use it.
69669
69670 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
69671
69672         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
69673         floating point opcodes.
69674
69675 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69676
69677         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
69678         variable.
69679
69680         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
69681
69682         * sysdeps/mach/hurd/powerpc: Remove directory.
69683         * sysdeps/mach/powerpc: Likewise.
69684
69685 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
69686
69687         * scripts/check-local-headers.sh: Ignore c++ headers.
69688
69689 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69690
69691         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
69692         __libc_cleanup_region_start argument.
69693
69694 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
69695
69696         [BZ #14784]
69697         [BZ #14785]
69698         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
69699         x * y using scaling, not as x * y + z.
69700         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69701         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69702         * math/libm-test.inc (fma_test): Add more tests.
69703         (fma_test_towardzero): Likewise.
69704         (fma_test_downward): Likewise.
69705         (fma_test_upward): Likewise.
69706
69707 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69708
69709         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
69710
69711 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
69712
69713         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
69714         New variable.
69715
69716 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
69717
69718         * rt/tst-shm.c (worker): Correct checking for mmap failure.
69719
69720 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
69721
69722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69723         Fix sort order.
69724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69725         Likewise.
69726
69727 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69728
69729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69730         Fix the order of the list for glibc 2.17.
69731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69732         Likewise.
69733
69734 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
69735
69736         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
69737
69738 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
69739
69740         [BZ #14610]
69741         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
69742         for low part of x being zero before using __atanl (y).
69743         * math/libm-test.inc (atan2_test): Add another test.
69744
69745         * manual/install.texi (Configuring and compiling): Document
69746         general use of test-wrapper and test-wrapper-env.
69747         * INSTALL: Regenerated.
69748
69749         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
69750         (__fma): Do not extract and scale down low bits on after-rounding
69751         systems when result rounded to normal precision would have normal
69752         exponent.
69753         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
69754         (__fmal): Do not extract and scale down low bits on after-rounding
69755         systems when result rounded to normal precision would have normal
69756         exponent.
69757         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
69758         (__fmal): Do not extract and scale down low bits on after-rounding
69759         systems when result rounded to normal precision would have normal
69760         exponent.
69761         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
69762         macro.
69763         (fma_test): Add more tests.
69764         (fma_test_towardzero): Likewise.
69765         (fma_test_downward): Likewise.
69766         (fma_test_upward): Likewise.
69767
69768 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
69769
69770         * sysdeps/i386/tininess.h: Renamed to ...
69771         * sysdeps/x86/tininess.h: This.
69772         * sysdeps/x86_64/tininess.h: Removed.
69773
69774 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69775
69776         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
69777         input.  Use $(build-program-cmd).
69778         ($(objpfx)tst-array1-static.out): Likewise.
69779         ($(objpfx)tst-array2.out): Likewise.
69780         ($(objpfx)tst-array3.out): Likewise.
69781         ($(objpfx)tst-array4.out): Likewise.
69782         ($(objpfx)tst-array5.out): Likewise.
69783         ($(objpfx)tst-array5-static.out): Likewise.
69784
69785 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
69786
69787         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
69788         if defined.
69789
69790         * nss/nsswitch.h (nss_interface_function): Provide new
69791         macro for use with NSS functions.
69792         * grp/initgroups.c: Use new macro.
69793         * nss/getXXbyYY.c: Likewise.
69794         * nss/getXXbyYY_r.c: Likewise.
69795         * nss/getXXent.c: Likewise.
69796         * nss/getXXent_r.c: Likewise.
69797         * sysdeps/posix/getaddrinfo.c: Likewise.
69798
69799 2012-10-30  Andreas Jaeger  <aj@suse.de>
69800
69801         * po/ru.po: Update Russion translation from translation project.
69802
69803 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69804
69805         [BZ #14152]
69806         [BZ #14783]
69807         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
69808         result and shift together with sticky bit instead of replicating
69809         round-to-nearest rounding.
69810         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69811         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69812         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
69813         missing underflow exceptions.
69814         (fma_test_towardzero): Add more tests.
69815         (fma_test_downward): Likewise.
69816         (fma_test_upward): Likewise.
69817
69818         [BZ #14047]
69819         * sysdeps/generic/tininess.h: New file.
69820         * sysdeps/i386/tininess.h: Likewise.
69821         * sysdeps/sh/tininess.h: Likewise.
69822         * sysdeps/x86_64/tininess.h: Likewise.
69823         * stdlib/tst-strtod-underflow.c: Likewise.
69824         * stdlib/tst-tininess.c: Likewise.
69825         * stdlib/strtod_l.c: Include <tininess.h>.
69826         (round_and_return): Do not set errno for exact underflow cases.
69827         Force an underflow exception when setting errno for underflow.
69828         Determine underflow based on rounding to normal precision if
69829         TININESS_AFTER_ROUNDING.
69830         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
69831         ERANGE for exact underflow cases.
69832         * stdlib/Makefile (tests): Add tst-tininess and
69833         tst-strtod-underflow.
69834         ($(objpfx)tst-tininess): Use $(link-libm).
69835         ($(objpfx)tst-strtod-underflow): Likewise.
69836
69837 2012-10-30  Andreas Jaeger  <aj@suse.de>
69838
69839         [BZ #14767]
69840         * elf/Makefile (tests): Remove conditional for have-initfini-array
69841         since this is now always required and the variable does not exist
69842         anymore.
69843         (tests-static): Likewise.
69844         (modules-names): Likewise.
69845
69846         * po/eo.po: Add Esperanto translation from translation project.
69847
69848         * elf/tst-array1.c (fini_array): Make writeable so that it can be
69849         merged with constructor/destructor.
69850         (init_array): Likewise.
69851         * elf/tst-array2dep.c (fini_array): Likewise.
69852         (init_array): Likewise.
69853
69854 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
69855
69856         * manual/message.texi: Delete @cartouche tags.
69857
69858 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
69859
69860         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
69861         EOPNOTSUPP.
69862         * sysdeps/mach/hurd/fsync.c: Likewise.
69863
69864         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
69865         [_POSIX_REALTIME_SIGNALS]: Change condition to
69866         [_POSIX_REALTIME_SIGNALS > 0].
69867
69868 2012-10-27  Andreas Jaeger  <aj@suse.de>
69869
69870         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
69871         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
69872         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
69873         [__WORDSIZE != 64]: Likewise.
69874
69875 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
69876
69877         *  iconvdata/tst-table.sh: Remove ${SHELL}.
69878         *  iconvdata/tst-tables.sh: Likewise.
69879
69880 2012-10-25  David S. Miller  <davem@davemloft.net>
69881
69882         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69883         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
69884         of strtoull.
69885
69886         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
69887         ifunc-impl-list.c
69888         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69889         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
69890         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
69891         file.
69892
69893 2012-10-25  Roland McGrath  <roland@hack.frob.com>
69894
69895         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69896         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
69897         __getdirentries.
69898
69899 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
69900             Jim Blandy  <jimb@codesourcery.com>
69901
69902         * scripts/cross-test-ssh.sh: New file.
69903         * manual/install.texi (Configuring and compiling): Document use of
69904         cross-test-ssh.sh.
69905         * INSTALL: Regenerated.
69906
69907 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
69908
69909         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
69910         EOPNOTSUPP.
69911
69912 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
69913
69914         * Makeconfig (run-program-prefix): Fix comment.
69915
69916 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
69917             Jim Blandy  <jimb@codesourcery.com>
69918
69919         * Makeconfig (test-wrapper): New variable,
69920         (test-wrapper-env): Likewise.
69921         [$(cross-compiling) = yes && $(test-wrapper) != ""]
69922         (run-built-tests): Define to yes.
69923         (run-program-prefix): Use $(test-wrapper).
69924         (built-program-cmd): Likewise.
69925         * Rules (make-test-out): Use $(test-wrapper-env) and
69926         $(host-built-program-cmd).
69927         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
69928         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
69929         tst-pathopt.sh.
69930         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
69931         $(test-wrapper-env) to tst-rtld-load-self.sh.
69932         ($(objpfx)order2.out): Use $(test-wrapper).
69933         ($(objpfx)tst-initorder.out): Likewise.
69934         ($(objpfx)tst-initorder2.out): Likewise.
69935         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
69936         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
69937         (test_wrapper_env): New variable.  Use it to run ld.so.
69938         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
69939         Use it to run ld.so.
69940         (test_wrapper_env): Likewise.
69941         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
69942         $(test-wrapper) to run-iconv-test.sh.
69943         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
69944         (ICONV): Use $test_wrapper.
69945         * posix/Makefile ($(objpfx)globtest.out): Pass
69946         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
69947         globtest.sh, not $(run-program-prefix).
69948         * posix/globtest.sh (run_via_rtld_prefix): New variable.
69949         (test_wrapper): Likewise.
69950         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
69951         set together with run_via_rtld_prefix.
69952         (run_program_prefix): Define in terms of test_wrapper and
69953         run_via_rtld_prefix.
69954
69955 2012-10-24  Roland McGrath  <roland@hack.frob.com>
69956
69957         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
69958         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
69959         Targets removed.
69960
69961         [BZ #14743]
69962         * include/time.h: Remove librt_hidden_proto (clock_gettime).
69963         Declare __clock_getres, __clock_gettime, __clock_settime,
69964         __clock_nanosleep, and __clock_getcpuclockid.
69965         * rt/clock_gettime.c: Define __clock_gettime as an alias.
69966         Remove librt_hidden_def (clock_gettime).
69967         * sysdeps/unix/clock_gettime.c: Likewise.
69968         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
69969         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
69970         * rt/clock_getres.c: Define __clock_getres as an alias.
69971         * sysdeps/posix/clock_getres.c: Likewise.
69972         * rt/clock_settime.c: Define __clock_settime as an alias.
69973         * sysdeps/unix/clock_settime.c: Likewise.
69974         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
69975         * sysdeps/unix/clock_nanosleep.c: Likewise.
69976         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
69977         * rt/clock-compat.c: New file.
69978         * rt/Makefile (librt-routines): Add clock-compat and move
69979         $(clock-routines) to ...
69980         (routines): ... here, new variable.
69981         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
69982         Don't add get_clockfreq here.
69983         * rt/Versions (libc: GLIBC_2.17): New version set.
69984         Add clock_* symbols here.
69985         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
69986         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
69987         (GLIBC_2.17): Add clock_* symbols.
69988         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
69989         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
69990         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
69991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69992         Likewise.
69993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69994         Likewise.
69995         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
69996         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
69997         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
69998         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
69999         * NEWS: Mention the move.
70000
70001         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
70002         Use __open, __read, __close rather than their public counterparts.
70003         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70004         (__get_clockfreq_via_cpuinfo): Likewise.
70005         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
70006         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
70007
70008         * config.h.in (HAVE_IFUNC): New #undef.
70009         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
70010         was successful.
70011         * configure: Regenerated.
70012
70013 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
70014
70015         * configure.in: Move READELF check to start of file.
70016         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
70017         libc_cv_asm_gnu_indirect_function in the process.
70018         * configure: Regenerated.
70019
70020 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
70021
70022         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
70023         send the output to /dev/null.
70024         (libc_cv_cc_with_libunwind): Likewise.
70025         (libc_cv_as_noexecstack): Likewise.
70026         * configure: Regenerate.
70027
70028 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
70029
70030         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
70031
70032         * posix/globtest.sh (TMPDIR): Do not set.
70033         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
70034         (testout): Likewise.
70035
70036 2012-10-24  Andreas Jaeger  <aj@suse.de>
70037
70038         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
70039         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
70040         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
70041         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
70042         posix_fadvise64, posix_fallocate64.
70043
70044         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
70045         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
70046         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
70047         Likewise.
70048         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
70049         Likewise.
70050         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
70051
70052         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
70053         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
70054         <bits/fcntl-linux.h>.
70055         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
70056
70057         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
70058         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
70059         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
70060         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
70061         [__WORDSIZE != 64]: Likewise.
70062
70063 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
70064
70065         * Makeconfig (run-built-tests): New variable.
70066         * Rules [$(cross-compiling) = yes]: Change condition to
70067         [$(run-built-tests) = no].
70068         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
70069         to [$(run-built-tests) = yes].
70070         * elf/Makefile [$(cross-compiling) = no]: Likewise.
70071         * grp/Makefile [$(cross-compiling) = no]: Likewise.
70072         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
70073         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
70074         * intl/Makefile [$(cross-compiling) = no]: Likewise.
70075         * io/Makefile [$(cross-compiling) = no]: Likewise.
70076         * libio/Makefile [$(cross-compiling) = no]: Likewise.
70077         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
70078         * misc/Makefile [$(cross-compiling) = no]: Likewise.
70079         * posix/Makefile [$(cross-compiling) = no]: Likewise.
70080         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
70081         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
70082         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
70083         * string/Makefile [$(cross-compiling) = no]: Likewise.
70084
70085         * posix/Makefile ($(objpfx)globtest.out): Pass
70086         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
70087         $(rtld-installed-name).
70088         * posix/globtest.sh (elf_objpfx): Remove variable.
70089         (rtld_installed_name): Likewise.
70090         (library_path): Likewise.
70091         (run_program_prefix): New variable.  Use for running globtest
70092         binary.
70093
70094 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
70095             Joseph Myers  <joseph@codesourcery.com>
70096
70097         * Makeconfig (host-built-program-cmd): New variable.
70098         * elf/Makefile (tst-stackguard1-ARGS): Use
70099         $(host-built-program-cmd).
70100         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
70101         (tst-spawn-ARGS): Likewise.
70102         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
70103
70104 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
70105             Jim Blandy  <jimb@codesourcery.com>
70106
70107         * Makeconfig (run-via-rtld-prefix): New variable.
70108         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
70109         (built-program-cmd): Likewise.
70110
70111 2012-10-22  Andreas Jaeger  <aj@suse.de>
70112
70113         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
70114         __O_RSYNC if it exists, otherwise to O_SYNC.
70115
70116 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
70117             Joseph Myers  <joseph@codesourcery.com>
70118
70119         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
70120         /dev/null.
70121         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
70122         from /dev/null
70123         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
70124         /dev/null.
70125
70126 2012-10-22  Andreas Jaeger  <aj@suse.de>
70127
70128         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
70129         Define always.
70130         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
70131
70132         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
70133         bits/fcntl-linux.h.
70134
70135         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
70136         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
70137
70138         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
70139         to __O_LARGEFILE.
70140         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
70141         to __O_LARGEFILE.
70142
70143 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
70144             Joseph Myers  <joseph@codesourcery.com>
70145
70146         * config.make.in (NM): New variable.
70147
70148 2012-10-21  Andreas Jaeger  <aj@suse.de>
70149
70150         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
70151         definitions and declarations that are provided by
70152         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
70153
70154 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70155
70156         [BZ #14683]
70157         * elf/Makefile (tests-static): Add tst-leaks1-static.
70158         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
70159         ($(objpfx)tst-leaks1-static): New rule.
70160         ($(objpfx)tst-leaks1-static-mem): Likewise.
70161         (tst-leaks1-static-ENV): New macro.
70162         * elf/dl-open.c (dl_open_worker): Check the main application
70163         only if SHARED is defined.
70164         * elf/tst-leaks1-static.c: New file.
70165
70166 2012-10-20  Andreas Jaeger  <aj@suse.de>
70167
70168         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
70169         generic values for Linux.
70170         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
70171         and declarations that are provided by <bits/fcntl-linux.h> and
70172         include <bits/fcntl-linux.h>.
70173         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
70174         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
70175
70176 2012-10-20  Roland McGrath  <roland@hack.frob.com>
70177
70178         * io/fcntl.h: Move include of <bits/types.h> to the top and
70179         include it unconditionally.
70180
70181 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70182
70183         * wcsmbs/Makefile (tests-ifunc): New variable.
70184         (tests): Add $(tests-ifunc).
70185         * wcsmbs/test-wcschr-ifunc.c: New file.
70186         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
70187         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
70188         * wcsmbs/test-wcslen-ifunc.c: Likewise.
70189         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
70190         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
70191
70192         * string/Makefile (tests-ifunc): New variable.
70193         (tests): Add $(tests-ifunc).
70194         * string/test-memccpy.c (TEST_NAME): New macro.
70195         * string/test-memchr.c (TEST_NAME): Likewise.
70196         * string/test-memcmp.c (TEST_NAME): Likewise.
70197         * string/test-memcpy.c (TEST_NAME): Likewise.
70198         * string/test-memmem.c (TEST_NAME): Likewise.
70199         * string/test-memmove.c (TEST_NAME): Likewise.
70200         * string/test-memset.c (TEST_NAME): Likewise.
70201         * string/test-rawmemchr.c (TEST_NAME): Likewise.
70202         * string/test-stpcpy.c (TEST_NAME): Likewise.
70203         * string/test-stpncpy.c (TEST_NAME): Likewise.
70204         * string/test-strcasecmp.c (TEST_NAME): Likewise.
70205         * string/test-strcasestr.c (TEST_NAME): Likewise.
70206         * string/test-strcat.c (TEST_NAME): Likewise.
70207         * string/test-strchr.c (TEST_NAME): Likewise.
70208         * string/test-strcmp.c(TEST_NAME): Likewise.
70209         * string/test-strcpy.c (TEST_NAME): Likewise.
70210         * string/test-strcspn.c (TEST_NAME): Likewise.
70211         * string/test-strlen.c (TEST_NAME): Likewise.
70212         * string/test-strncasecmp.c (TEST_NAME): Likewise.
70213         * string/test-strncmp.c (TEST_NAME): Likewise.
70214         * string/test-strncpy.c (TEST_NAME): Likewise.
70215         * string/test-strnlen.c (TEST_NAME): Likewise.
70216         * string/test-strpbrk.c (TEST_NAME): Likewise.
70217         * string/test-strrchr.c (TEST_NAME): Likewise.
70218         * string/test-strspn.c (TEST_NAME): Likewise.
70219         * string/test-strstr.c (TEST_NAME): Likewise.
70220         * string/test-bcopy-ifunc.c: New file.
70221         * string/test-bzero-ifunc.c: Likewise.
70222         * string/test-memccpy-ifunc.c: Likewise.
70223         * string/test-memchr-ifunc.c: Likewise.
70224         * string/test-memcmp-ifunc.c: Likewise.
70225         * string/test-memcpy-ifunc.c: Likewise.
70226         * string/test-memmem-ifunc.c: Likewise.
70227         * string/test-memmove-ifunc.c: Likewise.
70228         * string/test-mempcpy-ifunc.c: Likewise.
70229         * string/test-memset-ifunc.c: Likewise.
70230         * string/test-rawmemchr-ifunc.c: Likewise.
70231         * string/test-stpcpy-ifunc.c: Likewise.
70232         * string/test-stpncpy-ifunc.c: Likewise.
70233         * string/test-strcasecmp-ifunc.c: Likewise.
70234         * string/test-strcasestr-ifunc.c: Likewise.
70235         * string/test-strcat-ifunc.c: Likewise.
70236         * string/test-strchr-ifunc.c: Likewise.
70237         * string/test-strchrnul-ifunc.c: Likewise.
70238         * string/test-strcmp-ifunc.c: Likewise.
70239         * string/test-strcpy-ifunc.c: Likewise.
70240         * string/test-strcspn-ifunc.c: Likewise.
70241         * string/test-strlen-ifunc.c: Likewise.
70242         * string/test-strncasecmp-ifunc.c: Likewise.
70243         * string/test-strncat-ifunc.c: Likewise.
70244         * string/test-strncmp-ifunc.c: Likewise.
70245         * string/test-strncpy-ifunc.c: Likewise.
70246         * string/test-strnlen-ifunc.c: Likewise.
70247         * string/test-strpbrk-ifunc.c: Likewise.
70248         * string/test-strrchr-ifunc.c: Likewise.
70249         * string/test-strspn-ifunc.c: Likewise.
70250         * string/test-strstr-ifunc.c: Likewise.
70251
70252         * debug/Makefile (tests-ifunc): New variable.
70253         (tests): Add $(tests-ifunc).
70254         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
70255         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
70256         * debug/test-stpcpy_chk-ifunc.c: New file.
70257         * debug/test-strcpy_chk-ifunc.c: Likewise.
70258
70259 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
70260
70261         [BZ #13601]
70262         * elf/dl-load.c (open_verify): Retry read if the entire ELF
70263         header is not read in.
70264
70265 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
70266
70267         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
70268         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
70269         directly.  Pass built executable to script as
70270         $(built-program-cmd).
70271         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
70272         $testprogram without using LD_LIBRARY_PATH and $ldso.
70273
70274         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
70275         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
70276         $(rtld-installed-name).
70277         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
70278         (rtld_installed_name): Likewise.
70279         (library_path): Likewise.
70280         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
70281         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
70282         $(run-program-prefix) to tst-tables.sh.
70283         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
70284         it to run tst-table-from and tst-table-to.
70285         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
70286         Pass it to tst-table.sh.
70287         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
70288         $(run-program-prefix) to tst-gettext.sh.
70289         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
70290         tst-translit.sh.
70291         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
70292         tst-gettext2.sh.
70293         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
70294         to run tst-gettext.
70295         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
70296         to run tst-gettext2.
70297         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
70298         to run tst-translit.
70299         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
70300         $(run-program-prefix) to tst-mtrace.sh.
70301         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
70302         to run tst-mtrace.
70303         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
70304         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
70305         $(rtld-installed-name).
70306         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
70307         (rtld_installed_name): Likewise.
70308         (run_program_prefix): New variable.  Use it to run wordexp-test.
70309
70310         * Makeconfig (ARCH): Remove all definitions.
70311         (machine): Likewise.
70312         [ARCH]: Remove conditional code.
70313         [!objdir]: Give error.
70314         [!objdir] (objpfx): Remove.
70315         [!objdir] (common-objpfx): Likewise.
70316         [!objdir] (common-objdir): Likewise.
70317         * configure.in (config_makefile): Remove.  Hardcode Makefile in
70318         AC_CONFIG_FILES call.
70319         * configure: Regenerated.
70320
70321         [BZ #13888]
70322         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
70323         or TMPDIR.
70324         (testout): Likewise.
70325
70326         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
70327         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
70328         $(rtld-installed-name).
70329         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
70330         (rtld_installed_name): Likewise.
70331         (runit): Remove function.
70332         (run_getconf): New variable,  Use it for running getconf binary.
70333
70334 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
70335
70336         [BZ #14716]
70337         * string/test-memmem.c (check_result): New function.
70338         (do_one_test): Use it.
70339         (check1): New function.
70340         (test_main): Use it.
70341
70342 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
70343
70344         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
70345
70346 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
70347
70348         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
70349         (_G_LSEEK64): Likewise.
70350         (_G_MMAP64): Likewise.
70351         (_G_FSTAT64): Likewise.
70352         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
70353         (_G_LSEEK64): Likewise.
70354         (_G_MMAP64): Likewise.
70355         (_G_FSTAT64): Likewise.
70356         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
70357         unconditional.  Call __mmap64 directly.
70358         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
70359         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
70360         __lseek64 directly.
70361         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
70362         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
70363         __mmap64 directly.
70364         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
70365         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70366         __lseek64 directly.
70367         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
70368         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70369         __lseek64 directly.
70370         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
70371         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
70372         __lseek64 directly.
70373         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
70374         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
70375         __fxstat64 directly.
70376         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
70377         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
70378         unconditional.
70379         (freopen64) [!_G_OPEN64]: Remove conditional code.
70380         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
70381         unconditional.
70382         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
70383         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
70384         unconditional.
70385         (ftello64) [!_G_LSEEK64]: Remove conditional code.
70386         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
70387         unconditional.
70388         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70389         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
70390         unconditional.
70391         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
70392         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
70393         unconditional.
70394         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70395         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
70396         unconditional.
70397         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70398         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
70399         unconditional.
70400         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70401
70402 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
70403
70404         [BZ #12140]
70405         * manual/memory.texi (Malloc Tunable Parameters): Add note
70406         about free list pointers overwriting some perturb bytes.
70407         Wording suggested by Roland McGrath.
70408
70409 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
70410
70411         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
70412         (lgamma_test): Likewise.
70413         (tgamma_test): Likewise.
70414
70415 2012-10-16  Florian Weimer  <fweimer@redhat.com>
70416
70417         [BZ #14700]
70418         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
70419         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
70420
70421 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
70422
70423         * NEWS: Mention BZ #14716.
70424         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
70425         when removing AVAILABLE1_USES_J macro.
70426
70427 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
70428
70429         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
70430         (__bswap_64): __uint64_t for unsigned 64-bit int.
70431
70432 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
70433
70434         * include/string.h (memmem): Declare libc hidden alias.
70435         * string/memmem.c (memmem): Define libc hidden alias.
70436         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
70437         __read, __close instead of open, read, close.
70438
70439 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
70440
70441         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
70442         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
70443         global and hidden.
70444         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
70445         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
70446         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
70447         Likewise.
70448         (__rawmemchr_sse2): Likewise.
70449         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
70450         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
70451         (__strchr_sse2): Likewise.
70452         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
70453         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
70454         (__strcasecmp_sse2): Likewise.
70455         (__strncasecmp_sse2): Likewise.
70456         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
70457         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
70458         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
70459         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
70460         (__strrchr_sse2): Likewise.
70461         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
70462         ifunc-impl-list.c.
70463         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
70464         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
70465         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
70466         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
70467         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
70468         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
70469         * sysdeps/x86_64/multiarch/memset.S: Likewise.
70470         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
70471         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
70472         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
70473         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
70474         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
70475         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
70476         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
70477         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
70478         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
70479         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
70480         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
70481         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
70482         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
70483         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
70484         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
70485         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
70486         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
70487         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
70488         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
70489         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
70490         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
70491         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
70492         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
70493
70494         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
70495         global and hidden.
70496         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
70497         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
70498         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
70499         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
70500         Likewise.
70501         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
70502         Likewise.
70503         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
70504         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
70505         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
70506         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
70507         ifunc-impl-list.c.
70508         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
70509         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
70510         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
70511         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
70512         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
70513         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
70514         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
70515         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
70516         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
70517         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
70518         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
70519         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
70520         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
70521         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
70522         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
70523         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
70524         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
70525         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
70526         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
70527         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
70528         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70529         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
70530         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
70531         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
70532         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70533         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
70534         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
70535         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
70536         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
70537         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
70538         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
70539         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
70540         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
70541         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
70542         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
70543         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
70544         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
70545         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
70546         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
70547         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
70548         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
70549
70550         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
70551         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
70552         * include/ifunc-impl-list.h: New file.
70553         * misc/ifunc-impl-list.c: Likewise.
70554         * misc/Makefile (routines): Add ifunc-impl-list.
70555         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
70556         * string/test-string.h: Include <ifunc-impl-list.h>.
70557         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
70558         TEST_NAME]: New variables.
70559         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
70560         are defined.
70561         (test_init): Call __libc_ifunc_impl_list to initialize
70562         func_list if TEST_IFUNC and TEST_NAME are defined.
70563
70564         * string/Makefile (strop-tests): Add bcopy and bzero.
70565         * string/test-bcopy.c: New file.
70566         * string/test-bzero.c: Likewise.
70567         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
70568         defined.
70569         * string/test-memset.c: Support bzero test if TEST_BZERO is
70570         defined.
70571         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
70572         __libc_memmove.
70573         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
70574         __libc_memset.
70575         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
70576         of memset.
70577
70578 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
70579
70580         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
70581         * configure: Regenerated.
70582
70583         * Makeconfig (+link-static-before-libc): Don't include
70584         $(link-static-libc).
70585
70586         * libio/libio.h (_IO_pos_t): Remove.
70587
70588 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70589
70590         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
70591         McGrath.
70592
70593 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70594
70595         * crypt/crypt-entry.c: Include fips-private.h.
70596         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
70597         * crypt/md5c-test.c (main): Tolerate disabled MD5.
70598         * sysdeps/unix/sysv/linux/fips-private.h: New file.
70599         * sysdeps/generic/fips-private.h: New file, dummy fallback.
70600
70601 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70602
70603         * crypt/crypt-private.h: Include stdbool.h.
70604         (_ufc_setup_salt_r): Return bool.
70605         * crypt/crypt-entry.c: Include errno.h.
70606         (__crypt_r): Return NULL with EINVAL for bad salt.
70607         * crypt/crypt_util.c (bad_for_salt): New.
70608         (_ufc_setup_salt_r): Check that salt is long enough and within
70609         the specified alphabet.
70610         * crypt/badsalttest.c: New file.
70611         * crypt/Makefile (tests): Add it.
70612         ($(objpfx)badsalttest): New.
70613
70614 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
70615
70616         * NEWS: Add entry for BZ #14602.
70617
70618 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
70619
70620         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
70621         type-generic.
70622         * math/libm-test.inc: Update comment listing what functions and
70623         macros are tested.
70624         (isgreater_test): New function.
70625         (isgreaterequal_test): Likewise.
70626         (isless_test): Likewise.
70627         (islessequal_test): Likewise.
70628         (islessgreater_test): Likewise.
70629         (isunordered_test): Likewise.
70630         (main): Call the new functions.
70631
70632 2012-10-09  Roland McGrath  <roland@hack.frob.com>
70633
70634         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
70635         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
70636         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
70637         * sysdeps/i386/configure: Regenerated.
70638         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
70639         * sysdeps/mach/configure: Regenerated.
70640         * sysdeps/mach/hurd/configure: Regenerated.
70641         * sysdeps/powerpc/configure: Regenerated.
70642         * sysdeps/powerpc/powerpc32/configure: Regenerated.
70643         * sysdeps/powerpc/powerpc64/configure: Regenerated.
70644         * sysdeps/s390/s390-32/configure: Regenerated.
70645         * sysdeps/s390/s390-64/configure: Regenerated.
70646         * sysdeps/sh/configure: Regenerated.
70647         * sysdeps/sparc/configure: Regenerated.
70648         * sysdeps/unix/sysv/linux/configure: Regenerated.
70649         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
70650         * sysdeps/x86_64/configure: Regenerated.
70651
70652         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
70653         defined.  Don't check if MAP is NULL.
70654
70655 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
70656
70657         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
70658         (_G_stat64): Likewise.
70659         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
70660         (_G_stat64): Likewise.
70661         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
70662         instead of struct _G_stat64.
70663         * libio/fileops.c (mmap_remap_check): Likewise.
70664         (decide_maybe_mmap): Likewise.
70665         (_IO_new_file_seekoff): Likewise.
70666         (_IO_file_stat): Likewise.
70667         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
70668         _G_off64_t.
70669         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
70670         instead of struct _G_stat64.
70671         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
70672
70673 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
70674
70675         [BZ #14602]
70676         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70677         Replace with ...
70678         (CHECK_EOL): New macro.
70679         (two_way_short_needle): Check beginning of haystack for EOL.  Use
70680         CHECK_EOL.
70681         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70682         Replace with CHECK_EOL.
70683         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70684         Replace with CHECK_EOL.
70685
70686 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
70687
70688         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
70689         type-generic.
70690         * math/libm-test.inc: Update comment listing what functions and
70691         macros are tested.
70692         (finite_test): New function.
70693         (isinf_test): Likewise.
70694         (isnan_test): Likewise.
70695         (fpclassify_test): Test subnormal input.
70696         (isfinite_test): Likewise.
70697         (isnormal_test): Likewise.
70698         (main): Call the new functions.
70699
70700 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
70701
70702         [BZ #14660]
70703         * Makerules (%.dynsym): Force C locale when running
70704         $(OBJDUMP) --dynamic-syms.
70705
70706 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
70707
70708         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
70709         <stdint.h>.
70710
70711 2012-10-06  David S. Miller  <davem@davemloft.net>
70712
70713         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
70714         upper 32-bits of the length value in %o2 since we use branch-on-register
70715         tests which consider the entire 64-bit register.
70716
70717 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
70718
70719         * string/test-strstr.c (check2): Add a test for page boundary.
70720
70721 2012-10-05  David S. Miller  <davem@davemloft.net>
70722
70723         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
70724         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
70725         file.
70726         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
70727         sysdep_routines.
70728         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
70729         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
70730         and bzero when HWCAP_SPARC_CRYPTO is present.
70731
70732 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
70733
70734         [BZ #14602]
70735         * string/test-strstr.c (check2): New function.
70736         (test_main): Call check2.
70737
70738         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
70739         and bug-strchr1.
70740         * string/bug-strcasestr1.c (do_test): Moved to ...
70741         * string/test-strcasestr.c (check1): Here.  New function.
70742         (do_one_test): Break out result checking code into ...
70743         (check_result): This.  New function.
70744         (do_one_test): Call check_result.
70745         (test_main): Call check1.
70746         * string/bug-strchr1.c (do_test): Moved to ...
70747         * string/test-strchr.c (check1): Here.  New function.
70748         (do_one_test): Break out result checking code into ...
70749         (check_result): This.  New function.
70750         (do_one_test): Call check_result.
70751         (test_main): Call check1.
70752         * string/bug-strstr1.c (main): Moved to ...
70753         * string/test-strstr.c (check1): Here.  New function.
70754         (do_one_test): Break out result checking code into ...
70755         (check_result): This.  New function.
70756         (do_one_test): Call check_result.
70757         (test_main): Call check1.
70758         * string/bug-strcasestr1.c: Removed.
70759         * string/bug-strchr1.c: Likewise.
70760         * string/bug-strstr1.c: Likewise.
70761
70762         * elf/Makefile (dl-routines): Add hwcaps.
70763         * elf/dl-support.c (_dl_important_hwcaps): Removed.
70764         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
70765         (_dl_important_hwcaps): Moved to ...
70766         * elf/dl-hwcaps.c: Here.  New file.
70767         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
70768
70769         [BZ #14557]
70770         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
70771         if IS_IN_rtld isn't defined.
70772
70773         * elf/dl-support.c (_dl_sysinfo_map): New.
70774         Include "get-dynamic-info.h" and "setup-vdso.h".
70775         (_dl_non_dynamic_init): Call setup_vdso.
70776         * elf/dynamic-link.h: Don't include <assert.h>.
70777         (elf_get_dynamic_info): Moved to ...
70778         * elf/get-dynamic-info.h: Here.  New file.
70779         * elf/dynamic-link.h: Include "get-dynamic-info.h".
70780         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
70781         * elf/setup-vdso.h: Here.  New file.
70782         * elf/rtld.c: Include "setup-vdso.h".
70783         (dl_main): Call setup_vdso.
70784
70785 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
70786
70787         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
70788         creal in comment listing functions tested.  List finite, isinf,
70789         isnan, isless, islessequal, isgreater, isgreaterequal,
70790         islessgreater, isunordered, lgamma_r and pow10 as functions and
70791         macros not tested.  Mention which functions not tested are aliases
70792         for other functions.  Fix typo.  Note that signs of NaNs are not
70793         tested.
70794
70795         * scripts/config.guess: Update from config.git.
70796         * scripts/config.sub: Likewise.
70797
70798 2012-10-04  Roland McGrath  <roland@hack.frob.com>
70799
70800         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
70801         * misc/madvise.c (madvise): Renamed to __madvise.
70802         Make madvise a weak alias.
70803         * include/sys/mman.h: Declare __madvise.
70804         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
70805         * sysdeps/unix/syscalls.list
70806         (madvise): Make __madvise the strong name, and madvise a weak alias.
70807         * sysdeps/unix/sysv/linux/syscalls.list
70808         (madvise, mmap): Remove redundant entries.
70809         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
70810         * malloc/malloc.c (mtrim): Likewise.
70811         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
70812
70813 2012-10-03  Roland McGrath  <roland@hack.frob.com>
70814
70815         * sysdeps/mach/hurd/dl-cache.c: File removed.
70816         * config.h.in (USE_LDCONFIG): New #undef.
70817         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
70818         * configure: Regenerated.
70819         * elf/Makefile (dl-routines): Add dl-cache only under
70820         [$(use-ldconfig) = yes].
70821         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
70822         cache on [USE_LDCONFIG].
70823         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
70824         [USE_LDCONFIG].
70825         * elf/rtld.c (dl_main): Likewise.
70826
70827 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
70828
70829         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
70830         _SC_LEVEL4_CACHE_LINESIZE.
70831
70832 2012-10-03  Roland McGrath  <roland@hack.frob.com>
70833
70834         * sysdeps/unix/bsd/confstr.h: File removed.
70835
70836 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
70837
70838         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
70839         sys/sdt-config.h.
70840
70841 2012-10-02  Roland McGrath  <roland@hack.frob.com>
70842
70843         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
70844         Make 'mapoff' field ElfW(Off) rather than off_t.
70845
70846 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70847
70848         * nscd/Makefile: Remove nscd-cflags and all its users.
70849         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
70850         (CFLAGS-nonlib): Add compiler flags for nscd modules.
70851
70852         [BZ #10631]
70853         * malloc.c (malloc_printerr): Clarify error message.
70854
70855 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
70856
70857         [BZ #14648]
70858         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
70859         Set bit_FMA_Usable if FMA is supported.
70860         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
70861         macro.
70862         (bit_FMA4_Usable): Updated.
70863         (index_FMA_Usable): New macro.
70864         (CPUID_FMA): Likewise.
70865         (HAS_FMA): Defined with bit_FMA_Usable.
70866
70867 2012-10-01  Roland McGrath  <roland@hack.frob.com>
70868
70869         * bits/types.h (__swblk_t): Type removed.
70870         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
70871         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
70872         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
70873         (__SWBLK_T_TYPE): Likewise.
70874         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
70875         (__SWBLK_T_TYPE): Likewise.
70876         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
70877         (__SWBLK_T_TYPE): Likewise.
70878         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
70879         (__SWBLK_T_TYPE): Likewise.
70880
70881 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
70882             Honza Horak <hhorak@redhat.com>
70883
70884         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
70885         (xdr_mapname): Use YPMAXMAP as maxsize.
70886         (xdr_peername): Use YPMAXPEER as maxsize.
70887         (xdr_keydat): Use YPAXRECORD as maxsize.
70888         (xdr_valdat): Use YPMAXRECORD as maxsize.
70889
70890 2012-10-01  Roland McGrath  <roland@hack.frob.com>
70891
70892         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
70893
70894         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
70895         * csu/init-first.c: ... here.
70896         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
70897         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
70898         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
70899         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
70900         * sysdeps/i386/init-first.c: File removed.
70901         * sysdeps/sh/init-first.c: File removed.
70902
70903 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
70904
70905         [BZ #14645]
70906         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
70907         if x * y might underflow to zero and z is zero.
70908         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
70909         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70910         * math/libm-test.inc (min_subnorm_value): New variable.
70911         (fma_test): Add more tests.
70912         (fma_test_towardzero): Likewise.
70913         (fma_test_downward): Likewise.
70914         (fma_test_upward): Likewise.
70915         (initialize): Set min_subnorm_value.
70916
70917 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
70918
70919         [BZ #14638]
70920         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
70921         0 + 0.
70922         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
70923         mode for addition resulting in exact zero.
70924         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
70925         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
70926         exact 0 + 0.
70927         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
70928         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70929         * math/libm-test.inc (fma_test): Add more tests.
70930         (fma_test_towardzero): New function.
70931         (fma_test_downward): Likewise.
70932         (fma_test_upward): Likewise.
70933         (main): Call the new functions.
70934
70935 2012-09-28  David S. Miller  <davem@davemloft.net>
70936
70937         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
70938
70939 2012-09-28  Roland McGrath  <roland@hack.frob.com>
70940
70941         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
70942         instead of SIGALRM.
70943
70944         * sysdeps/gnu/_G_config.h: Moved to ...
70945         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
70946         * sysdeps/mach/hurd/_G_config.h: Moved to ...
70947         * sysdeps/generic/_G_config.h: ... here.
70948
70949         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
70950
70951         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
70952
70953         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
70954         Conditionalize target on [libnss_test1.so-version].
70955
70956         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
70957
70958         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
70959         (elfobjdir): Move out of conditionals.
70960
70961         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
70962         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
70963         (__nss_lookup_function): Conditionalize label remove_from_tree on
70964         [!DO_STATIC_NSS || SHARED], matching its only use.
70965
70966 2012-09-28  David S. Miller  <davem@davemloft.net>
70967
70968         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
70969         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
70970         file.
70971         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
70972         sysdep_routines.
70973         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
70974         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
70975         when HWCAP_SPARC_CRYPTO is present.
70976
70977 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
70978
70979         * io/tst-mknodat.c: Create a FIFO instead of a socket.
70980
70981 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
70982
70983         [BZ #6530]
70984         * stdio-common/vfprintf.c (process_string_arg): Revert
70985         2000-07-22 change.
70986
70987 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
70988
70989         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
70990         for testcase.
70991         * stdio-common/tst-sprintf.c: Include <locale.h>
70992         (main): Test sprintf's handling of incomplete multibyte
70993         characters.
70994
70995 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
70996
70997         * elf/dl-runtime.c (VERSYMIDX): Removed.
70998         * elf/dl-version.c (VERSYMIDX): Likewise.
70999         * elf/do-rel.h (VERSYMIDX): Likewise.
71000         (VALIDX): Likewise.
71001         * elf/dynamic-link.h (VERSYMIDX): Likewise.
71002         * elf/rtld.c (VALIDX): Likewise.
71003         (ADDRIDX): Likewise.
71004         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
71005         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
71006         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
71007         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
71008         (VALIDX): Likewise.
71009         (ADDRIDX): Likewise.
71010
71011 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71012
71013         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
71014
71015 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
71016
71017         [BZ #11438]
71018         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
71019         to global scope.
71020         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
71021         addresses are in the same scope as 192.0.2/24.
71022         * posix/gai.conf: Document new scope table defaults.
71023
71024 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71025
71026         [BZ #5298]
71027         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
71028         for ftell.  Compute offsets from write pointers instead.
71029         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
71030
71031 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71032
71033         [BZ #14543]
71034         * libio/Makefile (tests): New test case tst-fseek.
71035         * libio/tst-fseek.c: New test case to verify that fseek/ftell
71036         combination works in wide mode.
71037         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
71038         state when the external buffer state changes.
71039
71040 2012-09-27  David S. Miller  <davem@davemloft.net>
71041
71042         [BZ #14376]
71043         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
71044         pass reloc->r_addend in as the 'high' argument to
71045         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
71046
71047         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71048
71049 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71050
71051         * rt/tst-aio2.c: Include <pthread.h>.
71052         * rt/tst-aio3.c: Likewise.
71053
71054 2012-09-27  Steve Ellcey  <sellcey@mips.com>
71055
71056         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
71057
71058 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
71059
71060         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
71061         contents on [SHARED].
71062
71063 2012-09-26  Marek Polacek  <polacek@redhat.com>
71064
71065         [BZ #14530]
71066         [BZ #13741]
71067         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
71068         for C++ and GCC <4.3 as well as for non GCC compilers.
71069
71070 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
71071
71072         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71073
71074 2012-09-25  Roland McGrath  <roland@hack.frob.com>
71075
71076         * Makefile.in (all, install): Declare with .PHONY.
71077         Reported by Michael Hope <michael.hope@linaro.org>.
71078
71079 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
71080
71081         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
71082         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
71083         system header.
71084         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
71085         Likewise.
71086         (sydep_routines): Add the new and the internal functions.
71087         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
71088         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
71089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
71090         (GLIBC_2.17): Add the new function.
71091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
71092         (GLIBC_2.17): Likewise.
71093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
71094         (GLIBC_2.17): Likewise.
71095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
71096         (GLIBC_2.17): Likewise.
71097         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
71098
71099 2012-09-25  Alan Modra  <amodra@gmail.com>
71100
71101         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
71102         Add release barrier before setting once_control to say
71103         initialisation is done.  Add hints on lwarx.  Use macro in
71104         place of isync.
71105         (clear_once_control): Add release barrier.
71106
71107 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71108
71109         [BZ #13629]
71110         * math/s_clog.c (__clog): Handle more values close to |z| = 1
71111         specially.
71112         * math/s_clog10.c (__clog10): Likewise.
71113         * math/s_clog10f.c (__clog10f): Likewise.
71114         * math/s_clog10l.c (__clog10l): Likewise.
71115         * math/s_clogf.c (__clogf): Likewise.
71116         * math/s_clogl.c (__clogl): Likewise.
71117         * math/Makefile (libm-calls): Add x2y2m1.
71118         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
71119         (__x2y2m1): Likewise.
71120         (__x2y2m1l): Likewise.
71121         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
71122         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
71123         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
71124         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
71125         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
71126         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
71127         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
71128         * sysdeps/i386/fpu/libm-test-ulps: Update.
71129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71130
71131         [BZ #14621]
71132         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
71133         int as type of variable DEPTH.
71134         (glob): Use size_t instead of int as type of variables NEWCOUNT
71135         and OLD_PATHC.
71136
71137 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71138
71139         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
71140         Add s_sincosf-sse2.
71141         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
71142         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
71143         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
71144         macros for using routine as __sincosf_ia32.
71145         Use macro for function declaration and weak_alias.
71146         * sysdeps/i386/fpu/libm-test-ulps: Update.
71147
71148         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
71149         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71150
71151         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
71152         subnormal argument.
71153         * math/s_cexpf.c (__cexpf): Likewise.
71154         * math/s_csinf.c (__csinf): Likewise.
71155         * math/s_csinhf.c (__csinhf): Likewise.
71156         * math/s_ctanf.c (__ctanf): Likewise.
71157         * math/s_ctanhf.c (__ctanhf): Likewise.
71158         * math/s_ccosh.c (__ccoshf): Likewise.
71159         * math/s_cexp.c (__cexpl): Likewise.
71160         * math/s_csin.c (__csin): Likewise.
71161         * math/s_csinh.c (__csinh): Likewise.
71162         * math/s_ctan.c (__ctan): Likewise.
71163         * math/s_ctanh.c (ctanh): Likewise.
71164         * math/s_ccoshl.c (__ccoshl): Likewise.
71165         * math/s_cexpl.c (__cexpl): Likewise.
71166         * math/s_csinl.c (__csinl): Likewise.
71167         * math/s_csinhl.c (__csinhl): Likewise.
71168         * math/s_ctanl.c (__ctanl): Likewise.
71169         * math/s_ctanhl.c (__ctanhl): Likewise.
71170
71171 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71172
71173         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
71174         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
71175         (_IO_off_t): Define to __off_t, not _G_off_t.
71176         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
71177         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
71178         (_IO_wint_t): Define to wint_t, not _G_wint_t.
71179         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
71180         type of __dummy and __dummy2 fields.
71181         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
71182         (_G_ssize_t): Likewise.
71183         (_G_off_t): Likewise.
71184         (_G_pid_t): Likewise.
71185         (_G_uid_t): Likewise.
71186         (_G_wchar_t): Likewise.
71187         (_G_wint_t): Likewise.
71188         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
71189         (_G_ssize_t): Likewise.
71190         (_G_off_t): Likewise.
71191         (_G_pid_t): Likewise.
71192         (_G_uid_t): Likewise.
71193         (_G_wchar_t): Likewise.
71194         (_G_wint_t): Likewise.
71195         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
71196         (_G_ssize_t): Likewise.
71197         (_G_off_t): Likewise.
71198         (_G_pid_t): Likewise.
71199         (_G_uid_t): Likewise.
71200         (_G_wchar_t): Likewise.
71201         (_G_wint_t): Likewise.
71202
71203 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71204
71205         * malloc/arena.c: Include malloc-sysdep.h.
71206         (shrink_heap): Use check_may_shrink_heap to decide if madvise
71207         is sufficient to shrink the heap or an unmap is needed.
71208         * sysdeps/generic/malloc-sysdep.h: New file.  Define
71209         new function check_may_shrink_heap.
71210         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
71211         new function check_may_shrink_heap.
71212
71213 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71214
71215         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
71216         comments.
71217
71218 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
71219
71220         * catgets/test-gencat.sh: Add "set -e".
71221         * elf/tst-pathopt.sh: Likewise.
71222         * grp/tst_fgetgrent.sh: Likewise.
71223         * iconvdata/run-iconv-test.sh: Likewise.
71224         * intl/tst-gettext.sh: Likewise.
71225         * intl/tst-gettext2.sh: Likewise.
71226         * intl/tst-gettext4.sh: Likewise.
71227         * intl/tst-gettext6.sh: Likewise.
71228         * intl/tst-translit.sh: Likewise.
71229         * io/ftwtest-sh: Likewise.
71230         * libio/test-freopen.sh: Likewise.
71231         * malloc/tst-mtrace.sh: Likewise.
71232         * posix/globtest.sh: Likewise.
71233         * posix/tst-getconf.sh: Likewise.
71234         * posix/wordexp-tst.sh: Likewise.
71235         * stdio-common/tst-printf.sh: Likewise.
71236         * stdio-common/tst-unbputc.sh: Likewise.
71237         * stdlib/tst-fmtmsg.sh: Likewise.
71238         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71239         * catgets/Makefile: Do not specify -e option when running
71240         testsuite shell scripts.
71241         * elf/Makefile: Likewise.
71242         * grp/Makefile: Likewise.
71243         * iconvdata/Makefile: Likewise.
71244         * intl/Makefile: Likewise.
71245         * io/Makefile: Likewise.
71246         * libio/Makefile: Likewise.
71247         * malloc/Makefile: Likewise.
71248         * posix/Makefile: Likewise.
71249         * stdio-common/Makefile: Likewise.
71250         * stdlib/Makefile: Likewise.
71251         * sysdeps/x86_64/Makefile: Likewise.
71252
71253         * io/ftwtest-sh: Add copyright header.
71254         * posix/globtest.sh: Likewise.
71255         * posix/tst-getconf.sh: Likewise.
71256         * posix/wordexp-tst.sh: Likewise.
71257         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71258
71259 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
71260
71261         [BZ #13679]
71262         * Makeconfig (+link): Defined as $(+link-static) if
71263         $(build-shared) isn't yes.
71264         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
71265         isn't yes.
71266         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
71267
71268         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
71269
71270         [BZ #14562]
71271         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
71272         new chunk size with MALLOC_ALIGN_MASK.
71273
71274 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
71275
71276         [BZ #5044]
71277         * stdio-common/printf_fphex.c: Include <stdbool.h> and
71278         <rounding-mode.h>.
71279         (__printf_fphex): Determine rounding using get_rounding_mode and
71280         round_away.
71281         * stdio-common/tst-printf-round.c (struct hex_test): New
71282         structure.
71283         (hex_tests): New variable.
71284         (test_hex_in_one_mode): New function.
71285         (do_test): Also run tests for hex float output.
71286
71287 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
71288
71289         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71290         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71291         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
71292         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71293         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71294         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
71295         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71296         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71297
71298 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
71299
71300         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
71301         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
71302         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
71303         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
71304
71305 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
71306
71307         [BZ #14579]
71308         * elf/rtld.c (dl_main): Limit the check for self loading to normal
71309         mode only.
71310         * elf/tst-rtld-load-self.sh: New test.
71311         * elf/Makefile: Run it.
71312
71313 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
71314
71315         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
71316         (tst-writev-ENV): Remove.
71317         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
71318
71319 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
71320
71321         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
71322
71323 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
71324
71325         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
71326         unconditional.
71327         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
71328         Likewise.
71329         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
71330         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
71331         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
71332         Likewise.
71333
71334 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
71335
71336         [BZ #14587]
71337         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
71338         * config.make.in (have-cpp-asm-debuginfo): Removed.
71339         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
71340         * configure: Regenerated.
71341
71342 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
71343
71344         [BZ #5044]
71345         * stdio-common/printf_fp.c: Include <stdbool.h> and
71346         <rounding-mode.h>.
71347         (___printf_fp): Determine rounding using get_rounding_mode and
71348         round_away.
71349         * stdio-common/tst-printf-round.c: New file.
71350         * stdio-common/Makefile (tests): Add tst-printf-round.
71351         (link-libm): New variable.
71352         ($(objpfx)tst-printf-round): Depend in $(link-libm).
71353
71354 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
71355
71356         [BZ #14576]
71357         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
71358         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
71359         Likewise.
71360         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
71361         Likewise.
71362
71363 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
71364
71365         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
71366         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71367         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71368         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71369
71370 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
71371
71372         [BZ #14518]
71373         * include/rounding-mode.h: New file.
71374         * sysdeps/generic/get-rounding-mode.h: Likewise.
71375         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
71376         * stdlib/strtod_l.c: Include <rounding-mode.h>.
71377         (MAX_VALUE): New macro.
71378         (MIN_VALUE): Likewise.
71379         (overflow_value): New function.
71380         (underflow_value): Likewise.
71381         (round_and_return): Use overflow_value and underflow_value to
71382         determine return values in overflow and underflow cases.  Use
71383         round_away to determine rounding depending on rounding mode.
71384         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
71385         determine return values in overflow and underflow cases.
71386         * stdlib/tst-strtod-round.c: Include <fenv.h>.
71387         (struct test_results): New structure.
71388         (struct test): Use struct test_results to store expected results
71389         for all rounding modes.
71390         (TEST): Include expected results for all rounding modes.
71391         (test_in_one_mode): New function.
71392         (do_test): Use test_in_one_mode to compute and check results.
71393         Check results for all rounding modes.
71394         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
71395         $(link-libm).
71396
71397 2012-12-09  Allan McRae  <allan@archlinux.org>
71398
71399         * sysdeps/i386/fpu/libm-test-ulps: Update
71400
71401 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
71402
71403         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
71404         (_G_int32_t): Likewise.
71405         (_G_uint16_t): Likewise.
71406         (_G_uint32_t): Likewise.
71407         (_G_HAVE_BOOL): Likewise.
71408         (_G_HAVE_ATEXIT): Likewise.
71409         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71410         (_G_HAVE_IO_FILE_OPEN): Likewise.
71411         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
71412         (_G_int32_t): Likewise.
71413         (_G_uint16_t): Likewise.
71414         (_G_uint32_t): Likewise.
71415         (_G_HAVE_BOOL): Likewise.
71416         (_G_HAVE_ATEXIT): Likewise.
71417         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71418         (_G_HAVE_IO_FILE_OPEN): Likewise.
71419         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
71420         (_G_int32_t): Likewise.
71421         (_G_uint16_t): Likewise.
71422         (_G_uint32_t): Likewise.
71423         (_G_HAVE_BOOL): Likewise.
71424         (_G_HAVE_ATEXIT): Likewise.
71425         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71426         (_G_HAVE_IO_FILE_OPEN): Likewise.
71427
71428 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
71429
71430         * csu/libc-tls.c: Update copyright years.
71431
71432 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
71433
71434         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
71435         [!_G_USING_THUNKS]: Remove conditional code.
71436         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
71437         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
71438
71439         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
71440         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
71441         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71442         (_G_VTABLE_LABEL_PREFIX): Likewise.
71443         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71444         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71445         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71446         (_G_VTABLE_LABEL_PREFIX): Likewise.
71447         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
71448         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71449         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71450         (_G_VTABLE_LABEL_PREFIX): Likewise.
71451         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
71452
71453 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
71454
71455         * libio/Makefile: Include ../Makeconfig before tests.
71456         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
71457         only if $(build-shared) is yes.
71458
71459         * iconv/gconv_db.c: Update copyright years.
71460
71461 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71462
71463         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
71464         unwind info if defined PIC. Fix special cases description.
71465         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
71466
71467         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
71468         DP_HI_MASK entry.
71469         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
71470
71471 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
71472
71473         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
71474
71475         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
71476         is NULL.
71477
71478         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
71479         (LDLIBS-tst-chk4): This.
71480         (LDFLAGS-tst-chk5): Renamed to ...
71481         (LDLIBS-tst-chk5): This.
71482         (LDFLAGS-tst-chk6): Renamed to ...
71483         (LDLIBS-tst-chk6): This.
71484         (LDFLAGS-tst-lfschk4): Renamed to ...
71485         (LDLIBS-tst-lfschk4): This.
71486         (LDFLAGS-tst-lfschk5): Renamed to ...
71487         (LDLIBS-tst-lfschk5): This.
71488         (LDFLAGS-tst-lfschk6): Renamed to ...
71489         (LDLIBS-tst-lfschk6): This.
71490
71491         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
71492         on $(common-objpfx)soversions.mk.
71493
71494 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
71495
71496         [BZ #10014]
71497         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
71498         example host name.
71499
71500 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
71501
71502         * malloc/arena.c (arena_get_retry): New function that gets
71503         another arena for the caller to try its request on.
71504         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
71505         current arena cannot fulfill the request.
71506         (__libc_memalign): Likewise.
71507         (__libc_memalign): Likewise.
71508         (__libc_pvalloc): Likewise.
71509         (__libc_calloc): Likewise.
71510
71511 2012-09-05  John Tobey  <john.tobey@gmail.com>
71512
71513         [BZ #13542]
71514         * manual/arith.texi (Operations on Complex): Fix description
71515         of carg branch cut.
71516
71517 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
71518
71519         [BZ #10014]
71520         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
71521         host name.
71522
71523         [BZ #10038]
71524         * manual/memory.texi (Memory): Make order of menu items match
71525         order of sections.
71526
71527 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71528
71529         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
71530         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
71531         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
71532
71533 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71534
71535         * csu/libc-tls.c (static_dtv): Renamed to ...
71536         (_dl_static_dtv): This.  Make it global.
71537         (_dl_initial_dtv): Removed.
71538         (__libc_setup_tls): Updated.
71539         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
71540         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
71541         DL_INITIAL_DTV.
71542
71543 2012-09-06  Petr Machata  <pmachata@redhat.com>
71544
71545         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
71546         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
71547         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
71548         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
71549
71550 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71551
71552         [BZ #14545]
71553         * csu/libc-tls.c (_dl_initial_dtv): New variable.
71554         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
71555         freeing dtv[-1].
71556
71557 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71558
71559         [BZ #14544]
71560         * Makeconfig (link-static-before-libc): Replace $(+prector)
71561         with $(+prectorT).
71562         (link-static-after-libc): Replace $(+postctor) with
71563         $(+postctorT).
71564         (link-bounded): Replace $(+prector)/$(+postctor) with
71565         $(+prectorT)/$(+postctorT).
71566         (+prectorT): New macro.
71567         (+postctorT): Likewise.
71568
71569 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
71570
71571         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
71572         (round_str): Handle values above the maximum for IBM long double
71573         as inexact.
71574         * stdlib/tst-strtod-round.c (tests): Regenerated.
71575
71576 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71577
71578         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
71579         assembler flag.
71580         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
71581         zarch_nohighgprs around the zarch optimized routines.
71582         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
71583         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
71584         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
71585         for zarch.
71586
71587 2012-09-05  David S. Miller  <davem@davemloft.net>
71588
71589         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71590
71591         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
71592         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
71593         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
71594         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
71595         entries.
71596
71597 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71598
71599         * malloc/arena.c: Fold copyright years.
71600         * malloc/mcheck.c, malloc/memusage.c: Likewise.
71601
71602 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71603
71604         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
71605
71606 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71607
71608         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
71609
71610 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71611
71612         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
71613         change internal state upon failure.
71614
71615 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71616
71617         * malloc/mcheck.c (mcheck_check_all): Fix typo.
71618         * malloc/memusage.c (mmap): Likewise.
71619         (mmap64, mremap): Likewise.  Adjust name in comment.
71620
71621 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
71622
71623         * libio/fileops.c: Fix typos in comments.
71624         * libio/oldfileops.c: Likewise.
71625         * libio/wfileops.c: Likewise.
71626
71627 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
71628
71629         [BZ #1349]
71630         * malloc/Makefile (tests): Add tst-malloc-usable test case.
71631         (tst-malloc-usable-ENV): Set environment for test case.
71632         * malloc/hooks.c (malloc_check_get_size): New function to get
71633         requested size.
71634         * malloc/malloc.c (musable): Use malloc_check_get_size.
71635         * malloc/tst-malloc-usable.c: New test case.
71636
71637 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
71638
71639         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
71640
71641 2012-09-05  Allan McRae  <allan@archlinux.org>
71642
71643         [BZ #13966]
71644         * configure.in (CXX_SYSINCLUDES): Use compiler output to
71645         determine header location.
71646         * configure: Regenerated.
71647
71648 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
71649
71650         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
71651         float format.
71652         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
71653         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
71654         format.
71655         (test): Regenerate.
71656
71657 2012-09-04  David S. Miller  <davem@davemloft.net>
71658
71659         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
71660         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
71661         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
71662
71663 2012-09-04  Florian Weimer  <fweimer@redhat.com>
71664
71665         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
71666         failures.
71667
71668         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
71669
71670 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
71671
71672         [BZ #9914]
71673         * libio/iogetdelim.c: Include <limits.h>.
71674         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
71675         + len + 1 would overflow.
71676
71677 2012-09-03  Andreas Jaeger  <aj@suse.de>
71678
71679         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71680         * sysdeps/i386/fpu/libm-test-ulps: Update.
71681
71682 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71683
71684         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
71685         Add s_sinf-sse2, s_conf-sse2.
71686
71687         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
71688         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
71689         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
71690         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
71691
71692         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
71693         for using routine as __sinf_ia32.
71694         Use macro for function declaration and weak_alias.
71695         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
71696         for using routine as __cosf_ia32.
71697         Use macro for function declaration and weak_alias.
71698
71699         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
71700         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
71701
71702         * sysdeps/x86_64/fpu/s_sinf.S: New file.
71703         * sysdeps/x86_64/fpu/s_cosf.S: New file.
71704         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71705
71706         * math/libm-test.inc (cos_test): Add more test cases.
71707         (sin_test): Likewise.
71708         (sincos_test): Likewise.
71709
71710 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71711
71712         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
71713         (IFUNC_RESOLVE): Make pointers to the specialized implementations
71714         hidden.
71715         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
71716
71717 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
71718
71719         [BZ #14538]
71720         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
71721         first element of the GOT.
71722         (elf_machine_load_address): Return the difference between
71723         the runtime address of _DYNAMIC and elf_machine_dynamic ().
71724
71725 2012-09-01  Allan McRae  <allan@archlinux.org>
71726
71727         [BZ #13412]
71728         * configure.in (AWK): Require gawk version 3.0 or later.
71729         * configure: Regenerated.
71730
71731 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
71732
71733         * sysdeps/unix/sysv/linux/kernel-features.h
71734         (__ASSUME_POSIX_CPU_TIMERS): Remove.
71735         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
71736         [__NR_clock_getres]: Make code unconditional.
71737         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
71738         (clock_getcpuclockid): Remove code left unreachable by removal of
71739         conditionals.
71740         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
71741         code unconditional.
71742         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
71743         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71744         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
71745         Make code unconditional.
71746         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
71747         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71748         * sysdeps/unix/sysv/linux/clock_settime.c
71749         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
71750         conditional code.
71751         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
71752         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71753
71754 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
71755
71756         [BZ #14476]
71757         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
71758         scripts/test-installation.pl.
71759
71760         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
71761         and $ld_so_version if it is set.
71762
71763 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
71764
71765         [BZ #14516]
71766         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
71767         failure if reading from procfs failed.
71768         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
71769
71770 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
71771
71772         * sysdeps/unix/sysv/linux/kernel-features.h
71773         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
71774         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
71775         Remove conditional code.
71776         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71777         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
71778         Remove conditional code.
71779         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71780         * sysdeps/unix/sysv/linux/i386/fxstat.c
71781         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71782         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71783         * sysdeps/unix/sysv/linux/i386/fxstatat.c
71784         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71785         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71786         * sysdeps/unix/sysv/linux/i386/lxstat.c
71787         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71788         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71789         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
71790         Remove conditional code.
71791         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71792         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
71793         Remove conditional code.
71794         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71795         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
71796         <kernel-features.h>.
71797         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
71798         Remove.
71799         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
71800         Remove conditional code.
71801         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71802         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
71803         Remove conditional.
71804
71805 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
71806
71807         [BZ #5400]
71808         * NEWS: Add fixed bug number.
71809
71810 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
71811
71812         [BZ #14519]
71813         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
71814         underflowing exponent in case of negative sign.
71815         * stdlib/tst-strtod-round-data: Add more tests.
71816         * stdlib/tst-strtod-round.c (tests): Regenerated.
71817
71818         [BZ #3479]
71819         * stdlib/strtod_l.c (NDIG): Remove.
71820         (HEXNDIG): Likewise.
71821         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
71822         smallest representable value.
71823         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
71824         lie within an exact representation of 1/2 ulp of the result.
71825         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
71826         unconditionally.
71827         (TENS_P9_IDX): Define unconditionally.
71828         (TENS_P9_SIZE): Likewise.
71829         (TENS_P10_IDX): Likewise.
71830         (TENS_P10_SIZE): Likewise.
71831         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
71832         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
71833         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
71834         entries for 10^2^13 and 10^2^14.
71835         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
71836         (TENS_P13_IDX): Define.
71837         (TENS_P13_SIZE): Likewise.
71838         (TENS_P14_IDX): Likewise.
71839         (TENS_P14_SIZE): Likewise.
71840         (_fpioconst_pow10): Change array size to
71841         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
71842         unconditional.
71843         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
71844         1024]: Add entries for 10^2^13 and 10^2^14.
71845         [LAST_POW10 > _LAST_POW10]: Remove #error.
71846         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
71847         (_fpioconst_pow10): Change array size to
71848         FPIOCONST_POW10_ARRAY_SIZE.
71849         * stdlib/gen-fpioconst.c: New file.
71850         * stdlib/gen-tst-strtod-round.c: Likewise.
71851         * stdlib/tst-strtod-round-data: Likewise.
71852         * stdlib/tst-strtod-round.c: Likewise.
71853         * stdlib/Makefile (tests): Add tst-strtod-round.
71854
71855         [BZ #14459]
71856         * stdlib/strtod_l.c: Include <stdint.h>.
71857         (NDEBUG): Do not define.
71858         (round_and_return): Change EXPONENT parameter to type intmax_t.
71859         Rearrange calculations to avoid internal overflow possibilities.
71860         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
71861         Rearrange calculations to avoid internal overflow possibilities.
71862         Assert that number fits inside MPNSIZE limbs.
71863         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
71864         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
71865         calculations and add assertions to avoid internal overflow
71866         possibilities.  Add casts to avoid signed/unsigned operations.
71867         * stdlib/tst-strtod-overflow.c: New file.
71868         * stdlib/Makefile (tests): Add tst-strtod-overflow.
71869
71870 2012-08-25  Marek Polacek  <polacek@redhat.com>
71871
71872         * time/time.h: Fix some typos in comments.
71873
71874 2012-08-23  Roland McGrath  <roland@hack.frob.com>
71875
71876         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
71877         * posix/tst-rfc3484-2.c: Likewise.
71878         * posix/tst-rfc3484-3.c: Likewise.
71879
71880 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
71881
71882         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
71883         (EF_ARM_ABI_FLOAT_HARD): Likewise.
71884
71885 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
71886
71887         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
71888         #include of fxstatat64.c.
71889
71890 2012-08-22  Roland McGrath  <roland@hack.frob.com>
71891
71892         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
71893         * shadow/getspent_r.c: Likewise.
71894         * shadow/getspnam.c: Likewise.
71895         * shadow/getspnam_r.c: Likewise.
71896         * gshadow/getsgent.c: Likewise.
71897         * gshadow/getsgent_r.c: Likewise.
71898         * gshadow/getsgnam.c: Likewise.
71899         * gshadow/getsgnam_r.c: Likewise.
71900         * inet/getnetbyad.c: Likewise.
71901         * inet/getnetbyad_r.c: Likewise.
71902         * inet/getnetbynm.c: Likewise.
71903         * inet/getnetbynm_r.c: Likewise.
71904         * inet/getnetent.c: Likewise.
71905         * inet/getnetent_r.c: Likewise.
71906         * inet/getproto.c: Likewise.
71907         * inet/getproto_r.c: Likewise.
71908         * inet/getprtent.c: Likewise.
71909         * inet/getprtent_r.c: Likewise.
71910         * inet/getprtname.c: Likewise.
71911         * inet/getprtname_r.c: Likewise.
71912         * inet/getrpcbyname.c: Likewise.
71913         * inet/getrpcbyname_r.c: Likewise.
71914         * inet/getrpcbynumber.c: Likewise.
71915         * inet/getrpcbynumber_r.c: Likewise.
71916         * inet/getrpcent.c: Likewise.
71917         * inet/getrpcent_r.c: Likewise.
71918         * inet/getaliasent.c: Likewise.
71919         * inet/getaliasent_r.c: Likewise.
71920         * inet/getaliasname.c: Likewise.
71921         * inet/getaliasname_r.c: Likewise.
71922         * nscd/getgrgid_r.c: Likewise.
71923         * nscd/getgrnam_r.c: Likewise.
71924         * nscd/gethstbyad_r.c: Likewise.
71925         * nscd/gethstbynm3_r.c: Likewise.
71926         * nscd/getpwnam_r.c: Likewise.
71927         * nscd/getpwuid_r.c: Likewise.
71928         * nscd/getsrvbynm_r.c: Likewise.
71929         * nscd/getsrvbypt_r.c: Likewise.
71930         * nscd/gai.c: Likewise.
71931
71932         * configure.in (build_nscd): New substituted variable, set
71933         by --disable-build-nscd and defaults to $use_nscd.
71934         * configure: Regenerated.
71935         * config.make.in (build-nscd): New substituted variable.
71936         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
71937         Change conditional to require [$(build-nscd) = yes] as well.
71938         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
71939
71940         [BZ #13696]
71941         * configure.in (use_nscd): New substituted variable, set by
71942         --disable-nscd.  If enabled, define USE_NSCD.
71943         * configure: Regenerated.
71944         * config.h.in: Add USE_NSCD.
71945         * config.make.in (use-nscd): New substituted variable.
71946         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
71947         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
71948         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
71949         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
71950         (CFLAGS-getgrnam_r.c): Likewise.
71951         (CFLAGS-initgroups.c): Likewise.
71952         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
71953         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
71954         Variables removed.
71955         * inet/getnetgrent_r.c
71956         (nscd_setnetgrent): New function, broken out of ...
71957         (setnetgrent): ... here.  Call it.
71958         (innetgr): Conditionalize nscd bits on [USE_NSCD].
71959         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
71960         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
71961         * nscd/Makefile (routines, aux): Move definitions after include of
71962         Makeconfig.  Conditionalize on [$(use-nscd) != no].
71963         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
71964         Conditionalize on [USE_NSCD].
71965         (is_nscd, nscd_init_cb): Likewise.
71966         (nss_load_library): Conditionalize init callback on [USE_NSCD].
71967         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
71968         * nss/nss_db/db-init.c: Likewise.
71969         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
71970         [USE_NSCD].
71971         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
71972         (make_request): Use it.
71973         (cache_valid_p): New function.
71974         (__check_pf): Use it.
71975         * NEWS: Add item for --disable-nscd.
71976
71977 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
71978
71979         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
71980         to support sed >= 4.2.1-20-ga9bf076.
71981         * configure: Regenerated.
71982
71983 2012-08-22  Roland McGrath  <roland@hack.frob.com>
71984
71985         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
71986         Conditionalize whole body on [IREL].
71987
71988 2012-08-22  Jeff Law <law@redhat.com>
71989
71990         [BZ #14505]
71991         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
71992         if the family is PF_UNSPEC.
71993
71994 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
71995
71996         * Makerules (lib-version): Rename from V.
71997         (install-lib-nosubdir): Change V to lib-version.
71998
71999 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
72000
72001         [BZ #14252]
72002         * powerpc32/power6/wcschr.c: New file.
72003         * powerpc32/power6/wcscpy.c: New file.
72004         * powerpc32/power6/wcsrchr.c: New file.
72005         * powerpc64/power6/wcschr.c: New file.
72006         * powerpc64/power6/wcscpy.c: New file.
72007         * powerpc64/power6/wcsrchr.c: New file.
72008
72009 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
72010
72011         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
72012         (two_way_short_needle): Use it.
72013         * string/strstr.c (AVAILABLE1_USES_J): Define.
72014         * string/strcasestr.c: Likewise.
72015
72016         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
72017         array references.
72018         * string/strcasestr.c (TOLOWER): Make side-effect safe.
72019
72020         [BZ #11607]
72021         * NEWS: Add an entry.
72022         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
72023         define their defaults.
72024         (two_way_short_needle): Detect end-of-string on-the-fly.
72025         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
72026         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
72027         * string/bug-strcasestr1.c: New test.
72028         * string/Makefile: Run it.
72029
72030 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
72031
72032         [BZ #11607]
72033         * string/str-two-way.h (two_way_short_needle): Optimize matching of
72034         the first character.
72035
72036 2012-08-21  Roland McGrath  <roland@hack.frob.com>
72037
72038         * csu/elf-init.c (__libc_csu_irel): Function removed.
72039         * csu/libc-start.c (apply_irel): New function.
72040         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
72041
72042 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
72043
72044         * sysdeps/unix/sysv/linux/kernel-features.h
72045         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
72046         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
72047         <kernel-features.h>.
72048         [__NR_fadvise64_64]: Make code unconditional.
72049         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
72050         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
72051         !__NR_fadvise64_64)]: Likewise.
72052         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
72053         !__NR_fadvise64_64))]: Likewise.
72054         [__NR_fadvise64]: Make code unconditional.
72055         [!__NR_fadvise64]: Remove conditional code.
72056         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
72057         <kernel-features.h>.
72058         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72059         unconditional.
72060         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72061         conditional code.
72062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
72063         not include <kernel-features.h>.
72064         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72065         unconditional.
72066         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72067         conditional code.
72068         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
72069         include <kernel-features.h>.
72070         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72071         unconditional.
72072         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72073         conditional code.
72074
72075 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
72076
72077         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
72078         slight instruction rearrangements per scrollpipe analysis.
72079         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
72080
72081 2012-08-20  Roland McGrath  <roland@hack.frob.com>
72082
72083         * manual/syslog.texi (syslog; vsyslog, closelog):
72084         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
72085         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
72086
72087         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
72088         DSOCAPS to match condition on defining it.
72089
72090 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
72091
72092         * sysdeps/unix/sysv/linux/kernel-features.h
72093         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
72094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
72095         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72096         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
72098         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72099         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
72101         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72102         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72103
72104         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
72105         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
72106
72107         * sysdeps/unix/sysv/linux/kernel-features.h
72108         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
72109         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
72110         unconditional.
72111         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72112         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
72113         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
72114         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72115         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
72116         Make code unconditional.
72117         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72118         (__mmap64) [!__NR_mmap2]: Likewise.
72119         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
72120         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
72121         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72122         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
72123         [__NR_mmap2]: Make code unconditional.
72124         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72125         (__mmap64) [!__NR_mmap2]: Likewise.
72126
72127 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72128
72129         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
72130
72131 2012-08-18  Andreas Jaeger  <aj@suse.de>
72132
72133         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
72134
72135 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72136
72137         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
72138         * include/unistd.h (__have_sock_cloexec): Likewise.
72139         (__have_pipe2): Likewise.
72140         (__have_dup3): Likewise.
72141
72142 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72143
72144         [BZ #9685]
72145         * include/unistd.h (__have_pipe2): Change define into an extern int.
72146         (__have_dup3): Likewise.
72147         * socket/have_sock_cloexec.c: Include fcntl.h.
72148         (__have_pipe2): New variable.
72149         (__have_dup3): Likewise.
72150
72151 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
72152
72153         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
72154
72155 2012-08-17  Marek Polacek  <polacek@redhat.com>
72156
72157         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
72158         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
72159
72160 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72161
72162         * configure.in: Add AC_SUBST for sysheaders.
72163         * configure: Regenerated.
72164         * config.make.in (sysheaders): New substituted variable.
72165
72166         * sysdeps/unix/mkfifo.c: Moved ...
72167         * sysdeps/posix/mkfifo.c: ... here.
72168         * sysdeps/unix/mkfifoat.c: Moved ...
72169         * sysdeps/posix/mkfifoat.c: ... here.
72170
72171         * sysdeps/unix/utime.c: Moved ...
72172         * sysdeps/posix/utime.c: ... here.
72173
72174         * sysdeps/unix/time.c: Moved ...
72175         * sysdeps/posix/time.c: ... here.
72176         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
72177         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
72178
72179         * sysdeps/unix/nice.c: Moved ...
72180         * sysdeps/posix/nice.c: ... here.
72181
72182         * sysdeps/unix/alarm.c: Moved ...
72183         * sysdeps/posix/alarm.c: ... here.
72184
72185         * intl/Makefile ($(codeset_mo)): Depend on the input file.
72186
72187 2012-08-17  Jeff Law <law@redhat.com>
72188
72189         * intl/Makefile (codeset_mo): New variable.
72190         ($(codeset_mo)): New target.
72191         (tst-codeset.out): Depend on that.  Remove explicit rule.
72192         (tst-gettext3.out, tst-gettext5.out): Likewise.
72193         (LOCPATH-ENV, tst-codeset-ENV): New variables.
72194         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
72195         * intl/tst-codeset.sh: Remove.
72196         * intl/tst-gettext3.sh: Likewise.
72197         * intl/tst-gettext5.sh: Likewise.
72198
72199 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72200
72201         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
72202         * sysdeps/unix/syscalls.list: ... here.
72203
72204         * sysdeps/posix/getaddrinfo.c
72205         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
72206         (gaiconf_init, gaiconf_reload): Use them.
72207         [!_STATBUF_ST_NSEC]
72208         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
72209         Define using time_t rather than struct timespec.
72210
72211         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
72212         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
72213         Macros removed.
72214         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
72215         [!NO_THREADS].
72216         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
72217         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
72218         Likewise.
72219
72220         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
72221         __libc_cleanup_push argument.
72222
72223         * bits/param.h: New file.
72224         * misc/sys/param.h: New file.
72225         * include/sys/param.h: New file.
72226         * misc/Makefile (headers): Add bits/param.h.
72227         * sysdeps/generic/sys/param.h: File removed.
72228         * sysdeps/unix/sysv/linux/bits/param.h: New file.
72229         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
72230         * sysdeps/mach/hurd/bits/param.h: New file.
72231         * sysdeps/mach/hurd/sys/param.h: File removed.
72232
72233         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
72234         last change.
72235
72236         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
72237         [_IO_MTSAFE_IO].
72238         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
72239         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
72240         New macros.
72241
72242         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
72243         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
72244         rather than -D_IO_MTSAFE_IO conditionally.
72245         * stdio-common/Makefile (CPPFLAGS): Likewise.
72246         * wcsmbs/Makefile (CPPFLAGS): Likewise.
72247         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
72248         Use $(libio-mtsafe).
72249         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
72250         of -D_IO_MTSAFE_IO.
72251         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
72252         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
72253         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
72254         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
72255         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
72256         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
72257         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
72258         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
72259         (CFLAGS-fread_u_chk.c): Likewise.
72260         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
72261         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
72262         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
72263         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
72264         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
72265         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
72266         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
72267         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
72268         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
72269
72270         * libio/Makefile: Test [$(libc-reentrant) = yes]
72271         instead of [$(filter %REENTRANT, $(defines)) nonempty].
72272
72273         * Makeconfig
72274         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
72275         * sysdeps/pthread/configure: File removed.
72276         * sysdeps/pthread/Makeconfig: New file.
72277         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
72278         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
72279
72280 2012-08-16  Gary Benson  <gbenson@redhat.com>
72281
72282         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
72283         unmapping the first object in a namespace.
72284
72285 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72286
72287         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
72288         (__internal_setnetgrent): ... this.  Add internal_function to
72289         definition.  Add libc_hidden_def.
72290         (setnetgrent): Update caller.
72291         (internal_endnetgrent): Renamed to ...
72292         (__internal_endnetgrent): ... this.  Add internal_function to
72293         definition.  Add libc_hidden_def.
72294         (endnetgrent): Update caller.
72295         (internal_getnetgrent_r): Renamed to ...
72296         (__internal_getnetgrent_r): ... this.  Add internal_function to
72297         definition.  Add libc_hidden_def.
72298         (__getnetgrent_r): Update caller.
72299         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
72300
72301 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72302
72303         * stdlib/longlong.h: Update from GCC.
72304
72305 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72306
72307         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
72308         on _QL, which is set by umul_ppmm but never used.
72309         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
72310         variables, which are set by GMP macros but never used.
72311         * stdio-common/_itowa.c (_itowa): Likewise.
72312         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
72313         * stdlib/mod_1.c (mpn_mod_1): Likewise.
72314
72315 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
72316
72317         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
72318         struct La_sh_regs is not constant.
72319         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
72320         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
72321         and struct La_sparc64_regs are not constant.
72322
72323 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72324
72325         * sysdeps/unix/sysv/linux/kernel-features.h
72326         (__ASSUME_POSIX_TIMERS): Remove.
72327         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
72328         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72329         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
72330         Make code unconditional.
72331         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72332         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
72333         Make code unconditional.
72334         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72335         * sysdeps/unix/sysv/linux/clock_nanosleep.c
72336         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
72337         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72338         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
72339         Make code unconditional.
72340         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72341         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
72342         (__libc_missing_posix_timers): Remove.
72343
72344 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72345
72346         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
72347         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
72348
72349         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
72350
72351         * elf/dl-sym.c: Include <stdlib.h>.
72352
72353         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
72354         constants, which avoids warnings in 32-bit builds.
72355
72356         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
72357         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
72358
72359         * misc/lseek.c: File moved to ...
72360         * io/lseek.c: ... here.
72361
72362         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
72363
72364         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
72365         shifting LEN more than 31 bits at once.
72366
72367 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72368
72369         [BZ #14195]
72370         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
72371         segmentation fault for a case of two empty input strings.
72372         * string/test-strncasecmp.c (check1): Renamed to...
72373         (bz12205): ...this.
72374         (bz14195): Add new testcase for two empty input strings and N > 0.
72375         (test_main): Call new testcase, adapt for renamed function.
72376
72377 2012-08-15  Andreas Jaeger  <aj@suse.de>
72378
72379         [BZ #14090]
72380         * crypt/md5test2.c: New test, based on test supplied by Serge
72381         Belyshev <belyshev@depni.sinp.msu.ru>.
72382         * crypt/Makefile (xtests): Add md5test-giant..
72383         * crypt/Makefile ($(objpfx)md5test-giant): Add.
72384
72385 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         [BZ #14090]
72388         * crypt/md5.c (md5_process_block): Don't assume the buffer
72389         length is less than 2**32.
72390         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
72391         length is less than 2**64.
72392
72393 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72394
72395         * string/str-two-way.h: Include <sys/param.h>.
72396         (MAX): Macro removed.
72397
72398         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
72399         Move #define and #undef of memmove to just before and after
72400         including <string.h>.
72401
72402         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
72403         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
72404         and after including <string.h>.  Move declarations of
72405         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
72406         to before #include "string/memmove.c".
72407
72408         * include/dirent.h: Declare __getdirentries.
72409
72410         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
72411         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
72412
72413 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
72414
72415         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
72416         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
72417         * sysdeps/i386/configure: Regenerated.
72418         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
72419         STABS_CURRENT_FILE, and STABS_FUN.
72420         (END): Remove call to STABS_FUN_END.
72421         (STABS_CURRENT_FILE1): Delete.
72422         (STABS_CURRENT_FILE): Likewise.
72423         (STABS_FUN): Likewise.
72424         (STABS_FUN_END): Likewise.
72425         (STABS_FUN2): Likewise.
72426         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
72427         * sysdeps/x86_64/configure: Regenerated.
72428
72429 2012-08-14  Roland McGrath  <roland@hack.frob.com>
72430
72431         * elf/dl-open.c: Include <atomic.h>.
72432         * elf/dl-lookup.c: Likewise.
72433
72434 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
72435
72436         * sysdeps/unix/sysv/linux/kernel-features.h
72437         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
72438         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
72439         unconditionally.
72440         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
72441         unconditionally.
72442         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
72443         condition on __ASSUME_CLONE_THREAD_FLAGS.
72444
72445 2012-08-14  Andreas Jaeger  <aj@suse.de>
72446
72447         * sysdeps/i386/fpu/libm-test-ulps: Update.
72448
72449 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
72450
72451         * include/atomic.h (atomic_exchange_and_add): Split into ...
72452         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
72453         New atomic macros.
72454
72455 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
72456
72457         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72458
72459 2012-08-13  Jeff Law <law@redhat.com>
72460
72461         * manual/stdio.texi (snprintf): Clarify handling of the trailing
72462         null byte in the output string.
72463
72464 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
72465
72466         * sysdeps/unix/sysv/linux/kernel-features.h
72467         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
72468         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
72469         (__ASSUME_ARG_MAX_STACK_BASED): Define.
72470         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
72471         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
72472         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
72473         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
72474
72475 2012-08-09  Jeff Law <law@redhat.com>
72476
72477         [BZ #13939]
72478         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
72479         When avoid_arena is set, don't retry in the that arena.  Pick the
72480         next one, whatever it might be.
72481         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
72482         (arena_lock): Pass in new parameter to arena_get2.
72483         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
72484         arena_get2.
72485         (__libc_malloc): Unify retrying after main arena failure with
72486         __libc_memalign version.
72487         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
72488
72489 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
72490
72491         [BZ #14166]
72492         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
72493         to __redirect_strstr.
72494         (__strstr_sse42): Use typeof __redirect_strstr.
72495         (__strstr_ia32): Likewise.
72496         (__libc_strstr): New prototype.
72497         (strstr): Renamed to ...
72498         (__libc_strstr): This.
72499         (strstr): New strong alias of __libc_strstr.
72500         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
72501         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
72502         __redirect_time.
72503         Include <time.h>.
72504         (__libc_time): New prototype.
72505         (time_ifunc): Replace time with __libc_time.
72506         (time): New strong alias and hidden definition of __libc_time.
72507         (__GI_time): Remove strong alias.
72508         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
72509         Include <stddef.h>.
72510         (memmove): Redefined to __redirect_memmove.
72511         (__memmove_sse2): Use typeof __redirect_memmove.
72512         (__memmove_ssse3): Likewise.
72513         (__memmove_ssse3_back): Likewise.
72514         (__libc_memmove): New prototype.
72515         (memmove): Renamed to ...
72516         (__libc_memmove): This.
72517         (memmove): New strong alias of __libc_memmove.
72518
72519 2012-08-08  Mark Salter  <msalter@redhat.com>
72520
72521         * elf/elf.h
72522         (R_MN10300_TLS_GD): Define.
72523         (R_MN10300_TLS_LD): Likewise.
72524         (R_MN10300_TLS_LDO): Likewise.
72525         (R_MN10300_TLS_GOTIE): Likewise.
72526         (R_MN10300_TLS_IE): Likewise.
72527         (R_MN10300_TLS_LE): Likewise.
72528         (R_MN10300_TLS_DTPMOD): Likewise.
72529         (R_MN10300_TLS_DTPOFF): Likewise.
72530         (R_MN10300_TLS_TPOFF): Likewise.
72531         (R_MN10300_SYM_DIFF): Likewise.
72532         (R_MN10300_ALIGN): Likewise.
72533         (R_MN10300_NUM): Update.
72534
72535 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
72536
72537         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
72538         Remove.
72539
72540 2012-08-08  Roland McGrath  <roland@hack.frob.com>
72541
72542         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
72543
72544         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
72545         sysdeps/unix -> sysdeps/posix move.
72546         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
72547
72548 2012-08-07      Allan McRae     <allan@archlinux.org>
72549
72550         [BZ #14303]
72551         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
72552         (SUNOS_CPP): Likewise.
72553         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
72554         not found.
72555         (open_input): Call CPP using execvp.
72556
72557 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
72558
72559         * sysdeps/unix/sysv/linux/kernel-features.h
72560         (__ASSUME_PROT_GROWSUPDOWN): Remove.
72561         (__ASSUME_NO_CLONE_DETACHED): Likewise.
72562         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
72563         (__ASSUME_WAITID_SYSCALL): Likewise.
72564         * sysdeps/unix/sysv/linux/dl-execstack.c
72565         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
72566         code unconditional.
72567         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
72568         conditional code.
72569         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
72570         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
72571         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
72572         code.
72573         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
72574         unconditional.
72575         [__ASSUME_WAITID_SYSCALL]: Likewise.
72576         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
72577
72578 2012-08-07  Roland McGrath  <roland@hack.frob.com>
72579
72580         * sysdeps/unix/closedir.c: Renamed to ...
72581         * sysdeps/posix/closedir.c: ... here.
72582         * sysdeps/unix/dirfd.c: Renamed to ...
72583         * sysdeps/posix/dirfd.c: ... here.
72584         * sysdeps/unix/dirstream.h: Renamed to ...
72585         * sysdeps/posix/dirstream.h: ... here.
72586         * sysdeps/unix/fdopendir.c: Renamed to ...
72587         * sysdeps/posix/fdopendir.c: ... here.
72588         * sysdeps/unix/opendir.c: Renamed to ...
72589         * sysdeps/posix/opendir.c: ... here.
72590         * sysdeps/unix/readdir.c: Renamed to ...
72591         * sysdeps/posix/readdir.c: ... here.
72592         * sysdeps/unix/readdir_r.c: Renamed to ...
72593         * sysdeps/posix/readdir_r.c: ... here.
72594         * sysdeps/unix/rewinddir.c: Renamed to ...
72595         * sysdeps/posix/rewinddir.c: ... here.
72596         * sysdeps/unix/seekdir.c: Renamed to ...
72597         * sysdeps/posix/seekdir.c: ... here.
72598         * sysdeps/unix/telldir.c: Renamed to ...
72599         * sysdeps/posix/telldir.c: ... here.
72600         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
72601         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
72602         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
72603         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
72604
72605         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
72606         * bits/fcntl.h: ... here.
72607
72608         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
72609         not 0.
72610         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
72611         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
72612         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
72613         (struct flock): Move l_start, l_len to the beginning.
72614         Use __pid_t for l_pid.
72615         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
72616         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
72617         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
72618         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
72619         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
72620         [__USE_LARGEFILE64] (struct flock64): New type.
72621         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
72622
72623         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
72624         * bits/dirent.h: ... here.
72625
72626         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
72627         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
72628
72629 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
72630
72631         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72632         Change from 2.6.0 to 2.6.16.
72633         * sysdeps/unix/sysv/linux/configure: Regenerated.
72634         * sysdeps/unix/sysv/linux/kernel-features.h
72635         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
72636         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
72637         version.
72638         (__ASSUME_UTIMES): Likewise.
72639         (__ASSUME_CLONE_STOPPED): Remove.
72640         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
72641         architectures, not kernel version.
72642         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
72643         (__ASSUME_NO_CLONE_DETACHED): Likewise.
72644         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
72645         (__ASSUME_WAITID_SYSCALL): Likewise.
72646         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
72647         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
72648         * README: State 2.6.16 as minimum Linux kernel version.  Do not
72649         refer to older versions.
72650
72651 2012-08-06  Roland McGrath  <roland@hack.frob.com>
72652
72653         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
72654         Define alphasort64 as an alias.
72655         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
72656         Define versionsort64 as an alias.
72657         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
72658         Define scandir64 as an alias.
72659         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
72660         Define scandirat64 as an alias.
72661         * dirent/alphasort64.c (alphasort64):
72662         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
72663         * dirent/versionsort64.c: Likewise.
72664         * dirent/scandir64.c: Likewise.
72665         * dirent/scandirat64.c: Likewise.
72666         * sysdeps/wordsize-64/alphasort.c: File removed.
72667         * sysdeps/wordsize-64/alphasort64.c: File removed.
72668         * sysdeps/wordsize-64/scandir.c: File removed.
72669         * sysdeps/wordsize-64/scandir64.c: File removed.
72670         * sysdeps/wordsize-64/scandirat.c: File removed.
72671         * sysdeps/wordsize-64/scandirat64.c: File removed.
72672         * sysdeps/wordsize-64/versionsort.c: File removed.
72673         * sysdeps/wordsize-64/versionsort64.c: File removed.
72674         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
72675         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
72676         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
72677         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
72678         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
72679         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
72680         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
72681         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
72682
72683         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
72684         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
72685         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
72686         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
72687         [defined __arch64__ || defined __sparcv9]
72688         (__INO_T_MATCHES_INO64_T): New macro.
72689         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
72690         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
72691         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
72692         * sysdeps/unix/sysv/linux/bits/dirent.h
72693         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
72694         (_DIRENT_MATCHES_DIRENT64): New macro.
72695
72696         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
72697         Define lockf64 as an alias.
72698         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
72699         Define fseeko64 as an alias.
72700         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
72701         Define ftello64 as an alias.
72702         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
72703         Define _IO_fgetpos64 and fgetpos64 as aliases.
72704         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
72705         Define _IO_fsetpos64 and fsetpos64 as aliases.
72706         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
72707         Conditionalize body on this.
72708         * libio/fseeko64.c: Likewise.
72709         * libio/ftello64.c: Likewise.
72710         * libio/iofgetpos64.c: Likewise.
72711         * libio/iofsetpos64.c: Likewise.
72712         * sysdeps/wordsize-64/lockf.c: File removed.
72713         * sysdeps/wordsize-64/lockf64.c: File removed.
72714         * sysdeps/wordsize-64/fseeko.c: File removed.
72715         * sysdeps/wordsize-64/fseeko64.c: File removed.
72716         * sysdeps/wordsize-64/ftello.c: File removed.
72717         * sysdeps/wordsize-64/ftello64.c: File removed.
72718         * sysdeps/wordsize-64/iofgetpos.c: File removed.
72719         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
72720         * sysdeps/wordsize-64/iofsetpos.c: File removed.
72721         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
72722         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
72723         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
72724         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
72725         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
72726         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
72727         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
72728         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
72729         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
72730         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
72731         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
72732
72733         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
72734         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
72735         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
72736         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
72737         [defined __arch64__ || defined __sparcv9]
72738         (__OFF_T_MATCHES_OFF64_T): New macro.
72739         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
72740         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
72741         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
72742         (__OFF_T_MATCHES_OFF64_T): New macro.
72743
72744 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
72745
72746         * stdlib/secure-getenv.c (__secure_getenv): Replace
72747         GLIBC_2_16 with GLIBC_2_17.
72748
72749 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
72750
72751         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
72752         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
72753
72754 2012-08-03  David S. Miller  <davem@davemloft.net>
72755
72756         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72757
72758 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
72759
72760         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
72761         Remove.
72762         (__ASSUME_CORRECT_SI_PID): Likewise.
72763         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
72764         (__ASSUME_TMPFS_NAME): Likewise.
72765         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
72766         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
72767         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
72768         (HAVE_AUX_SECURE): Make definition unconditional.
72769         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
72770         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
72771
72772 2012-08-03  Roland McGrath  <roland@hack.frob.com>
72773
72774         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
72775         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
72776         * sysdeps/mach/hurd/eloop-threshold.h: New file.
72777         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
72778         __eloop_threshold instead of SYMLOOP_MAX.
72779
72780         * sysdeps/generic/eloop-threshold.h: New file.
72781         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
72782         of MAXSYMLINKS.
72783         * elf/chroot_canon.c (chroot_canon): Likewise.
72784
72785 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
72786
72787         [BZ #13717]
72788         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72789         Change to 2.6.0 everywhere.
72790         * sysdeps/unix/sysv/linux/configure: Regenerated.
72791         * sysdeps/unix/sysv/linux/kernel-features.h
72792         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
72793         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
72794         kernel versions.
72795         (__ASSUME_POSIX_TIMERS): Define unconditionally.
72796         (__ASSUME_FUTEX_REQUEUE): Remove.
72797         (__ASSUME_STATFS64): Define unconditionally.
72798         (__ASSUME_AT_SECURE): Likewise.
72799         (__ASSUME_CORRECT_SI_PID): Likewise.
72800         (__ASSUME_TGKILL): Define without depending on kernel version for
72801         i386.
72802         (__ASSUME_UTIMES): Likewise.
72803         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
72804         kernel version.
72805         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
72806         (__ASSUME_TMPFS_NAME): Likewise.
72807         * README: Update reference to Linux kernel versions.
72808
72809 2012-08-02  Marek Polacek  <polacek@redhat.com>
72810
72811         [BZ #14150]
72812         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
72813         libc_cv_asm_type_prefix with %.
72814         * configure: Regenerated.
72815         * include/libc-symbols.h: Remove comment about
72816         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
72817         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
72818         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
72819         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
72820         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
72821         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
72822         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
72823         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
72824         * elf/tst-unique2mod1.c: Likewise.
72825         * elf/tst-unique1mod2.c: Likewise.
72826         * elf/tst-unique1mod1.c: Likewise.
72827         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
72828         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
72829         Replace ASM_TYPE_DIRECTIVE with .type.
72830         * sysdeps/s390/s390-64/sysdep.h: Likewise.
72831         * sysdeps/i386/sysdep.h: Likewise.
72832         * sysdeps/x86_64/sysdep.h: Likewise.
72833         * sysdeps/sh/sysdep.h: Likewise.
72834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
72835         Do not define ASM_TYPE_DIRECTIVE.
72836         * sysdeps/powerpc/sysdep.h: Likewise.
72837         * sysdeps/powerpc/powerpc32/sysdep.h:
72838         Replace ASM_TYPE_DIRECTIVE with .type.
72839         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
72840         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
72841         * sysdeps/i386/fpu/e_powf.S: Likewise.
72842         * sysdeps/i386/fpu/e_expl.S: Likewise.
72843         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72844         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72845         * sysdeps/i386/fpu/e_pow.S: Likewise.
72846         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
72847         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72848         * sysdeps/i386/fpu/s_expm1.S: Likewise.
72849         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
72850         * sysdeps/i386/fpu/e_log2.S: Likewise.
72851         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72852         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72853         * sysdeps/i386/fpu/e_powl.S: Likewise.
72854         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72855         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
72856         * sysdeps/i386/fpu/e_logl.S: Likewise.
72857         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
72858         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
72859         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
72860         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72861         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72862         * sysdeps/i386/fpu/e_log.S: Likewise.
72863         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72864         * sysdeps/i386/fpu/e_logf.S: Likewise.
72865         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72866         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72867         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
72868         * sysdeps/i386/fpu/e_log10.S: Likewise.
72869         * sysdeps/i386/fpu/s_frexp.S: Likewise.
72870         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72871         * sysdeps/i386/fpu/s_asinh.S: Likewise.
72872         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
72873         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72874         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
72875         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
72876         * sysdeps/i386/i686/strtok.S: Likewise.
72877         * sysdeps/i386/i386-mcount.S: Likewise.
72878         * sysdeps/i386/strtok.S: Likewise.
72879         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
72880         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72881         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72882         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72883         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
72884         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72885         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
72886         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
72887         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72888         * sysdeps/x86_64/_mcount.S: Likewise.
72889         * sysdeps/x86_64/strtok.S: Likewise.
72890         * sysdeps/sh/_mcount.S: Likewise.
72891
72892 2012-08-01  Roland McGrath  <roland@hack.frob.com>
72893
72894         * libio/iofopen.c: Include <fcntl.h>.
72895         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
72896         (_IO_fopen64, fopen64): Define as aliases.
72897         * libio/iofopen64.c: Include <fcntl.h>.
72898         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
72899         Conditionalize body on this.
72900         * sysdeps/wordsize-64/iofopen.c: File removed.
72901         * sysdeps/wordsize-64/iofopen64.c: File removed.
72902
72903 2012-08-01  Marek Polacek  <polacek@redhat.com>
72904
72905         * libc/Makeconfig: Use elf in place of binfmt-subdir.
72906         Use dlfcn directly instead of a variable.
72907         (binfmt-subdir): Do not define.
72908         (dlfcn): Likewise.
72909
72910 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
72911
72912         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
72913         Remove all definitions.
72914         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
72915         <kernel-features.h>.
72916         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
72917         (miss_F_GETOWN_EX): Remove all definitions.
72918         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
72919         macro definition.
72920         [!__ASSUME_FCNTL64]: Remove conditional code.
72921         [__ASSUME_FCNTL64]: Make code unconditional.
72922         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
72923         <kernel-features.h>.
72924         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
72925         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
72926         (lockf64) [__NR_fcntl64]: Make code unconditional.
72927         (lockf64) [__ASSUME_FCNTL64]: Likewise.
72928
72929         * sysdeps/unix/sysv/linux/kernel-features.h
72930         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
72931         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
72932         Make code unconditional.
72933         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
72934         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
72935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
72936         [__NR_vfork]: Make code unconditional.
72937         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
72938         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
72939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
72940         [__NR_vfork]: Make code unconditional.
72941         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
72942         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
72943
72944 2012-08-01  Roland McGrath  <roland@hack.frob.com>
72945
72946         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
72947         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
72948
72949         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72950         Define mkstemp64 as an alias.
72951         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72952         Define mkstemps64 as an alias.
72953         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72954         Define mkostemp64 as an alias.
72955         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72956         Define mkostemps64 as an alias.
72957         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
72958         Conditionalize body on this.
72959         * misc/mkostemp64.c: Likewise.
72960         * misc/mkostemps64.c: Likewise.
72961         * misc/mkstemps64.c: Likewise.
72962         * sysdeps/wordsize-64/mkstemp64.c: File removed.
72963         * sysdeps/wordsize-64/mkostemp64.c: File removed.
72964         * sysdeps/wordsize-64/mkostemp.c: File removed.
72965         * sysdeps/wordsize-64/mkstemp.c: File removed.
72966         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
72967         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
72968         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
72969         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
72970
72971         [BZ #14138]
72972         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
72973         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
72974         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
72975         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
72976
72977         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
72978         compat_symbol macros from <shlib-compat.h> rather than the underlying
72979         default_symbol_version and symbol_version macros, so that DEFAULT
72980         lines in shlib-versions are respected.
72981         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
72982
72983 2012-08-01  Florian Weimer  <fweimer@redhat.com>
72984
72985         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
72986         Declare with warn_unused_result.
72987         (setgid, setregid, setegid, setresgid): Likewise.
72988         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
72989         Likewise.
72990         * WUR-REPORT: Remove set*id functions.
72991
72992 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
72993
72994         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
72995
72996 2012-07-31  Roland McGrath  <roland@hack.frob.com>
72997
72998         [BZ #10191]
72999         * include/sys/socket.h (__libc_accept, __libc_accept4):
73000         Add attribute_hidden.
73001         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
73002
73003         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
73004         use of PTR_MANGLE.
73005         * inet/getnetgrent_r.c (setup): Likewise.
73006
73007         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
73008
73009 2012-07-31  David S. Miller  <davem@davemloft.net>
73010
73011         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73012
73013 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
73014
73015         [BZ #13629]
73016         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
73017         value between 1.0 and 2.0 and smaller part has absolute value less
73018         than 1.0.
73019         * math/s_clog10.c (__clog10): Likewise.
73020         * math/s_clog10f.c (__clog10f): Likewise.
73021         * math/s_clog10l.c (__clog10l): Likewise.
73022         * math/s_clogf.c (__clogf): Likewise.
73023         * math/s_clogl.c (__clogl): Likewise.
73024         * math/libm-test.inc (clog_test): Add more tests.
73025         (clog10_test): Likewise.
73026         * sysdeps/i386/fpu/libm-test-ulps: Update.
73027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73028
73029 2012-07-31  Florian Weimer  <fweimer@redhat.com>
73030
73031         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
73032         Exit with zero in case no suitable GID is found, and write a
73033         message to standard error.
73034
73035 2012-07-30  Roland McGrath  <roland@hack.frob.com>
73036
73037         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
73038         rather than to 1.
73039         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
73040         (MAXPATHLEN): Removed.
73041         (NOGROUP, NODEV): New macros.
73042         (setbit, clrbit, isset, isclr): New macros.
73043         (howmany, roundup, powerof2): New macros.
73044         (DEV_BSIZE): New macro.
73045
73046         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
73047         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
73048
73049         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
73050         definition on [!__NO_LONG_DOUBLE_MATH].
73051
73052         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
73053         PTR_MANGLE and PTR_DEMANGLE.
73054
73055         * socket/accept4.c (accept4): Rename to __libc_accept4.
73056         Define accept4 as a weak alias.
73057
73058         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
73059         on [_DIRENT_HAVE_D_TYPE].
73060         * io/ftw.c (ftw_dir): Likewise.
73061
73062         * io/xmknod.c (__xmknod): Don't check PATH for being null.
73063
73064         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
73065
73066         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
73067         Use the BSD numbers rather than the arbitrary ones we had.
73068         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
73069         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
73070         (SIGXCPU, SIGXFSZ): New macros.
73071         (_NSIG): Now 32.
73072
73073         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
73074         initializer on [_LIBC_REENTRANT].
73075
73076         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
73077         definitions inside [_POSIX_MAPPED_FILES].
73078
73079         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
73080
73081         * dirent/opendir.c: Include <fcntl.h>.
73082
73083         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
73084         (__libc_getspecific): Likewise.
73085         (__libc_key_create): Likewise.
73086
73087         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
73088         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
73089         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
73090         (tmpfile64): Define as alias.
73091         * sysdeps/wordsize-64/tmpfile.c: File removed.
73092         * sysdeps/wordsize-64/tmpfile64.c: File removed.
73093         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
73094         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
73095
73096         * stdio-common/vfscanf.c: Include <stdbool.h>.
73097         * nss/makedb.c: Likewise.
73098         * stdio-common/_i18n_number.h: Likewise.
73099         * argp/argp-help.c: Likewise.
73100         * posix/wordexp.c: Likewise.
73101         * sysdeps/posix/spawni.c: Likewise.
73102         * nss/nss_files/files-initgroups.c: Likewise.
73103         * stdio-common/reg-modifier.c: Include <stdlib.h>.
73104         * nss/nss_files/files-initgroups.c: Likewise.
73105         * nss/nss_db/db-netgrp.c: Likewise.
73106         * nss/nss_db/db-initgroups.c: Likewise.
73107         * io/fchmodat.c: Include <sys/stat.h>.
73108
73109         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
73110         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
73111
73112         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
73113         [HAVE_MMAP].
73114
73115         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
73116         Add multiple inclusion protection.
73117
73118 2012-07-27  David S. Miller  <davem@davemloft.net>
73119
73120         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73121
73122 2012-07-27  Gary Benson  <gbenson@redhat.com>
73123
73124         [BZ #14298]
73125         * elf/rtld.c: Include <stap-probe.h>.
73126         (dl_main): Added static probes "init_start" and "init_complete".
73127         * elf/dl-load.c: Include <stap-probe.h>.
73128         (lose): Take new parameter "nsid".
73129         Added static probe "map_failed".
73130         (_dl_map_object_from_fd): Pass namespace id to lose.
73131         Added static probe "map_start".
73132         (open_verify): Pass namespace id to lose.
73133         * elf/dl-open.c: Include <stap-probe.h>.
73134         (dl_open_worker) Added static probes "map_complete", "reloc_start"
73135         and "reloc_complete".
73136         * elf/dl-close.c: Include <stap-probe.h>.
73137         (_dl_close_worker): Added static probes "unmap_start" and
73138         "unmap_complete".
73139         * elf/rtld-debugger-interface.txt: New file documenting the above.
73140
73141 2012-07-26  Roland McGrath  <roland@hack.frob.com>
73142
73143         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
73144         rather than a string variable.
73145         * sunrpc/rpc_main.c (h_output): Likewise.
73146         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
73147
73148 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
73149
73150         * inet/check_native.c: New file.
73151
73152 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
73153
73154         [BZ #13629]
73155         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
73156         if larger part has absolute value 1.0.
73157         * math/s_clog10.c (__clog10): Likewise.
73158         * math/s_clog10f.c (__clog10f): Likewise.
73159         * math/s_clog10l.c (__clog10l): Likewise.
73160         * math/s_clogf.c (__clogf): Likewise.
73161         * math/s_clogl.c (__clogl): Likewise.
73162         * math/libm-test.inc (clog_test): Add more tests.
73163         (clog10_test): Likewise.
73164         * sysdeps/i386/fpu/libm-test-ulps: Update.
73165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73166
73167         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
73168         (pltexit): Likewise.
73169         (La_regs): Likewise.
73170         (La_retval): Likewise.
73171         (int_retval): Likewise.
73172         Update #error for removed macros to refer only to definitions in
73173         tst-audit.h.
73174         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
73175         macro.
73176         (pltexit): Likewise.
73177         (La_regs): Likewise.
73178         (La_retval): Likewise.
73179         (int_retval): Likewise.
73180         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
73181         macro.
73182         (pltexit): Likewise.
73183         (La_regs): Likewise.
73184         (La_retval): Likewise.
73185         (int_retval): Likewise.
73186         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
73187         macro.
73188         (pltexit): Likewise.
73189         (La_regs): Likewise.
73190         (La_retval): Likewise.
73191         (int_retval): Likewise.
73192         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
73193         macro.
73194         (pltexit): Likewise.
73195         (La_regs): Likewise.
73196         (La_retval): Likewise.
73197         (int_retval): Likewise.
73198         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
73199         macro.
73200         (pltexit): Likewise.
73201         (La_regs): Likewise.
73202         (La_retval): Likewise.
73203         (int_retval): Likewise.
73204         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
73205         macro.
73206         (pltexit): Likewise.
73207         (La_regs): Likewise.
73208         (La_retval): Likewise.
73209         (int_retval): Likewise.
73210         * sysdeps/generic/tst-audit.h: Update comment to refer only to
73211         macro definitions in tst-audit.h.
73212         * sysdeps/i386/tst-audit.h: New file.
73213         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
73214         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
73215         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
73216         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
73217         * sysdeps/sh/tst-audit.h: Likewise.
73218         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
73219         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
73220         * sysdeps/x86_64/tst-audit.h: Likewise.
73221
73222 2012-07-26  Andreas Jaeger  <aj@suse.de>
73223
73224         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
73225         ptrace.
73226
73227         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
73228         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
73229         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
73230         PTRACE_O_MASK.
73231         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
73232         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
73233         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
73234
73235         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
73236         value.
73237
73238         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
73239         _sigsys.
73240         (si_call_addr, si_syscall, si_arch): Define new macro.
73241         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
73242         _sigsys.
73243         (si_call_addr, si_syscall, si_arch): Define new marcro.
73244         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
73245         _sigsys.
73246         (si_call_addr, si_syscall, si_arch): Define new macro.
73247         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
73248         _sigsys.
73249         (si_call_addr, si_syscall, si_arch): Define new macro.
73250
73251 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73252
73253         [BZ #13717]
73254         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73255         Change to 2.4.21 where previously 2.4.1.
73256         * sysdeps/unix/sysv/linux/configure: Regenerated.
73257         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
73258         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
73259         Linux kernel version.
73260         (__ASSUME_STD_AUXV): Remove.
73261         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
73262         kernel version.
73263         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
73264         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
73265         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
73266         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
73267         (__ASSUME_NETLINK_SUPPORT): Likewise.
73268         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
73269         (__no_netlink_support): Remove conditional definition.
73270         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
73271         Remove.
73272         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73273         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
73274         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
73275         (if_nameindex_ioctl): Remove.
73276         (if_nameindex_netlink): Do not handle __no_netlink_support.
73277         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73278         code.
73279         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
73280         Remove conditional code.
73281         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73282         code.
73283         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
73284         unconditional.
73285         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73286         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
73287         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
73288         Remove.
73289         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
73290         [!__ASSUME_STD_AUXV]: Remove conditional code.
73291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
73292         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
73293         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
73294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
73295         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
73296         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73297         code.
73298         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
73300         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
73301         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73302         conditional code.
73303         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
73305         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73306         code.
73307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
73308         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73309         conditional code.
73310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
73311         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73312         code unconditional.
73313         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73314         conditional code.
73315         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73316         unconditional.
73317         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73318         conditional code.
73319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
73320         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73321         unconditional.
73322         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73323         conditional code.
73324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
73325         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73326         code unconditional.
73327         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73328         conditional code.
73329         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73330         unconditional.
73331         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73332         conditional code.
73333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
73334         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73335         code unconditional.
73336         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73337         conditional code.
73338         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73339         unconditional.
73340         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73341         conditional code.
73342
73343 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
73344
73345         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
73346         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
73347         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
73348         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
73349         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
73350         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
73351         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
73352         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
73353         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
73354         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
73355         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
73356         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
73357         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
73358         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
73359         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
73360         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
73361         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
73362         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
73363         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
73364         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
73365         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
73366         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
73367         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
73368
73369 2012-07-25  Florian Weimer  <fweimer@redhat.com>
73370
73371         * Versions.def: Add GLIBC_2.17.
73372         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
73373         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
73374         Introduce __libc_secure_getenv.
73375         * stdlib/Versions (2.17): Add secure_getenv
73376         (GLIBC_PRIVATE): Add __libc_secure_getenv.
73377         * stdlib/secure-getenv.c: Rename __secure_getenv to
73378         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
73379         symbol __secure_getenv for GLIBC_2.0.
73380         * stdlib/tst-secure-getenv.c: New.
73381         * stdlib/Makefile (tests): Add testcase.
73382         * manual/startup.texi (Environment Access): Document
73383         secure_getenv.
73384         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
73385         __libc_secure_getenv.
73386         * inet/ruserpass.c (ruserpass): Likewise.
73387         * malloc/mtrace.c (mtrace): Likewise.
73388         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
73389         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
73390         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
73391         * sysdeps/posix/tempname.c: Likewise.  Evaluate
73392         HAVE_SECURE_GETENV.
73393         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
73394         __secure_getenv to __libc_secure_getenv.
73395         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
73396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
73397         Likewise.
73398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
73399         Likewise.
73400         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
73401         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
73402         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
73403         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
73404         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
73405         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
73406         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
73407
73408 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73409
73410         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
73411         (struct La_i86_retval): Likewise.
73412         (struct La_x86_64_regs): Likewise.
73413         (struct La_x86_64_retval): Likewise.
73414         (struct La_x32_regs): Likewise.
73415         (struct La_x32_retval): Likewise.
73416         (struct La_ppc32_regs): Likewise.
73417         (struct La_ppc32_retval): Likewise.
73418         (struct La_ppc64_regs): Likewise.
73419         (struct La_ppc64_retval): Likewise.
73420         (struct La_sh_regs): Likewise.
73421         (struct La_sh_retval): Likewise.
73422         (struct La_s390_32_regs): Likewise.
73423         (struct La_s390_32_retval): Likewise.
73424         (struct La_s390_64_regs): Likewise.
73425         (struct La_s390_64_retval): Likewise.
73426         (struct La_sparc32_regs): Likewise.
73427         (struct La_sparc32_retval): Likewise.
73428         (struct La_sparc64_regs): Likewise.
73429         (struct La_sparc64_retval): Likewise.
73430         (struct audit_ifaces): Remove architecture-specific pltenter and
73431         pltexit members.
73432         * sysdeps/i386/ldsodefs.h: New file.
73433         * sysdeps/powerpc/ldsodefs.h: Likewise.
73434         * sysdeps/s390/ldsodefs.h: Likewise.
73435         * sysdeps/sh/ldsodefs.h: Likewise.
73436         * sysdeps/sparc/ldsodefs.h: Likewise.
73437         * sysdeps/x86_64/ldsodefs.h: Likewise.
73438
73439 2012-07-25  Marek Polacek  <polacek@redhat.com>
73440
73441         [BZ #6808]
73442         * math/libm-test.inc (yn_test): Add another test.
73443         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
73444         to ERANGE when the result is +-Inf.
73445         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
73446         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
73447         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
73448         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
73449
73450 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
73451
73452         * conform/data/time.h-data (NULL): Use macro-constant.  Require
73453         equal to 0.
73454         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
73455         clock_t.
73456         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
73457
73458 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
73459
73460         * configure.in <sysdeps resolving>: Correct printing
73461         Implies_before.
73462         * configure: Regenerate.
73463
73464 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
73465
73466         * math/w_ilogb.c: Include <limits.h>.
73467         * math/w_ilogbl.c: Likewise.
73468
73469 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
73470
73471         * manual/lang.texi (__va_copy): Document primarily as ISO C99
73472         va_copy.  Document allowing for unavailable va_copy only as
73473         pre-C99 compatibility.
73474         * manual/string.texi (Copying and Concatenation): Use va_copy
73475         instead of __va_copy in concat example.
73476
73477 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
73478
73479         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
73480         (__sendto): Use create_address_port.  Initialize APORT and deallocate
73481         it if not null.
73482
73483         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
73484         with O_NOLINK passed to __file_name_lookup.
73485
73486         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
73487         with O_NOLINK passed to __file_name_lookup.
73488
73489         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
73490         negative N or less than NGIDS.
73491
73492         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
73493         type to string_t.  Set ERANGE as errno and return it if NAME is not big
73494         enough.  Use memcpy instead of strncpy.
73495
73496 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
73497
73498         * elf/Makefile (check-data): Remove.
73499         (localplt.data): New vpath directive.
73500         ($(objpfx)check-localplt.out): Use localplt.data from vpath
73501         instead of $(check-data).
73502         * scripts/data/localplt-generic.data: Move to ...
73503         * sysdeps/generic/localplt.data: ... here.
73504         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
73505         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
73506         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
73507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
73508         ... here.
73509         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
73510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
73511         ... here.
73512         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
73513         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
73514         ... here.
73515         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
73516         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
73517         ... here.
73518         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
73519         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
73520         ... here.
73521         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
73522         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
73523         ... here.
73524
73525 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73526
73527         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
73528         PPC32 and PPC64 files.
73529         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
73530         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
73531
73532 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73533
73534         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
73535         __makecontext_ret to ...
73536         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
73537         ... here and call exit if uc_link is NULL.  New file.
73538         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
73539         __makecontext_ret.S.
73540         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
73541         __makecontext_ret to ...
73542         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
73543         ... here and call exit if uc_link is NULL.  New file.
73544         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
73545         __makecontext_ret.S.
73546
73547 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73548
73549         * elf/elf.h (R_390_IRELATIVE): New definition.
73550         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
73551         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
73552         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
73553         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
73554         (elf_machine_lazy_rel): Likewise.
73555         * sysdeps/s390/dl-irel.h: New file.
73556         * sysdeps/s390/s390-64/memcpy.S: New asm code.
73557         * sysdeps/s390/s390-64/memset.S: New asm code.
73558         * sysdeps/s390/s390-64/memcmp.S: New asm code.
73559         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
73560         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
73561         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
73562         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
73563         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
73564         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
73565         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
73566         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
73567         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
73568         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
73569         * sysdeps/s390/s390-32/memcpy.S: New asm code.
73570         * sysdeps/s390/s390-32/memset.S: New asm code.
73571         * sysdeps/s390/s390-32/memcmp.S: New asm code.
73572
73573 2012-07-17  Marek Polacek  <polacek@redhat.com>
73574
73575         [BZ #14349]
73576         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
73577         * sysdeps/s390/s390-64/configure.in: Likewise.
73578         * sysdeps/sparc/configure.in: Likewise.
73579         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
73580         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
73581         * sysdeps/i386/configure.in: Likewise.
73582         * sysdeps/x86_64/configure.in: Likewise.
73583         * sysdeps/sh/configure.in: Likewise.
73584         * sysdeps/s390/s390-32/configure: Regenerated.
73585         * sysdeps/s390/s390-64/configure: Likewise.
73586         * sysdeps/x86_64/configure: Likewise.
73587         * sysdeps/sh/configure: Likewise.
73588         * sysdeps/powerpc/powerpc64/configure: Likewise.
73589         * sysdeps/powerpc/powerpc32/configure: Likewise.
73590         * sysdeps/sparc/configure: Likewise.
73591         * sysdeps/i386/configure: Likewise.
73592
73593         * elf/dl-open.c: Comment fixes.
73594
73595 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
73596
73597         * Makefile [CXX] (check-data): Remove.
73598         [CXX] (c++-types.data): New vpath directive.
73599         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
73600         vpath.  Do not allow for C++ type data being missing.
73601         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
73602         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
73603         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
73604         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
73605         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
73606         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
73607         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
73608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
73609         ... here.
73610         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
73611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
73612         ... here.
73613         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
73614         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
73615         ... here.
73616         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
73617         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
73618         ... here.
73619         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
73620         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
73621         ... here.
73622         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
73623         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
73624         ... here.
73625         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
73626         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
73627         ... here.
73628         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
73629         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
73630
73631         * elf/tls-macros.h (TLS_LE): Move architecture-specific
73632         definitions to architecture-specific files.
73633         (TLS_IE): Likewise.
73634         (TLS_LD): Likewise.
73635         (TLS_GD): Likewise.
73636         * sysdeps/i386/tls-macros.h: New file.
73637         * sysdeps/powerpc/tls-macros.h: Likewise.
73638         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
73639         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
73640         * sysdeps/sh/tls-macros.h: Likewise.
73641         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
73642         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
73643         * sysdeps/x86_64/tls-macros.h: Likewise.
73644
73645 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
73646
73647         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
73648         zero value for regular exit case.
73649
73650         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
73651         (__start_context): Preserve zero value for regular exit case.
73652
73653 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
73654             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73655
73656         * manual/setjmp.texi (setcontext): Clarify normal process
73657         termination when uc_link is the null pointer.
73658         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
73659         exit call.
73660
73661 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
73662
73663         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
73664         preprocessor.  Test for each exception mask separately.
73665
73666 2012-07-16  Andreas Jaeger  <aj@suse.de>
73667
73668         * po/ru.po: Update from translation team.
73669
73670 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
73671
73672         * conform/data/string.h-data (NULL): Use macro-constant.  Require
73673         equal to 0.
73674         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
73675         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
73676         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
73677         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
73678         [ISO || ISO99 || ISO11] (*_t): Do not allow.
73679
73680 2012-07-13  Andreas Jaeger  <aj@suse.de>
73681
73682         * po/fr.po: Update from translation team.
73683
73684 2012-07-12  Marek Polacek  <polacek@redhat.com>
73685
73686         [BZ #14173]
73687         * math/libm-test.inc (yn_test): Add test for BZ #14173.
73688         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
73689         loop condition.
73690
73691 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
73692
73693         [BZ #13717]
73694         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73695         Change to 2.4.1 where previously 2.4.0.
73696         * sysdeps/unix/sysv/linux/configure: Regenerated.
73697         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
73698         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
73699         version.
73700         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
73701         (__ASSUME_AT_CLKTCK): Remove.
73702         (__ASSUME_AT_PAGESIZE): Likewise.
73703         (__ASSUME_AT_XID): Likewise.
73704         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
73705         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
73706         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
73707         unconditionally.
73708         (HAVE_AUX_PAGESIZE): Likewise.
73709         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
73710         [__ASSUME_AT_CLKTCK]: Make code unconditional.
73711         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
73712
73713 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
73714
73715         [BZ #14307]
73716         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
73717         the temporary buffer used to invoke __gethostbyname2_r,
73718         __gethostbyaddr_r and gethostbyname4_r to make room for struct
73719         host_data / struct gaih_addrtuple.
73720         * resolv/nss_dns/dns-host.c (global scope): Move definition of
73721         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
73722         header file nss/nsswitch.h.
73723         * nss/nsswitch.h (global scope): Add definition of implementation
73724         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
73725         resolv/nss_dns/dns-host.c).
73726
73727 2012-07-11  Andreas Jaeger  <aj@suse.de>
73728
73729         * po/fr.po: Update from translation team.
73730
73731         * po/sv.po: Update from translation team
73732         * po/fr.po: Another update from translation team.
73733
73734 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73735
73736         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
73737         for subnormals or multiply small sinh result by itself.
73738         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
73739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73740
73741 2012-07-11  David S. Miller  <davem@davemloft.net>
73742
73743         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73744
73745 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
73746
73747         [BZ #14347]
73748         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
73749         (INTERNAL_MARK): Shift it here.
73750
73751 2012-07-10  Marek Polacek  <polacek@redhat.com>
73752
73753         [BZ #14151]
73754         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
73755         libc_cv_asm_global_directive with .globl.
73756         * configure: Regenerated.
73757         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
73758         with .globl.
73759         * sysdeps/i386/configure: Regenerated.
73760         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
73761         with .globl.
73762         * sysdeps/x86_64/configure: Regenerated.
73763         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
73764         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
73765         * elf/tst-unique2mod2.c: Likewise.
73766         * elf/tst-unique2mod1.c: Likewise.
73767         * elf/tst-unique1mod2.c: Likewise.
73768         * elf/tst-unique1mod1.c: Likewise.
73769         * sysdeps/s390/s390-32/sysdep.h: Likewise.
73770         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
73771         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73772         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
73773         * sysdeps/mach/sysdep.h: Likewise.
73774         * sysdeps/i386/sysdep.h: Likewise.
73775         * sysdeps/i386/i386-mcount.S: Likewise.
73776         * sysdeps/x86_64/_mcount.S: Likewise.
73777         * sysdeps/x86_64/sysdep.h: Likewise.
73778         * sysdeps/sh/_mcount.S: Likewise.
73779         * sysdeps/sh/sysdep.h: Likewise.
73780         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
73781         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
73782         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
73783         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
73784         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
73785         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
73786         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
73787         * locale/localeinfo.h: Likewise.
73788         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
73789         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
73790
73791 2012-07-09  Roland McGrath  <roland@hack.frob.com>
73792
73793         [BZ #14336]
73794         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
73795         system".
73796         * manual/message.texi (The Uniforum approach): Likewise.
73797         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
73798         (glibc iconv Implementation): Likewise.
73799
73800 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
73801
73802         [BZ #14337]
73803         * math/s_clog.c (__clog): Avoid scaling a value down where that
73804         could result in underflow.
73805         * math/s_clog10.c (__clog10): Likewise.
73806         * math/s_clog10f.c (__clog10f): Likewise.
73807         * math/s_clog10l.c (__clog10l): Likewise.
73808         * math/s_clogf.c (__clogf): Likewise.
73809         * math/s_clogl.c (__clogl): Likewise.
73810         * math/libm-test.inc (clog_test): Add more tests.
73811         (clog10_test): Likewise.
73812         * sysdeps/i386/fpu/libm-test-ulps: Update.
73813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73814
73815 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
73816
73817         [BZ #14283]
73818         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
73819         by 7 not 8 to examine high bit of fractional part.
73820
73821         [BZ #14042]
73822         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
73823         for call to __mcount_internal.
73824         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
73825         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
73826         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
73827
73828 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
73829
73830         [BZ #14154]
73831         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
73832         approximation for values within 0x1p-13f of an odd multiple of
73833         pi/4.
73834         * math/libm-test.inc (tan_test): Do not allow spurious underflow
73835         exception.  Add more tests.
73836         * sysdeps/i386/fpu/libm-test-ulps: Update.
73837
73838         [BZ #6778]
73839         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
73840         inputs and return -1 for them.  Do not check for +Inf in case not
73841         reachable for +Inf.
73842         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
73843         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
73844         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
73845         and return -1 for them.  Do not check for +Inf in case not
73846         reachable for +Inf.
73847         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
73848         define.
73849         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
73850         and return -1 for them.  Do not check for +Inf in case not
73851         reachable for +Inf.
73852         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
73853         spurious underflow.
73854         * sysdeps/i386/fpu/libm-test-ulps: Update.
73855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73856
73857 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
73858
73859         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
73860
73861 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
73862
73863         [BZ #14157]
73864         [BZ #14331]
73865         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
73866         could result in spurious underflow.  Scale down values above
73867         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
73868         * math/s_csqrtf.c (__csqrtf): Likewise.
73869         * math/s_csqrtl.c (__csqrtl): Likewise.
73870         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
73871         spurious underflow.
73872         * sysdeps/i386/fpu/libm-test-ulps: Update.
73873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73874
73875 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
73876
73877         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
73878         xopen-msg.sed.
73879         * catgets/xopen-msg.awk: New file.
73880         * catgets/xopen-msg.sed: Removed.
73881
73882         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
73883         po2text.sed.
73884         * intl/po2test.awk: New file.
73885         * intl/po2test.sed: Removed.
73886
73887 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
73888
73889         [BZ #14328]
73890         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
73891         or multiply small sinh result by itself.
73892         * math/s_ctanf.c (__ctanf): Likewise.
73893         * math/s_ctanh.c (__ctanh): Likewise.
73894         * math/s_ctanhf.c (__ctanhf): Likewise.
73895         * math/s_ctanhl.c (__ctanhl): Likewise.
73896         * math/s_ctanl.c (__ctanl): Likewise.
73897         * math/libm-test.inc (ctan_test_tonearest): New function.
73898         (ctan_test_towardzero): Likewise.
73899         (ctan_test_downward): Likewise.
73900         (ctan_test_upward): Likewise.
73901         (ctanh_test_tonearest): Likewise.
73902         (ctanh_test_towardzero): Likewise.
73903         (ctanh_test_downward): Likewise.
73904         (ctanh_test_upward): Likewise.
73905         (main): Call these new functions.
73906         * sysdeps/i386/fpu/libm-test-ulps: Update.
73907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73908
73909 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
73910
73911         * .gitignore: Delete /ports entry.
73912
73913 2012-07-03  Andreas Jaeger  <aj@suse.de>
73914
73915         * po/bg.po: Update from translation team.
73916         * po/cs.po: Likewise.
73917         * po/de.po: Likewise.
73918         * po/hr.po: Likewise.
73919         * po/nl.pl: Likewise.
73920         * po/pl.po: Likewise.
73921         * po/vi.po: Likewise.
73922
73923 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
73924
73925         * Makeconfig [!+link] (+link-before-libc): New variable.
73926         [!+link] (+link-after-libc): Likewise.
73927         [!+link] (+link-tests): Likewise.
73928         [!+link] (+link): Define in terms of $(+link-before-libc) and
73929         $(+link-after-libc).
73930         [!+link-static] (+link-static-before-libc): New variable.
73931         [!+link-static] (+link-static-after-libc): Likewise.
73932         [!+link-static] (+link-static-tests): Likewise.
73933         [!+link-static] (+link-static): Define in terms of
73934         $(+link-static-before-libc) and $(+link-static-after-libc).
73935         [build-shared] (link-libc-before-gnulib): New variable.
73936         [build-shared] (link-libc-tests): Likewise.
73937         [build-shared] (link-libc): Define in terms of
73938         $(link-libc-before-gnulib).
73939         [!build-shared] (link-libc-tests): New variable.
73940         (link-libc-static-tests): New variable.
73941         [!gnulib] (gnulib-arch): New variable.
73942         [!gnulib] (gnulib-tests): Likewise.
73943         [!gnulib] (static-gnulib-arch): Likewise.
73944         [!gnulib] (static-gnulib-tests): Likewise.
73945         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
73946         Define with "=" instead of ":=".
73947         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
73948         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
73949         * Rules (binaries-all-notests): New variable.
73950         (binaries-all-tests): Likewise.
73951         (binaries-static-notests): Likewise.
73952         (binaries-static-tests): Likewise.
73953         (binaries-all): Define using $(binaries-all-notests) and
73954         $(binaries-all-tests).
73955         (binaries-static): Define using $(binaries-static-notests) and
73956         $(binaries-static-tests).
73957         (binaries-shared-tests): New variable.
73958         (binaries-shared-notests): Likewise.
73959         (binaries-shared): Remove variable.
73960         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
73961         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
73962         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
73963         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
73964         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
73965         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
73966         * elf/Makefile (sln-modules): New variable.
73967         (extra-objs): Add $(sln-modules:=.o).
73968         (ldconfig-modules): Add static-stubs.
73969         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
73970         * elf/static-stubs.c: New file.
73971
73972         [BZ #14283]
73973         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
73974         by 7 not 8 to examine high bit of fractional part.  Use volatile
73975         variables when splitting into final array of floats if
73976         __FLT_EVAL_METHOD__ != 0.
73977         * math/libm-test.inc (cos_test): Add another test.
73978         (sin_test): Likewise.
73979         * sysdeps/i386/fpu/libm-test-ulps: Update.
73980
73981         [BZ #14273]
73982         * math/libm-test.inc (cosh_test): Add more tests.
73983
73984         * version.h (RELEASE): Set to "development".
73985         (VERSION): Set to "2.16.90".
73986
73987 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
73988
73989         * NEWS: Update copyright. Remove last-updated date.
73990         Mention math library bug fixes and timezone data changes.
73991         * README: Mention GNU/Hurd, x32, and HPPA support status.
73992
73993 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
73994
73995         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
73996
73997 2012-06-27  Andreas Jaeger  <aj@suse.de>
73998
73999         * manual/contrib.texi (Contributors): Add Samuel Thibault.
74000
74001 2012-06-25  Andreas Jaeger  <aj@suse.de>
74002
74003         * sysdeps/s390/fpu/libm-test-ulps: Update.
74004
74005 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
74006             Thomas Schwinge  <thomas@codesourcery.com>
74007
74008         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
74009         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
74010         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
74011         fanotify_mark.
74012
74013 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
74014
74015         * sysdeps/mach/start.c: Remove file.
74016         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
74017         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
74018         * sysdeps/sh/init-first.c: Likewise.
74019
74020         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
74021         registers for frame unwinding purposes, add CFI directives.
74022         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
74023         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
74024         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
74025         Likewise.
74026
74027         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
74028         __fortify_fail returning.
74029         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
74030
74031         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
74032         sysdeps/sh/____longjmp_chk.S.
74033         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
74034         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
74035         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
74036         (gen-as-const-headers): Append sigaltstack-offsets.sym.
74037
74038         * sysdeps/sh/abort-instr.h: New file.
74039         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
74040         process in case exit returns.
74041
74042         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
74043         initialize the GOT register before use.
74044
74045         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
74046         calculation of ARGC > 4.
74047
74048         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
74049         meaningful names to some local labels.
74050
74051 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
74052             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74053
74054         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
74055         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
74056         (__arch_compare_and_exchange_val_16_acq): Likewise.
74057         (__arch_compare_and_exchange_val_32_acq): Likewise.
74058         (atomic_exchange_and_add): Fix gUSA sequence.
74059         (atomic_add): Likewise.
74060         (atomic_add_negative): Likewise.
74061         (atomic_add_zero): Likewise.
74062         (atomic_bit_test_set): Likewise.
74063
74064 2012-06-22  Andreas Schwab  <schwab@redhat.com>
74065
74066         [BZ #13579]
74067         * include/link.h (struct link_map): Add l_free_initfini.
74068         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
74069         l_initfini.
74070         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
74071         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
74072         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
74073         set.
74074
74075 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
74076
74077         * configure.in: Use AC_LANG_SOURCE.
74078         * configure: Regenerate.
74079
74080 2012-06-22  Roland McGrath  <roland@hack.frob.com>
74081
74082         * configure.in (libc_cv_localstatedir): New substituted variable.
74083         * configure: Regenerated.
74084         * config.make.in (localstatedir): New variable, substituted from
74085         libc_cv_localstatedir.
74086         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
74087         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
74088         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
74089         * sysdeps/gnu/configure: Regenerated.
74090
74091 2012-06-21  Jeff Law  <law@redhat.com>
74092
74093         [BZ #14277]
74094         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
74095         free.  Simplify list management for _LIBC case.
74096
74097 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
74098
74099         [BZ #14273]
74100         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
74101         Clear sign bit of 64-bit integer value before comparing against
74102         overflow value.
74103
74104         * sysdeps/mach/configure: Regenerated.
74105
74106 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
74107
74108         [BZ #14278]
74109         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
74110
74111 2012-06-21  Jeff Law  <law@redhat.com>
74112
74113         [BZ #13882]
74114         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
74115         uint16_t for elements in the "seen" array to avoid char overflows.
74116         * elf/dl-fini.c (_dl_sort_fini): Likewise.
74117         * elf/dl-open.c (dl_open_worker): Likewise.
74118
74119 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
74120
74121         * scripts/list-sources.sh: Scan PORTS for translations.
74122         * po/libc.pot: Regenerated.
74123
74124 2012-06-21  Andreas Jaeger  <aj@suse.de>
74125
74126         [BZ #12194]
74127         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
74128         warning.
74129         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
74130         * bits/byteswap-16.h (__bswap_16): Likewise.
74131         * bits/byteswap.h (__bswap_constant_16): Likewise.
74132
74133 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
74134
74135         [BZ #14117]
74136         * sysdeps/i386/fpu_control.h: Removed.
74137         * sysdeps/x86_64/fpu_control.h: Moved to ...
74138         * sysdeps/x86/fpu_control.h: Here.
74139
74140         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
74141         (_FPU_SETCW): Likewise.
74142
74143 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
74144
74145         [BZ #14117]
74146         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
74147         * sysdeps/x86/fpu/bits/mathinline.h: This.
74148         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
74149
74150         [BZ #14050]
74151         [BZ #14117]
74152         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
74153         functions if __x86_64__ is defined.
74154
74155 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
74156
74157         * string/endian.h: Add !__ASSEMBLER__ condition for including
74158         conversion interfaces.
74159
74160 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
74161
74162         [BZ #14241]
74163         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
74164         of ABS(x) in calculating zero to negative powers other than odd
74165         integers.
74166         * math/libm-test.inc (pow_test): Add more tests.
74167
74168 2012-06-15  Andreas Jaeger  <aj@suse.de>
74169
74170         * manual/contrib.texi (Contributors): Update entry of Liubov
74171         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
74172         Machado Filho.
74173
74174 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
74175
74176         * string/string.h: Add __wur to GNU version of strerror_r.
74177
74178 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
74179
74180         [BZ #14229]
74181         * string/Makefile (tests): Add tst-strtok_r.
74182         * string/tst-strtok_r.c: New file.
74183         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
74184         RAX_LP/RDX_LP on SAVE_PTR.
74185
74186 2012-06-14  Roland McGrath  <roland@hack.frob.com>
74187
74188         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
74189
74190 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
74191
74192         * libm_test.inc (csqrt_test): Allow more spurious underflow
74193         exceptions.
74194         (j0_test): Likewise.
74195         (j1_test): Likewise.
74196         (y0_test): Likewise.
74197         (y1_test): Likewise.
74198
74199 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
74200
74201         * po/Makefile (libc.pot): Use UTF-8 charset.
74202
74203 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
74204
74205         [BZ #14210]
74206         Suppress sign-conversion warning from FD_SET.
74207         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
74208         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
74209         not unsigned long int.
74210         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
74211
74212 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
74213
74214         [BZ #14050]
74215         [BZ #14117]
74216         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
74217         __extern_always_inline instead of __extern_inline.
74218         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
74219         (__signbit): Likewise.
74220         (__signbitl): Support C++ namespace.
74221         (lrintf): New inline function.
74222         (lrint): Likewise.
74223         (llrintf): Likewise.
74224         (llrint): Likewise.
74225         (fmaxf): Likewise.
74226         (fmax): Likewise.
74227         (fminf): Likewise.
74228         (fmin): Likewise.
74229         (rint): Likewise.
74230         (rintf): Likewise.
74231         (ceil): Likewise.
74232         (ceilf): Likewise.
74233         (floor): Likewise.
74234         (floorf): Likewise.
74235         (nearbyint): Likewise.
74236         (nearbyintf): Likewise.
74237
74238 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
74239
74240         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
74241         non-default versions.
74242
74243 2012-06-11  Roland McGrath  <roland@hack.frob.com>
74244
74245         [BZ #14218]
74246         * manual/argp.texi (Argp): Reword argp_parse description slightly.
74247
74248 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
74249
74250         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
74251         (FE_UPWARD, FE_DOWNWARD): Don't define.
74252         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
74253         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74254
74255         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
74256         reading it.
74257         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74258         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
74259
74260 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74261
74262         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
74263         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
74264         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
74265         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
74266
74267 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
74268
74269         [BZ #14117]
74270         * sysdeps/i386/fpu/bits/fenv.h: Removed.
74271         * sysdeps/i386/fpu/Implies: New file.
74272         * sysdeps/x86_64/fpu/Implies: Likewise.
74273         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
74274         * sysdeps/x86/fpu/bits/fenv.h: This.
74275
74276         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
74277         __SSE_MATH__.
74278
74279 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
74280
74281         [BZ #14134]
74282         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
74283         character 0xffff that matches the last element of the
74284         conversion table.
74285
74286 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74287
74288         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
74289         fmodl commit.
74290
74291 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74292
74293         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
74294         values higher than 25.6283.
74295
74296 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74297
74298         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
74299         subnormal exponent extraction and add some __builtin_expect.
74300         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
74301         Fix for subnormal mantissa calculation.
74302
74303 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
74304
74305         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
74306         cpu2 is -1 and errno is not ENOSYS.
74307
74308 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
74309
74310         [BZ #14117]
74311         * sysdeps/i386/i486/bits/string.h: Renamed to ...
74312         * sysdeps/x86/bits/string.h: This.
74313         * sysdeps/x86_64/bits/string.h: Removed.
74314
74315         * sysdeps/i386/i486/bits/string.h: Define inline functions only
74316         if not compiling for x86-64, but compiling for >= i486.
74317
74318         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
74319         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
74320
74321         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
74322         New macro from Linux kernel 3.4.0.
74323         (FP_XSTATE_MAGIC2): Likewise.
74324         (FP_XSTATE_MAGIC2_SIZE): Likewise.
74325         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
74326         (struct _fpx_sw_bytes): New struct.
74327         (struct _xsave_hdr): Likewise.
74328         (struct _ymmh_state): Likewise.
74329         (struct _xstate): Likewise.
74330
74331         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
74332         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
74333         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
74334         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
74335         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
74336         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
74337
74338         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
74339         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
74340         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
74341         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
74342         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
74343         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
74344
74345 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
74346
74347         [BZ #13743]
74348         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
74349         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
74350         (sysdep_headers): Include sys/platform/ppc.h.
74351         * sysdeps/powerpc/test-gettimebase.c: Test for
74352         __ppc_get_timebase() to catch future ISA opcode/insn changes.
74353         * manual/Makefile (appendices): Include platform.texi.
74354         * manual/contrib.texi (Contributors): Update @node pointers.
74355         * manual/maint.texi (Maintenance): Likewise.
74356         (Platform): New node.
74357         * manual/platform.texi: New file.  Document the new features.
74358
74359 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
74360             Jakub Jelinek  <jakub@redhat.com>
74361
74362         [BZ #14188]
74363         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
74364         where __builtin_expect is unavailable.
74365
74366 2012-06-03  David S. Miller  <davem@davemloft.net>
74367
74368         * stdlib/longlong.h: Updated from GCC.
74369
74370 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
74371
74372         [BZ #14042]
74373         * sysdeps/powerpc/powerpc32/mcount.c: New file.
74374         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
74375         __mcount_internal.
74376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
74377         (GLIBC_2.16): Likewise.
74378
74379 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74380
74381         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
74382
74383 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74384
74385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
74386         (default-abi): New variable.
74387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
74388         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
74389         variable.
74390         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
74391         Likewise.
74392         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
74393         Likewise.
74394         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
74395         Likewise.
74396
74397         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
74398         definition.  Document in comment.
74399
74400 2012-06-01  David S. Miller  <davem@davemloft.net>
74401
74402         * stdlib/longlong.h: Updated from GCC.
74403
74404 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74405
74406         [BZ #14117]
74407         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
74408         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
74409         sys/debugreg.h sys/io.h here.
74410         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
74411         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
74412         sys/io.h.
74413         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
74414         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
74415         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
74416         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
74417         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
74418         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
74419
74420         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
74421         Define only if __x86_64__ is defined.
74422
74423 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74424
74425         [BZ #14048]
74426         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
74427         Use int64_t for variable i.
74428         * math/libm-test.inc (fmod_test): Add more tests.
74429
74430         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
74431         z computation is not scheduled after fetestexcept.
74432         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
74433         Use math_force_eval instead of asm to ensure calculation scheduled
74434         before exception test.
74435         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
74436         Ensure a1 + u.d computation is not scheduled after fetestexcept.
74437
74438 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
74439
74440         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
74441         computation is not scheduled after fetestexcept.
74442
74443 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74444
74445         [BZ #14117]
74446         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
74447         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
74448
74449 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74450
74451         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
74452         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
74453
74454 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
74455
74456         [BZ #14117]
74457         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
74458         <bits/wordsize.h>.
74459         (__WCHAR_MIN): Support __WORDSIZE == 64.
74460         (__WCHAR_MAX): Likewise.
74461
74462         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
74463         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
74464
74465         [BZ #14183]
74466         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
74467         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
74468
74469         [BZ #14117]
74470         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
74471         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
74472
74473         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
74474         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
74475
74476         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
74477         Defined to 1 if __x86_64__ isn't defined.
74478         (_STAT_VER_LINUX_OLD): New.
74479         (st_atime): Remove duplicate.
74480         (st_mtime): Likewise.
74481         (st_ctime): Likewise.
74482
74483 2012-05-31  David S. Miller  <davem@davemloft.net>
74484
74485         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
74486         entries.
74487
74488 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
74489
74490         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
74491         gen-libm-test.pl.
74492
74493         [BZ #14132]
74494         * elf/dl-reloc.c: Include <_itoa.h>.
74495         (_dl_reloc_bad_type): Remove use of INTUSE.
74496         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
74497         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
74498         * stdio-common/psiginfo.c (psiginfo): Likewise.
74499         * stdio-common/psignal.c (psignal): Likewise.
74500         * string/strsignal.c (strsignal): Likewise.
74501         * include/signal.h (_sys_siglist): Declare hidden proto.
74502         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
74503         INTVARDEF with libc_hidden_data_def.
74504         * stdio-common/itoa-udigits.c: Likewise.
74505         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
74506         (_itoa_lower_digits_internal): Remove declaration.
74507         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
74508         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
74509         (_sys_sigabbrev_internal): Remove aliases.
74510         (_sys_siglist): Define hidden alias.
74511
74512 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
74513
74514         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74515         bits/sysctl.h.
74516
74517 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
74518
74519         [BZ #14117]
74520         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
74521         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
74522
74523         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
74524         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
74525         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
74526         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
74527         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
74528         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
74529
74530         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
74531         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
74532         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
74533
74534         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
74535         with __addr.
74536         (insw): Likewise.
74537         (insl): Likewise.
74538         (outsb): Likewise.
74539         (outsw): Likewise.
74540         (outsl): Likewise.
74541
74542         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
74543         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
74544         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
74545
74546         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
74547         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
74548         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
74549         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
74550         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
74551         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
74552
74553         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
74554         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
74555
74556         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
74557         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
74558
74559         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
74560         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
74561         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
74562
74563         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
74564         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
74565         to ...
74566         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
74567
74568         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
74569         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
74570         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
74571
74572         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
74573         for x86-64.
74574         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
74575
74576 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
74577
74578         * math/math.h (M_El): Use two more decimal places.
74579         (M_LOG2El): Likewise.
74580         (M_LOG10El): Likewise.
74581         (M_LN2l): Likewise.
74582         (M_LN10l): Likewise.
74583         (M_PIl): Likewise.
74584         (M_PI_2l): Likewise.
74585         (M_PI_4l): Likewise.
74586         (M_1_PIl): Likewise.
74587         (M_2_PIl): Likewise.
74588         (M_2_SQRTPIl): Likewise.
74589         (M_SQRT2l): Likewise.
74590         (M_SQRT1_2l): Likewise.
74591
74592 2012-05-31  David S. Miller  <davem@davemloft.net>
74593
74594         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
74595         values between float registers.
74596         * sysdeps/sparc/sparc64/memset.S: Likewise.
74597         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
74598
74599 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
74600
74601         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
74602         -D_FORTIFY_SOURCE=1.
74603         (CPPFLAGS-tst-longjmp_chk.c): Define.
74604         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
74605         (CPPFLAGS-tst-longjmp_chk2.c): Define.
74606         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
74607         CFLAGS-tst-wchar-h.c.
74608
74609 2012-05-31  Marek Polacek  <polacek@redhat.com>
74610
74611         [BZ #14132]
74612         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
74613         __endmntent_internal): Remove declaration.
74614         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
74615         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
74616         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
74617
74618 2012-05-30  David S. Miller  <davem@davemloft.net>
74619
74620         * sysdeps/sparc/sparc32/soft-fp/q_util.c
74621         (___Q_simulate_exceptions): Use real FP ops rather than writing
74622         into the %fsr.
74623         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
74624         Likewise.
74625
74626 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74627
74628         [BZ #14117]
74629         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
74630         * sysdeps/x86/bits/xtitypes.h: This.
74631
74632         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
74633         * sysdeps/x86/bits/wordsize.h: This.
74634
74635         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
74636         * sysdeps/x86/bits/huge_vall.h: This.
74637
74638         * sysdeps/i386/bits/select.h: Removed.
74639         * sysdeps/x86_64/bits/select.h: Renamed to ...
74640         * sysdeps/x86/bits/select.h: This.
74641
74642         * sysdeps/i386/bits/setjmp.h: Removed.
74643         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
74644         * sysdeps/x86/bits/setjmp.h: This.
74645
74646         * sysdeps/i386/bits/mathdef.h: Removed.
74647         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
74648         * sysdeps/x86/bits/mathdef.h: This.
74649
74650 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
74651
74652         [BZ #14132]
74653         * include/sys/socket.h (__connect_internal)
74654         (__libc_sa_len_internal): Remove declaration.
74655         (__connect, __libc_sa_len): Declare hidden_proto.
74656         (SA_LEN): Remove use of INTUSE.
74657         * socket/connect.c: Add libc_hidden_def.
74658         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
74659         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
74660         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
74661         alias.
74662         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
74663         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
74664         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
74665         of adding _internal alias.
74666
74667 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74668
74669         [BZ #14117]
74670         * sysdeps/i386/bits/link.h: Removed.
74671         * sysdeps/i386/bits/linkmap.h: Likewise.
74672         * sysdeps/x86_64/bits/link.h: Renamed to ...
74673         * sysdeps/x86/bits/link.h: This.
74674         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
74675         * sysdeps/x86/bits/linkmap.h: This.
74676
74677         * sysdeps/i386/bits/endian.h: Removed.
74678         * sysdeps/x86_64/bits/endian.h: Renamed to ...
74679         * sysdeps/x86/bits/endian.h: This.
74680
74681         * sysdeps/i386/bits/byteswap.h: Removed.
74682         * sysdeps/i386/bits/byteswap-16.h: Likewise.
74683         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
74684         * sysdeps/x86/bits/byteswap.h: This.
74685         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
74686         * sysdeps/x86/bits/byteswap-16.h: This.
74687         * sysdeps/i386/Implies: Add x86.
74688         * sysdeps/x86_64/Implies: Likewise.
74689
74690 2012-05-30  David S. Miller  <davem@davemloft.net>
74691
74692         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
74693         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
74694         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
74695         (FP_TRAPPING_EXCEPTIONS): Define.
74696         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
74697         (FP_TRAPPING_EXCEPTIONS): Define.
74698         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
74699         subnormals only when inexact has been signalled or underflow
74700         exceptions are enabled.
74701         (_FP_PACK_CANONICAL): Likewise.
74702
74703 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74704
74705         [BZ #14183]
74706         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
74707         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
74708
74709 2012-05-30  Richard Henderson  <rth@twiddle.net>
74710
74711         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
74712         with #ifndef NOT_IN_libc.
74713
74714         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
74715         marked to avoid plt entry.
74716
74717 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74718
74719         [BZ #14112]
74720         * Makeconfig (default-abi): New macro.
74721         (abi-includes): Likewise.
74722         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
74723         $(abi-$(default-abi)-lib-soname) for soname if defined.
74724         ($(common-objpfx)gnu/lib-names.stmp): Generate from
74725         abi-variants.
74726         * Makefile (installed-stubs): Likewise.
74727         * include/stubs-biarch.h: Removed.
74728         * scripts/lib-names.awk: Only handle one library at a time.
74729         * scripts/soversions.awk: Remove WORDSIZE support.
74730         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
74731         entries.
74732         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
74733         Removed.
74734         (syscall-list-default-condition): Likewise.
74735         (syscall-list-default-condition): Likewise.
74736         (syscall-list-includes): Likewise.
74737         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
74738         syscall-list-* with abi-*.  Handle undefined abi-variants.
74739         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
74740         * sysdeps/unix/sysv/linux/i386/Implies: New file.
74741         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
74742         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
74743         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
74744         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
74745         Removed.
74746         (syscall-list-32-options): Likewise.
74747         (syscall-list-32-condition): Likewise.
74748         (syscall-list-64-options): Likewise.
74749         (syscall-list-64-condition): Likewise.
74750         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
74751         macro.
74752         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
74753         Renamed to ...
74754         (abi-*): This.
74755         (abi-64-ld-soname): New macro.
74756         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
74757         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
74758         Renamed to ...
74759         (abi-*): This.
74760         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
74761         * sysdeps/x86_64/x32/shlib-versions: Likewise.
74762
74763 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
74764
74765         * sysdeps/unix/sysv/linux/kernel-features.h
74766         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
74767         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
74768         include <kernel-features.h>.
74769         [!__NR_ftruncate64]: Remove conditional code.
74770         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74771         [__NR_ftruncate64]: Make code unconditional.
74772         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74773         * sysdeps/unix/sysv/linux/truncate64.c: Do not
74774         include <kernel-features.h>.
74775         [!__NR_ftruncate64]: Remove conditional code.
74776         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74777         [__NR_ftruncate64]: Make code unconditional.
74778         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
74780         include <kernel-features.h>.
74781         [!__NR_ftruncate64]: Remove conditional code.
74782         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74783         [__NR_ftruncate64]: Make code unconditional.
74784         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
74786         include <kernel-features.h>.
74787         [!__NR_ftruncate64]: Remove conditional code.
74788         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74789         [__NR_ftruncate64]: Make code unconditional.
74790         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74791
74792         * configure.in (libc_cv_fpie): Weaken to a compile test using
74793         LIBC_TRY_CC_OPTION.
74794         * configure: Regenerated.
74795
74796 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74797
74798         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
74799         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
74800         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
74801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
74802         Refreshed.
74803         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
74804         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
74805         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
74806         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
74807         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
74808         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
74809         Refreshed.
74810
74811 2012-05-27  David S. Miller  <davem@davemloft.net>
74812
74813         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
74814         (___Q_zero): New.
74815         (__Q_simulate_exceptions): Return void.  Change to simulate
74816         exceptions by writing into the %fsr.
74817         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
74818         (__Qp_handle_exceptions): Likewise.
74819         (numbers): Delete.
74820         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
74821         __Qp_handle_exceptions.
74822         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
74823         __Qp_handle_exceptions.
74824         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
74825         as unused and give dummy FP_RND_NEAREST initializer.
74826         (FP_INHIBIT_RESULTS): Define.
74827         (___Q_simulate_exceptions): Update declaration.
74828         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
74829         formatting.
74830         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
74831         as unused and give dummy FP_RND_NEAREST initializer.
74832         (__Qp_handle_exceptions): Update declaration.
74833         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
74834         formatting.
74835
74836 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
74837
74838         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
74839         the temporary FPU control word.
74840         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
74841         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
74842         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
74843         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74844         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
74845         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
74846         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
74847         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74848         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
74849         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
74850         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
74851
74852 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74853
74854         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
74855         fields.
74856
74857 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
74858
74859         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
74860         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
74861         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
74862         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
74863         Likewise.
74864         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
74865         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
74866         Likewise.
74867
74868 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
74869
74870         * po/h.po: Update from translation team.
74871
74872 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
74873
74874         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
74875
74876         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
74877         handling of denormals.
74878         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
74879         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
74880         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
74881         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
74882         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
74883         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
74884         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
74885         Likewise.
74886
74887 2012-05-26  Marek Polacek  <polacek@redhat.com>
74888
74889         [BZ #14152]
74890         * math/libm-test.inc (fma_test): Don't always expect underflow
74891         exception.
74892
74893 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
74894
74895         [BZ #12416]
74896         * elf/tst-execstack.c: Include stackinfo.h.
74897         (do_test): Adjust test case to ensure that pthread_getattr_np
74898         behaviour remains the same after marking stack executable.
74899
74900 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
74901
74902         * sysdeps/unix/sysv/linux/kernel-features.h
74903         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
74904         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
74905         kernel-features.h.
74906         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
74907         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
74908         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
74909         kernel-features.h.
74910         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
74911         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
74912
74913 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
74914
74915         * configure.in: Define the default includes to being none.
74916         * configure: Regenerated.
74917
74918 2012-05-25  Roland McGrath  <roland@hack.frob.com>
74919
74920         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
74921         * sysdeps/x86_64/setjmp.S: Likewise.
74922         * sysdeps/i386/bsd-setjmp.S: Likewise.
74923         * sysdeps/i386/bsd-_setjmp.S: Likewise.
74924         * sysdeps/i386/setjmp.S: Likewise.
74925         * sysdeps/i386/__longjmp.S: Likewise.
74926         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
74927         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
74928
74929         * include/stap-probe.h: New file.
74930         * configure.in: Handle --enable-systemtap.
74931         * configure: Regenerated.
74932         * config.h.in (USE_STAP_PROBE): New #undef.
74933         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
74934         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
74935         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
74936
74937 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
74938
74939         [BZ #13717]
74940         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
74941         to 2.4.0 where earlier.
74942         * sysdeps/unix/sysv/linux/configure: Regenerated.
74943         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
74944         <kernel-features.h>.
74945         [__ASSUME_32BITUIDS]: Make code unconditional.
74946         [!__ASSUME_32BITUIDS]: Remove conditional code.
74947         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
74948         <kernel-features.h>.
74949         [__ASSUME_32BITUIDS]: Make code unconditional.
74950         [!__ASSUME_32BITUIDS]: Remove conditional code.
74951         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
74952         [__ASSUME_32BITUIDS]: Make code unconditional.
74953         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
74954         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
74955         <kernel-features.h>.
74956         [__ASSUME_32BITUIDS]: Make code unconditional.
74957         [!__ASSUME_32BITUIDS]: Remove conditional code.
74958         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
74959         <kernel-features.h>.
74960         [__ASSUME_32BITUIDS]: Make code unconditional.
74961         [!__ASSUME_32BITUIDS]: Remove conditional code.
74962         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
74963         <kernel-features.h>.
74964         [__ASSUME_32BITUIDS]: Make code unconditional.
74965         [!__ASSUME_32BITUIDS]: Remove conditional code.
74966         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
74967         <kernel-features.h>.
74968         [__ASSUME_32BITUIDS]: Make code unconditional.
74969         [!__ASSUME_32BITUIDS]: Remove conditional code.
74970         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
74971         <kernel-features.h>.
74972         [__ASSUME_32BITUIDS]: Make code unconditional.
74973         [!__ASSUME_32BITUIDS]: Remove conditional code.
74974         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
74975         <kernel-features.h>.
74976         [__ASSUME_32BITUIDS]: Make code unconditional.
74977         [!__ASSUME_32BITUIDS]: Remove conditional code.
74978         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
74979         <kernel-features.h>.
74980         [__ASSUME_32BITUIDS]: Make code unconditional.
74981         [!__ASSUME_32BITUIDS]: Remove conditional code.
74982         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
74983         <kernel-features.h>.
74984         [__ASSUME_32BITUIDS]: Make code unconditional.
74985         [!__ASSUME_32BITUIDS]: Remove conditional code.
74986         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
74987         <kernel-features.h>.
74988         [__ASSUME_32BITUIDS]: Make code unconditional.
74989         [!__ASSUME_32BITUIDS]: Remove conditional code.
74990         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
74991         <kernel-features.h>.
74992         [__ASSUME_32BITUIDS]: Make code unconditional.
74993         [!__ASSUME_32BITUIDS]: Remove conditional code.
74994         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
74995         <kernel-features.h>.
74996         [__NR_setresgid] (__setresgid): Do not declare.
74997         [__ASSUME_32BITUIDS]: Make code unconditional.
74998         [!__ASSUME_32BITUIDS]: Remove conditional code.
74999         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
75000         <kernel-features.h>.
75001         [__NR_setresuid] (__setresuid): Do not declare.
75002         [__ASSUME_32BITUIDS]: Make code unconditional.
75003         [!__ASSUME_32BITUIDS]: Remove conditional code.
75004         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
75005         <kernel-features.h>.
75006         [__ASSUME_32BITUIDS]: Make code unconditional.
75007         [!__ASSUME_32BITUIDS]: Remove conditional code.
75008         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
75009         <kernel-features.h>.
75010         [__ASSUME_32BITUIDS]: Make code unconditional.
75011         [!__ASSUME_32BITUIDS]: Remove conditional code.
75012         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
75013         <kernel-features.h>.
75014         [__ASSUME_32BITUIDS]: Make code unconditional.
75015         [!__ASSUME_32BITUIDS]: Remove conditional code.
75016         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
75017         <kernel-features.h>.
75018         [__ASSUME_32BITUIDS]: Make code unconditional.
75019         [!__ASSUME_32BITUIDS]: Remove conditional code.
75020         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
75021         <kernel-features.h>.
75022         [__ASSUME_32BITUIDS]: Make code unconditional.
75023         [!__ASSUME_32BITUIDS]: Remove conditional code.
75024         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
75025         <kernel-features.h>.
75026         [__ASSUME_32BITUIDS]: Make code unconditional.
75027         [!__ASSUME_32BITUIDS]: Remove conditional code.
75028         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
75029         <kernel-features.h>.
75030         [__ASSUME_32BITUIDS]: Make code unconditional.
75031         [!__ASSUME_32BITUIDS]: Remove conditional code.
75032         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
75033         <kernel-features.h>.
75034         [__ASSUME_32BITUIDS]: Make code unconditional.
75035         [!__ASSUME_32BITUIDS]: Remove conditional code.
75036         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
75037         <kernel-features.h>.
75038         [__ASSUME_32BITUIDS]: Make code unconditional.
75039         [!__ASSUME_32BITUIDS]: Remove conditional code.
75040         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
75041         <kernel-features.h>.
75042         [__ASSUME_32BITUIDS]: Make code unconditional.
75043         [!__ASSUME_32BITUIDS]: Remove conditional code.
75044         * sysdeps/unix/sysv/linux/kernel-features.h
75045         (__ASSUME_SETRESUID_SYSCALL): Remove.
75046         (__ASSUME_SETRESGID_SYSCALL): Likewise.
75047         (__ASSUME_32BITUIDS): Likewise.
75048         (__ASSUME_LDT_WORKS): Likewise.
75049         (__ASSUME_O_DIRECTORY): Likewise.
75050         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
75051         architecture but not kernel version.
75052         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
75053         (__ASSUME_MMAP2_SYSCALL): Likewise.
75054         (__ASSUME_STAT64_SYSCALL): Likewise.
75055         (__ASSUME_IPC64): Likewise.
75056         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
75057         <kernel-features.h>.
75058         [__ASSUME_32BITUIDS]: Make code unconditional.
75059         [!__ASSUME_32BITUIDS]: Remove conditional code.
75060         * sysdeps/unix/sysv/linux/opendir.c: Do not include
75061         <kernel-features.h>.
75062         [__ASSUME_O_DIRECTORY]: Make code unconditional.
75063         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
75064         132096]: Remove conditional code.
75065         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
75066         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
75067         <kernel-features.h>.
75068         [__ASSUME_32BITUIDS]: Make code unconditional.
75069         [!__ASSUME_32BITUIDS]: Remove conditional code.
75070         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
75071         <kernel-features.h>.
75072         [__ASSUME_32BITUIDS]: Make code unconditional.
75073         [!__ASSUME_32BITUIDS]: Remove conditional code.
75074         * sysdeps/unix/sysv/linux/setegid.c: Do not include
75075         <kernel-features.h>.
75076         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
75077         unconditional.
75078         (__setresgid): Do not declare.
75079         [__ASSUME_32BITUIDS]: Make code unconditional.
75080         [!__ASSUME_32BITUIDS]: Remove conditional code.
75081         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
75082         <kernel-features.h>.
75083         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
75084         unconditional.
75085         (__setresuid): Do not declare.
75086         [__ASSUME_32BITUIDS]: Make code unconditional.
75087         [!__ASSUME_32BITUIDS]: Remove conditional code.
75088         * sysdeps/unix/sysv/linux/sh/chown.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/sparc/sparc32/semctl.c: Do not include
75093         <kernel-features.h>.
75094         [__ASSUME_32BITUIDS]: Make code unconditional.
75095         [!__ASSUME_32BITUIDS]: Remove conditional code.
75096
75097 2012-05-25  Richard Henderson  <rth@twiddle.net>
75098
75099         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
75100         dl_hwcap to ifunc resolver.
75101         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
75102         elf_ifunc_invoke.
75103         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
75104         dl_hwcap to ifunc resolver.
75105         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
75106
75107 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75108
75109         [BZ #14153]
75110         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
75111         for |x| <= 2**-26, not 2**-57.
75112         * math/libm-test.inc (acos_test): Do not allow spurious underflow
75113         exception.
75114
75115 2012-05-24  Jeff Law  <law@redhat.com>
75116
75117         * stdio-common/Makefile (tests): Add bug25.
75118         * stdio-common/bug25.c: New test.
75119
75120 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75121
75122         [BZ #13576]
75123         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
75124         multiple of MALLOC_ALIGNMENT in size.
75125         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
75126
75127 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75128
75129         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
75130         Require >= 256.
75131         (FILENAME_MAX): Use macro-int-constant.
75132         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
75133         (_IOFBF): Use macro-int-constant.
75134         (_IOLBF): Likewise.
75135         (_IONBF): Likewise.
75136         (SEEK_CUR): Likewise.
75137         (SEEK_END): Likewise.
75138         (SEEK_SET): Likewise.
75139         (TMP_MAX): Likewise.
75140         (EOF): Use macro-int-constant.  Require < 0.
75141         (NULL): Use macro-constant.  Require == 0.
75142         (stdin): Require type to be FILE *.
75143         (stdout): Likewise.
75144         (stderr): Likewise.
75145         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
75146         macro-int-constant.
75147         (EXIT_SUCCESS): Likewise.
75148         (NULL): Use macro-constant.  Require == 0.
75149         (RAND_MAX): Use macro-int-constant.
75150         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
75151         [C99-based standards] (strtof): Require function.
75152         [C99-based standards] (strtold): Likewise.
75153         [C99-based standards] (strtoll): Likewise.
75154         [C99-based standards] (strtoull): Likewise.
75155         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
75156         [ISO || ISO99 || ISO11] (limits.h): Likewise.
75157         [ISO || ISO99 || ISO11] (math.h): Likewise.
75158         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
75159         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
75160         [ISO || ISO99 || ISO11] (*_t): Do not allow.
75161
75162 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
75163
75164         [BZ #14132]
75165         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
75166         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
75167         * intl/dgettext.c (DCGETTEXT): Likewise.
75168         * intl/gettext.c (DCGETTEXT): Likewise.
75169         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
75170         * posix/regex_internal.h (gettext): Likewise.
75171         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
75172         Remove declaration.
75173         * include/argz.h (__argz_count_internal)
75174         (__argz_stringify_internal): Remove declaration.
75175         (__argz_count, __argz_stringify): Declare hidden proto.
75176         * intl/dcgettext.c: Remove use of INTDEF.
75177         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
75178         * string/argz-stringify.c: Likewise.
75179         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75180         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75181         Declare hidden proto.
75182         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75183         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75184         Declare hidden proto.
75185         * include/stdio.h (__asprintf_internal): Don't declare.
75186         (__asprintf): Don't define as macro.  Declare hidden proto.
75187         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
75188         (__fsetlocking): Declare hidden proto.
75189         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
75190         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
75191         hidden proto.
75192         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
75193         (_IO_setlinebuf): Remove use of INTUSE.
75194         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
75195         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
75196         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
75197         Remove declaration.
75198         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
75199         (_IO_do_flush): Remove use of INTUSE.
75200         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
75201         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
75202         (_IO_adjust_column, _IO_least_wmarker)
75203         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
75204         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
75205         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
75206         (_IO_default_doallocate, _IO_wdefault_doallocate)
75207         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
75208         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
75209         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
75210         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
75211         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
75212         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
75213         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
75214         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
75215         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
75216         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
75217         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
75218         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
75219         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
75220         proto.
75221         (_IO_flush_all_internal, _IO_adjust_column_internal)
75222         (_IO_default_uflow_internal, _IO_default_finish_internal)
75223         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
75224         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
75225         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
75226         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
75227         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
75228         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
75229         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
75230         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
75231         (_IO_file_close_internal, _IO_file_close_it_internal)
75232         (_IO_file_underflow_internal, _IO_file_overflow_internal)
75233         (_IO_file_init_internal, _IO_file_attach_internal)
75234         (_IO_file_fopen_internal, _IO_file_read_internal)
75235         (_IO_file_sync_internal, _IO_file_seek_internal)
75236         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
75237         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
75238         (_IO_str_underflow_internal, _IO_str_overflow_internal)
75239         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
75240         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
75241         (_IO_list_all_internal, _IO_link_in_internal)
75242         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
75243         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
75244         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
75245         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
75246         (_IO_do_write_internal, _IO_padn_internal)
75247         (_IO_getline_info_internal, _IO_getline_internal)
75248         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
75249         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
75250         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
75251         (_IO_vfscanf_internal, _IO_vfprintf_internal)
75252         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
75253         (_IO_init_internal, _IO_un_link_internal): Don't declare.
75254         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
75255         with libc_hidden_ver, remove use of INTUSE.
75256         * libio/genops.c: Likewise.
75257         * libio/freopen.c: Likewise.
75258         * libio/freopen64.c: Likewise.
75259         * libio/iofclose.c: Likewise.
75260         * libio/iofdopen.c: Likewise.
75261         * libio/iofflush.c: Likewise.
75262         * libio/iofflush_u.c: Likewise.
75263         * libio/iofgets.c: Likewise.
75264         * libio/iofgets_u.c: Likewise.
75265         * libio/iofopen.c: Likewise.
75266         * libio/iofopncook.c: Likewise.
75267         * libio/iofread.c: Likewise.
75268         * libio/iofread_u.c: Likewise.
75269         * libio/ioftell.c: Likewise.
75270         * libio/iofwrite.c: Likewise.
75271         * libio/iogetline.c: Likewise.
75272         * libio/iogets.c: Likewise.
75273         * libio/iogetwline.c: Likewise.
75274         * libio/iopadn.c: Likewise.
75275         * libio/iopopen.c: Likewise.
75276         * libio/ioseekoff.c: Likewise.
75277         * libio/ioseekpos.c: Likewise.
75278         * libio/iosetbuffer.c: Likewise.
75279         * libio/iosetvbuf.c: Likewise.
75280         * libio/ioungetc.c: Likewise.
75281         * libio/ioungetwc.c: Likewise.
75282         * libio/iovdprintf.c: Likewise.
75283         * libio/iovsprintf.c: Likewise.
75284         * libio/iovsscanf.c: Likewise.
75285         * libio/memstream.c: Likewise.
75286         * libio/obprintf.c: Likewise.
75287         * libio/oldfileops.c: Likewise.
75288         * libio/oldiofclose.c: Likewise.
75289         * libio/oldiofdopen.c: Likewise.
75290         * libio/oldiofopen.c: Likewise.
75291         * libio/oldiopopen.c: Likewise.
75292         * libio/oldstdfiles.c: Likewise.
75293         * libio/putc.c: Likewise.
75294         * libio/setbuf.c: Likewise.
75295         * libio/setlinebuf.c: Likewise.
75296         * libio/stdfiles.c: Likewise.
75297         * libio/strops.c: Likewise.
75298         * libio/vasprintf.c: Likewise.
75299         * libio/vscanf.c: Likewise.
75300         * libio/vsnprintf.c: Likewise.
75301         * libio/vswprintf.c: Likewise.
75302         * libio/wfiledoalloc.c: Likewise.
75303         * libio/wfileops.c: Likewise.
75304         * libio/wgenops.c: Likewise.
75305         * libio/wmemstream.c: Likewise.
75306         * libio/wstrops.c: Likewise.
75307         * libio/__fpurge.c: Likewise.
75308         * libio/__fsetlocking.c: Likewise.
75309         * assert/assert.c: Likewise.
75310         * debug/fgets_chk.c: Likewise.
75311         * debug/fgets_u_chk.c: Likewise.
75312         * debug/fread_chk.c: Likewise.
75313         * debug/fread_u_chk.c: Likewise.
75314         * debug/gets_chk.c: Likewise.
75315         * debug/obprintf_chk.c: Likewise.
75316         * debug/vasprintf_chk.c: Likewise.
75317         * debug/vdprintf_chk.c: Likewise.
75318         * debug/vsnprintf_chk.c: Likewise.
75319         * debug/vsprintf_chk.c: Likewise.
75320         * malloc/mtrace.c: Likewise.
75321         * misc/error.c: Likewise.
75322         * misc/syslog.c: Likewise.
75323         * stdio-common/asprintf.c: Likewise.
75324         * stdio-common/fxprintf.c: Likewise.
75325         * stdio-common/getw.c: Likewise.
75326         * stdio-common/isoc99_fscanf.c: Likewise.
75327         * stdio-common/isoc99_scanf.c: Likewise.
75328         * stdio-common/isoc99_vfscanf.c: Likewise.
75329         * stdio-common/isoc99_vscanf.c: Likewise.
75330         * stdio-common/isoc99_vsscanf.c: Likewise.
75331         * stdio-common/printf-prs.c: Likewise.
75332         * stdio-common/printf_fp.c: Likewise.
75333         * stdio-common/printf_fphex.c: Likewise.
75334         * stdio-common/printf_size.c: Likewise.
75335         * stdio-common/putw.c: Likewise.
75336         * stdio-common/scanf.c: Likewise.
75337         * stdio-common/sprintf.c: Likewise.
75338         * stdio-common/tmpfile.c: Likewise.
75339         * stdio-common/vfprintf.c: Likewise.
75340         * stdio-common/vfscanf.c: Likewise.
75341         * stdlib/strfmon_l.c: Likewise.
75342         * sunrpc/openchild.c: Likewise.
75343         * sunrpc/xdr_stdio.c: Likewise.
75344         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
75345         * sysdeps/mach/hurd/tmpfile.c: Likewise.
75346
75347 2012-05-24  Roland McGrath  <roland@hack.frob.com>
75348
75349         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75350
75351         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
75352         in the third column, to generate for the shared library an IFUNC
75353         that uses _dl_vdso_vsym.
75354         * Makerules (COMPILE.c, compile-stdin.c): New variables.
75355         * Makeconfig (object-suffixes-noshared): New variable.
75356
75357         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
75358         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
75359         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
75360         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
75361
75362         [BZ #14132]
75363         * include/sys/time.h (__gettimeofday): Remove macro.
75364         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
75365         * time/gettimeofday.c (__gettimeofday): Remove #undef.
75366         Remove INTDEF.
75367         (__gettimeofday): Add libc_hidden_def.
75368         (gettimeofday): Add libc_hidden_weak.
75369         * sysdeps/mach/gettimeofday.c: Likewise.
75370         * sysdeps/posix/gettimeofday.c: Likewise.
75371         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
75372         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
75373         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
75374         (__gettimeofday_internal): Remove strong_alias.
75375         (__gettimeofday): Add libc_hidden_def.
75376         (gettimeofday): Add libc_hidden_weak.
75377         * sysdeps/unix/syscalls.list (gettimeofday):
75378         Remove __gettimeofday_internal alias.
75379
75380 2012-05-24  Daniel Jacobowitz  <drow@false.org>
75381             H.J. Lu  <hongjiu.lu@intel.com>
75382
75383         [BZ #12495]
75384         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
75385         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
75386         (largebin_index_32_big): New.
75387         (largebin_index): Use it for 16-byte alignment.
75388         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
75389         correction with front_misalign.
75390
75391 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75392
75393         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
75394         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
75395         Likewise.
75396         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
75397         Likewise.
75398         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
75399         Likewise.
75400         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
75401         Likewise.
75402         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
75403         Likewise.
75404         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
75405         Likewise.
75406         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
75407         Likewise.
75408         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
75409         Likewise.
75410         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
75411         Likewise.
75412         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
75413         Likewise.
75414         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
75415         Likewise.
75416         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
75417         Likewise.
75418
75419         * scripts/data/c++-types-x32-linux-gnu.data: New file.
75420         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
75421
75422 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75423
75424         [BZ #10846]
75425         [BZ #14036]
75426         * math/libm-test.inc (exp_test): Add test from bug 14036.
75427         (pow_test): Add test from bug 10846.
75428
75429         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
75430         and other flags.
75431         (special_function): Do not include flags in test name.
75432         (parse_args): Likewise.
75433         * sysdeps/i386/fpu/libm-test-ulps: Update.
75434         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
75435         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
75436         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
75437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75438
75439         * math/gen-libm-test.pl (%beautify): Add entries for underflow
75440         exceptions.
75441         * math/libm-test.inc ("Philosophy"): Update comment about
75442         exception testing.
75443         (UNDERFLOW_EXCEPTION): New macro.
75444         (UNDERFLOW_EXCEPTION_OK): Likewise.
75445         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
75446         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
75447         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
75448         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
75449         (INVALID_EXCEPTION_OK): Update value.
75450         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
75451         (OVERFLOW_EXCEPTION_OK): Likewise.
75452         (IGNORE_ZERO_INF_SIGN): Likewise.
75453         (test_exceptions): Handle underflow exceptions.
75454         (acos_test): Update for underflow exception expectations.
75455         (cexp_test): Likewise.
75456         (clog_test): Likewise.
75457         (clog10_test): Likewise.
75458         (csqrt_test): Likewise.
75459         (ctan_test): Likewise.
75460         (ctanh_test): Likewise.
75461         (exp_test): Likewise.
75462         (exp10_test): Likewise.
75463         (exp2_test): Likewise.
75464         (expm1_test): Likewise.
75465         (fma_test): Likewise.
75466         (j0_test): Likewise.
75467         (jn_test): Likewise.
75468         (nexttoward_test): Likewise.
75469         (pow_test): Likewise.
75470         (scalbn_test): Likewise.
75471         (scalbln_test): Likewise.
75472         (tan_test): Likewise.
75473         (y1_test): Likewise.
75474         * sysdeps/i386/fpu/libm-test-ulps: Update.
75475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75476
75477 2012-05-23  David S. Miller  <davem@davemloft.net>
75478
75479         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
75480         (__libc_sigaction): Remove unused local variables.
75481
75482 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75483
75484         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
75485
75486 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
75487
75488         mktime: avoid signed integer overflow
75489         * time/mktime.c (__mktime_internal): Do not mishandle the case
75490         where diff == INT_MIN.
75491
75492         mktime: simplify computation of average
75493         * time/mktime.c (ranged_convert): Use new time_t_avg function
75494         instead of rolling our own (probably-slower) code.
75495
75496         mktime: do not assume signed right shift propagates sign bit
75497         * time/mktime.c (isdst_differ): New static function.
75498         (__mktime_internal): No need to normalize tm_isdst now.
75499         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
75500         tm_isdst values.
75501
75502         mktime: merge another wrapv change from gnulib
75503         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
75504         from some compilers.
75505
75506         mktime: remove incorrect attempt at unusual arithmetics
75507         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
75508         The code didn't really work on such machines anyway.
75509         (TYPE_MINIMUM): Assume two's complement.
75510         (twos_complement_arithmetic): Verify that long_int and time_t
75511         are two's complement (or unsigned, in the latter case).
75512
75513         mktime: check signed shifts on long_int and time_t, too
75514         * time/mktime.c (SHR): Check that shifts work as desired
75515         on the types long_int and time_t too, as SHR is used on
75516         such types.
75517
75518         mktime: do not assume 'long' is wide enough
75519         * time/mktime.c (verify): Move decl up.
75520         (long_int): New type.
75521         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
75522         to remove assumption in the code that 'long' is wide enough to
75523         store year values.  This assumption is not true on x32 and on
75524         some non-glibc platforms.
75525
75526         mktime: merge wrapv change from gnulib
75527         * time/mktime.c (WRAPV): New macro.
75528         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
75529         (guess_time_tm, __mktime_internal): Do not assume that signed
75530         integer overflow wraps around; modern compilers generate code
75531         where this assumption is no longer valid.
75532
75533 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75534
75535         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
75536         Replace "jmp L(pseudo_end)" with "ret".
75537         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
75538         Likewise.
75539
75540 2012-05-23  Andreas Jaeger  <aj@suse.de>
75541
75542         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
75543         * sysdeps/unix/sysv/linux/poll.c: Remove file.
75544
75545 2012-05-23  Andreas Jaeger  <aj@suse.de>
75546             Maximilian Attems  <max@stro.at>
75547
75548         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
75549         New macros.
75550
75551 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75552
75553         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
75554         code so that pseudo_end is just ret and the stack pointer is
75555         correct also for static library in error case.
75556
75557 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
75558
75559         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
75560         move to syscalls.list.
75561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
75562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
75563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
75564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
75565
75566         * manual/install.texi (Running make install): Do not mention Linux
75567         kernel version for which pt_chown is not needed.
75568         (Linux): Do not mention problems with nscd with 2.0 kernels.
75569         * INSTALL: Regenerated.
75570
75571 2012-05-23  Andreas Jaeger  <aj@suse.de>
75572
75573         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
75574         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
75575         macro.
75576         * sysdeps/unix/sysv/linux/s390/bits/mman.h
75577         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75578         * sysdeps/unix/sysv/linux/sh/bits/mman.h
75579         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75580         * sysdeps/unix/sysv/linux/i386/bits/mman.h
75581         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75582         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
75583         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75584         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
75585         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75586         * sysdeps/unix/sysv/linux/bits/in.h
75587         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
75588
75589 2012-05-22  Roland McGrath  <roland@hack.frob.com>
75590
75591         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
75592         (PREPARE_VERSION): Just use assert instead, it will be elided
75593         under [NDEBUG] anyway.
75594
75595 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75596
75597         * sysdeps/unix/sysv/linux/Makefile: Include
75598         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
75599         (sysdep_routines): Remove sysctl.
75600         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
75601         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
75602         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
75603         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
75604         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
75605
75606 2012-05-22  Andreas Jaeger  <aj@suse.de>
75607
75608         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
75609         that pseudo_end is just ret and the stack pointer is correct also
75610         for static library in error case.
75611
75612 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
75613
75614         [BZ #14122]
75615         * nss/nsswitch.c (defconfig_entries): New variable.
75616         (__nss_database_lookup): Don't leak defconfig entries.
75617         (nss_parse_service_list): Don't leak on error paths.
75618         (free_database_entries): New function.
75619         (free_defconfig): New function.
75620         (free_mem): Move common code to free_database_entries.
75621
75622 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75623
75624         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
75625         Add arch_prctl.
75626         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
75627
75628         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
75629         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
75630         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
75631         New macro.
75632         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
75633         (INTERNAL_SYSCALL_TYPES): Likewise.
75634         (LOAD_ARGS_TYPES_[1-6]): Likewise.
75635         (LOAD_REGS_TYPES_[1-6]): Likewise.
75636         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
75637         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
75638
75639 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75640
75641         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
75642         copysignl for GLIBC_2_0.
75643         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
75644         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
75645         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
75646         logbl for GLIBC_2_0.
75647         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
75648         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
75649
75650 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75651
75652         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
75653         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
75654
75655         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
75656         Use "neg %eax".
75657
75658         * time/mktime.c: Update copyright years.
75659
75660 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         mktime: merge comment-quoting-style change from gnulib
75663         * time/mktime.c: Quote 'like this' in comments.
75664         The GNU coding standards suggest that we no longer quote `like this',
75665         as "`" and "'" are typically rendered asymmetrically nowadays.
75666         The typical gnulib style is to quote 'like this' when quoting
75667         code, and "like this" when quoting English.
75668
75669         * time/mktime.c (compile-command): Add "-I.".
75670
75671         mktime: merge mktime-internal.h change from gnulib
75672         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
75673
75674         mktime: merge time_r change from gnulib
75675         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
75676
75677         mktime: merge DEBUG change from gnulib
75678         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
75679         case system <time.h> has a #define.
75680
75681         mktime: merge <sys/types.h> change from gnulib
75682         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
75683         since <time.t> is now guaranteed to define time_t.
75684
75685         mktime: merge HAVE_CONFIG_H change from gnulib
75686         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
75687
75688 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75689
75690         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
75691         Use "neg %eax".
75692
75693         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
75694         __rlim_t cast.
75695         (struct rusage): Use anonymous union to pad each field to
75696         __syscall_slong_t.
75697
75698 2012-05-21  David S. Miller  <davem@davemloft.net>
75699
75700         * Makefules (o-iterator): Remove .s cases.
75701         (compile-command.s): Delete.
75702         (COMPILE.s): Delete.
75703         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
75704
75705 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
75706
75707         * configure.in (libc_cv_predef_stack_protector): Only consider
75708         "foobar" and "__stack_chk_fail" lines in libc_undefs.
75709         * configure: Regenerated.
75710
75711 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75712
75713         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
75714         New macro.  Use R*LP on int and pointer.
75715         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
75716         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
75717         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
75718         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
75719
75720         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
75721         [__WORDSIZE_TIME64_COMPAT32] instead of
75722         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
75723         (struct utmp): Likewise.
75724         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
75725         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
75726         Renamed to ...
75727         (__WORDSIZE_TIME64_COMPAT32): This.
75728         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
75729         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
75730         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
75731         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
75732         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
75733         (__WORDSIZE_TIME64_COMPAT32): New macro.
75734
75735 2012-05-21  Andreas Jaeger  <aj@suse.de>
75736
75737         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
75738         only if [SHARED]. Add prototype for __wcschr_ia32.
75739
75740 2012-05-21  Roland McGrath  <roland@hack.frob.com>
75741
75742         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
75743         of %rbp unmolested in the jmp_buf while mangling the low bits.
75744         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
75745         unmolested high bits of %rbp while demangling the low bits.
75746         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
75747
75748 2012-05-21  Andreas Jaeger  <aj@suse.de>
75749
75750         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
75751         * sunrpc/svc_simple.c: Use it for registerrpc.
75752         * sunrpc/xcrypt.c: Use it for passwd2des.
75753
75754         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
75755
75756 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75757
75758         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
75759         Don't define if [__SYSCALL_WORDSIZE != 32].
75760         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
75761         New macro.
75762
75763 2012-05-21  Bruno Haible  <bruno@clisp.org>
75764             Andreas Jaeger  <aj@suse.de>
75765
75766         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
75767         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
75768         inptr and inend for must_buffer_ch.
75769         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
75770         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
75771         * stdio-common/Makefile (tests): Remove bug15.
75772         (bug15-ENV): Remove macro.
75773         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
75774         anymore.
75775
75776 2012-05-19  Andreas Jaeger  <aj@suse.de>
75777             Roland McGrath  <roland@hack.frob.com>
75778
75779         * manual/contrib.texi: Completely rewritten. It contains now an
75780         alphabetical list of contributors and their contributions.
75781
75782 2012-05-21  Richard Henderson  <rth@twiddle.net>
75783
75784         * misc/getauxval.c (__getauxval): Use unsigned long int.
75785         * misc/sys/auxv.h: Include <sys/cdefs.h>.
75786         (getauxval): Use unsigned long int.
75787
75788 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75789
75790         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75791
75792 2012-05-21  Roland McGrath  <roland@hack.frob.com>
75793
75794         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
75795         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
75796         __alignof__ (long double).
75797
75798 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75799
75800         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75801
75802 2012-05-20  Richard Henderson  <rth@twiddle.net>
75803
75804         * misc/getauxval.c: New file.
75805         * misc/sys/auxv.h: New file.
75806         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
75807         (routines): Add getauxval.
75808         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
75809         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
75810         * elf/dl-sysdep.c (_dl_auxv): Remove.
75811         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
75812         * elf/dl-support.c (_dl_auxv): New variable.
75813         (_dl_aux_init): Initialize it.
75814         * manual/startup.texi (Auxiliary Vector): New node.
75815         * sysdeps/generic/bits/hwcap.h: New file.
75816         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
75817         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
75818         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
75819         * sysdeps/sparc/sysdep.h: ... here.  Include it.
75820         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
75821         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
75822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
75823         Update.
75824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
75825         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
75826         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
75827         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
75828         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
75829         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
75830         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
75831         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
75832
75833 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75834
75835         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75836
75837 2012-05-19  David S. Miller  <davem@davemloft.net>
75838
75839         * sysdeps/sparc/fpu/libm-test-ulps: Update.
75840
75841 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
75842
75843         [BZ #14123]
75844         * math/s_ccosh.c: Include <float.h>
75845         (__ccosh): Avoid internal overflow calculating sinh and cosh
75846         values before multiplying by sin and cos values.
75847         * math/s_ccoshf.c: Likewise.
75848         * math/s_ccoshl.c: Likewise.
75849         * math/s_csin.c: Likewise.
75850         * math/s_csinf.c: Likewise.
75851         * math/s_csinl.c: Likewise.
75852         * math/s_csinh.c: Likewise.
75853         * math/s_csinhf.c: Likewise.
75854         * math/s_csinhl.c: Likewise.
75855         * math/libm-test.inc (ccos_test): Add more tests.
75856         (ccosh_test): Likewise.
75857         (csin_test): Likewise.
75858         (csinh_test): Likewise.
75859         * sysdeps/i386/fpu/libm-test-ulps: Update.
75860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75861
75862 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
75863
75864         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
75865         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
75866
75867         * sysdeps/x86_64/x32/_itoa.h: Add comment.
75868
75869 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
75870
75871         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
75872         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
75873         * sysdeps/powerpc/soft-fp/Versions: Likewise.
75874         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
75875         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
75876         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
75877         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
75878         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
75879         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
75880         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
75881         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
75882         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
75883         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
75884         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
75885         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
75886         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
75887         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
75888         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
75889         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
75890         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
75891         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
75892         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
75893         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
75894         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
75895         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
75896         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
75897         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
75898         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
75899         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
75900         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
75901         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
75902
75903 2012-05-18  Andreas Jaeger  <aj@suse.de>
75904
75905         * csu/.gitignore: Delete.
75906
75907 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75908
75909         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
75910         (timex): Use __syscall_slong_t.
75911
75912 2012-05-18  Andreas Jaeger  <aj@suse.de>
75913             Carlos O'Donell  <carlos_odonell@mentor.com>
75914
75915         * manual/install.texi (Configuring and compiling): Update
75916         description about files modified in the source directory.
75917         * INSTALL: Regenerated.
75918
75919 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75920
75921         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
75922         value.  Use "or" to set return value to -1.
75923         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
75924         negate return value.
75925
75926 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
75927
75928         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
75929         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
75930         failure if the compiler has Graphite support disabled.
75931         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
75932         Likewise.
75933         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
75934         (CFLAGS-memmove.c): Likewise.
75935         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
75936         Likewise.
75937
75938 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75939
75940         * sysdeps/x86_64/x32/_itoa.h: New file.
75941
75942         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
75943         getdents system call only if kernel and user dirents have the
75944         same d_ino and d_off.
75945
75946         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
75947         LLONG_MAX != LONG_MAX.
75948         (_itoa_word): Use _ITOA_WORD_TYPE on value.
75949         (_fitoa_word): Likewise.
75950
75951         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
75952         years.
75953         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
75954         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
75955         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
75956
75957         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
75958         include <bits/wordsize.h>.  Check __x86_64__ instead of
75959         __WORDSIZE.
75960         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
75961         if __x86_64__ is defined.  Use anonymous union on fpstate.
75962
75963         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
75964         anonymous union.
75965
75966 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
75967
75968         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
75969         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
75970         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
75971         Refer to _rtld_local_ro instead of _rtld_global_ro.
75972         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
75973         Likewise.
75974         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
75975         Likewise.
75976         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
75977         Likewise.
75978         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
75979         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
75980         of _rtld_global, and rtld_progname instead of _dl_argv[0].
75981
75982         [BZ #10882]
75983         * sysdeps/powerpc/powerpc32/dl-machine.c
75984         (__elf_machine_runtime_setup) [PROF]: Don't reference
75985         _dl_prof_resolve.
75986
75987 2012-05-18  Andreas Jaeger  <aj@suse.de>
75988
75989         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
75990         function only available for GCCs before 3.4 since GCC 3.4
75991         introduced a builtin.
75992         (lrint): Likewise.
75993         (llrintf): Likewise.
75994         (llrint): Likewise.
75995         (fmaxf): Likewise.
75996         (fmax): Likewise.
75997         (fminf): Likewise.
75998         (fmin): Likewise.
75999         (rint): Likewise.
76000         (rintf): Likewise.
76001         (nearbyint): Likewise.
76002         (nearbyintf): Likewise.
76003         (ceil): Likewise.
76004         (ceilf): Likewise.
76005         (floor): Likewise.
76006         (floorf): Likewise.
76007
76008 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76009
76010         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
76011         on both fields and cast pointer to __syscall_ulong_t.
76012
76013         * bits/types.h (__fsword_t): New type.
76014         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
76015         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
76016         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76017         (__FSWORD_T_TYPE): Likewise.
76018         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76019         (__FSWORD_T_TYPE): Likewise.
76020         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76021         (__FSWORD_T_TYPE): Likewise.
76022         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
76023         (__FSWORD_T_TYPE): Likewise.
76024         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
76025         __SWORD_TYPE with __fsword_t.
76026         (statfs64): Likewise.
76027
76028 2012-05-17  David S. Miller  <davem@davemloft.net>
76029
76030         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
76031
76032 2012-05-17  Andreas Jaeger  <aj@suse.de>
76033
76034         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
76035         warning.
76036
76037 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76038
76039         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
76040
76041 2012-05-17  Andreas Jaeger  <aj@suse.de>
76042
76043         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
76044         when it is used.
76045
76046 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
76047
76048         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
76049
76050 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76051
76052         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
76053         * sysdeps/x86_64/tst-mallocalign1.c: New file.
76054
76055 2012-05-17  Andreas Jaeger  <aj@suse.de>
76056             Carlos O'Donell  <carlos_odonell@mentor.com>
76057
76058         [BZ #14059]
76059         * sysdeps/x86_64/multiarch/init-arch.h
76060         (bit_YMM_Usable): Rename to...
76061         (bit_AVX_Usable): ... this.
76062         (bit_FMA4_Usable): New macro.
76063         (bit_XMM_state): New macro.
76064         (bit_YMM_state): New macro.
76065         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
76066         [__ASSEMBLER__] (index_AVX_Usable): ... this.
76067         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
76068         (CPUID_OSXSAVE): New macro.
76069         (CPUID_AVX): New macro.
76070         (CPUID_FMA4): New macro.
76071         (index_YMM_Usable): Rename to...
76072         (index_AVX_Usable): ... this.
76073         (HAS_AVX): Use HAS_ARCH_FEATURE.
76074         (HAS_FMA4): Likewise.
76075         (HAS_YMM_USABLE): Remove.
76076         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76077         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
76078         are present.
76079         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
76080         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
76081         * sysdeps/x86_64/multiarch/Makefile: Likewise.
76082         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
76083         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
76084
76085 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
76086
76087         * math/libm-test.c: Support platforms without multiple rounding modes.
76088         * math/bug-nextafter.c: Support platforms without FP exceptions.
76089         * math/bug-nexttoward.c: Likewise.
76090         * math/test-fenv.c: Likewise.
76091         * math/test-misc.c: Likewise.
76092         * stdlib/bug-getcontext.c: Likewise.
76093
76094 2012-05-17  Andreas Jaeger  <aj@suse.de>
76095
76096         * manual/examples/search.c (critter_cmp): Change signature to
76097         avoid warnings.
76098         * manual/string.texi (Collation Functions): Likewise.
76099
76100 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76101
76102         * bits/types.h: Fold copyright years.
76103         * bits/typesizes.h: Likewise.
76104         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
76105         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
76106         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
76107         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
76108         * time/time.h: Likewise.
76109
76110 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
76111
76112         [BZ #208]
76113         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
76114         in instead of returning them.  Return void.
76115         (__libc_mallinfo): Accumulate over all arenas.
76116         (__malloc_stats): Adjust for change in int_mallinfo interface.
76117
76118 2012-05-16  Roland McGrath  <roland@hack.frob.com>
76119
76120         [BZ #10375]
76121         * configure.in (NM): Add AC_CHECK_TOOL for it.
76122         (libc_extra_cflags): New substituted variable.
76123         Check for -fstack-protector being used implicitly.
76124         * configure: Regenerated.
76125         * config.make.in (config-extra-cflags): New variable,
76126         gets @libc_extra_cflags@.
76127         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
76128
76129         [BZ #10375]
76130         * configure.in: Check for _FORTIFY_SOURCE being predefined.
76131         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
76132         * configure: Regenerated.
76133         * config.make.in (CPPUNDEFS): New substituted variable.
76134         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
76135         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
76136         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
76137
76138 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76139
76140         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
76141         (mq_attr): Use __syscall_slong_t.
76142
76143 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76144
76145         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
76146         Check __x86_64__ instead of __WORDSIZE.
76147         (_STAT_VER_LINUX): Likewise.
76148         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
76149         __syscall_ulong_t and __syscall_slong_t.
76150         (stat64): Likewise.
76151
76152 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76153
76154         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
76155
76156 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76157
76158         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
76159
76160 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76161
76162         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
76163         __syscall_ulong_t.
76164
76165         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
76166         include <bits/wordsize.h>.  Check __x86_64__ instead of
76167         __WORDSIZE.
76168         (greg_t): Use "__extension__ long long int" if __x86_64__ is
76169         defined.
76170         (mcontext_t): Replace "unsigned long" with "unsigned long long".
76171
76172         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
76173         include <bits/wordsize.h>.  Check __x86_64__ instead of
76174         __WORDSIZE.
76175         (user_regs_struct): Use "__extension__ unsigned long long"
76176         instead of "unsigned long" if __x86_64__ is defined.
76177         (user): Likewise.  Pad after pointer field if __ILP32__ is
76178         defined.
76179
76180 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
76181
76182         * configure.in (makeinfo): Require version 4.5 or later.  Allow
76183         versions 5 to 9.
76184         * configure: Regenerated.
76185         * manual/install.texi (texinfo): Increase version requirement to
76186         4.5 or later.
76187         * INSTALL: Regenerated.
76188
76189         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
76190
76191 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76192
76193         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
76194
76195         * sysdeps/x86_64/x32/ffs.c: New file.
76196
76197         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
76198         __syscall_ulong_t.
76199         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
76200         defined.  Use __syscall_ulong_t.
76201         (shminfo): Use __syscall_ulong_t.
76202         (shm_info): Likewise.
76203
76204         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
76205         __syscall_ulong_t.
76206
76207         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
76208         <bits/wordsize.h>.
76209         (msgqnum_t): Use __syscall_ulong_t.
76210         (msglen_t): Likewise.
76211         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
76212         __syscall_ulong_t.
76213
76214         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
76215         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76216
76217         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
76218
76219         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
76220         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
76221
76222         * sysvipc/sys/msg.h (msgbuf): Replace long int with
76223         __syscall_slong_t.
76224
76225         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
76226         include <bits/wordsize.h>.  Check __x86_64__ instead of
76227         __WORDSIZE.
76228
76229         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
76230         "unsigned long long int" if __x86_64__ is defined.
76231         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
76232
76233         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
76234         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76235         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
76236
76237         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
76238         <stdint.h>.
76239         (GET_PC): Cast to uintptr_t first.
76240         (GET_FRAME): Likewise.
76241         (GET_STACK): Likewise.
76242
76243         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
76244         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
76245         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
76246         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
76247         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
76248         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
76249         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
76250         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
76251         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
76252         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
76253         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
76254         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
76255         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
76256         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
76257         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
76258         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
76259         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
76260         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
76261         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
76262         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
76263         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
76264         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
76265         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
76266         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
76267         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
76268         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
76269         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
76270         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
76271         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
76272
76273 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
76274
76275         * Makerules (+depfiles): Also collect depfiles from .oS in
76276         $(extra-objs).
76277         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
76278         .oS, $(libnldbl-routines)).
76279
76280         * Makerules (native-compile-mkdep-flags): Define.
76281         * sunrpc/Makefile (extra-objs): Add $(addprefix
76282         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
76283         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
76284         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
76285         calling $(make-target-directory).
76286
76287 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76288
76289         * bits/types.h (__snseconds_t): Removed.
76290         * time/time.h (struct timespec): Replace __snseconds_t with
76291         __syscall_slong_t.
76292         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
76293         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
76294         Likewise.
76295         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76296         (__SNSECONDS_T_TYPE): Likewise.
76297         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76298         (__SNSECONDS_T_TYPE): Likewise.
76299         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76300         (__SNSECONDS_T_TYPE): Likewise.
76301
76302 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76303
76304         * sysdeps/mach/hurd/bits/typesizes.h
76305         (__SYSCALL_SLONG_TYPE): New macro.
76306         (__SYSCALL_ULONG_TYPE): Likewise.
76307
76308 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76309
76310         * bits/types.h (__syscall_slong_t): New type.
76311         (__syscall_ulong_t): Likewise.
76312
76313         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
76314         (__SYSCALL_ULONG_TYPE): Likewise.
76315         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76316         (__SYSCALL_SLONG_TYPE): Likewise.
76317         (__SYSCALL_ULONG_TYPE): Likewise.
76318         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76319         (__SYSCALL_SLONG_TYPE): Likewise.
76320         (__SYSCALL_ULONG_TYPE): Likewise.
76321         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76322         (__SYSCALL_SLONG_TYPE): Likewise.
76323         (__SYSCALL_ULONG_TYPE): Likewise.
76324
76325 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76326
76327         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
76328         Add sigaltstack-offsets.sym.
76329         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
76330         <sigaltstack-offsets.h>.
76331         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
76332         longjmp_msg pointer.
76333         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
76334         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
76335         signal stack.
76336         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
76337
76338 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76339
76340         * elf/stackguard-macros.h: Remove file.
76341         * sysdeps/generic/stackguard-macros.h: New file.
76342         * sysdeps/i386/stackguard-macros.h: Likewise.
76343         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
76344         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
76345         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
76346         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
76347         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
76348         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
76349         * sysdeps/x86_64/stackguard-macros.h: Likewise.
76350         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
76351         <elf/stackguard-macros.h>.
76352
76353         [BZ #14109]
76354         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
76355         __aligned__ in attribute.
76356         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
76357         (gregset_t): Likewise.
76358
76359 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76360
76361         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
76362         * sysdeps/x86_64/64/Implies-after: Here.  New file.
76363         * sysdeps/x86_64/x32/Implies-after: New file.
76364
76365 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76366
76367         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
76368         and access return value for _dl_profile_fixup.  Use R10_LP to
76369         load frame size.
76370
76371 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76372
76373         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
76374
76375 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76376
76377         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
76378         * sysdeps/x86_64/x32/sysdep.h: New file.
76379
76380 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76381
76382         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
76383         * sysdeps/x86_64/setjmp.S: Likewise.
76384
76385 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76386
76387         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
76388         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
76389         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
76390         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
76391         remove unused global constant.
76392
76393 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
76394
76395         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
76396         include of <not-cancel.h>.
76397
76398 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76399
76400         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
76401
76402 2012-05-15  Jeff Law  <law@redhat.com>
76403             Andreas Jaeger  <aj@suse.de>
76404
76405         [BZ #13594]
76406         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
76407         out from...
76408         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
76409         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
76410         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
76411         code changing __hst_map_handle.map.
76412
76413 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76414
76415         * configure.in (sysnames): Look for Implies-before and Implies-after
76416         files.
76417         * configure: Regenerated.
76418
76419 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76420
76421         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
76422         8-byte data alignment with LP_SIZE alignment.
76423
76424 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76425
76426         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
76427         into R10_LP.
76428
76429 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76430
76431         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
76432
76433 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76434
76435         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
76436         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
76437         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
76438         Likewise.
76439         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
76440
76441 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76442
76443         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
76444         (stackinfo_sub_sp): Likewise.
76445
76446 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76447
76448         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
76449         RAX_LP.
76450
76451 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76452
76453         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
76454         into R*_LP.
76455
76456 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76457
76458         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
76459         sizes into R*_LP.
76460
76461 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76462
76463         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
76464
76465 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76466
76467         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
76468         into R11_LP and load __x86_64_shared_cache_size_half into
76469         R8_LP.
76470
76471 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76472
76473         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
76474         R8_LP.
76475
76476 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76477
76478         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
76479         logb for POWER7.
76480         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
76481         logbf for POWER7.
76482         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
76483         logbl for POWER7.
76484         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
76485         powerpc32/power7/fpu/s_logb.c via #include.
76486         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
76487         powerpc32/power7/fpu/s_logbf.c via #include.
76488         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
76489         powerpc32/power7/fpu/s_logbl.c via #include.
76490
76491 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76492
76493         * README.libm: Remove file.
76494
76495 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76496
76497         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
76498         count for x32.  Use R*_LP and omit operand-size suffix.
76499
76500 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76501
76502         * shlib-versions: Move x86_64-.*-linux.* entries to ...
76503         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
76504         * sysdeps/x86_64/x32/shlib-versions: New file.
76505
76506 2012-05-14  Roland McGrath  <roland@hack.frob.com>
76507
76508         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
76509         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
76510         Use _dl_fatal_printf instead.
76511
76512 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
76513
76514         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
76515         set if not set by the user.  Do not allow for being unset.
76516         * sysdeps/unix/sysv/linux/configure: Regenerated.
76517
76518 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76519
76520         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
76521         the `q' suffix from lea and replace .quad with ASM_ADDR.
76522
76523 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76524
76525         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
76526         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
76527         instead of $17.
76528         (PTR_DEMANGLE): Likewise.
76529
76530 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76531
76532         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
76533         (LP_OP): Likewise.
76534         (ASM_ADDR): Likewise.
76535         (RAX_LP): Likewise.
76536         (RBP_LP): Likewise.
76537         (RBX_LP): Likewise.
76538         (RCX_LP): Likewise.
76539         (RDI_LP): Likewise.
76540         (RSI_LP): Likewise.
76541         (RSP_LP): Likewise.
76542         (R8_LP): Likewise.
76543         (R9_LP): Likewise.
76544         (R10_LP): Likewise.
76545         (R10_LP): Likewise.
76546         (R11_LP): Likewise.
76547         (R12_LP): Likewise.
76548         (R13_LP): Likewise.
76549         (R14_LP): Likewise.
76550         (R15_LP): Likewise.
76551
76552 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76553
76554         * sysdeps/x86_64/x32/dl-machine.h: New file.
76555
76556 2012-05-14  Andreas Jaeger  <aj@suse.de>
76557
76558         * manual/Makefile (subdir): Remove export of subdir.
76559         (all): Remove target.
76560         (.PHONY): Remove all from list.
76561         (mkinstalldirs): Remove.
76562         (.PHONY): Remove installdirs from list.
76563         ($(inst_infodir)/libc.info): Use make-target-directory.
76564         (installdirs): Remove.
76565         (subdir_%): Remove.
76566         (glibc-targets): Remove.
76567         (lib): Remove.
76568         (stubs): Remove.
76569         ($(objpfx)stubs ../po/manual.pot): Remove.
76570         ($(objpfx)stamp%): Remove.
76571         (make-target-directory): Remove.
76572         (subdir_install): Remove.
76573         (routines): Remove.
76574         (aux): Remove.
76575         (sources): Remove.
76576         (objects): Remove.
76577         (headers): Remove.
76578
76579         [BZ #13750]
76580         * manual/.gitignore: Remove, it's not needed anymore.
76581         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
76582         all files in it.
76583         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
76584         directory.
76585         (texis): Renamed to $(objpfx)texis.
76586         (texis-path): New, contains path to generated files.
76587         (chapters.%): Use texis-path for complete path, add extra argument
76588         libc-texinfo.sh.
76589         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
76590         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
76591         (summary,texi, stamp-summary): Use complete path of
76592         files. Generate files in build dir.
76593         (dir-add.texi): Build in build dir.
76594         (libm-err.texi,stamp-libm-err): Likewise.
76595         (version.texi, stamp-version): Likewise.
76596         (.%c.texi): Likewise.
76597         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
76598         (mostlyclean): Remove target.
76599         (realclean): Remove target.
76600         (generated): Add new variable with contents from mostlyclean and
76601         realclean, remove entries duplicated in common-mostlyclean, add
76602         stamp-libm-err and stamp-version.
76603         (generated-dirs): Add libc directory.
76604         ($(inst_infodir)/libc.info): Install files from build dir.
76605
76606         * manual/install.texi (Configuring and compiling): Adjust since
76607         the info files are not part of the tar ball anymore.
76608
76609 2012-05-14  Andreas Jaeger  <aj@suse.de>
76610
76611         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
76612         variable.
76613
76614 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
76615
76616         [BZ #13717]
76617         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
76618         to 2.2.0 where earlier.
76619         * sysdeps/unix/sysv/linux/configure: Regenerated.
76620         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
76621         Remove conditional code.
76622         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
76623         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
76624         Remove conditional code.
76625         [!__NR_lchown]: Likewise.
76626         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76627         [__NR_lchown]: Likewise.
76628         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
76629         comment referencing __ASSUME_LCHOWN_SYSCALL.
76630         * sysdeps/unix/sysv/linux/i386/sigaction.c
76631         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76632         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76633         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
76634         Remove conditional code.
76635         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
76636         (__protocol_available): Remove #if 0 code.
76637         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
76638         conditional code.
76639         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
76640         * sysdeps/unix/sysv/linux/kernel-features.h
76641         (__ASSUME_GETCWD_SYSCALL): Don't define.
76642         (__ASSUME_REALTIME_SIGNALS): Likewise.
76643         (__ASSUME_PREAD_SYSCALL): Likewise.
76644         (__ASSUME_PWRITE_SYSCALL): Likewise.
76645         (__ASSUME_POLL_SYSCALL): Likewise.
76646         (__ASSUME_LCHOWN_SYSCALL): Likewise.
76647         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
76648         non-SPARC.
76649         (__ASSUME_SIOCGIFNAME): Don't define.
76650         (__ASSUME_MSG_NOSIGNAL): Likewise.
76651         (__ASSUME_SENDFILE): Define unconditionally.
76652         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
76653         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
76654         conditional code.
76655         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
76656         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
76657         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
76658         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76659         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
76660         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
76661         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
76663         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76664         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
76666         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76667         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
76669         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76670         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
76672         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76673         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
76675         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76676         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
76678         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76679         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
76681         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76682         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
76684         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76685         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76686         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
76687         Remove conditional code.
76688         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76689         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
76690         Remove conditional code.
76691         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76692         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
76693         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
76694         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
76695         Remove conditional code.
76696         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76697         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
76698         Remove conditional code.
76699         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76700         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
76701         Remove conditional code.
76702         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76703         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
76704         Remove conditional code.
76705         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76706         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
76707         Remove conditional code.
76708         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76709         * sysdeps/unix/sysv/linux/sh/pwrite64.c
76710         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76711         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76712         * sysdeps/unix/sysv/linux/sigaction.c
76713         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76714         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76715         * sysdeps/unix/sysv/linux/sigpending.c
76716         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76717         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76718         * sysdeps/unix/sysv/linux/sigprocmask.c
76719         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76720         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76721         * sysdeps/unix/sysv/linux/sigsuspend.c
76722         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76723         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76724         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
76725         (__libc_missing_rt_sigs): Remove.
76726         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
76727         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
76728         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
76729         Remove conditional code.
76730         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
76731         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
76732         return 1.
76733         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
76734         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
76735         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
76736         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
76737
76738 2012-05-14  Andreas Jaeger  <aj@suse.de>
76739
76740         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
76741         it's not used in glibc.
76742         (__coshm1): Likewise.
76743         (__acosh1p): Likewise.
76744         (__sgn): Likewise.
76745
76746         * manual/string.texi (Copying and Concatenation): Add missing
76747         variable in concat example.
76748         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
76749
76750 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76751
76752         [BZ #14103]
76753         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
76754         __builtin_clzl with __builtin_clzll.
76755
76756 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76757
76758         [BZ #14104]
76759         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
76760         libc_freeres_ptr.
76761
76762 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76763
76764         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
76765         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
76766         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
76767         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
76768
76769 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
76770
76771         * NEWS: Update ia64 info.
76772
76773 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
76774
76775         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
76776         used as bcopy.
76777
76778 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
76779
76780         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
76781         * sysdeps/unix/syscalls.list (dup3): Likewise.
76782         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
76783         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
76784
76785 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
76786
76787         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
76788         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
76789
76790 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
76791
76792         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
76793         thread pointer.
76794         (TLS_IE): Use mov/add instead of movq/addq to load thread
76795         pointer.
76796         (TLS_GD_PREFIX): New.
76797         (TLS_GD): Use it.
76798
76799 2012-05-11  David S. Miller  <davem@davemloft.net>
76800
76801         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
76802         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
76803         (_FPU_SETCW): Likewise.
76804
76805 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76806
76807         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
76808         is 32-byte aligned.
76809
76810 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
76811
76812         [BZ #11837]
76813         * iconvdata/gb18030.c: Update tables.
76814         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
76815         characters specially.
76816         (BODY for TO_LOOP): Add encoding of missing ranges.
76817
76818 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
76819
76820         [BZ #13673]
76821         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
76822         * sysdeps/mach/hurd/dup3.c: Likewise.
76823         * sysdeps/mach/hurd/readlinkat.c: Likewise.
76824         * sysdeps/powerpc/memmove.c:: Likewise.
76825
76826 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76827
76828         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
76829         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
76830
76831 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76832
76833         * elf/elf.h (R_X86_64_RELATIVE64): New.
76834         (R_X86_64_NUM): Updated.
76835         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
76836         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
76837         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
76838         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
76839         tst-quad1pie tst-quad2pie
76840         (modules-names): Add tst-quadmod1 tst-quadmod2.
76841         ($(objpfx)tst-quad1): New dependency.
76842         ($(objpfx)tst-quad2): Likewise.
76843         ($(objpfx)tst-quad1pie): Likewise.
76844         ($(objpfx)tst-quad2pie): Likewise.
76845         * sysdeps/x86_64/tst-quad1.c: New file.
76846         * sysdeps/x86_64/tst-quad1pie.c: New file.
76847         * sysdeps/x86_64/tst-quad2.c: Likewise.
76848         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
76849         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
76850         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
76851         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
76852         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
76853
76854 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76855
76856         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
76857         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
76858         * streams/stropts.h (t_scalar_t): Define type.
76859
76860         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
76861         (_PATH_PRESERVE): Set to "/var/lib".
76862         (_PATH_RWHODIR): Set to "/var/spool/rwho".
76863
76864         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
76865         instead of int.
76866
76867         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
76868         if __dir_mkfile succeeded.
76869
76870         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
76871         checking for _hurd_dtablesize.  Unlock it right after having
76872         finished _hurd_dtable allocation.
76873
76874 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76875
76876         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
76877         * sysdeps/mach/hurd/configure: Regenerated.
76878         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
76879         special-casing to...
76880         * sysdeps/gnu/configure.in: ... this new file.
76881         * sysdeps/unix/sysv/linux/configure: Regenerated.
76882         * sysdeps/gnu/configure: New generated file.
76883
76884         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
76885         for Linux: use nsec instead of usec, as well as:
76886         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
76887         members of type struct timespec.
76888         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
76889         New macros.
76890         (struct stat64): Likewise.
76891         (_STATBUF_ST_NSEC): New macro.
76892         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
76893
76894         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
76895         __strtoul_internal rather than strtoul.
76896
76897 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76898
76899         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
76900         and reject them.
76901
76902 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76903
76904         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
76905         which preserves existing values.
76906         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
76907
76908 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76909
76910         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
76911         TIMEOUT values.  Return EINVAL for NFDS values either negative or
76912         greater than FD_SETSIZE.
76913
76914 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76915
76916         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
76917         allocated, call __vm_protect to finish enabling the existing space, and
76918         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
76919         allocate the remainder.
76920
76921 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76922
76923         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
76924         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
76925
76926 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76927
76928         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
76929         sysdeps/mach/hurd/readlink.c.
76930
76931         * posix/tst-sysconf.c (posix_options): Only use
76932         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
76933         _POSIX_SYNCHRONIZED_IO when they are defined
76934         * sysdeps/mach/hurd/bits/posix_opt.h:
76935         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
76936         (_XOPEN_REALTIME): Undefine macro.
76937         (_XOPEN_REALTIME_THREADS): Undefine macro.
76938         (_XOPEN_SHM): Undefine macro.
76939         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
76940         macro to -1.
76941         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
76942         macro to -1.
76943         (_POSIX_ASYNC_IO): Undefine macro.
76944         (_POSIX_PRIORITIZED_IO): Undefine macro.
76945         (_POSIX_SPIN_LOCKS): Define macro to -1.
76946
76947         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
76948         SA_NODEFER, SA_RESETHAND.
76949         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
76950         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
76951         F_DUPFD_CLOEXEC.
76952
76953 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76954
76955         * elf/Makefile (pldd-modules): Define unconditionally.
76956
76957 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76958
76959         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
76960
76961 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76962
76963         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
76964         Return ENOENT when name is empty.
76965         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
76966
76967 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76968
76969         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
76970
76971         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
76972
76973 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76974
76975         Fix mlock in all cases except non-readable pages.
76976         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
76977         instead of VM_PROT_ALL as parameter to __vm_wire function.
76978
76979         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
76980         (__mkdir): When path is `/', just fail with EEXIST.
76981         * sysdeps/mach/hurd/mkdirat.c: Likewise.
76982
76983 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76984
76985         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
76986         <sys/uio.h> (for writev).
76987         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
76988         and <sys/param.h> (for MIN).
76989
76990 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76991
76992         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
76993         REQUESTED_TIME.  Properly set the remaining time and return EINTR
76994         if interrupted.
76995
76996 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76997
76998         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
76999         Depend on against $(link-rpcuserlibs).
77000
77001 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77002
77003         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
77004         (__libc_stack_end): Do not use attribute_relro.
77005         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
77006         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
77007         to libthread-provided value.
77008         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
77009         attribute_relro.
77010
77011 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77012
77013         [BZ #3748]
77014         * bits/libc-lock.h (__libc_once_get): New macro.
77015         * sysdeps/mach/bits/libc-lock.h: Likewise.
77016         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
77017         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
77018         instead of using implementation details.
77019
77020         * libio/fileops.c: Unconditionally include <kernel-features.h>.
77021         * libio/freopen.c: Likewise.
77022         * libio/freopen64.c: Likewise.
77023         * misc/syslog.c: Likewise.
77024         * nscd/connections.c: Likewise.
77025         * nscd/netgroupcache.c: Likewise.
77026         * sysdeps/posix/getcwd.c: Likewise.
77027
77028 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77029
77030         * math/w_ilogbf.c: Add #include <limits.h>.
77031
77032 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77033
77034         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
77035         path instead of returning without unlocking.
77036
77037         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
77038         immediate-write ioctls.
77039         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
77040
77041 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77042
77043         * sysdeps/mach/hurd/i386/init-first.c (init): Use
77044         __builtin_frame_address instead of making assumptions about the
77045         location of the return address relative to DATA.  Force early load of
77046         the return address.
77047         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
77048         __builtin_frame_address.
77049
77050         dup3 for GNU Hurd.
77051         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
77052         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
77053         implement dup3 and do some further code clean-ups.
77054         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
77055         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
77056
77057 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77058
77059         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
77060
77061         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
77062         HURD_CRITICAL_END around holding _hurd_dtable_lock.
77063         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
77064         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
77065         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
77066         d->port.lock.
77067
77068         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
77069         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
77070         when handler == SIG_ERR, not when handler != SIG_ERR.
77071
77072 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77073
77074         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
77075         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
77076         definitions.
77077
77078         accept4 for GNU Hurd.
77079         * include/sys/socket.h (__libc_accept4): New prototype.
77080         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
77081         to implement __libc_accept4.
77082         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
77083         __libc_accept4.
77084         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
77085
77086         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
77087         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
77088         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
77089         signal-defines.sym.
77090
77091 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77092
77093         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
77094
77095 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77096
77097         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
77098         assertion on O_CLOEXEC flag.
77099         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
77100         * hurd/intern-fd.c: Likewise.
77101         * hurd/port2fd.c: Likewise.
77102
77103 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77104
77105         [BZ #3906]
77106         * bits/in.h (IPV6_PKTINFO): Define new macro.
77107         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
77108
77109 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77110
77111         [BZ #13954]
77112         [BZ #13955]
77113         [BZ #13956]
77114         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
77115         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
77116         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
77117         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
77118         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
77119         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
77120         * math/libm-test.inc (logb_test) : Additional logb tests.
77121
77122 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
77123             Andreas Jaeger  <aj@suse.de>
77124
77125         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
77126         * configure: Regenerated.
77127         * config.h.in (LINK_OBSOLETE_RPC): New macro.
77128         * config.make.in (link-obsolete-rpc): New substituted variable.
77129         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
77130         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
77131         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77132         (shared-only-routines): Don't set it under [link-obsolete-rpc],
77133         so that libc.a contains the symbols.
77134         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77135         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
77136         * sunrpc/auth_none.c: Likewise.
77137         * sunrpc/auth_unix.c: Likewise.
77138         * sunrpc/authdes_prot.c: Likewise.
77139         * sunrpc/authuxprot.c: Likewise.
77140         * sunrpc/clnt_gen.c: Likewise.
77141         * sunrpc/clnt_perr.c: Likewise.
77142         * sunrpc/clnt_raw.c: Likewise.
77143         * sunrpc/clnt_simp.c: Likewise.
77144         * sunrpc/clnt_tcp.c: Likewise.
77145         * sunrpc/clnt_udp.c: Likewise.
77146         * sunrpc/clnt_unix.c: Likewise.
77147         * sunrpc/des_crypt.c: Likewise.
77148         * sunrpc/des_soft.c: Likewise.
77149         * sunrpc/get_myaddr.c: Likewise.
77150         * sunrpc/key_call.c: Likewise.
77151         * sunrpc/key_prot.c: Likewise.
77152         * sunrpc/netname.c: Likewise.
77153         * sunrpc/pm_getmaps.c: Likewise.
77154         * sunrpc/pm_getport.c: Likewise.
77155         * sunrpc/pmap_clnt.c: Likewise.
77156         * sunrpc/pmap_prot.c: Likewise.
77157         * sunrpc/pmap_prot2.c: Likewise.
77158         * sunrpc/pmap_rmt.c: Likewise.
77159         * sunrpc/publickey.c: Likewise.
77160         * sunrpc/rpc_cmsg.c: Likewise.
77161         * sunrpc/rpc_common.c: Likewise.
77162         * sunrpc/rpc_dtable.c: Likewise.
77163         * sunrpc/rpc_prot.c: Likewise.
77164         * sunrpc/rpc_thread.c: Likewise.
77165         * sunrpc/rtime.c: Likewise.
77166         * sunrpc/svc.c: Likewise.
77167         * sunrpc/svc_auth.c: Likewise.
77168         * sunrpc/svc_raw.c: Likewise.
77169         * sunrpc/svc_run.c: Likewise.
77170         * sunrpc/svc_tcp.c: Likewise.
77171         * sunrpc/svc_udp.c: Likewise.
77172         * sunrpc/svc_unix.c: Likewise.
77173         * sunrpc/svcauth_des.c: Likewise.
77174         * sunrpc/xcrypt.c: Likewise.
77175         * sunrpc/xdr.c: Likewise.
77176         * sunrpc/xdr_array.c: Likewise.
77177         * sunrpc/xdr_float.c: Likewise.
77178         * sunrpc/xdr_intXX_t.c: Likewise.
77179         * sunrpc/xdr_mem.c: Likewise.
77180         * sunrpc/xdr_rec.c: Likewise.
77181         * sunrpc/xdr_ref.c: Likewise.
77182         * sunrpc/xdr_sizeof.c: Likewise.
77183         * sunrpc/xdr_stdio.c: Likewise.
77184
77185 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77186
77187         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
77188         change.  Update copyright years.
77189
77190 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77191
77192         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
77193
77194 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
77195             Joseph Myers  <joseph@codesourcery.com>
77196             Paul Pluzhnikov  <ppluzhnikov@google.com>
77197
77198         [BZ #14012]
77199         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
77200         requiring rpcgen.
77201         [cross-compiling] (extra-libs): Likewise.
77202         [cross-compiling] (extra-libs-others): Likewise.
77203         [cross-compiling] (librpcsvc-routines): Likewise.
77204         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
77205         [cross-compiling] (omit-deps): Likewise.
77206         (sunrpc-CPPFLAGS): New variable.
77207         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
77208         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
77209         (cross-rpcgen-objs): New variable.
77210         (extra-objs): Append $(cross-rpcgen-objs).
77211         ($(cross-rpcgen-objs)): New rule.
77212         ($(objpfx)cross-rpcgen): Likewise.
77213         (rpcgen-cmd): Define to use $(built-program-file).  Expand
77214         comment.
77215         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
77216         ($(objpfx)x%.stmp): Likewise.
77217         * sunrpc/proto.h [IS_IN_build] (_): Define.
77218         [IS_IN_build] (_libc_intl_domainname): Likewise.
77219
77220 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77221
77222         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
77223         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
77224         and R_X86_64_TPOFF64.
77225
77226 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77227
77228         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
77229         sysdeps/unix/sysv/syscalls.list.
77230         (stime): Likewise.
77231         (utime): Likewise.
77232         * sysdeps/unix/sysv/syscalls.list: Remove file.
77233
77234 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77235
77236         [BZ #3440]
77237         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
77238         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
77239         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
77240         (__LC_IDENTIFICATION): Make these macros useful in #if
77241         expressions, as required by C99.
77242
77243 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
77244
77245         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
77246         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
77247         after this.
77248
77249 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
77250
77251         * stdlib/longlong.h: Updated from GCC.
77252
77253 2012-05-09  Andreas Jaeger  <aj@suse.de>
77254
77255         * nscd/nscd.c (run_modes): Make named enum, reorder so that
77256         default is first entry.
77257         (run_mode): Set type.
77258         (main): Remove informal message about syslog.
77259         (options): Fix typo.
77260
77261         [BZ #14053]
77262         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
77263         to asm.
77264         (lrint): Likewise.
77265         (llrintf): Likewise.
77266         (llrint): Likewise.
77267         (rint): Likewise.
77268         (rintf): Likewise.
77269         (nearbyint): Likewise.
77270         (nearbyintf): Likewise.
77271
77272 2012-05-09  Andreas Jaeger  <aj@suse.de>
77273             Pedro Alves  <palves@redhat.com>
77274
77275         * nscd/nscd.c (run_mode): Use enum.
77276         (main): Cleanup coding style issue.
77277
77278 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
77279             Andreas Jaeger  <aj@suse.de>
77280
77281         * nscd/nscd.c (go_background): Replaced with...
77282         (run_mode): ... this.
77283         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
77284         (options): Add -F --foreground.
77285         (main): Implement it.
77286         (parse_opt): Parse it.
77287
77288 2012-05-09  Andreas Jaeger  <aj@suse.de>
77289
77290         [BZ #14083]
77291         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
77292         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
77293         -Wconversion warning.
77294         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
77295         Likewise.
77296
77297 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
77298
77299         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
77300         == 0.
77301         (LC_ALL): Use macro-int-constant.
77302         (LC_COLLATE): Likewise.
77303         (LC_CTYPE): Likewise.
77304         (LC_MESSAGES): Likewise.
77305         (LC_MONETARY): Likewise.
77306         (LC_NUMERIC): Likewise.
77307         (LC_TIME): Likewise.
77308         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
77309         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77310         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77311         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
77312         Specify type.
77313         [C99-based standards] (float_t): Expect type.
77314         [C99-based standards] (double_t): Expect type.
77315         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
77316         type.
77317         [C99-based standards] (HUGE_VALL): Likewise.
77318         [C99-based standards] (INFINITY): Likewise.
77319         [C99-based standards] (NAN): Likewise.
77320         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
77321         [C99-based standards] (FP_NAN): Likewise.
77322         [C99-based standards] (FP_NORMAL): Likewise.
77323         [C99-based standards] (FP_SUBNORMAL): Likewise.
77324         [C99-based standards] (FP_ZERO): Likewise.
77325         [C99-based standards] (FP_FAST_FMA): Use
77326         optional-macro-int-constant.  Specify type.  Require == 1.
77327         [C99-based standards] (FP_FAST_FMAF): Likewise.
77328         [C99-based standards] (FP_FAST_FMAL): Likewise.
77329         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
77330         [C99-based standards] (FP_ILOGBNAN): Likewise.
77331         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
77332         Specify type.
77333         [C99-based standards] (MATH_ERREXCEPT): Likewise.
77334         [C99-based standards] (math_errhandling): Specify type.
77335         [ISO99 || ISO11] (signgam): Do not allow.
77336         [non-C99-based standards] (copysignf): Do not allow.
77337         [non-C99-based standards] (exp2f): Likewise.
77338         [non-C99-based standards] (log2f): Likewise.
77339         [non-C99-based standards] (modff): Allow.
77340         [non-C99-based standards] (erff): Do not allow.
77341         [non-C99-based standards] (erfcf): Likewise.
77342         [non-C99-based standards] (gammaf): Likewise.
77343         [non-C99-based standards] (hypotf): Likewise.
77344         [non-C99-based standards] (j0f): Likewise.
77345         [non-C99-based standards] (j1f): Likewise.
77346         [non-C99-based standards] (jnf): Likewise.
77347         [non-C99-based standards] (lgammaf): Likewise.
77348         [non-C99-based standards] (tgammaf): Likewise.
77349         [non-C99-based standards] (y0f): Likewise.
77350         [non-C99-based standards] (y1f): Likewise.
77351         [non-C99-based standards] (ynf): Likewise.
77352         [non-C99-based standards] (isnanf): Likewise.
77353         [non-C99-based standards] (acoshf): Likewise.
77354         [non-C99-based standards] (asinhf): Likewise.
77355         [non-C99-based standards] (atanhf): Likewise.
77356         [non-C99-based standards] (cbrtf): Likewise.
77357         [non-C99-based standards] (expm1f): Likewise.
77358         [non-C99-based standards] (ilogbf): Likewise.
77359         [non-C99-based standards] (log1pf): Likewise.
77360         [non-C99-based standards] (logbf): Likewise.
77361         [non-C99-based standards] (nextafterf): Likewise.
77362         [non-C99-based standards] (remainderf): Likewise.
77363         [non-C99-based standards] (rintf): Likewise.
77364         [non-C99-based standards] (scalbf): Likewise.
77365         [non-C99-based standards] (copysignl): Likewise.
77366         [non-C99-based standards] (exp2l): Likewise.
77367         [non-C99-based standards] (log2l): Likewise.
77368         [non-C99-based standards] (modfl): Allow.
77369         [non-C99-based standards] (erfl): Do not allow.
77370         [non-C99-based standards] (erfcl): Likewise.
77371         [non-C99-based standards] (gammal): Likewise.
77372         [non-C99-based standards] (hypotl): Likewise.
77373         [non-C99-based standards] (j0l): Likewise.
77374         [non-C99-based standards] (j1l): Likewise.
77375         [non-C99-based standards] (jnl): Likewise.
77376         [non-C99-based standards] (lgammal): Likewise.
77377         [non-C99-based standards] (tgammal): Likewise.
77378         [non-C99-based standards] (y0l): Likewise.
77379         [non-C99-based standards] (y1l): Likewise.
77380         [non-C99-based standards] (ynl): Likewise.
77381         [non-C99-based standards] (isnanl): Likewise.
77382         [non-C99-based standards] (acoshl): Likewise.
77383         [non-C99-based standards] (asinhl): Likewise.
77384         [non-C99-based standards] (atanhl): Likewise.
77385         [non-C99-based standards] (cbrtl): Likewise.
77386         [non-C99-based standards] (expm1l): Likewise.
77387         [non-C99-based standards] (ilogbl): Likewise.
77388         [non-C99-based standards] (log1pl): Likewise.
77389         [non-C99-based standards] (logbl): Likewise.
77390         [non-C99-based standards] (nextafterl): Likewise.
77391         [non-C99-based standards] (remainderl): Likewise.
77392         [non-C99-based standards] (rintl): Likewise.
77393         [non-C99-based standards] (scalbl): Likewise.
77394         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77395         [non-C99-based standards] (FP_*): Do not allow.
77396         [C99-based standards] (FP_*): Change to
77397         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77398         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77399         allow.
77400         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
77401         (SIG_ERR): Likewise.
77402         [X/Open-based standards] (SIG_HOLD): Likewise.
77403         (SIG_IGN): Likewise.
77404         (SIGABRT): Use macro-int-constant.  Specify type.  Require
77405         positive value.
77406         (SIGFPE): Likewise.
77407         (SIGILL): Likewise.
77408         (SIGINT): Likewise.
77409         (SIGSEGV): Likewise.
77410         (SIGTER): Likewise.
77411         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
77412         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
77413         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
77414         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
77415         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
77416         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
77417         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
77418         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
77419         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
77420         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
77421         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
77422         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
77423         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
77424         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
77425         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
77426         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
77427         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
77428         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
77429         [X/Open-based standards] (SIGTRAP): Likewise.
77430         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
77431         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
77432         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
77433         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
77434         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77435         allow.
77436
77437 2012-05-08  Ian Wienand  <ianw@vmware.com>
77438
77439         [BZ #14080]
77440         * time/tzset.c (__tzset_parse_tz): Update default rules for
77441         daylight time changes in the Energy Policy Act of 2005.
77442
77443 2012-05-09  Andreas Jaeger  <aj@suse.de>
77444
77445         [BZ #13983]
77446         * elf/ldconfig.c (parse_conf): Change string to make clear that
77447         ldconfig only issued a warning if ld.so.conf does not exist.
77448
77449 2012-05-08  David S. Miller  <davem@davemloft.net>
77450
77451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
77452         movxtod instead of popping the value on the stack.
77453
77454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77455
77456 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
77457
77458         * config.h.in: Add HAVE_ARM_PCS_VFP.
77459
77460 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
77461
77462         [BZ #13979]
77463         * include/features.h: Warn if user requests __FORTIFY_SOURCE
77464         checking but the checks are disabled for any reason.
77465
77466 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
77467
77468         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
77469         and ELF64_R_TYPE with ELFW(R_TYPE).
77470
77471 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
77472
77473         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
77474         (ulimit): Likewise.
77475
77476         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
77477         (settimeofday): Likewise.
77478
77479 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
77480
77481         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
77482         a struct th_u2 inside the union, and move tu_block/tu_code into
77483         a new th_u3 union of tu_block/tu_code inside of that.  Move
77484         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
77485         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
77486         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
77487         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
77488         (th_stuff): Change to th_u1.tu_stuff.
77489         (th_data): Define.
77490         (th_msg): Change to th_u1.th_u2.tu_data.
77491
77492 2012-05-07  David S. Miller  <davem@davemloft.net>
77493
77494         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77495
77496         [BZ #14074]
77497         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
77498         (SETUP_PIC_REG): Use it.
77499         (SETUP_PIC_REG_LEAF): Use it.
77500
77501 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
77502
77503         [BZ #13885]
77504         [BZ #13923]
77505         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77506         USE_AS_EXPM1L.
77507         (EXPL_FINITE): Likewise.
77508         (FLDLOG): Likewise.
77509         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
77510         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
77511         e_expl.S.
77512         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77513         USE_AS_EXPM1L.
77514         (EXPL_FINITE): Likewise.
77515         (FLDLOG): Likewise.
77516         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
77517         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
77518         e_expl.S.
77519         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
77520         test of -max_value argument for long double.
77521         * sysdeps/i386/fpu/libm-test-ulps: Update.
77522         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77523
77524 2012-05-06  David S. Miller  <davem@davemloft.net>
77525
77526         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
77527         quad soft-float symbols whose references which are compiler
77528         generated.
77529         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
77530
77531 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
77532
77533         [BZ #13884]
77534         [BZ #13914]
77535         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77536         USE_AS_EXP10L.
77537         (EXPL_FINITE): Likewise.
77538         (FLDLOG): Likewise.
77539         (c0): Likewise.
77540         (c1): Likewise.
77541         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
77542         Adjust comments for base varying.
77543         (__expl_finite): Change alias to EXPL_FINITE.
77544         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
77545         e_expl.S.
77546         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
77547         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
77548         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
77549         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
77550         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77551         USE_AS_EXP10L.
77552         (EXPL_FINITE): Likewise.
77553         (FLDLOG): Likewise.
77554         (c0): Likewise.
77555         (c1): Likewise.
77556         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
77557         Adjust comments for base varying.
77558         (__expl_finite): Change alias to EXPL_FINITE.
77559         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
77560         tests for bugs.
77561         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77562
77563         [BZ #14064]
77564         * math/libm-test.inc (check_float_internal): Correct ulp
77565         calculation for subnormal expected results.
77566
77567 2012-05-06  Andreas Jaeger  <aj@suse.de>
77568
77569         * Makeconfig (+math-flags): New, set to -frounding-math.
77570         (+cflags): Add +math-flags so that all of glibc gets compiled with
77571         it.
77572
77573         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
77574
77575 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
77576
77577         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
77578         Disable one test.
77579
77580         [BZ #13787]
77581         [BZ #13922]
77582         [BZ #14036]
77583         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
77584         (__ieee754_expl): Allow for and saturate large arguments.
77585         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
77586         (u_threshold): Likewise.
77587         (__exp): Call __ieee754_exp before checking for overflow and
77588         underflow.
77589         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
77590         (u_threshold): Likewise.
77591         (__expf): Call __ieee754_expf before checking for overflow and
77592         underflow.
77593         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
77594         (u_threshold): Likewise.
77595         (__expl): Call __ieee754_expl before checking for overflow and
77596         underflow.
77597         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
77598         (__ieee754_expl): Allow for and saturate large arguments.
77599         * math/libm-test.inc (exp_test): Add another test.  Do not allow
77600         missing overflow exception on overflow.
77601         (expm1_test): Do not allow missing overflow exception on overflow.
77602
77603         * sysdeps/i386/fpu/e_expl.c: Move to ...
77604         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
77605         rather than using inline asm.
77606         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
77607         * sysdeps/x86_64/fpu/e_expl.S: Copy from
77608         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
77609
77610         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
77611         (nice): Likewise.
77612         (poll): Likewise.
77613         (signal): Likewise.
77614         (time): Likewise.
77615         (times): Likewise.
77616
77617 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77618
77619         * sysdeps/unix/syscalls.list (adjtime): Add entry from
77620         sysdeps/unix/common/syscalls.list.
77621         (fchmod): Likewise.
77622         (fchown): Likewise.
77623         (ftruncate): Likewise.
77624         (getrusage): Likewise.
77625         (gettimeofday): Likewise.
77626         (setpgid): Likewise.
77627         (setregid): Likewise.
77628         (setreuid): Likewise.
77629         (sigaction): Likewise.
77630         (truncate): Likewise.
77631         (vhangup): Likewise.
77632         * sysdeps/unix/common/syscalls.list: Remove file.
77633         * sysdeps/unix/bsd/Implies: Don't include unix/common.
77634         * sysdeps/unix/sysv/linux/Implies: Likewise.
77635
77636 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
77637
77638         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
77639         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
77640         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
77641         Moved to ...
77642         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
77643         Here.
77644         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
77645         to ...
77646         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
77647         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
77648         to ...
77649         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
77650         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
77651         to ...
77652         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
77653         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
77654         to ...
77655         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
77656         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
77657         to ...
77658         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
77659         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
77660         to ...
77661         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
77662         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
77663         to ...
77664         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
77665         Here.
77666         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
77667         to ...
77668         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
77669         Here.
77670         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
77671         to ...
77672         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
77673         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
77674         Moved to ...
77675         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
77676         Here.
77677         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
77678         to ...
77679         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
77680
77681 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77682
77683         * sysdeps/unix/common/bits/dirent.h: Remove file.
77684         * sysdeps/unix/common/bits/fcntl.h: Likewise.
77685
77686         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
77687         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
77688         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
77689         * sysdeps/unix/bsd/isatty.c: Likewise.
77690         * sysdeps/unix/bsd/tcdrain.c: Likewise.
77691         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
77692         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
77693
77694 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77695
77696         [BZ #13563]
77697         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
77698         long double comparison inaccuracies.
77699         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
77700         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
77701
77702 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
77703
77704         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
77705         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
77706
77707 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77708
77709         [BZ #14049]
77710         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
77711         nonzero digits before rounding a hex value.
77712         * stdlib/tst-strtod.c (tests): Add another test.
77713
77714 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
77715
77716         * sysdeps/s390/fpu/libm-test-ulps: Update.
77717
77718 2012-05-03  Andreas Jaeger  <aj@suse.de>
77719
77720         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
77721         does not get optimized out.
77722         (malloc_opt_barrier): New.
77723
77724 2012-05-03  Andreas Jaeger  <aj@suse.de>
77725             Roland McGrath  <roland@hack.frob.com>
77726
77727         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
77728         intermediate file deletion.
77729         (generated): Add .symlist files.
77730
77731 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
77732
77733         [BZ #13775]
77734         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
77735         Redirect under this condition.
77736         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
77737         [__USE_GNU] (__dprintf_chk): Not under this condition.
77738         [__USE_GNU] (__vdprintf_chk): Likewise.
77739         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
77740         under this condition.
77741         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
77742         [__USE_XOPEN2K8] (dprintf): Define under this condition.
77743         [__USE_XOPEN2K8] (vdprintf): Likewise.
77744         [__USE_GNU] (__dprintf_chk): Not under this condition.
77745         [__USE_GNU] (__vdprintf_chk): Likewise.
77746         [__USE_GNU] (dprintf): Likewise.
77747         [__USE_GNU] (vdprintf): Likewise.
77748
77749 2012-05-03  Roland McGrath  <roland@hack.frob.com>
77750
77751         * elf/Makefile (common-generated): Set this instead of generated for
77752         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
77753         $(all-built-dso)-derived lists.
77754
77755 2012-05-03  Andreas Jaeger  <aj@suse.de>
77756
77757         * sysdeps/i386/fpu/libm-test-ulps: Update.
77758
77759         * FAQ: Removed.
77760         * FAQ.in: Likewise.
77761         * scripts/gen-FAQ.pl: Likewise.
77762         * manual/install.texi (Installation): Point to online location of
77763         FAQ.
77764         * Makefile (files-for-dist): Remove FAQ.
77765         (FAQ): Remove.
77766
77767 2012-05-02  Allan McRae  <allan@archlinux.org>
77768
77769         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
77770         (LDFLAGS-reldepmod5.so): Likewise.
77771         (LDFLAGS-reldep6mod1.so): Likewise.
77772         (LDFLAGS-reldep6mod4.so): Likewise.
77773         (LDFLAGS-reldep8mod3.so): Likewise.
77774         (LDFLAGS-unload4mod1.so): Likewise.
77775         (LDFLAGS-unload4mod2.so): Likewise.
77776         (LDFLAGS-tst-initorder): Likewise.
77777         (LDFLAGS-tst-initordera2.so): Likewise.
77778         (LDFLAGS-tst-initordera3.so): Likewise.
77779         (LDFLAGS-tst-initordera4.so): Likewise.
77780         (LDFLAGS-tst-initorderb2.so): Likewise.
77781         (LDFLAGS-noload): Likewise.
77782         (LDFLAGS-next): Likewise.
77783         (LDFLAGS-order2mod1.so): Likewise.
77784         (LDFLAGS-order2mod2.so): Likewise.
77785         (LDFLAGS-tst-initorder2): Likewise.
77786         (LDFLAGS-tst-initorder2a.so): Likewise.
77787         (LDFLAGS-tst-initorder2b.so): Likewise.
77788         (LDFLAGS-tst-initorder2c.so): Likewise.
77789         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
77790
77791 2012-05-02  David S. Miller  <davem@davemloft.net>
77792
77793         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77794
77795 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
77796
77797         [BZ #14055]
77798         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
77799
77800 2012-05-02  Andreas Jaeger  <aj@suse.de>
77801
77802         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
77803         since we manipulate rounding mode.
77804         (CPPFLAGS-test-idouble.c): Likewise.
77805         (CPPFLAGS-test-ifloat.c): Likewise.
77806         (CFLAGS-test-ldouble.c): Likewise.
77807         (CFLAGS-test-double.c): Likewise.
77808         (CFLAGS-test-float.c): Likewise.
77809         (CFLAGS-test-misc.c): Likewise.
77810         (CFLAGS-test-test-fenv.c): Likewise.
77811
77812 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77813
77814         [BZ #2550]
77815         [BZ #2570]
77816         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
77817         comparisons to determine direction to adjust input.
77818
77819 2012-05-01  Roland McGrath  <roland@hack.frob.com>
77820
77821         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
77822         output to the target.
77823
77824         * scripts/localplt.awk: New file.
77825         * elf/Makefile ($(objpfx)check-localplt): Target removed.
77826         (check-localplt-CFLAGS): Variable removed.
77827         ($(all-built-dso:=.jmprel)): New static pattern rule.
77828         (generated): Add those targets.
77829         (localplt-built-dso): New variable.
77830         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
77831
77832         * elf/check-localplt.c: File removed.
77833
77834         * scripts/check-execstack.awk: New file.
77835         * elf/Makefile ($(objpfx)check-execstack): Target removed.
77836         (check-execstack-CFLAGS): Variable removed.
77837         ($(objpfx)check-execstack.h): Target removed.
77838         ($(objpfx)execstack-default): New target.
77839         (generated): Add that instead of check-execstack.h.
77840         ($(all-built-dso:=.phdr)): New static pattern rule.
77841         (generated): Add those targets.
77842         * elf/check-execstack.c: File removed.
77843
77844         * scripts/check-textrel.awk: New file.
77845         * elf/Makefile ($(objpfx)check-textrel): Target removed.
77846         (check-textrel-CFLAGS): Variable removed.
77847         (all-built-dso): Use := to define.o
77848         ($(all-built-dso:=.dyn)): New static pattern rule.
77849         (generated): Add those targets.
77850         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
77851         * config.make.in (READELF): New substituted variable.
77852         * elf/check-textrel.c: File removed.
77853
77854 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
77855
77856         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77857         allow.
77858         * conform/data/ctype.h-data [C99-based standards] (isblank):
77859         Expect function.
77860         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
77861         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
77862         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77863         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
77864         Specify type.  Require positive value.
77865         (EILSEQ): Likewise.
77866         (ERANGE): Likewise.
77867         [ISO || POSIX] (EILSEQ): Do not expect.
77868         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
77869         Specify type.  Require positive value.
77870         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
77871         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
77872         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
77873         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
77874         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
77875         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
77876         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
77877         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
77878         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
77879         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
77880         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
77881         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
77882         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
77883         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
77884         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
77885         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
77886         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
77887         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
77888         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
77889         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
77890         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
77891         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
77892         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
77893         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
77894         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
77895         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
77896         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
77897         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
77898         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
77899         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
77900         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
77901         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
77902         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
77903         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
77904         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
77905         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
77906         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
77907         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
77908         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
77909         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
77910         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
77911         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
77912         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
77913         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
77914         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
77915         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
77916         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
77917         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
77918         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
77919         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
77920         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
77921         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
77922         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
77923         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
77924         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
77925         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
77926         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
77927         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
77928         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
77929         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
77930         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
77931         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
77932         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
77933         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
77934         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
77935         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
77936         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
77937         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
77938         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
77939         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
77940         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
77941         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
77942         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
77943         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
77944         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
77945         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
77946         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
77947         Require >= 2.
77948         (FLT_ROUNDS): Expect as macro, not constant.
77949         (FLT_MANT_DIG): Use macro-int-constant.
77950         (DBL_MANT_DIG): Likewise.
77951         (LDBL_MANT_DIG): Likewise.
77952         (FLT_DIG): Likewise.
77953         (DBL_DIG): Likewise.
77954         (LDBL_DIG): Likewise.
77955         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
77956         (DBL_MIN_EXP): Likewise.
77957         (LDBL_MIN_EXP): Likewise.
77958         (FLT_MAX_EXP): Use macro-int-constant.
77959         (DBL_MAX_EXP): Likewise.
77960         (LDBL_MAX_EXP): Likewise.
77961         (FLT_MAX_10_EXP): Likewise.
77962         (DBL_MAX_10_EXP): Likewise.
77963         (LDBL_MAX_10_EXP): Likewise.
77964         (FLT_MAX): Use macro-constant.
77965         (DBL_MAX): Likewise.
77966         (LDBL_MAX): Likewise.
77967         (FLT_EPSILON): Use macro-constant.  Give upper bound.
77968         (DBL_EPSILON): Likewise.
77969         (LDBL_EPSILON): Likewise.
77970         (FLT_MIN): Likewise.
77971         (DBL_MIN): Likewise.
77972         (LDBL_MIN): Likewise.
77973         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
77974         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
77975         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
77976         [ISO11] (FLT_HAS_SUBNORM): Likewise.
77977         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
77978         [ISO11] (DBL_DECIMAL_DIG): Likewise.
77979         [ISO11] (FLT_DECIMAL_DIG): Likewise.
77980         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
77981         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
77982         [ISO11] (FLT_TRUE_MIN): Likewise.
77983         [ISO11] (LDBL_TRUE_MIN): Likewise.
77984         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77985         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
77986         (SCHAR_MIN): Use macro-int-constant.  Specify type.
77987         (SCHAR_MAX): Likewise.
77988         (UCHAR_MAX): Likewise.
77989         (CHAR_MIN): Likewise.
77990         (CHAR_MAX): Likewise.
77991         (MB_LEN_MAX): Use macro-int-constant.
77992         (SHRT_MIN): Use macro-int-constant.  Specify type.
77993         (SHRT_MAX): Likewise.
77994         (USHRT_MAX): Likewise.
77995         (INT_MAX): Likewise.
77996         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
77997         bound negative.
77998         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
77999         bound with "U".
78000         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78001         bound with "L".
78002         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
78003         bound negative.  Suffix upper bound with "L".
78004         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78005         bound with "UL".
78006         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
78007         Specify type.
78008         [C99-based standards] (LLONG_MAX): Likewise.
78009         [C99-based standards] (ULLONG_MAX): Likewise.
78010         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
78011         == 0.
78012         [ISO11] (max_align_t): Require type.
78013         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78014
78015         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
78016         from $CFLAGS, without defining away __attribute__ calls.
78017         (checknamespace): Use $CFLAGS_namespace.
78018
78019         * conform/conformtest.pl (@keywords): Only include C99 keywords
78020         for standards based on C99 or C11.
78021
78022         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
78023         Disable tests.
78024         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
78025         UNIX98]: Likewise.
78026
78027         * conform/conformtest.pl: Handle "macro-int-constant" and test for
78028         usability of symbols in #if.
78029
78030         * conform/conformtest.pl: If macro or constant types start
78031         "promoted:", expect the symbol to be of the following type
78032         promoted by the integer promotions.
78033
78034         * conform/conformtest.pl: Parse all "constant" and "macro" lines
78035         in one place.  Also handle "macro-constant".
78036
78037         * conform/conformtest.pl: Only accept expected macro values with
78038         "==".  Parse all "macro" lines in one place.
78039         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
78040
78041         * conform/conformtest.pl: Handle braced types on "constant" lines
78042         instead of handling "typed-constant".
78043         * conform/data/signal.h-data: Use "constant" instead of
78044         "typed-constant".
78045
78046         * conform/conformtest.pl: Handle "optional-" at start of lines in
78047         one place rather than duplicating several cases.  Handle each
78048         format of "macro" line with initial "optional-".
78049
78050         * conform/conformtest.pl: Only accept expected constant or
78051         optional-constant values with "==".  Parse all "constant" lines in
78052         one place.  Parse all "optional-constant" lines in one place.
78053         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
78054         * conform/data/fmtmsg.h-data: Likewise.
78055         * conform/data/netinet/in.h-data: Likewise.
78056         * conform/data/tar.h-data: Likewise.
78057         * conform/data/limits.h-data: Use "==" form on "constant" and
78058         "optional-constant" lines.
78059
78060         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
78061         Use -std=c99 for XOPEN2K.
78062         (@knownproblems): Remove.
78063         (newtoken): Don't check %isknown.
78064
78065         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
78066         Do not expect macro.
78067         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
78068         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
78069         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
78070         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
78071         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
78072         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
78073         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
78074         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
78075         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
78076         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
78077         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
78078         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
78079         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
78080         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
78081         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
78082         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
78083         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
78084         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
78085         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
78086         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
78087         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
78088         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
78089         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
78090         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
78091         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
78092         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
78093         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
78094         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
78095         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
78096         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
78097         [XPG3] (acosh): Likewise.
78098         [XPG3] (asinh): Likewise.
78099         [XPG3] (atanh): Likewise.
78100         [XPG3] (cbrt): Likewise.
78101         [XPG3] (expm1): Likewise.
78102         [XPG3] (ilogb): Likewise.
78103         [XPG3] (log1p): Likewise.
78104         [XPG3] (logb): Likewise.
78105         [XPG3] (nextafter): Likewise.
78106         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
78107         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
78108         [XPG3] (remainder): Likewise.
78109         [XPG3] (rint): Likewise.
78110         [XPG3 || XPG4 || UNIX98] (round): Likewise.
78111         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
78112         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
78113         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
78114         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
78115         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
78116         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
78117         [UNIX98 || XOPEN2K] (scalb): Expect.
78118         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
78119         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
78120         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
78121         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
78122         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
78123         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
78124         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
78125         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
78126         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
78127         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
78128         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
78129         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
78130         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
78131         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
78132         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
78133         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
78134         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
78135         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
78136         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
78137         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
78138         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
78139         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
78140         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
78141         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
78142         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
78143         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
78144         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
78145         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
78146         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
78147         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
78148         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
78149         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
78150         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
78151         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
78152         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
78153         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
78154         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
78155         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
78156         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
78157         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
78158         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
78159         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
78160         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
78161         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
78162         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
78163         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
78164         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
78165         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
78166         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
78167         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
78168         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
78169         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
78170         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
78171         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
78172         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
78173         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
78174         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
78175         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
78176         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
78177         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
78178         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
78179         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
78180         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
78181         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
78182         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
78183         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
78184         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
78185         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
78186         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
78187         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
78188         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
78189         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
78190         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
78191         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
78192         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
78193         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
78194         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
78195         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
78196         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
78197         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
78198         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
78199         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
78200         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
78201         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
78202         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
78203         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
78204         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
78205         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
78206         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
78207         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
78208         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
78209         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
78210         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
78211         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
78212         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
78213         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
78214         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
78215         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
78216         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
78217         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
78218         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
78219         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
78220         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
78221         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
78222         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
78223         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
78224         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
78225         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
78226         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
78227         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
78228         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
78229         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
78230         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
78231         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
78232         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
78233         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
78234         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
78235         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
78236         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
78237         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
78238         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
78239         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
78240         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
78241         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
78242         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
78243         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
78244         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
78245         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
78246         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
78247         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
78248         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
78249         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
78250         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
78251         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
78252         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
78253         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
78254         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
78255
78256         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
78257         _XOPEN_SOURCE_EXTENDED for XPG4.
78258
78259         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
78260
78261         * Makeconfig (localtime): Remove variable.
78262         (inst_localtime-file): Likewise.
78263
78264 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78265
78266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
78267         Update.
78268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
78269         Update.
78270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
78271         Update.
78272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
78273         Update.
78274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
78275         Update.
78276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
78277         Update.
78278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
78279         Update.
78280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
78281         Update.
78282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78283         Update.
78284
78285 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
78286
78287         [BZ #2550]
78288         [BZ #2570]
78289         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
78290         comparisons to determine direction to adjust input.
78291         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
78292         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
78293         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
78294         Likewise.
78295         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
78296         Likewise.
78297         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
78298         Likewise.
78299         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
78300         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
78301         Likewise.
78302         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
78303         Likewise.
78304         * math/libm-test.inc (nexttoward_test): Add more tests.
78305
78306 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78307
78308         [BZ #14040]
78309         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
78310         in version GLIBC_2.1, not GLIBC_2.0.
78311         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
78312         Likewise.
78313
78314 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
78315
78316         [BZ #13942]
78317         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
78318         (1 - x) * (1 + x).
78319         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78320         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
78321         * math/libm-test.inc (acos_test): Add more tests.
78322         (asin_test): Likewise.
78323         * sysdeps/i386/fpu/libm-test-ulps: Update.
78324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
78325
78326         [BZ #14034]
78327         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
78328         of square root.
78329         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
78330         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78331         * math/libm-test.inc (acos_test_tonearest): New function.
78332         (acos_test_towardzero): Likewise.
78333         (acos_test_downward): Likewise.
78334         (acos_test_upward): Likewise.
78335         (asin_test_tonearest): Likewise.
78336         (asin_test_towardzero): Likewise.
78337         (asin_test_downward): Likewise.
78338         (asin_test_upward): Likewise.
78339         (main): Call the new functions.
78340         * sysdeps/i386/fpu/libm-test-ulps: Update.
78341         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78342
78343         [BZ #13884]
78344         [BZ #13924]
78345         * math/e_exp10.c: Include <float.h>.
78346         (__ieee754_exp10): Handle underflow here rather than multiplying
78347         large negative argument by M_LN10.
78348         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
78349         of __ieee754_expf.
78350         * math/e_exp10l.c: Include <float.h>.
78351         (__ieee754_exp10l): Handle underflow here rather than multiplying
78352         large negative argument by M_LN10l.
78353         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
78354         spurious overflow exception on underflow.
78355
78356 2012-04-29  Marek Polacek  <polacek@redhat.com>
78357
78358         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
78359         (__fortify_function): New macro.
78360         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
78361         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
78362         __extern_always_inline.
78363         * libio/bits/stdio2.h: Likewise.
78364         * libio/bits/stdio.h: Likewise.
78365         * string/string.h: Likewise.
78366         * string/bits/string3.h: Likewise.
78367         * include/stdio.h: Likewise.
78368         * stdlib/bits/stdlib.h: Likewise.
78369         * stdlib/stdlib.h: Likewise.
78370         * rt/bits/mqueue2.h: Likewise.
78371         * rt/mqueue.h: Likewise.
78372         * posix/bits/unistd.h: Likewise.
78373         * posix/unistd.h: Likewise.
78374         * io/bits/poll2.h: Likewise.
78375         * io/bits/fcntl2.h: Likewise.
78376         * io/fcntl.h: Likewise.
78377         * io/sys/poll.h: Likewise.
78378         * misc/bits/syslog.h: Likewise.
78379         * misc/bits/syslog-ldbl.h: Likewise.
78380         * misc/sys/syslog.h: Likewise.
78381         * socket/bits/socket2.h: Likewise.
78382         * socket/sys/socket.h: Likewise.
78383         * debug/tst-chk1.c: Likewise.
78384         * wcsmbs/bits/wchar2.h: Likewise.
78385         * wcsmbs/bits/wchar-ldbl.h: Likewise.
78386         * wcsmbs/wchar.h: Likewise.
78387
78388 2012-04-29  Andreas Jaeger  <aj@suse.de>
78389
78390         * Makerules (tests): Remove enable-check-abi protection.
78391         (check-abi-warn): Remove.
78392         (check-abi-%): Remove check-abi-warn usage.
78393
78394         * configure.in: Remove check-abi configure option.
78395         * configure: Regenerated.
78396         * config.make.in (enable-check-abi): Remove.
78397
78398 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
78399
78400         [BZ #14033]
78401         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
78402         double functions to double *_finite functions.
78403
78404         [BZ #13941]
78405         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
78406         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
78407         LDBL_MIN_EXP.
78408         * stdio-common/Makefile (tests): Add tst-sprintf3.
78409         * stdio-common/tst-sprintf3.c: New file.
78410
78411         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
78412         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
78413
78414 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
78415
78416         * conform/conformtest.pl: Remove duplicate typed-constant
78417         handling.
78418
78419 2012-04-28  David S. Miller  <davem@davemloft.net>
78420
78421         * Makerules (%.abilist): Add vpath on sysdep_dirs.
78422         (check-abi-%): Remove AWK script prerequisite and explicit
78423         abilist directory.
78424         (check-abi): Rewrite to just diff the symlist with the abilist.
78425         (config-tls, config-abi-config): Delete, no longer used.
78426         (update-abi-%): Remove AWK script and explicit abilist directory.
78427         (update-abi): Rewrite to simply compare and conditionally copy the
78428         symlist and the sysdep abilist file.  Remove update-abi-config
78429         checks.
78430         * abilist/ld.abilist: Remove.
78431         * abilist/libBrokenLocale.abilist: Remove.
78432         * abilist/libanl.abilist: Remove.
78433         * abilist/libcrypt.abilist: Remove.
78434         * abilist/libdl.abilist: Remove.
78435         * abilist/librt.abilist: Remove.
78436         * abilist/libthread_db.abilist: Remove.
78437         * abilist/libutil.abilist: Remove.
78438         * scripts/extract-abilist.awk: Remove.
78439         * scripts/merge-abilist.awk: Remove.
78440         * sysdeps/generic/libcidn.abilist: New file.
78441         * sysdeps/generic/libnss_compat.abilist: New file.
78442         * sysdeps/generic/libnss_db.abilist: New file.
78443         * sysdeps/generic/libnss_dns.abilist: New file.
78444         * sysdeps/generic/libnss_files.abilist: New file.
78445         * sysdeps/generic/libnss_hesiod.abilist: New file.
78446         * sysdeps/generic/libnss_nis.abilist: New file.
78447         * sysdeps/generic/libnss_nisplus.abilist: New file.
78448         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
78449         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
78450         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
78451         file.
78452         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
78453         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
78454         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
78455         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
78456         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
78457         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
78458         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
78459         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
78460         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
78461         file.
78462         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
78463         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
78464         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
78465         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
78466         file.
78467         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
78468         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
78469         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
78470         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
78471         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
78472         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
78473         file.
78474         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
78475         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
78476         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
78477         file.
78478         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
78479         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
78480         New file.
78481         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
78482         New file.
78483         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
78484         New file.
78485         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
78486         New file.
78487         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
78488         New file.
78489         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
78490         New file.
78491         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
78492         New file.
78493         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
78494         New file.
78495         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
78496         New file.
78497         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
78498         New file.
78499         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
78500         New file.
78501         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
78502         New file.
78503         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
78504         New file.
78505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
78506         file.
78507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
78508         New file.
78509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
78510         New file.
78511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
78512         file.
78513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
78514         New file.
78515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
78516         New file.
78517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
78518         file.
78519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
78520         New file.
78521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78522         New file.
78523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
78524         New file.
78525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
78526         New file.
78527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
78528         New file.
78529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
78530         New file.
78531         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
78532         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
78533         file.
78534         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
78535         New file.
78536         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
78537         file.
78538         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
78539         file.
78540         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
78541         file.
78542         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
78543         file.
78544         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
78545         file.
78546         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
78547         New file.
78548         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
78549         file.
78550         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
78551         file.
78552         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
78553         New file.
78554         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
78555         file.
78556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
78557         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
78558         file.
78559         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
78560         New file.
78561         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
78562         file.
78563         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
78564         file.
78565         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
78566         file.
78567         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
78568         file.
78569         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
78570         file.
78571         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
78572         New file.
78573         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
78574         file.
78575         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
78576         file.
78577         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
78578         New file.
78579         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
78580         file.
78581         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
78582         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
78583         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
78584         file.
78585         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
78586         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
78587         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
78588         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
78589         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
78590         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
78591         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
78592         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
78593         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
78594         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
78595         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
78596         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
78597         file.
78598         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
78599         New file.
78600         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
78601         file.
78602         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
78603         file.
78604         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
78605         file.
78606         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
78607         file.
78608         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
78609         file.
78610         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
78611         New file.
78612         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
78613         New file.
78614         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
78615         file.
78616         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
78617         New file.
78618         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
78619         file.
78620         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
78621         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
78622         file.
78623         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
78624         New file.
78625         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
78626         file.
78627         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
78628         file.
78629         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
78630         file.
78631         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
78632         file.
78633         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
78634         file.
78635         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
78636         New file.
78637         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
78638         New file.
78639         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
78640         file.
78641         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
78642         New file.
78643         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
78644         file.
78645
78646 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
78647
78648         * conform/conformtest.pl: Fix typo in handling typed-constant from
78649         allow-header.
78650
78651 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
78652
78653         * README: Cut down references to pre-2.6 Linux kernels and
78654         Linuxthreads.  Update lists of configurations in libc and ports
78655         and sort alphabetically.  Say "or newer" with Linux kernel version
78656         requirements.
78657
78658         * config.h.in [IS_IN_build]: Allow compiling without optimization.
78659
78660 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
78661
78662         [BZ #887]
78663         * math/libm-test.inc (logb_test_downward): New test to expose
78664         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
78665         rounding mode.
78666
78667 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
78668
78669         [BZ #14027]
78670         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
78671         to be done.
78672         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
78673         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
78674
78675 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
78676
78677         * sysdeps/unix/i386/brk.S: Remove file.
78678         * sysdeps/unix/i386/dl-brk.S: Likewise.
78679         * sysdeps/unix/i386/pipe.S: Likewise.
78680         * sysdeps/unix/i386/sigreturn.S: Likewise.
78681         * sysdeps/unix/i386/syscall.S: Likewise.
78682         * sysdeps/unix/i386/vfork.S: Likewise.
78683         * sysdeps/unix/i386/wait.S: Likewise.
78684
78685         * sysdeps/unix/common/tcsendbrk.c: Move to ...
78686         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
78687
78688         * configure.in (arm*-none*): Do not allow without
78689         --enable-hacker-mode.
78690         (netbsd*): Remove case setting base_os.
78691         (386bsd*): Likewise.
78692         (freebsd*): Likewise.
78693         (bsdi*): Likewise.
78694         (osf*): Likewise.
78695         (sunos*): Likewise.
78696         (ultrix*): Likewise.
78697         (newsos*): Likewise.
78698         (dynix*): Likewise.
78699         (*bsd*): Likewise.
78700         (sysv*): Likewise.
78701         (isc*): Likewise.
78702         (esix*): Likewise.
78703         (sco*): Likewise.
78704         (minix*): Likewise.
78705         (irix4*): Likewise.
78706         (irix6*): Likewise.
78707         (solaris[2-9]*): Likewise.
78708         (none): Likewise.
78709         * configure: Regenerated.
78710
78711 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78712
78713         [BZ #11521]
78714         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
78715         overflow or cancellation in calculating denominator.
78716         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
78717         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
78718         down expression to avoid unexpected rounding in newer GCCs.
78719         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
78720
78721 2012-04-26  David S. Miller  <davem@davemloft.net>
78722
78723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
78724         long-double compat symbols.
78725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
78726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
78727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
78728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
78729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
78730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
78731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
78732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
78733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
78734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
78735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
78736         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
78737         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
78738
78739 2012-04-25  David S. Miller  <davem@davemloft.net>
78740
78741         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
78742         HWCAP_* values only after the memory barriers have been defined.
78743         (atomic_full_barrier): Define.
78744         (atomic_read_barrier): Define.
78745         (atomic_write_barrier): Define.
78746
78747 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
78748
78749         * shlib-versions: Add libgcc_s version information.
78750         * sysdeps/generic/libgcc_s.h: Remove.
78751         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
78752         libgcc_s.h.
78753         * sysdeps/gnu/unwind-resume.c: Likewise.
78754         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
78755
78756 2012-04-25  David S. Miller  <davem@davemloft.net>
78757
78758         * sysdeps/unix/sparc/brk.S: Delete.
78759         * sysdeps/unix/sparc/dl-brk.S: Delete.
78760         * sysdeps/unix/sparc/pipe.S: Delete.
78761         * sysdeps/unix/sparc/sysdep.S: Delete.
78762         * sysdeps/unix/sparc/sysdep.h: Delete.
78763         * sysdeps/unix/sparc/vfork.S: Delete.
78764         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
78765         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
78766         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
78767         (ret_ERRVAL, r0, r1, MOVE): Define.
78768         (JUMPTARGET): Remove.
78769         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
78770         sysdeps/unix/sparc/sysdep.h
78771         (ENTRY, END): Remove.
78772         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
78773
78774 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
78775
78776         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
78777         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
78778         -DIS_IN_build.
78779
78780         * timezone/README: Update upstream location and email address for
78781         tzcode and tzdata.
78782         * timezone/zdump.c: Update from tzcode 2012b.
78783         * timezone/zic.c: Likewise.
78784
78785         * configure.in (libc_cv_as_needed): Remove test.
78786         * configure: Regenerated.
78787         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
78788         conditional definition.
78789         [$(have-as-needed) != yes] (no-as-needed): Likewise.
78790         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
78791         * config.make.in (have-as-needed): Remove variable.
78792
78793 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
78794             Paul Pluzhnikov  <ppluzhnikov@google.com>
78795
78796         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
78797         strings correctly.
78798
78799 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
78800
78801         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
78802         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
78803         * sysdeps/sh/strlen.S: Likewise.
78804
78805 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78806
78807         * sysdeps/unix/fork.S: Remove file.
78808         * sysdeps/unix/i386/fork.S: Likewise.
78809         * sysdeps/unix/sparc/fork.S: Likewise.
78810
78811         * sysdeps/unix/system.c: Remove file.
78812         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
78813
78814         * sysdeps/unix/getegid.S: Remove file.
78815         * sysdeps/unix/geteuid.S: Likewise.
78816
78817 2012-04-24  Roland McGrath  <roland@hack.frob.com>
78818
78819         * scripts/check-localplt.awk: New file.
78820         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
78821         of diff.
78822         * scripts/data/localplt-generic.data: Add a comment.
78823
78824         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
78825         NODE when __dir_mkfile failed.
78826         * sysdeps/mach/hurd/symlinkat.c: Likewise.
78827         Reported by Ludovic Courtès <ludo@gnu.org>.
78828
78829 2012-04-24  Andreas Jaeger  <aj@suse.de>
78830
78831         * Makerules (common-clean): Also remove gen-as-const-headers
78832         files.
78833
78834 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78835
78836         * Makerules (native-compile): Do not change working directory for
78837         build.  Use $(OUTPUT_OPTION) in command.
78838         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
78839
78840 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78841
78842         [BZ #13886]
78843         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
78844         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
78845         * math/libm-test.inc (floor_test): Add more tests.
78846         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
78847
78848 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78849
78850         * sysdeps/unix/getdents.c: Remove file.
78851         * sysdeps/unix/sysv/getdents.c: Likewise.
78852         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
78853
78854         * sysdeps/unix/syscalls.list (madvise): Add syscall from
78855         sysdeps/unix/mman/syscalls.list.
78856         (mmap): Likewise.
78857         (mprotect): Likewise.
78858         (msync): Likewise.
78859         (munmap): Likewise.
78860         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
78861         * sysdeps/unix/mman/syscalls.list: Remove.
78862         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
78863
78864         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
78865         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
78866         * configure: Regenerated.
78867         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
78868         $(libgcc_s_suffix).
78869         * config.make.in (libgcc_s_suffix): Remove variable.
78870
78871 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
78872
78873         * sysdeps/unix/sysv/gethostname.c: Move to ...
78874         * sysdeps/posix/gethostname.c: ... here.
78875
78876         * sysdeps/unix/execve.S: Remove file.
78877
78878         * sysdeps/unix/_exit.S: Remove file.
78879
78880 2012-04-23  Andreas Jaeger  <aj@suse.de>
78881
78882         [BZ #13739]
78883         * manual/Makefile: Remove make dist support, there's no
78884         need for a stand-alone documentation tar ball.
78885         (TEXI2DVI): Define always, it's not in Makeconfig.
78886         (dist): Removed.
78887         (tar-it): Removed.
78888         (edition): Removed.
78889         (glibc-doc-$(edition).tar): Removed
78890         (%.Z): Removed.
78891         (%.gz): Removed.
78892         (%.uu): Removed.
78893         (ETAGS): Remove, it's in Makeconfig.
78894         (move-if-change): Remove, it's in Makeconfig.
78895
78896 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         [BZ #13970]
78899         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
78900         (strtod, strtof, strtold, strtol, strtoul, strtoq)
78901         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
78902         (strtod_l, strtof_l, strtold_l): Remove __wur.
78903         It is not necessarily an error to ignore strtol's return value.
78904         One can reliably look at the stored endptr to decide whether
78905         the number had valid syntax.
78906
78907 2012-04-21  Andreas Jaeger  <aj@suse.de>
78908
78909         [BZ #13739]
78910         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
78911
78912 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
78913
78914         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
78915         * sysdeps/unix/sysv/Versions: Remove file.
78916
78917 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
78918
78919         [BZ #13927]
78920         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78921
78922 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
78923
78924         [BZ #7064]
78925         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
78926         version from __vm86.
78927
78928 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
78929
78930         * sysdeps/unix/common/lxstat.c: Remove file.
78931         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
78932
78933         * sysdeps/unix/sysv/Makefile: Remove file.
78934
78935         * sysdeps/unix/sysv/direct.h: Remove file.
78936
78937         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
78938         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
78939         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
78940         * sysdeps/unix/sysv/bits/signum.h: Likewise.
78941         * sysdeps/unix/sysv/bits/stat.h: Likewise.
78942         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
78943         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
78944
78945         * sysdeps/unix/sysv/setrlimit.c: Remove file.
78946
78947         * sysdeps/unix/xmknod.c: Remove file.
78948         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
78949
78950         * sysdeps/unix/sysv/settimeofday.c: Remove file.
78951
78952         * sysdeps/unix/sysv/i386/time.S: Remove file.
78953
78954         * sysdeps/unix/fxstat.c: Remove file.
78955         * sysdeps/unix/xstat.c: Likewise.
78956         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
78957
78958         * sysdeps/unix/sysv/sigaction.c: Remove file.
78959
78960         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
78961         (sysdep_headers): Remove variable.
78962         [termio.h not in sysdep_headers] (generated): Likewise.
78963         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
78964         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
78965         * sysdeps/unix/sysv/tcdrain.c: Likewise.
78966         * sysdeps/unix/sysv/tcflow.c: Likewise.
78967         * sysdeps/unix/sysv/tcflush.c: Likewise.
78968         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
78969         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
78970         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
78971         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
78972         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
78973
78974         * sysdeps/unix/siglist.c: Remove file.
78975
78976         * sysdeps/unix/getppid.S: Remove file.
78977
78978         * sysdeps/unix/mkdir.c: Remove file.
78979         * sysdeps/unix/rmdir.c: Likewise.
78980
78981 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
78982
78983         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
78984         ERR_MAX value.
78985         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
78986         errlist-compat value.
78987
78988 2012-04-18  David S. Miller  <davem@davemloft.net>
78989
78990         * sysdeps/generic/memcopy.h (reg_char): Delete.
78991         * debug/strcat_chk.c: Use char, not reg_char.
78992         * debug/strcpy_chk.c: Likewise.
78993         * debug/strncat_chk.c: Likewise.
78994         * debug/strncpy_chk.c: Likewise.
78995         * string/memchr.c: Likewise.
78996         * string/memrchr.c: Likewise.
78997         * string/rawmemchr.c: Likewise.
78998         * string/strcat.c: Likewise.
78999         * string/strchr.c: Likewise.
79000         * string/strchrnul.c: Likewise.
79001         * string/strcmp.c: Likewise.
79002         * string/strcpy.c: Likewise.
79003         * string/strncat.c: Likewise.
79004         * string/strncmp.c: Likewise.
79005         * string/strncpy.c: Likewise.
79006
79007 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79008
79009         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
79010         __builtin_memcopy is called when src and dest ranges are known to not
79011         overlap.
79012
79013 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79014
79015         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
79016         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
79017         fwd_align_merge macro call.
79018         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
79019         bwd_align_merge macro call.
79020         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
79021
79022 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79023
79024         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
79025         bwd_align_merge macros.
79026         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
79027         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
79028         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
79029
79030 2012-04-18  David S. Miller  <davem@davemloft.net>
79031
79032         * sysdeps/sparc/sparc64/memcopy.h: Delete.
79033
79034 2012-04-18  Andreas Jaeger  <aj@suse.de>
79035
79036         [BZ #6794]
79037         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
79038         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
79039         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79040
79041         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
79042         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
79043         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79044
79045         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
79046         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
79047         Adjust for changed ldbl-128 files.
79048
79049         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
79050         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
79051         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79052
79053 2012-04-17  David S. Miller  <davem@davemloft.net>
79054
79055         * sysdeps/sparc/sparc32/memcopy.h: Delete.
79056
79057 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
79058
79059         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
79060         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
79061         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
79062         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
79063         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
79064         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
79065
79066 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79067
79068         [BZ #6794]
79069         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
79070         * math/libm-test.inc: Add ilogb errno and exception tests.
79071         * math/w_ilogb.c: New file: ilogb wrapper.
79072         * math/w_ilogbf.c: New file: ilogbf wrapper.
79073         * math/w_ilogbl.c: New file: ilogbl wrapper.
79074         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
79075         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
79076         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
79077         exception being thrown with 0.0 as argument.
79078         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
79079         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
79080         exception being thrown with 0.0 as argument.
79081         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
79082         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
79083         exception being thrown with 0.0 as argument.
79084         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
79085         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
79086         exception being thrown with 0.0 as argument.
79087         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
79088         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
79089         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
79090         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
79091         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
79092         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
79093         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
79094         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
79095         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
79096
79097 2012-04-17  Petr Baudis  <pasky@ucw.cz>
79098
79099         * include/sys/uio.h: Change __vector to __iovec to avoid clash
79100         with altivec.
79101
79102 2012-04-16  Marek Polacek  <polacek@redhat.com>
79103
79104         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
79105
79106 2012-04-16  Marek Polacek  <polacek@redhat.com>
79107
79108         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
79109         operands of fdivp instruction.
79110
79111 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
79112
79113         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
79114         * elf/tst-auditmod3b.c: Likewise.
79115         * elf/tst-auditmod4b.c: Likewise.
79116         * elf/tst-auditmod5b.c: Likewise.
79117         * elf/tst-auditmod6b.c: Likewise.
79118         * elf/tst-auditmod6c.c: Likewise.
79119         * elf/tst-auditmod7b.c: Likewise.
79120         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
79121         * sysdeps/x86_64/preconfigure.in: Likewise.
79122         * sysdeps/x86_64/preconfigure: Regenerated.
79123
79124 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
79125
79126         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
79127         __ILP32__.
79128
79129 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
79130
79131         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
79132         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
79133
79134 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
79135
79136         [BZ #13973]
79137         * locale/iso-639.def: Fix gl language name. Spotted by
79138         Yaron Shahrabani.
79139
79140 2012-04-12  Roland McGrath  <roland@hack.frob.com>
79141
79142         [BZ #2074]
79143         * libio/libio.h (__io_write_fn): Update comment.
79144
79145 2012-04-12  Petr Baudis  <pasky@ucw.cz>
79146
79147         [BZ #2074]
79148         * stdio.texi (Hook Functions): The user provided writer function
79149         is not allowed to return -1.
79150
79151 2012-04-11  David S. Miller  <davem@davemloft.net>
79152
79153         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79154
79155 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
79156
79157         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
79158         Add a leading slash to rtkaio.
79159
79160 2012-04-11  Jim Meyering  <meyering@redhat.com>
79161
79162         [BZ #11959]
79163         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
79164         It is not necessarily an error to ignore fwrite's return
79165         value.  One can reliably use ferror to test for errors after
79166         the fact.
79167
79168 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79169
79170         * bits/types.h (__snseconds_t): New type.
79171         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
79172
79173         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
79174         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
79175         (__SNSECONDS_T_TYPE): Likewise.
79176         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
79177         (__SNSECONDS_T_TYPE): Likewise.
79178         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
79179         (__SNSECONDS_T_TYPE): Likewise.
79180
79181 2012-04-10  Andreas Jaeger  <aj@suse.de>
79182
79183         [BZ #2636]
79184         * manual/time.texi (Processor Time): Return type of times is
79185         elapsed real time since an arbitrary point in the past.
79186         (CPU Time): Move CLK_TCK from here...
79187         (Processor Time): ...to here.  Correct description.
79188         * manual/conf.texi (Constants for Sysconf): Correct description of
79189         _SC_CLK_TCK.
79190
79191 2012-04-10  David S. Miller  <davem@davemloft.net>
79192
79193         [BZ #13967]
79194         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
79195         where the is a gap between DT_REL(A) and DT_JMPREL.
79196
79197 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79198
79199         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
79200         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79201         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79202
79203 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
79204
79205         * elf/dl-support.c (_dl_inhibit_cache): New variable.
79206         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
79207         (dl_main): Handle --inhibit-cache.
79208         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
79209         _dl_inhibit_cache.
79210         * elf/dl-load.c (_dl_map_object): Use it.
79211         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
79212
79213 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79214
79215         [BZ #13872]
79216         * sysdeps/i386/fpu/e_powl.S (p78): New object.
79217         (__ieee754_powl): Saturate large exponents rather than testing for
79218         overflow of y*log2(x).
79219         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
79220         * math/libm-test.inc (pow_test): Do not permit spurious overflow
79221         exceptions.
79222
79223         [BZ #11521]
79224         * math/s_ctan.c: Include <float.h>.
79225         (__ctan): Avoid internal overflow or cancellation in calculating
79226         denominator.
79227         * math/s_ctanf.c: Likewise.
79228         * math/s_ctanl.c: Likewise.
79229         * math/s_ctanh.c: Likewise.
79230         * math/s_ctanhf.c: Likewise.
79231         * math/s_ctanhl.c: Likewise.
79232         * math/libm-test.inc (ctan_test): Add more tests.
79233         (ctanh_test): Likewise.
79234         * sysdeps/i386/fpu/libm-test-ulps: Update.
79235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79236
79237 2012-04-09  Andreas Jaeger  <aj@suse.de>
79238
79239         [BZ #6894]
79240         * manual/filesys.texi (Directory Entries): Mention that d_namlen
79241         is an optional BSD extension.
79242
79243         [BZ #10254]
79244         * manual/stdio.texi (Opening Streams): Document additional fopen
79245         parameters.
79246
79247 2012-04-09  Roland McGrath  <roland@hack.frob.com>
79248
79249         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
79250         %eax without telling the compiler.
79251
79252 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
79253
79254         [BZ # 13963]
79255         * manual/install.texi: Use sourceware.org.
79256
79257 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79258
79259         [BZ #13873]
79260         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
79261         (__ieee754_pow): Generate overflow and underflow using huge*huge
79262         and tiny*tiny rather than just returning constant infinity or zero
79263         for large exponents.
79264         * math/libm-test.inc (pow_test): Require overflow exceptions for
79265         applicable cases of large exponents.
79266
79267         [BZ #706]
79268         * sysdeps/i386/fpu/e_pow.S (p10): New object.
79269         (__ieee754_pow): Use iterative multiplication algorithm only for
79270         integer exponents with absolute value below 1024.  Check for odd
79271         integer exponents when using algorithm for real exponents.
79272         * math/libm-test.inc (pow_test): Add more tests.
79273         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
79274
79275 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
79276
79277         [BZ #13705]
79278         * math/libm-test.inc (exp_test): Do not allow overflow exception
79279         on underflow test.
79280
79281 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
79282
79283         [BZ #13705]
79284         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
79285         instead of __kernel_standard_f.
79286
79287 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
79288
79289         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
79290         * sysdeps/x86_64/memset_chk.S: Likewise.
79291
79292 2012-04-08  Andreas Jaeger  <aj@suse.de>
79293
79294         [BZ #10153]
79295         * manual/startup.texi (Environment Access): Describe return value
79296         for putenv and setenv.
79297
79298         [BZ #6895]
79299         * manual/filesys.texi (Directory Entries): Add description for
79300         DT_LNK.
79301
79302         [BZ #6890]
79303         * manual/filesys.texi (Directory Entries): Clarify that it's file
79304         system not operating system in the description of DT_UNKNOWN.
79305
79306         [BZ #6578]
79307         * manual/syslog.texi (closelog): Fix reference, it's openlog.
79308
79309 2012-04-08  Stephen Compall  <s11@member.fsf.org>
79310
79311         [BZ #6649]
79312         * manual/llio.texi (Opening and Closing Files): Add cross
79313         reference to explain mode argument.
79314
79315 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
79316
79317         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
79318         * sysdeps/x86_64/memset_chk.S: Likewise.
79319
79320 2012-04-07  David S. Miller  <davem@davemloft.net>
79321
79322         * elf/elf.h (R_SPARC_WDISP10): Define.
79323         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
79324         R_SPARC_SIZE32.
79325         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
79326         R_SPARC_SIZE64 and R_SPARC_H34.
79327
79328 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
79329
79330         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
79331         conditions and remove no longer applicable assertion.
79332
79333 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79334
79335         * bits/byteswap.h: Include <features.h>.
79336         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79337         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79338
79339 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79340
79341         * bits/byteswap.h (__bswap_16): Removed.
79342         Include <bits/byteswap-16.h> to get __bswap_16.
79343         * sysdeps/i386/bits/byteswap.h: Likewise.
79344         * sysdeps/s390/bits/byteswap.h: Likewise.
79345         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79346         * bits/byteswap-16.h: New file.
79347         * sysdeps/i386/bits/byteswap-16.h: Likewise.
79348         * sysdeps/s390/bits/byteswap-16.h: Likewise.
79349         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
79350         * string/Makefile (headers): Add bits/byteswap-16.h.
79351
79352 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
79353
79354         [BZ #13895]
79355         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
79356         extra indirection.
79357         * nss/Makefile (tests-static, tests): Add tst-nss-static.
79358         * nss/tst-nss-static.c: New.
79359
79360 2012-04-06  Robert Millan  <rmh@gnu.org>
79361
79362         [BZ #6486]
79363         * manual/llio.texi (File Position Primitive): lseek
79364         refers to WHENCE when it really means OFFSET.
79365
79366 2012-04-06  Andreas Jaeger  <aj@suse.de>
79367
79368         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
79369         strncmp declarations.
79370
79371         * abilist/libc.abilist: Add __poll and __ppoll.
79372
79373 2012-04-05  David S. Miller  <davem@davemloft.net>
79374
79375         * scripts/check-local-headers.sh: Accept a host triplet in the
79376         path matched by the exclude regexp.
79377
79378         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
79379         definition.
79380         * sysdeps/powerpc/powerpc32/dl-machine.h
79381         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
79382         * sysdeps/s390/s390-32/dl-machine.h
79383         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79384         * sysdeps/sparc/sparc32/dl-machine.h
79385         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79386         * sysdeps/sparc/sparc64/dl-machine.h
79387         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79388
79389         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
79390         lazy binding.
79391         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
79392         undefined symbol errors.
79393
79394         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
79395         DT_NEEDED entries.
79396
79397 2012-04-05  Michael Matz  <matz@suse.de>
79398
79399         [BZ #13592]
79400         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
79401
79402 2012-04-05  Andreas Jaeger  <aj@suse.de>
79403
79404         [BZ #13908]
79405         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
79406         comment.
79407
79408 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79409
79410         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
79411         which ROUND is no valid rounding mode.
79412
79413 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79414
79415         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
79416         read again.
79417         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
79418
79419 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79420
79421         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
79422         an exception using FPU order intentionally.
79423
79424 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79425
79426         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
79427         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
79428         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
79429         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
79430
79431 2012-04-05  Simon Josefsson  <simon@josefsson.org>
79432
79433         [BZ #12340]
79434         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
79435         EINVAL when BUFLEN is too smal.
79436
79437 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
79438
79439         [BZ #13553]
79440         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
79441         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
79442
79443 2012-04-03  Andreas Jaeger  <aj@suse.de>
79444
79445         [BZ #13938]
79446         * manual/setjmp.texi (System V contexts): Fix sentence.
79447
79448         [BZ #13926]
79449         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
79450         New macro for this case.
79451         [!__GNUC__] (__bswap_64): New inline function for this case.
79452         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79453         * bits/byteswap.h: Likewise.
79454         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
79455         ull, guard with __GLIBC_HAVE_LONG_LONG.
79456
79457         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
79458         __GLIBC_HAVE_LONG_LONG.
79459
79460         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
79461         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
79462
79463 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
79464
79465         [BZ #13691]
79466         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
79467         inptr and inend, rather than using last_ch.
79468
79469 2012-04-02  David S. Miller  <davem@davemloft.net>
79470
79471         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
79472         * stdio-common/printf-parse.h (read_int): Change return type to
79473         'int', return -1 on INT_MAX overflow.
79474         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
79475         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
79476         overflows INT_MAX.  Check for overflow of in-format-string precision
79477         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
79478         SIZE_MAX not INT_MAX for integer overflow test.
79479         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
79480         skip the construct in the format string but do not record anything.
79481         * stdio-common/bug22.c: Adjust to test both width/prevision
79482         INT_MAX overflow as well as total length INT_MAX overflow.  Check
79483         explicitly for proper errno values.
79484
79485 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
79486
79487         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
79488         CHAR_MAX.
79489         * string/test-strcmp.c [! WIDE]: Likewise.
79490         * time/tst-mktime2.c: Likewise for INT_MAX.
79491         * string/test-string.h: #include <sys/param.h> for MIN.
79492
79493         * csu/init-first.c (__libc_init_first): Call __ctype_init.
79494         * sysdeps/i386/init-first.c (init): Likewise.
79495         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
79496         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
79497         * sysdeps/sh/init-first.c (init): Likewise.
79498
79499 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
79500
79501         * po/ru.po: Update from translation team.
79502         * po/vi.po: Likewise.
79503
79504 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
79505
79506         * resolv/nss_dns/dns-host.c: Merge copyright years.
79507
79508 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79509
79510         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
79511         Optimize memcpy with prefetch if
79512         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
79513         src, dst pointers have unequal 16 byte alignments.
79514
79515 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
79516
79517         [BZ #13928]
79518         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
79519         from a CNAME entry and return the minimum ttl for the query.
79520         (gaih_getanswer_slice): Likewise.
79521
79522 2012-03-30  Jeff Law  <law@redhat.com>
79523
79524         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
79525         due to long keys.
79526         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
79527         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
79528
79529         * resolv/nss_dns/dns-host.c: Update copyright year.
79530
79531 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
79532
79533         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
79534         requests to save a system call.  Fix check that all bytes are sent.
79535
79536         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
79537         comments for sendmmsg.
79538
79539 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
79540
79541         [BZ #13691]
79542         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
79543         with only 1 character between 0x0041 and 0x01b0.
79544         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
79545         * wcsmbs/tst-mbsnrtowcs.c: New file.
79546
79547 2012-03-29  David S. Miller  <davem@davemloft.net>
79548
79549         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
79550         small copies by hand.
79551
79552 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
79553
79554         [BZ #13761]
79555         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
79556         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
79557         group memberships.
79558
79559 2012-03-28  David S. Miller  <davem@davemloft.net>
79560
79561         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
79562         that branches into memcpy.
79563         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
79564         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
79565         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
79566         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
79567         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
79568         bits.
79569         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
79570         implementation too.
79571         * sysdeps/sparc/mempcpy.S: New file.
79572
79573         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
79574         the IFUNC routine in the libc case.
79575         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
79576
79577         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
79578         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
79579         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
79580         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
79581         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
79582         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
79583         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
79584         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
79585
79586         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
79587         loop to 256 bytes instead of 64 bytes and fix test signedness.
79588
79589         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
79590         * sysdeps/sparc/sparc32/Makefile: rather than here...
79591         * sysdeps/sparc/sparc64/Makefile: and here.
79592
79593 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
79594
79595         * malloc/mallocbug.c: Avoid warnings about unused variables.
79596
79597 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
79598
79599         [BZ #13760]
79600         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
79601         in the right place. Discard and retry query if response is
79602         larger than input buffer size.
79603
79604 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
79605
79606         [BZ #369]
79607         [BZ #2678]
79608         [BZ #3866]
79609         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
79610         x for large integer exponent.
79611         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
79612         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
79613         sign of result as needed afterwards.
79614         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
79615         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
79616         result for underflowing pow the same as for overflow.
79617         (__kernel_standard_l): Handle powl overflow and underflow here
79618         rather than calling __kernel_standard.
79619         * math/libm-test.inc (pow_test): Add more tests.
79620
79621         [BZ #3868]
79622         [BZ #13879]
79623         [BZ #13910]
79624         [BZ #13911]
79625         [BZ #13912]
79626         [BZ #13913]
79627         [BZ #13915]
79628         [BZ #13916]
79629         [BZ #13917]
79630         [BZ #13918]
79631         [BZ #13919]
79632         [BZ #13920]
79633         [BZ #13921]
79634         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
79635         * sysdeps/ieee754/k_standard.c: Include <float.h>.
79636         (__kernel_standard_l): New function.
79637         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
79638         __kernel_standard.
79639         * math/w_acosl.c (__acosl): Likewise.
79640         * math/w_asinl.c (__asinl): Likewise.
79641         * math/w_atan2l.c (__atan2l): Likewise.
79642         * math/w_atanhl.c (__atanhl): Likewise.
79643         * math/w_coshl.c (__coshl): Likewise.
79644         * math/w_exp10l.c (__exp10l): Likewise.
79645         * math/w_exp2l.c (__exp2l): Likewise.
79646         * math/w_fmodl.c (__fmodl): Likewise.
79647         * math/w_hypotl.c (__hypotl): Likewise.
79648         * math/w_j0l.c (__j0l, __y0l): Likewise.
79649         * math/w_j1l.c (__j1l, __y1l): Likewise.
79650         * math/w_jnl.c (__jnl, __ynl): Likewise.
79651         * math/w_lgammal.c (__lgammal): Likewise.
79652         * math/w_log10l.c (__log10l): Likewise.
79653         * math/w_log2l.c (__log2l): Likewise.
79654         * math/w_logl.c (__logl): Likewise.
79655         * math/w_powl.c (__powl): Likewise.
79656         * math/w_remainderl.c (__remainderl): Likewise.
79657         * math/w_scalbl.c (sysv_scalbl): Likewise.
79658         * math/w_sinhl.c (__sinhl): Likewise.
79659         * math/w_sqrtl.c (__sqrtl): Likewise.
79660         * math/w_tgammal.c (__tgammal): Likewise.
79661         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
79662         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
79663         * math/libm-test.inc (acos_test): Add more tests.
79664         (acosh_test): Likewise.
79665         (asin_test): Likewise.
79666         (atanh_test): Likewise.
79667         (exp_test): Likewise.
79668         (exp10_test): Likewise.
79669         (exp2_test): Likewise.
79670         (expm1_test): Likewise.
79671         (lgamma_test): Likewise.
79672         (log_test): Likewise.
79673         (log10_test): Likewise.
79674         (log1p_test): Likewise.
79675         (log2_test): Likewise.
79676         (pow_test): Do not allow some spurious overflow exceptions.
79677         (sqrt_test): Add more tests.
79678         (tgamma_test): Likewise.
79679         (y0_test): Likewise.
79680         (y1_test): Likewise.
79681         (yn_test): Likewise.
79682
79683 2012-03-27  Anton Blanchard  <anton@samba.org>
79684
79685         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
79686         MAP_HUGETLB.
79687         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
79688         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
79689         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
79690
79691 2012-03-27  David S. Miller  <davem@davemloft.net>
79692
79693         * conform/Makefile: Run run-conformtest.sh using $(BASH).
79694
79695         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
79696         have-as-vis3 check.
79697
79698 2012-03-27  Andreas Jaeger  <aj@suse.de>
79699
79700         * sysdeps/x86_64/elf/configure.in: Moved to ...
79701         * sysdeps/x86_64/configure.in: ... here.
79702         * sysdeps/x86_64/elf/start.S: Moved to ...
79703         * sysdeps/x86_64/start.S: ... here.
79704         * sysdeps/x86_64/elf/configure: Delete.
79705
79706         * sysdeps/x86_64/configure.in: Merge contents from
79707         sysdeps/i386/configure.in (without i686 check).
79708
79709         * sysdeps/i386/elf/Versions: Merge into ...
79710         * sysdeps/i386/Versions: ... this.
79711         * sysdeps/i386/elf/Versions: Delete file.
79712         * sysdeps/i386/elf/start.S: Moved to ...
79713         * sysdeps/i386/start.S: ...here.
79714         * sysdeps/i386/elf/configure.in: Merge into...
79715         * sysdeps/i386/configure.in: ...here.
79716         * sysdeps/i386/elf/configure.in: Delete file.
79717         * sysdeps/i386/elf/configure: Delete file.
79718
79719         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
79720         * debug/backtracesyms.c: ... here.
79721         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
79722         * debug/backtracesymsfd.c: ... here.
79723         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
79724         * sysdeps/generic/ifunc-sel.h: ... here.
79725
79726         * sysdeps/unix/i386/start.c: Delete file.
79727         * sysdeps/unix/sparc/start.c: Delete file.
79728         * sysdeps/unix/start.c: Delete file.
79729
79730         * sysdeps/sh/elf/configure.in: Moved to ...
79731         * sysdeps/sh/configure.in: ... here.
79732         * sysdeps/sh/elf/start.S: Moved to ...
79733         * sysdeps/sh/start.S: ... here.
79734         * sysdeps/sh/elf/configure: Delete file.
79735
79736         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
79737         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
79738         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
79739         * sysdeps/powerpc/powerpc64/entry.h: ... here.
79740         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
79741         * sysdeps/powerpc/powerpc64/start.S: here.
79742         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
79743         * sysdeps/powerpc/powerpc64/Makefile: ... this.
79744         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
79745         * sysdeps/powerpc/powerpc64/configure.in: ... this.
79746         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
79747
79748         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
79749         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
79750         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
79751         * sysdeps/powerpc/powerpc32/start.S: ... here.
79752         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
79753         * sysdeps/powerpc/powerpc32/configure.in: ... this.
79754         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
79755
79756         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
79757         * sysdeps/powerpc/ifunc-sel.h: ... here.
79758         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
79759         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
79760
79761         * sysdeps/sparc/elf/configure.in: Moved to ...
79762         * sysdeps/sparc/configure.in: ... here.
79763         * sysdeps/sparc/elf/configure: Delete file.
79764         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
79765         * sysdeps/sparc/sparc32/start.S: ... here.
79766         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
79767         * sysdeps/sparc/sparc64/start.S: ... here.
79768         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
79769         * sysdeps/sparc/sparc32/Makefile: ... this.
79770         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
79771         * sysdeps/sparc/sparc64/Makefile: ... this.
79772
79773         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
79774         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
79775         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
79776         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
79777         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
79778         * sysdeps/s390/s390-32/setjmp.S: ... here.
79779         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
79780         * sysdeps/s390/s390-32/configure.in: ... here.
79781         * sysdeps/s390/s390-32/elf/configure: Delete file.
79782         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
79783         * sysdeps/s390/s390-32/start.S: ... here.
79784
79785         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
79786         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
79787         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
79788         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
79789         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
79790         * sysdeps/s390/s390-64/setjmp.S: ... here.
79791         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
79792         * sysdeps/s390/s390-64/configure.in: ... here
79793         * sysdeps/s390/s390-64/elf/configure: Delete file.
79794         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
79795         * sysdeps/s390/s390-64/start.S: ... here.
79796         * sysdeps/s390/s390-64/elf/configure: Delete.
79797
79798         * configure.in: Remove support for elf directories in sysdeps.
79799
79800         * configure: Regenerated.
79801         * sysdeps/i386/configure: Regenerated.
79802         * sysdeps/powerpc/powerpc32/configure: Regenerated.
79803         * sysdeps/powerpc/powerpc64/configure: Regenerated.
79804         * sysdeps/s390/s390-32/configure: Regenerated.
79805         * sysdeps/s390/s390-64/configure: Regenerated.
79806         * sysdeps/sh/configure: Regenerated.
79807         * sysdeps/sparc/configure: Regenerated.
79808         * sysdeps/x86_64/configure: Regenerated.
79809
79810 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
79811
79812         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79813
79814         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
79815         denormal result into account.
79816
79817 2012-03-25  Roland McGrath  <roland@hack.frob.com>
79818
79819         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
79820         Reported by Allan McRae <allan@archlinux.org>.
79821
79822 2012-03-23  Jeff Law  <law@redhat.com>
79823
79824         * nss/getnssent.c (__nss_getent): Fix typo.
79825
79826 2012-03-23  David S. Miller  <davem@davemloft.net>
79827
79828         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79829
79830 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
79831
79832         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
79833         to pad to uint64_t for each field.
79834         (dl_tls_index): Replace unsigned long with uint64_t.
79835
79836 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
79837         Paul Pluzhnikov  <ppluzhnikov@google.com>
79838
79839         [BZ #6528]
79840         * grp/Makefile (otherlibs): Don't set it.
79841         * inet/Makefile (otherlibs): Likewise.
79842         * login/Makefile (otherlibs): Likewise.
79843         * nscd/Makefile (otherlibs): Likewise.
79844         * posix/Makefile (otherlibs): Likewise.
79845         * pwd/Makefile (otherlibs): Likewise.
79846         * rt/Makefile (otherlibs): Likewise.
79847         * sunrpc/Makefile (otherlibs): Likewise.
79848         * nss/Makefile (otherlibs): Likewise.
79849         Add libnss_files to routines and static-only-routines.
79850         ($(objpfx)getent): Remove rule.
79851         * resolv/Makefile: Add libnss_dns and libresolv to routines and
79852         static-only-routines.
79853
79854 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
79855
79856         [BZ #13892]
79857         * math/s_cexp.c: Include <float.h>.
79858         (__cexp): Handle exp result overflowing not necessarily
79859         overflowing both real and imaginary parts of result.
79860         * math/s_cexpf.c: Likewise.
79861         * math/s_cexpl.c: Likewise.
79862         * math/libm-test.inc (cexp_test): Add more tests.
79863         * sysdeps/i386/fpu/libm-test-ulps: Update.
79864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79865
79866 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79867
79868         * include/link.h (ELFW): New macro.
79869         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
79870         Replace ELF64_R_TYPE with ELFW(R_TYPE).
79871
79872 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79873
79874         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
79875         with uint64_t.
79876
79877 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79878
79879         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
79880         declaration.
79881         (struct La_x32_retval): Likewise.
79882
79883 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79884
79885         * sysdeps/x86_64/preconfigure.in: New file.
79886         * sysdeps/x86_64/preconfigure: New generated file.
79887
79888 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
79889
79890         [BZ #13824]
79891         * math/e_exp2l.c: Include <float.h>.
79892         (__ieee754_exp2l): Handle overflow and underflow cases
79893         separately.  Only pass fractional part of argument to
79894         __ieee754_expl.
79895         * math/libm-test.inc (exp2_test): Add more tests.
79896
79897         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
79898         negating x to take absolute value.
79899         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
79900         Likewise.
79901         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
79902         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
79903         Likewise.
79904         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
79905         computing low part if x was negated.
79906         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
79907
79908 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
79909
79910         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
79911         la_x32_gnu_pltexit.
79912         (pltexit): Cast int_retval to ptrdiff_t.
79913         * elf/tst-auditmod3b.c: Likewise.
79914         * elf/tst-auditmod4b.c: Likewise.
79915         * elf/tst-auditmod5b.c: Likewise.
79916         * elf/tst-auditmod6b.c: Likewise.
79917         * elf/tst-auditmod6c.c: Likewise.
79918         * elf/tst-auditmod7b.c: Likewise.
79919
79920         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
79921         and x32_gnu_pltexit.
79922
79923         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
79924         __ELF_NATIVE_CLASS.
79925         (La_x32_regs): New macro.
79926         (La_x32_retval): Likewise.
79927         (la_x32_gnu_pltenter): New function prototype.
79928         (la_x32_gnu_pltexit): Likewise.
79929
79930 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
79931
79932         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
79933         exponent.
79934
79935         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79936
79937         * configure.in (libc_cv_cc_nofma): Check for option to disable
79938         generation of FMA instructions.
79939         * configure: Regenerate.
79940         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
79941         * sysdeps/ieee754/dbl-64/Makefile: New file.
79942         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
79943         Remove brandred-fma4.
79944         (CFLAGS-brandred-fma4.c): Remove.
79945         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
79946         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
79947         define.
79948         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
79949         define.
79950
79951 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
79952
79953         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
79954         LLONG_MAX != LONG_MAX.
79955         (_itoa_word): Use _ITOA_WORD_TYPE on value.
79956         (_fitoa_word): Likewise.
79957         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
79958         LLONG_MAX != LONG_MAX.
79959         * stdio-common/_itowa.h: Include <_itoa.h>.
79960         (_itowa_word): Use _ITOA_WORD_TYPE on value.
79961         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
79962         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
79963         only if not defined.
79964         (_ITOA_WORD_TYPE): Likewise.
79965         (_itoa_word): Use _ITOA_WORD_TYPE on value.
79966         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
79967
79968 2012-03-21  David S. Miller  <davem@davemloft.net>
79969
79970         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79971
79972 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
79973
79974         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
79975         of x86_64 when setting libc_cv_slibdir, libdir and
79976         libc_cv_localedir.
79977         * sysdeps/unix/sysv/linux/configure: Regenerated.
79978
79979 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
79980
79981         * manual/lang.texi (Old Varargs): Remove section.
79982         (How Variadic): Update menu.
79983         (va_start): Do not mention varargs.h.
79984
79985 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
79986             Joseph Myers  <joseph@codesourcery.com>
79987
79988         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
79989         link test.
79990         * configure: Regenerated.
79991
79992 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
79993
79994         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
79995         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
79996         conformtest.pl
79997
79998 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
79999
80000         * NOTES: Remove.
80001         * Makefile (files-for-dist): Remove NOTES.
80002         (NOTES): Remove rule.
80003         * README: Don't refer to NOTES.
80004         * manual/creature.texi: Don't include macros.texi.
80005         * manual/intro.texi (creature.texi): Remove comment referring to
80006         NOTES.
80007
80008         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
80009         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
80010         * configure: Regenerated.
80011         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
80012         LIBC_TRY_CC_OPTION.
80013         (libc_cv_as_i686): Likewise.
80014         (libc_cv_cc_avx): Likewise.
80015         (libc_cv_cc_sse2avx): Likewise.
80016         (libc_cv_cc_fma4): Likewise.
80017         (libc_cv_cc_novzeroupper): Likewise.
80018         * sysdeps/i386/configure: Regenerated.
80019
80020         [BZ #13883]
80021         * sysdeps/i386/fpu/s_cexp.S: Remove.
80022         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
80023         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
80024         * math/libm-test.inc (cexp_test): Add more tests.
80025         * sysdeps/i386/fpu/libm-test-ulps: Update.
80026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80027
80028 2012-03-21  Allan McRae  <allan@archlinux.org>
80029
80030         * timezone/Makefile: Do not install iso3166.tab and zone.tab
80031
80032 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80033
80034         [BZ #13871]
80035         * math/w_exp2.c: Do not include <float.h>.
80036         (o_threshold, u_threshold): Remove.
80037         (__exp2): Calculate result before checking finiteness and calling
80038         __kernel_standard.
80039         * math/w_exp2f.c: Likewise.
80040         * math/w_exp2l.c: Likewise.
80041         * math/libm-test.inc (exp2_test): Require overflow exception for
80042         1e6 input.
80043
80044         [BZ #3866]
80045         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
80046         range of signed 64-bit integers before using fistpll.  Remove
80047         checks for whether integers fit in mantissa bits.
80048         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
80049         the range of signed 32-bit integers before using fistpl.  Remove
80050         checks for whether integers fit in mantissa bits.
80051         * sysdeps/i386/fpu/e_powl.S (p64): New object.
80052         (__ieee754_powl): Test for y outside the range of signed 64-bit
80053         integers before using fistpll.  Reduce 64-bit values to 63-bit
80054         ones as needed.
80055         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
80056         divide-by-zero is raised for zero to large negative powers.
80057         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
80058         (__ieee754_powl): Test for y outside the range of signed 64-bit
80059         integers before using fistpll.  Reduce 64-bit values to 63-bit
80060         ones as needed.
80061         * math/libm-test.inc (pow_test): Add more tests.
80062
80063 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80064
80065         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
80066         <stdio-common/_itoa.h>.
80067         * debug/segfault.c: Likewise.
80068         * elf/dl-cache.c: Likewise.
80069         * elf/dl-minimal.c: Likewise.
80070         * elf/dl-misc.c: Likewise.
80071         * elf/dl-sysdep.c: Likewise.
80072         * elf/dl-version.c: Likewise.
80073         * elf/rtld.c: Likewise.
80074         * hurd/hurdsock.c: Likewise.
80075         * hurd/lookup-retry.c: Likewise.
80076         * malloc/malloc.c: Likewise.
80077         * malloc/mtrace.c: Likewise.
80078         * nscd/nscd_getgr_r.c: Likewise.
80079         * nscd/nscd_getpw_r.c: Likewise.
80080         * nscd/nscd_getserv_r.c: Likewise.
80081         * posix/getopt_init.c: Likewise.
80082         * posix/wordexp.c: Likewise.
80083         * stdio-common/_itoa.c: Likewise.
80084         * stdio-common/printf_fphex.c: Likewise.
80085         * stdio-common/vfprintf.c: Likewise.
80086         * string/_strerror.c: Likewise.
80087         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
80088         * sysdeps/i386/i686/hp-timing.h: Likewise.
80089         * sysdeps/mach/_strerror.c: Likewise.
80090         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
80091         * sysdeps/mach/hurd/sethostid.c: Likewise.
80092         * sysdeps/mach/hurd/xmknodat.c: Likewise.
80093         * sysdeps/mach/xpg-strerror.c: Likewise.
80094         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
80095         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
80096         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
80097         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
80098         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
80099         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
80100         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
80101         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
80102         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
80103         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
80104         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
80105         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
80106         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
80107         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
80108         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
80109         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
80110         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
80111         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
80112         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
80113         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
80114         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
80115
80116         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
80117
80118         * stdio-common/_itoa.h: Moved to ...
80119         * sysdeps/generic/_itoa.h: Here.
80120
80121         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
80122
80123         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
80124         instead of "_itoa.h" and "_itowa.h".
80125         * stdio-common/vfprintf.: Likewise.
80126
80127 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80128
80129         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
80130         <bits/wordsize.h>.
80131         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
80132         (__signbit): Likewise.
80133         (llrintf): Likewise.
80134         (llrint): Likewise.
80135
80136 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80137
80138         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
80139         __WORDSIZE != 64.
80140
80141 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
80142
80143         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
80144         OVERFLOW_EXCEPTION_OK.
80145         * math/libm-test.inc ("Philosophy"): Update comment about
80146         exception testing.
80147         (OVERFLOW_EXCEPTION): Define.
80148         (OVERFLOW_EXCEPTION_OK): Likewise.
80149         (INVALID_EXCEPTION_OK): Renumber.
80150         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
80151         (IGNORE_ZERO_INF_SIGN): Likewise.
80152         (test_exceptions): Handle FE_OVERFLOW.
80153         (exp10_test): Expect overflow exceptions.
80154         (exp2_test): Likewise.
80155         (expm1_test): Likewise.
80156         (nextafter_test): Likewise.
80157         (pow_test): Likewise.
80158         (scalbn_test): Likewise.
80159         (scalbln_test): Likewise.
80160
80161 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80162
80163         * sysdeps/x86_64/bits/atomic.h
80164         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
80165         64bit integer.
80166         (atomic_exchange_acq): Likewise.
80167         (__arch_exchange_and_add_body): Likewise.
80168         (__arch_add_body): Likewise.
80169         (atomic_add_negative): Likewise.
80170         (atomic_add_zero): Likewise.
80171
80172 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80173
80174         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
80175         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
80176
80177 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80178
80179         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
80180         Check __x86_64__ instead of __WORDSIZE.
80181
80182 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80183
80184         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
80185
80186 2012-03-19  David S. Miller  <davem@davemloft.net>
80187
80188         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80189
80190         * sysdeps/sparc/fpu/fenv_private.h: New file.
80191         * sysdeps/sparc/fpu/math_private.h: Use it.
80192         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
80193         Remove.
80194         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
80195         (libc_feholdexcept_setroundl): Remove.
80196         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
80197         Remove.
80198         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
80199         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
80200
80201 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80202
80203         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
80204         int64_t instead of long int.
80205         (INSERT_WORDS64): Likewise.
80206
80207 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80208
80209         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
80210         _Unwind_GetCFA return to _Unwind_Ptr first.
80211
80212 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
80213
80214         [BZ #13629]
80215         * math/s_clog.c: Include <float.h>.
80216         (__clog): Scale large or subnormal inputs.
80217         * math/s_clogf.c: Likewise.
80218         * math/s_clogl.c: Likewise.
80219         * math/s_clog10.c: Include <float.h>.
80220         (M_LOG10_2): Define.
80221         (__clog10): Scale large or subnormal inputs.
80222         * math/s_clog10f.c: Likewise.
80223         * math/s_clog10l.c: Likewise.
80224         * math/libm-test.inc (clog_test): Add more tests.
80225         (clog10_test): Likewise.
80226         * sysdeps/i386/fpu/libm-test-ulps: Update.
80227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80228
80229         [BZ #11451]
80230         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
80231         x and y.
80232         * math/libm-test.inc (atan2_test): Add another test.
80233
80234         * Makerules (common-objdir-compile): Remove.
80235         * sysdeps/unix/Makefile (config-generated): Do not add
80236         $(unix-generated) to variable.
80237         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
80238         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
80239         Remove rule.
80240         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
80241         Likewise.
80242         [generic bits/local_lim.h] (before-compile): Do not append to
80243         variable.
80244         [generic bits/local_lim.h] (common-generated): Likewise.
80245         [generic sys/param.h] (before-compile): Do not append to variable.
80246         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
80247         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
80248         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
80249         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
80250         include.
80251         [generic sys/param.h] (sys/param.h-includes): Remove variable.
80252         [generic sys/param.h] (sys/param.h-includes): Remove rule.
80253         [generic sys/param.h] ($(addprefix
80254         $(common-objpfx),$(sys/param.h-includes))): Likewise.
80255         [generic sys/param.h] (common-generated): Do not append to
80256         variable.
80257         [generic sys/param.h] (sysdep_headers): Likewise.
80258         [generic bits/errno.h] (before-compile): Do not append to
80259         variable.
80260         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
80261         rule.
80262         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
80263         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
80264         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
80265         [generic bits/errno.h] (common-generated): Do not append to
80266         variable.
80267         [generic bits/ioctls.h] (before-compile): Do not append to
80268         variable.
80269         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
80270         rule.
80271         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
80272         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
80273         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
80274         rule.
80275         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
80276         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
80277         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
80278         [generic bits/ioctls.h] (common-generated): Do not append to
80279         variable.
80280         [generic sys/syscall.h] (syscall.h): Remove variable.
80281         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
80282         rule.
80283         [generic sys/syscall.h] (before-compile): Do not append to
80284         variable.
80285         [generic sys/syscall.h] (common-generated): Likewise.
80286         * sysdeps/unix/errnos-tmpl.c: Remove file.
80287         * sysdeps/unix/errnos.awk: Likewise.
80288         * sysdeps/unix/ioctls-tmpl.c: Likewise.
80289         * sysdeps/unix/ioctls.awk: Likewise.
80290         * sysdeps/unix/mk-local_lim.c: Likewise.
80291         * sysdeps/unix/snarf-ioctls: Likewise.
80292
80293 2012-03-19  Richard Henderson  <rth@twiddle.net>
80294
80295         * sysdeps/i386/fpu/fenv_private.h: New file.
80296         * sysdeps/i386/fpu/math_private.h: Use it.
80297         (math_opt_barrier, math_force_eval): Remove.
80298         (libc_feholdexcept_setround_53bit): Remove.
80299         (libc_feupdateenv_53bit): Remove.
80300         * sysdeps/x86_64/fpu/math_private.h: Likewise.
80301         (math_opt_barrier, math_force_eval): Remove.
80302         (libc_feholdexcept): Remove.
80303         (libc_feholdexcept_setround): Remove.
80304         (libc_fetestexcept, libc_fesetenv): Remove.
80305         (libc_feupdateenv_test): Remove.
80306         (libc_feupdateenv, libc_feholdsetround): Remove.
80307         (libc_feresetround): Remove.
80308
80309         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
80310         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
80311
80312         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
80313         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
80314         (libc_feupdateenv_testl): New.
80315         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
80316         (libc_feupdateenv_testf): New.
80317         (libc_feupdateenv): Use libc_feupdateenv_test.
80318         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
80319         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
80320
80321         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
80322         (libc_feholdsetroundf, libc_feholdsetroundl): New.
80323         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
80324         (libc_feresetround_noex): New.
80325         (libc_feresetround_noexf): New.
80326         (libc_feresetround_noexl): New.
80327         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
80328         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
80329         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
80330         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
80331         SET_RESTORE_ROUND.
80332         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
80333         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
80334         (__cos): Likewise.
80335         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
80336         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
80337         SET_RESTORE_ROUND_NOEX.
80338         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
80339         SET_RESTORE_ROUND_NOEXF.
80340         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
80341         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
80342         (libc_feholdsetroundf): New.
80343         (libc_feresetround, libc_feresetroundf): New.
80344
80345         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
80346         (libc_feholdexcept_setround_53bit): Convert from macro to function.
80347         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
80348
80349         * sysdeps/generic/math_private.h: Include <fenv.h>.
80350         (default_libc_feholdexcept): New.
80351         (default_libc_feholdexcept_setround): New.
80352         (default_libc_fesetenv, default_libc_feupdateenv): New.
80353         (libc_feholdexcept): Only define if undefined.
80354         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
80355         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
80356         (libc_feholdexcept_setroundl): Likewise.
80357         (libc_feholdexcept_setround_53bit): Likewise.
80358         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
80359         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
80360         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
80361         (libc_feupdateenv_53bit): Likewise.
80362         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
80363         (libc_feholdexcept): Convert from macro to inline function.
80364         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
80365         (libc_fesetenv, libc_feupdateenv): Likewise.
80366
80367         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
80368         not previously defined.
80369         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
80370         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
80371         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
80372         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
80373         * sysdeps/ieee754/flt-32/math_private.h: New file.
80374         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
80375         math_private.h below SET_FLOAT_WORD.
80376         (__isnan, __isinf_ns, __finite): Remove.
80377         (__isnanf, __isinf_nsf, __finitef): Remove.
80378
80379 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
80380
80381         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80382
80383 2012-03-17  David S. Miller  <davem@davemloft.net>
80384
80385         [BZ #6471]
80386         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
80387         for 2.16.
80388
80389 2012-03-16  David S. Miller  <davem@davemloft.net>
80390
80391         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
80392         warnings.
80393
80394         [BZ #6471]
80395         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
80396         properly.
80397         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
80398         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
80399         sysdep_routines when subdir is sysvipc.
80400         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
80401         __getshmlba helper.
80402
80403         * sysdeps/sparc/fpu/libm-test/ulps: Update.
80404
80405 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80406
80407         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
80408         [__LP64__].
80409
80410 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80411
80412         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
80413         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
80414         (__lround): Renamed to ...
80415         (__llround): This.  Replace long int with long long int.
80416         Define lround functions as aliases of llround functions.
80417         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
80418
80419 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80420
80421         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
80422         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
80423         adresses to uintptr_t.  Replace "long int" and "unsigned long
80424         int" with "greg_t" on va_arg.
80425
80426 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80427
80428         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
80429         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
80430
80431         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
80432         Move e_machine check before EI_CLASS check.  Handle x32
80433         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
80434         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
80435         SKIP_EM_IA_64 and include
80436         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
80437
80438         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
80439         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
80440         (add_system_dir): New macro.
80441
80442         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
80443         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
80444
80445 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
80446
80447         [BZ #2551]
80448         [BZ #2552]
80449         [BZ #2553]
80450         [BZ #2554]
80451         [BZ #2562]
80452         [BZ #2563]
80453         [BZ #2565]
80454         [BZ #2566]
80455         [BZ #2576]
80456         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
80457         (y0): Likewise.
80458         * math/w_j0f.c (j0f): Likewise.
80459         (y0f): Likewise.
80460         * math/w_j0l.c (__j0l): Likewise.
80461         (__y0l): Likewise.
80462         * math/w_j1.c (j1): Likewise.
80463         (y1): Likewise.
80464         * math/w_j1f.c (j1f): Likewise.
80465         (y1f): Likewise.
80466         * math/w_j1l.c (__j1l): Likewise.
80467         (__y1l): Likewise.
80468         * math/w_jn.c (jn): Likewise.
80469         (yn): Likewise.
80470         * math/w_jnf.c (jnf): Likewise.
80471         (ynf): Likewise.
80472         * math/w_jnl.c (__jnl): Likewise.
80473         (__ynl): Likewise.
80474         * math/libm-test.inc (j0_test): Add more tests.
80475         (j1_test): Likewise.
80476         (jn_test): Likewise.  Add trailing semicolon to existing test.
80477         (y0_test): Likewise.
80478         (y1_test): Likewise.
80479         * sysdeps/i386/fpu/libm-test-ulps: Update.
80480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80481
80482         [BZ #13851]
80483         [BZ #13854]
80484         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
80485         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
80486         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
80487         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
80488         (__tanl): Set errno for infinite argument.
80489         * sysdeps/i386/fpu/mptan.c: Remove.
80490         * sysdeps/i386/fpu/s_tan.S: Likewise.
80491         * sysdeps/i386/fpu/s_tanl.S: Likewise.
80492         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
80493         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
80494         * math/libm-test.inc (tan_test): Add more tests and enable more
80495         tests for double and long double.
80496         * sysdeps/i386/fpu/libm-test-ulps: Update.
80497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80498
80499 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
80500
80501         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
80502         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
80503
80504 2012-03-16  Roland McGrath  <roland@hack.frob.com>
80505
80506         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
80507         * configure.in: Use it for both main tree and add-ons.
80508         * configure: Regenerated.
80509
80510 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80511
80512         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
80513
80514 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
80515
80516         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
80517         in comment.
80518
80519         [BZ #13851]
80520         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
80521         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
80522         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
80523         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
80524         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
80525         infinite argument.
80526         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
80527         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
80528         != 0 for prec == 2.
80529         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
80530         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
80531         * sysdeps/i386/fpu/s_cosl.S: Likewise.
80532         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
80533         * sysdeps/i386/fpu/s_sinl.S: Likewise.
80534         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
80535         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
80536         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
80537         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
80538         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
80539         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
80540         * math/libm-test.inc (cos_test): Add more tests and enable more
80541         tests for long double.
80542         (sin_test): Likewise.
80543         (sincos_test): Likewise.
80544         * sysdeps/i386/fpu/libm-test-ulps: Update.
80545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80546
80547 2012-03-16  David S. Miller  <davem@davemloft.net>
80548
80549         * sysdeps/sparc/fpu/math_private.h: New file.
80550
80551 2012-03-15  David S. Miller  <davem@davemloft.net>
80552
80553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
80554         file.
80555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
80556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
80557         file.
80558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
80559         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
80560         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
80561         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
80562         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
80563         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
80564         sysdep routines.
80565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
80566
80567         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
80568         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
80569
80570         * sysdeps/sparc/sparc-ifunc.h: New file.
80571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
80572         sparc-ifunc.h
80573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
80574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
80575         Likewise.
80576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
80577         Likewise.
80578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
80579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
80580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
80581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
80582         Likewise.
80583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
80584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
80585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
80586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
80587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
80588         Likewise.
80589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
80590         Likewise.
80591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
80592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
80593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
80594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
80595         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
80596         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
80597         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
80598         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
80599         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
80600         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
80601         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
80602         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
80603         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
80604         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
80605         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
80606         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
80607         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
80608         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
80609         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
80610         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
80611         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
80612         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
80613         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
80614         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
80615
80616 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
80617
80618         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
80619         scaling.
80620         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80621
80622 2012-03-15  Andreas Jaeger  <aj@suse.de>
80623
80624         [BZ #13852]
80625         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
80626         ieee754/flt-32 implementation for sin, cos and sincos.
80627         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
80628         * sysdeps/i386/fpu/s_cosf.S: Likewise.
80629         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
80630         * sysdeps/i386/fpu/s_sinf.S: Likewise.
80631         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
80632         ieee754/flt-32 implementation for tan.
80633
80634         * math/libm-test.inc (cos_test): Enable some large input tests for
80635         float as well
80636         (sin_test): Likewise.
80637         (sincos_test): Likewise.
80638         (tan_test): Add tests for large input.
80639
80640         * sysdeps/i386/fpu/libm-test-ulps: Update.
80641
80642 2012-03-15  Andreas Jaeger  <aj@suse.de>
80643
80644         [BZ #13658]
80645         * math/libm-test.inc (cos_test): Add more test cases.
80646         (sin_test): Likewise.
80647         (sincos_test): Likewise.
80648
80649 2012-03-15  Andreas Jaeger  <aj@suse.de>
80650
80651         [BZ #13837]
80652         * math/libm-test.inc (cos_test): Add a test case for large input
80653         value.
80654         (sin_test): Likewise.
80655         (sincos_test): Likewise.
80656
80657 2012-03-15  Andreas Jaeger  <aj@suse.de>
80658             Joseph Myers  <joseph@codesourcery.com>
80659
80660         [BZ #13658]
80661         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
80662         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
80663         * sysdeps/i386/fpu/branred.c: Likewise.
80664         * sysdeps/i386/fpu/dosincos.c: Likewise.
80665         * sysdeps/i386/fpu/mpa.c: Likewise.
80666         * sysdeps/i386/fpu/s_cos.S: Likewise.
80667         * sysdeps/i386/fpu/s_sin.S: Likewise.
80668         * sysdeps/i386/fpu/s_sincos.S: Likewise.
80669         * sysdeps/i386/fpu/sincos32.c: Likewise.
80670
80671         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
80672         Define.
80673         (libc_feupdateenv_53bit): Define.
80674         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
80675         Define.
80676         (libc_feupdateenv_53bit): Define.
80677
80678         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
80679         53 bit (without extend i386 double precision).
80680
80681         * math/libm-test.inc (sincos_test): Add tests for large input.
80682         (sin): Likewise.
80683         (cos): Likewise.
80684
80685         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
80686
80687 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
80688
80689         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80690
80691 2012-03-15  David S. Miller  <davem@davemloft.net>
80692
80693         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
80694         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
80695         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
80696         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
80697         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
80698         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
80699         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
80700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
80701         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
80702         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
80703         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
80704         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
80705         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
80706         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
80707         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
80708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
80709         file.
80710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
80711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
80712         file.
80713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
80714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
80715         file.
80716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
80717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
80718         file.
80719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
80720         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
80721         fmin/fmax sysdep routines.
80722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
80723
80724 2012-03-14  David S. Miller  <davem@davemloft.net>
80725
80726         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
80727         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
80728         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
80729         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
80730         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
80731         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
80732         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
80733         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
80734         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
80735         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
80736         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
80737         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
80738         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
80739         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
80740         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
80741         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
80742         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
80743         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
80744         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
80745         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
80746         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
80747         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
80748         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
80749         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
80750         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
80751         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
80752         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
80753         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
80754         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
80755         routines.
80756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
80757         file.
80758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
80759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
80760         file.
80761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
80762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
80763         file.
80764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
80765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
80766         file.
80767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
80768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
80769         file.
80770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
80771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
80772         file.
80773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
80774         file.
80775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
80776         file.
80777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
80778         file.
80779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
80780         New file.
80781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
80782         file.
80783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
80784         file.
80785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
80786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
80787         file.
80788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
80789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
80790         file.
80791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
80792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
80793         file.
80794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
80795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
80796         VIS3 routines.
80797
80798         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
80799         New file.
80800
80801         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80802
80803         * sysdeps/sparc/configure.in: New file.
80804         * sysdeps/sparc/configure: Generate.
80805         * configure.in (libc_cv_sparc_as_vis3): Substitute.
80806         * configure: Regenerate.
80807         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
80808         * config.make.in (have-as-vis3): New.
80809         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
80810         available use -Av9d instead of -Av9a.
80811         * sysdeps/sparc/sparc64/Makefile: Likewise.
80812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
80813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
80814         New file.
80815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
80816         file.
80817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
80818         New file.
80819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
80820         file.
80821         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
80822         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
80823         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
80824         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
80825         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
80826
80827         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
80828         fzeros/fnegs to load 0x80000000 into a float register instead of
80829         using the stack.
80830         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
80831
80832 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
80833
80834         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
80835         bits/syscall.h.
80836         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
80837         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
80838         ($(inst_includedir)/bits/syscall.h): Remove rule.
80839         ($(objpfx)bits/syscall.d): Include instead of
80840         $(objpfx)syscall-list.d.
80841         (generated): Change syscall-list.h and syscall-list.d to
80842         bits/syscall.h and bits/syscall.d.
80843
80844 2012-03-14  Roland McGrath  <roland@hack.frob.com>
80845
80846         [BZ #13846]
80847         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
80848
80849 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
80850
80851         [BZ #13841]
80852         * math/s_csqrt.c: Include <float.h>.
80853         (__csqrt): Scale large or subnormal inputs.
80854         * math/s_csqrtf.c: Likewise.
80855         * math/s_csqrtl.c: Likewise.
80856         * math/libm-test.inc (csqrt_test): Add more tests.
80857         * sysdeps/i386/fpu/libm-test-ulps: Update.
80858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80859
80860         [BZ #13840]
80861         * math/libm-test.inc (hypot_test): Add more tests.
80862
80863 2012-03-13  David S. Miller  <davem@davemloft.net>
80864
80865         [BZ #13840]
80866         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
80867         double-precision for the calculation instead of scaling.
80868
80869 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
80870
80871         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
80872         manipulate bits before adding and subtracting TWO52[sx].
80873         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
80874         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
80875         Likewise.
80876         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
80877
80878 2012-03-13  David S. Miller  <davem@davemloft.net>
80879
80880         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
80881         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
80882         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
80883         rtld-global-offsets.h
80884         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
80885
80886         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
80887         large parameters.
80888
80889         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
80890
80891         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
80892         'err' in the ifdef scope in which it is actually used.
80893
80894         * nss/nss_db/db-init.c: Include string.h
80895
80896 2012-03-12  David S. Miller  <davem@davemloft.net>
80897
80898         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
80899         masking out of the most significant byte of random value used.
80900         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80901         Fix coding style in previous change.
80902
80903         * sysdeps/unix/sysv/linux/kernel-features.h
80904         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
80905         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
80906         expression.
80907         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
80908         later.
80909
80910 2012-03-11  David S. Miller  <davem@davemloft.net>
80911
80912         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
80913         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
80914         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
80915         for 'resultvar' otherwise things get truncated on 64-bit.
80916
80917         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80918         Fix masking out of the most significant byte of random value used.
80919
80920         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80921
80922 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
80923
80924         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80925
80926 2012-03-09  David S. Miller  <davem@davemloft.net>
80927
80928         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
80929         variables with appropriate CPP guards.
80930         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
80931         from the frame pointer, not the stack pointer.  Correct layout
80932         comments.  Fix test on resulting framesize and the management of
80933         the outregs buffer for pltexit.  Preserve floating point return
80934         values across _dl_call_pltexit call.
80935         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
80936         framesize and the management of the outregs buffer for pltexit.
80937         Preserve floating point return values across _dl_call_pltexit
80938         call.
80939         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
80940         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
80941         (la_sparc64_gnu_pltexit): New functions.
80942         (print_exit): Fix format string for return register value.
80943
80944 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
80945
80946         * sunrpc/Makefile (others): Add rpcgen.
80947         ($(objpfx)rpcgen): Remove special build rule and dependency on
80948         libc.
80949         * sunrpc/rpcgen.c: New file.
80950
80951 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80952
80953         [BZ #13673]
80954         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
80955         * stdio-common/bug-vfprintf-nargs.c: Likewise.
80956         * sysdeps/i386/crti.S: Likewise.
80957         * sysdeps/i386/crtn.S: Likewise.
80958         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
80959         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
80960         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
80961         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
80962         * sysdeps/sh/crti.S: Likewise.
80963         * sysdeps/sh/crtn.S: Likewise.
80964         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
80965
80966         [BZ #13673]
80967         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
80968         with URL.
80969         * locale/programs/locfile-kw.gperf: Likewise.
80970         * locale/programs/charmap-kw.h: Regenerated.
80971         * locale/programs/locfile-kw.h: Likewise.
80972
80973         [BZ #13673]
80974         * intl/plural.y: Replace FSF snail mail address with URL.
80975         * intl/plural.c: Regenerated.
80976
80977 2012-03-09  Richard Henderson  <rth@twiddle.net>
80978
80979         * include/math_private.h: Remove file.
80980         * math/math_private.h: Move file ...
80981         * sysdeps/generic/math_private.h: ... here.
80982
80983         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
80984         * sysdeps/powerpc/fpu/math_private.h: Likewise.
80985         * sysdeps/x86_64/fpu/math_private.h: Likewise.
80986
80987         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
80988         and <math_private.h>.
80989         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
80990         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
80991         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
80992         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
80993         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
80994         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
80995         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
80996         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
80997         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
80998         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
80999         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
81000         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
81001         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
81002         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
81003         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
81004         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
81005         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
81006         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
81007         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
81008         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
81009         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
81010         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
81011         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
81012         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
81013         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
81014         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
81015         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
81016         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
81017         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
81018         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
81019         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
81020         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
81021         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
81022         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
81023         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
81024         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
81025         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
81026         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
81027         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
81028         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
81029         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
81030         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
81031         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
81032         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
81033         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
81034         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
81035         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
81036         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
81037         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
81038         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
81039         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
81040         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
81041         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
81042         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
81043         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
81044         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
81045         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
81046         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
81047         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
81048         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
81049         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
81050         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
81051         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
81052         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
81053         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
81054         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
81055         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
81056         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
81057         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
81058         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
81059         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
81060         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
81061         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
81062         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
81063         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
81064         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
81065         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
81066         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
81067         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
81068         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
81069         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
81070         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
81071         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
81072         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
81073         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
81074         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
81075         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
81076         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
81077         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
81078         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
81079         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
81080         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
81081         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
81082         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
81083         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
81084         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
81085         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
81086         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
81087         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
81088         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
81089         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
81090         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
81091         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
81092         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
81093         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
81094         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
81095         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
81096         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
81097         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
81098         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
81099         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
81100         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
81101         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
81102         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
81103         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
81104         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
81105         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
81106         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
81107         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
81108         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
81109         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
81110         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
81111         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
81112         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
81113         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
81114         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
81115         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
81116         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
81117         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
81118         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
81119         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
81120         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
81121         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
81122         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
81123         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
81124         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
81125         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
81126         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
81127         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
81128         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
81129         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
81130         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
81131         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
81132         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
81133         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
81134         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
81135         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
81136         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
81137         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
81138         * sysdeps/ieee754/k_standard.c: Likewise.
81139         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
81140         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
81141         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
81142         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
81143         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
81144         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
81145         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
81146         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
81147         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
81148         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
81149         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
81150         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
81151         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
81152         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
81153         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
81154         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
81155         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
81156         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
81157         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
81158         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
81159         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
81160         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
81161         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
81162         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
81163         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
81164         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
81165         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
81166         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
81167         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
81168         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
81169         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
81170         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
81171         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
81172         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
81173         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
81174         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
81175         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
81176         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
81177         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
81178         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
81179         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
81180         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
81181         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
81182         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
81183         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
81184         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
81185         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
81186         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
81187         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
81188         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
81189         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
81190         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
81191         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
81192         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
81193         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
81194         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
81195         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
81196         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
81197         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
81198         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
81199         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
81200         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
81201         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
81202         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
81203         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
81204         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
81205         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
81206         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
81207         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
81208         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
81209         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
81210         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
81211         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
81212         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
81213         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
81214         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
81215         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
81216         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
81217         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81218         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
81219         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
81220         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
81221         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
81222         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
81223         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
81224         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
81225         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
81226         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
81227         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
81228         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
81229         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
81230         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
81231         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
81232         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
81233         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
81234         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
81235         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
81236         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
81237         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
81238         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
81239         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
81240         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
81241         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
81242         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
81243         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
81244         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
81245         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
81246         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
81247         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
81248         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
81249         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
81250         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
81251         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
81252         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
81253         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
81254         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
81255         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
81256         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
81257         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
81258         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
81259         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
81260         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
81261         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
81262         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
81263         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
81264         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
81265         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
81266         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
81267         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
81268         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
81269         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
81270         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
81271         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
81272         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
81273         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
81274         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
81275         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
81276         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
81277         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
81278         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
81279         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
81280         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
81281         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
81282         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
81283         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
81284         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
81285         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
81286         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
81287         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
81288         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
81289         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
81290         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
81291         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
81292         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
81293         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
81294         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
81295         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
81296         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
81297         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
81298         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
81299         * sysdeps/ieee754/s_lib_version.c: Likewise.
81300         * sysdeps/ieee754/s_matherr.c: Likewise.
81301         * sysdeps/ieee754/s_signgam.c: Likewise.
81302         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
81303         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
81304         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
81305         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
81306         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
81307         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
81308         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
81309         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
81310         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
81311         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
81312         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
81313         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
81314         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
81315         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
81316         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
81317         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
81318         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
81319         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
81320         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
81321         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
81322         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
81323
81324 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81325
81326         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
81327         * sunrpc/rpc_main.c: Likewise.
81328         * sunrpc/rpc_svcout.c: Likewise.
81329
81330 2012-03-09  David S. Miller  <davem@davemloft.net>
81331
81332         * include/math_private.h: New file.
81333
81334 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81335
81336         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
81337         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
81338         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
81339         from <bits/socket_type.h>.
81340         (enum __socket_type): Don't define here.
81341         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
81342         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81343         bits/socket_type.h.
81344
81345         [BZ #13566]
81346         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
81347         checking __USE_GNU.
81348
81349         * Makerules ($(inst_includedir)/%.h): New rule.
81350         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
81351         (install-others): Remove variable setting.
81352         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
81353
81354 2012-03-08  Richard Henderson  <rth@twiddle.net>
81355
81356         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
81357         from macro to inline function; merge with the
81358         !__LIBC_INTERNAL_MATH_INLINES version.
81359         (__ieee754_sqrtf): Likewise.
81360
81361         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
81362         to inline function.
81363         (__rintf, __floor, __floorf): Likewise.
81364
81365         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
81366         macro to inline function.
81367         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
81368
81369         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
81370         not <math/math_private.h>.
81371
81372 2012-03-08  David S. Miller  <davem@davemloft.net>
81373
81374         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
81375         copyright year.
81376         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
81377
81378 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
81379
81380         * resolv/gai_misc.c (handle_requests): Fix struct timespec
81381         normalization.
81382         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
81383         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
81384
81385 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
81386
81387         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
81388         be defined individually, they must be defined as a block.  Define
81389         S for printing a string instead of hidint the different by using a
81390         macro for adding the 'l'.
81391         * stdio-common/tst-fphex-wide.c: Adjust.
81392
81393 2012-03-07  Marek Polacek  <polacek@redhat.com>
81394
81395         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
81396
81397 2012-03-08  Marek Polacek  <polacek@redhat.com>
81398
81399         [BZ #13806]
81400         * stdio-common/Makefile (tests): Add tst-fphex-wide.
81401         * stdio-common/tst-fphex.c: Define a few macros to make the
81402         test reusable.  Use them.
81403         * stdio-common/tst-fphex-wide.c: New file.
81404
81405 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
81406
81407         [BZ #6911]
81408         * manual/macros.texi (gnusystems): New macro.
81409         (nongnusystems): Likewise.
81410         (gnulinuxhurdsystems): Likewise.
81411         (gnuhurdsystems): Likewise..
81412         (gnulinuxsystems): Likewise.
81413         * manual/charset.texi: Use new macros or @theglibc{} to refer to
81414         variants of the GNU system, not "GNU system".
81415         * manual/conf.texi: Likewise.
81416         * manual/errno.texi: Likewise.  Update example of errno macro
81417         expansion.
81418         * manual/filesys.texi: Likewise.
81419         (getumask): Document as specific to GNU/Hurd.
81420         * manual/install.texi: Likewise.  Reword some references to
81421         GNU/Linux.
81422         * manual/intro.texi: Likewise.
81423         * manual/io.texi: Likewise.
81424         (File Name Portability): Detail which constraints are inapplicable
81425         to all GNU systems and which are only inapplicable to GNU/Hurd.
81426         * manual/job.texi: Likewise.
81427         * manual/llio.texi: Likewise.
81428         (O_NOCTTY): Document as present on GNU/Linux.
81429         * manual/maint.texi: Likewise.
81430         * manual/memory.texi: Likewise.
81431         * manual/pattern.texi: Likewise.
81432         * manual/pipe.texi: Likewise.
81433         * manual/process.texi: Likewise.
81434         * manual/resource.texi: Likewise.
81435         (RUSAGE_CHILDREN): Remove statement about specifying a particular
81436         child on GNU/Hurd.
81437         * manual/setjmp.texi: Likewise.
81438         * manual/signal.texi: Likewise.
81439         * manual/startup.texi: Likewise.
81440         * manual/stdio.texi: Likewise.
81441         * manual/terminal.texi: Likewise.
81442         (ONLCR): Document as POSIX.
81443         (OXTABS): Document availability on GNU/Linux as XTABS.
81444         (ONOEOT): Document availability separately from other bits.
81445         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
81446         * manual/time.texi: Likewise.
81447         * manual/users.texi: Likewise.
81448         * INSTALL: Regenerated.
81449         * sysdeps/gnu/errlist.c: Regenerated.
81450
81451         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
81452         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
81453         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
81454         puts.
81455         * configure: Regenerated.
81456
81457 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
81458
81459         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
81460         default includes instead of AC_HEADER_CHECK.
81461         * sysdeps/i386/configure: Regenerated.
81462
81463         [BZ #10716]
81464         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
81465         * math/s_cacoshf.c (__cacoshf): Likewise.
81466         * math/s_cacoshl.c (__cacoshl): Likewise.
81467         * math/s_casinh.c (__casinh): Set signs of result from argument.
81468         * math/s_casinhf.c (__casinhf): Likewise.
81469         * math/s_casinhl.c (__casinhl): Likewise.
81470         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
81471         (casinh_test): Add more tests.
81472         * sysdeps/i386/fpu/libm-test-ulps: Update.
81473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81474
81475 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
81476
81477         * po/zh_TW.po: Update from translation team.
81478
81479         * login/Makefile (distribute): Remove variable.
81480         * catgets/Makefile: Likewise.
81481         * mach/Makefile: Likewise.
81482         * malloc/Makefile: Likewise.
81483         * misc/Makefile: Likewise.
81484         * iconv/Makefile: Likewise.
81485         * nscd/Makefile: Likewise.
81486         * hurd/Makefile: Likewise.
81487         * manual/Makefile: Likewise.
81488         * locale/Makefile: Likewise.
81489         * intl/Makefile: Likewise.
81490         * conform/Makefile: Likewise.
81491         * nss/Makefile: Likewise.
81492         * time/Makefile: Likewise.
81493         * soft-fp/Makefile: Likewise.
81494         * dirent/Makefile: Likewise.
81495         * gmon/Makefile: Likewise.
81496         * po/Makefile: Likewise.
81497         * rt/Makefile: Likewise.
81498         * socket/Makefile: Likewise.
81499         * math/Makefile: Likewise.
81500         * signal/Makefile: Likewise.
81501         * debug/Makefile: Likewise.
81502         * elf/Makefile: Likewise.
81503         * timezone/Makefile: Likewise.
81504         * stdlib/Makefile: Likewise.
81505         * iconvdata/Makefile: Likewise.
81506         * sunrpc/Makefile: Likewise.
81507         * io/Makefile: Likewise.
81508         * argp/Makefile: Likewise.
81509         * inet/Makefile: Likewise.
81510         * hesiod/Makefile: Likewise.
81511         * grp/Makefile: Likewise.
81512         * csu/Makefile: Likewise.
81513         * wctype/Makefile: Likewise.
81514         * crypt/Makefile: Likewise.
81515         * libio/Makefile: Likewise.
81516         * string/Makefile: Likewise.
81517         * nis/Makefile: Likewise.
81518         * resolv/Makefile: Likewise.
81519         * stdio-common/Makefile: Likewise.
81520         * wcsmbs/Makefile: Likewise.
81521         * dlfcn/Makefile: Likewise.
81522         * posix/Makefile: Likewise.
81523
81524         [BZ #6959]
81525         * timezone/Makefile: Don't install timezone files, just the programs
81526         and scripts.
81527
81528 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
81529
81530         * nss/databases.def: Add missing gshadow entry.
81531
81532         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
81533
81534 2012-03-06  Marek Polacek  <polacek@redhat.com>
81535
81536         [BZ #13726]
81537         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
81538         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
81539         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
81540         * stdio-common/tst-long-dbl-fphex.c: New file.
81541
81542 2012-03-06  David S. Miller  <davem@davemloft.net>
81543
81544         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
81545         (set_obp_int): New function.
81546         (get_obp_int): New function.
81547         (__get_clockfreq_via_dev_openprom): Likewise.
81548         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
81549         Avoid unused variable warnings on 'val' and use builtin_expect.
81550         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
81551         __builtin_expect.
81552         (INLINE_CLONE_SYSCALL): Likewise.
81553
81554 2012-03-05  David S. Miller  <davem@davemloft.net>
81555
81556         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81557
81558 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
81559
81560         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81561
81562         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
81563         only for |x| >= 40.
81564         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81565
81566 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
81567
81568         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
81569         Replace gettimeofday with __vdso_gettimeofday.
81570
81571         * sysdeps/unix/sysv/linux/x86_64/init-first.c
81572         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
81573         __vdso_clock_gettime and __vdso_getcpu.
81574
81575         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
81576         time with __vdso_time.
81577
81578 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
81579
81580         * manual/lang.texi (size_t): Note types to which size_t may be
81581         equivalent with the GNU C Library, but do not describe when
81582         differences between them are significant.
81583
81584 2012-03-05  Andreas Jaeger  <aj@suse.de>
81585
81586         * sysdeps/i386/fpu/libm-test-ulps: Update.
81587
81588 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
81589
81590         [BZ #3976]
81591         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
81592         (__ieee754_pow): Save and restore rounding mode and use
81593         round-to-nearest for main computations.
81594         * math/libm-test.inc (pow_test_tonearest): New function.
81595         (pow_test_towardzero): Likewise.
81596         (pow_test_downward): Likewise.
81597         (pow_test_upward): Likewise.
81598         (main): Call the new functions.
81599         * sysdeps/i386/fpu/libm-test-ulps: Update.
81600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81601
81602         [BZ #3976]
81603         * math/libm-test.inc (cosh_test_tonearest): New function.
81604         (cosh_test_towardzero): Likewise.
81605         (cosh_test_downward): Likewise.
81606         (cosh_test_upward): Likewise.
81607         (sinh_test_tonearest): Likewise.
81608         (sinh_test_towardzero): Likewise.
81609         (sinh_test_downward): Likewise.
81610         (sinh_test_upward): Likewise.
81611         (main): Call the new functions.
81612         * sysdeps/i386/fpu/libm-test-ulps: Update.
81613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81614
81615 2012-03-05  Tom de Vries  <tom@codesourcery.com>
81616
81617         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
81618         default stack guard is set in last bytes.
81619         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
81620
81621 2012-03-05  Kees Cook  <keescook@chromium.org>
81622
81623         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
81624
81625         [BZ #13656]
81626         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
81627         possibly allocate from heap instead of stack.
81628         * stdio-common/bug-vfprintf-nargs.c: New file.
81629         * stdio-common/Makefile (tests): Add nargs overflow test.
81630
81631 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
81632
81633         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81634
81635 2012-03-03  Marek Polacek  <polacek@redhat.com>
81636
81637         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
81638         * math/math_private.h: Likewise.
81639         * stdlib/tst-strtod.c: Likewise.
81640         * sysdeps/i386/i486/bits/atomic.h: Likewise.
81641         * sysdeps/x86_64/bits/atomic.h: Likewise.
81642
81643 2012-03-02  David S. Miller  <davem@davemloft.net>
81644
81645         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
81646         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
81647         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
81648         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
81649         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
81650         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
81651         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
81652         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
81653
81654 2012-03-02  Roland McGrath  <roland@hack.frob.com>
81655
81656         [BZ #13792]
81657         * manual/examples/README: New file, says the example source files
81658         can be used under GPL>=2.
81659         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
81660         line containing just "*/".
81661         * manual/examples/add.c: Add copyright header (GPL>=2).
81662         * manual/examples/argp-ex1.c: Likewise.
81663         * manual/examples/argp-ex2.c: Likewise.
81664         * manual/examples/argp-ex3.c: Likewise.
81665         * manual/examples/argp-ex4.c: Likewise.
81666         * manual/examples/atexit.c: Likewise.
81667         * manual/examples/db.c: Likewise.
81668         * manual/examples/dir.c: Likewise.
81669         * manual/examples/dir2.c: Likewise.
81670         * manual/examples/execinfo.c: Likewise.
81671         * manual/examples/filecli.c: Likewise.
81672         * manual/examples/filesrv.c: Likewise.
81673         * manual/examples/fmtmsgexpl.c: Likewise.
81674         * manual/examples/genpass.c: Likewise.
81675         * manual/examples/inetcli.c: Likewise.
81676         * manual/examples/inetsrv.c: Likewise.
81677         * manual/examples/isockad.c: Likewise.
81678         * manual/examples/longopt.c: Likewise.
81679         * manual/examples/memopen.c: Likewise.
81680         * manual/examples/memstrm.c: Likewise.
81681         * manual/examples/mkfsock.c: Likewise.
81682         * manual/examples/mkisock.c: Likewise.
81683         * manual/examples/mygetpass.c: Likewise.
81684         * manual/examples/pipe.c: Likewise.
81685         * manual/examples/popen.c: Likewise.
81686         * manual/examples/rprintf.c: Likewise.
81687         * manual/examples/search.c: Likewise.
81688         * manual/examples/select.c: Likewise.
81689         * manual/examples/setjmp.c: Likewise.
81690         * manual/examples/sigh1.c: Likewise.
81691         * manual/examples/sigusr.c: Likewise.
81692         * manual/examples/stpcpy.c: Likewise.
81693         * manual/examples/strdupa.c: Likewise.
81694         * manual/examples/strftim.c: Likewise.
81695         * manual/examples/strncat.c: Likewise.
81696         * manual/examples/subopt.c: Likewise.
81697         * manual/examples/swapcontext.c: Likewise.
81698         * manual/examples/termios.c: Likewise.
81699         * manual/examples/testopt.c: Likewise.
81700         * manual/examples/testpass.c: Likewise.
81701         * manual/examples/timeval_subtract.c: Likewise.
81702
81703         [BZ #13792]
81704         * manual/time.texi (Elapsed Time): Move timeval_subtract example
81705         function to ...
81706         * manual/timeval_subtract.c.texi: ... here, new file.
81707
81708 2012-03-02  David S. Miller  <davem@davemloft.net>
81709
81710         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
81711
81712 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
81713
81714         [BZ #3976]
81715         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
81716         (__sin): Save and restore rounding mode and use round-to-nearest
81717         for all computations.
81718         (__cos): Save and restore rounding mode and use round-to-nearest
81719         for all computations.
81720         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
81721         <fenv.h>.
81722         (tan): Save and restore rounding mode and use round-to-nearest for
81723         all computations.
81724         * math/libm-test.inc (cos_test_tonearest): New function.
81725         (cos_test_towardzero): Likewise.
81726         (cos_test_downward): Likewise.
81727         (cos_test_upward): Likewise.
81728         (sin_test_tonearest): Likewise.
81729         (sin_test_towardzero): Likewise.
81730         (sin_test_downward): Likewise.
81731         (sin_test_upward): Likewise.
81732         (tan_test_tonearest): Likewise.
81733         (tan_test_towardzero): Likewise.
81734         (tan_test_downward): Likewise.
81735         (tan_test_upward): Likewise.
81736         (main): Call the new functions.
81737         * sysdeps/i386/fpu/libm-test-ulps: Update.
81738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81739
81740         [BZ #10135]
81741         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
81742         small n, then large n, before computing and testing k+n.
81743         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
81744         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
81745         Likewise.
81746         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
81747         Likewise.
81748         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
81749         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
81750         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
81751         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
81752         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
81753         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
81754         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
81755         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
81756         * math/libm-test.inc (scalbn_test): Add more tests.
81757         (scalbln_test): Likewise.
81758
81759         * manual/filesys.texi (mode_t): Describe constraints on size and
81760         signedness, not exact equivalence to a particular type.
81761         (ino_t): Likewise.
81762         (ino64_t): Likewise.
81763         (dev_t): Likewise.
81764         (nlink_t): Likewise.
81765         (blkcnt_t): Likewise.
81766         (blkcnt64_t): Likewise.
81767         * manual/llio.texi (off_t): Likewise.
81768
81769         [BZ #3976]
81770         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
81771         (__ieee754_exp): Save and restore rounding mode and use
81772         round-to-nearest for all computations.
81773         * math/libm-test.inc (exp_test_tonearest): New function.
81774         (exp_test_towardzero): Likewise.
81775         (exp_test_downward): Likewise.
81776         (exp_test_upward): Likewise.
81777         (main): Call the new functions.
81778         * sysdeps/i386/fpu/libm-test-ulps: Update.
81779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81780
81781 2012-03-01  Chris Demetriou  <cgd@google.com>
81782
81783         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
81784         have predictable order.
81785
81786 2012-03-01  David S. Miller  <davem@davemloft.net>
81787
81788         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
81789
81790         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
81791         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
81792         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
81793         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
81794
81795         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
81796         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
81797         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
81798         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
81799         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
81800         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
81801         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
81802         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
81803         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
81804
81805         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81806
81807         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
81808         * sysdeps/sparc/fpu/libm-test-ulps: to here.
81809         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
81810
81811         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
81812         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
81813         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
81814         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
81815         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
81816         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
81817         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
81818         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
81819         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
81820         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
81821         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
81822         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
81823         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
81824         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
81825         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
81826         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
81827         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
81828         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
81829         * sysdeps/sparc/elf/configure: Regenerated.
81830
81831 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
81832
81833         * configure.in (AS, LD): Require binutils 2.20 or later.
81834         * configure: Regenerated.
81835         * manual/install.texi (Tools for Compilation): Give binutils 2.20
81836         as required minimum version.
81837         * INSTALL: Regenerated.
81838
81839         [BZ #2541]
81840         [BZ #4108]
81841         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
81842         before squaring exponent.
81843         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
81844         bottom long double and 27 bits of top long double before squaring
81845         exponent.
81846         * math/libm-test.inc (erfc_test): Add more tests.
81847         * sysdeps/i386/fpu/libm-test-ulps: Update.
81848         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
81849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81850
81851 2012-03-01  Kai Tietz  <ktietz@redhat.com>
81852
81853         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
81854         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
81855         containing bit-fields.
81856         * soft-fp/extended.h (_FP_UNION_E): Likewise.
81857         * soft-fp/single.h (_FP_UNION_S): Likewise.
81858         * soft-fp/double.h (_FP_UNION_D): Likewise.
81859
81860 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
81861
81862         [BZ #13786]
81863         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
81864         not include ../strcmp.S.
81865         [USE_AS_STRNCASECMP_L]: Likewise.
81866         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
81867         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
81868         * sysdeps/i386/i686/multiarch/strncase_l-c.c
81869         (__strncasecmp_l_ia32): Define as alias to
81870         __strncasecmp_l_nonascii.
81871
81872         [BZ #5794]
81873         * math/libm-test.inc (expm1_test): Add test for bug 5794.
81874         * sysdeps/i386/fpu/libm-test-ulps: Update.
81875         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81876
81877         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
81878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81879
81880 2012-02-29  Jeff Law  <law@redhat.com>
81881
81882         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
81883         out of bounds read.
81884
81885 2012-02-29  Marek Polacek  <polacek@redhat.com>
81886
81887         [BZ #13706]
81888         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
81889         * elf/Makefile: Add rules to run tst-unused-dep.out.
81890
81891 2012-02-28  David S. Miller  <davem@davemloft.net>
81892
81893         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
81894         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
81895         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
81896         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
81897         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
81898         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
81899
81900 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
81901
81902         * math/libm-test.inc (llround_test): Move one test from
81903         lround_test.  Use TEST_f_L in moved test.
81904         (lround_test): Move misplaced test to llround_test.  Add testcase
81905         from bug 2561.
81906
81907 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
81908
81909         * sysdeps/x86_64/fpu/e_expf.S: New file.
81910         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
81911
81912 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
81913
81914         [BZ #13637]
81915         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
81916         of remain_len that may cause incomplete multi-byte character and
81917         false match.
81918         * posix/bug-regex33.c: New file.
81919         * posix/Makefile (tests): Add bug-regex33.
81920
81921 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
81922
81923         * manual/macros.texi: New file.
81924         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
81925         * manual/libc.texinfo: Include macros.texi.
81926         * manual/creatute.texi: Likewise.
81927         * manual/install.texi: Likewise.
81928         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
81929         @glibcadj{} in references to the GNU C Library.
81930         * manual/charset.texi: Likewise.
81931         * manual/conf.texi: Likewise.
81932         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
81933         when not using those macros.
81934         * manual/creature.texi: Likewise.
81935         * manual/crypt.texi: Likewise.
81936         * manual/errno.texi: Likewise.
81937         * manual/filesys.texi: Likewise.
81938         * manual/header.texi: Likewise.
81939         * manual/install.texi: Likewise.
81940         * manual/intro.texi: Likewise.
81941         * manual/io.texi: Likewise.
81942         * manual/job.texi: Likewise.
81943         * manual/lang.texi: Likewise.
81944         * manual/libc.texiinfo: Likewise.
81945         * manual/llio.texi: Likewise.
81946         * manual/locale.texi: Likewise.
81947         * manual/maint.texi: Likewise.
81948         * manual/math.texi: Likewise.
81949         * manual/memory.texi: Likewise.
81950         * manual/message.texi: Likewise.
81951         * manual/nss.texi: Likewise.
81952         * manual/pattern.texi: Likewise.
81953         * manual/process.texi: Likewise.
81954         * manual/resource.texi: Likewise.
81955         * manual/search.texi: Likewise.
81956         * manual/setjmp.texi: Likewise.
81957         * manual/signal.texi: Likewise.
81958         * manual/socket.texi: Likewise.
81959         * manual/startup.texi: Likewise.
81960         * manual/stdio.texi: Likewise.
81961         * manual/string.texi: Likewise.
81962         * manual/sysinfo.texi: Likewise.
81963         * manual/syslog.texi: Likewise.
81964         * manual/terminal.texi: Likewise.
81965         * manual/time.texi: Likewise.
81966         * manual/users.texi: Likewise.
81967         * INSTALL: Regenerated.
81968         * NOTES: Regenerated.
81969         * sysdeps/gnu/errlist.c: Regenerated.
81970
81971 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
81972
81973         * include/dirent.h: Include <dirstream.h> before
81974         <dirent/dirent.h>.
81975
81976 2012-02-28  David S. Miller  <davem@davemloft.net>
81977
81978         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
81979         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
81980         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
81981         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
81982
81983 2012-02-27  David S. Miller  <davem@davemloft.net>
81984
81985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
81986         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
81987         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
81988         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
81989
81990         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
81991         frame pointer instead of stack pointer relative arg slot.
81992         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
81993         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
81994         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
81995
81996 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
81997
81998         [BZ #3992]
81999         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
82000
82001 2012-02-27  David S. Miller  <davem@davemloft.net>
82002
82003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
82004         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
82005         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
82006         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
82007         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
82008         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
82009         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
82010         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
82011
82012 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
82013
82014         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
82015         later.  Allow versions 5-9.
82016         * configure: Regenerated.
82017         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
82018         required minimum version and 4.6 as recommended version.  Do not
82019         mention bugs in GCC 2.7 and 2.8.
82020         * INSTALL: Regenerated.
82021
82022 2012-02-27  David S. Miller  <davem@davemloft.net>
82023
82024         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
82025         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
82026         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
82027         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
82028         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
82029         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
82030         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
82031         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
82032
82033         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
82034         manipulate bits before adding and subtracting TWO112[sx].
82035         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
82036
82037 2012-02-27  Roland McGrath  <roland@hack.frob.com>
82038
82039         [BZ #13775]
82040         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
82041         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
82042         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
82043         being in POSIX, because they are in 1003.1-2008.
82044
82045         * rt/tst-aio.c: Include <fcntl.h>.
82046         * rt/tst-aio7.c: Likewise.
82047         * rt/tst-aio64.c: Likewise.
82048
82049         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
82050
82051 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
82052
82053         * manual/install.texi (--with-headers): Describe headers as
82054         interface headers, not private headers.
82055         (Specific advice for GNU/Linux systems): Describe use of headers
82056         from "make headers_install", not private headers from older
82057         kernels.
82058         * INSTALL: Regenerated.
82059         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
82060         Change to 2.6.19.
82061         * sysdeps/unix/sysv/linux/configure: Regenerated.
82062
82063         * manual/llio.texi (fclean): Remove documentation.
82064
82065         * manual/Makefile (libc-texi-generated): New variable.  Include
82066         version.texi.
82067         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
82068         $(libc-texi-generated), not duplicated list of files.
82069         (version.texi, stamp-version): New rules.
82070         (realclean): Remove $(libc-texi-generated), not individual files
82071         from that list.  Do not remove dir-add.texinfo.
82072         * manual/libc.texinfo: Comment out uses of edition numbers and
82073         references to printed manual.  Remove last-updated dates.
82074         (EDITION): Comment out.
82075         (ISBN): Likewise.
82076         (VERSION, UPDATED): Remove.
82077         (version.texi): Include.
82078
82079 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
82080
82081         * sysdeps/posix/spawni.c: Include <signal.h>.
82082         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
82083         * sysdeps/pthread/aio_fsync.c: Likewise.
82084
82085 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
82086
82087         * conform/Makefile (tests): Run only when not cross-compiling and
82088         when fast-check is not defined.
82089
82090         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
82091         * conform/data/limits.h-data: Fixes for POSIX2008.
82092         * conform/run-conformtest.sh: Run all tests.
82093         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
82094         headers.
82095         * include/bits/dlfcn.h: Likewise.
82096         * include/langinfo.h: Likewise.
82097         * include/monetary.h: Likewise.
82098         * include/sys/poll.h: Likewise.
82099
82100         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
82101         for __USE_GNU.
82102         * posix/spawn.h: Define __need_sigset_t.
82103         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
82104         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
82105         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
82106         to get sigevent_t only.
82107         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
82108         only for __USE_GNU.
82109         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
82110         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
82111         process_vm_writev only for __USE_GNU.
82112         * termios/termios.h: Declare tcgetsid also for POSIX2008.
82113
82114         * conform/Makefile: For now ignore errors from run-conformtest.
82115         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
82116         POSIX to avoid namespace pollution.  Don't prepend headers.
82117         * conform/data/aio.h-data: Fixes for POSIX testing.
82118         * conform/data/fcntl.h-data: Likewise.
82119         * conform/data/glob.h-data: Likewise.
82120         * conform/data/grp.h-data: Likewise.
82121         * conform/data/pthread.h-data: Likewise.
82122         * conform/data/pwd.h-data: Likewise.
82123         * conform/data/signal.h-data: Likewise.
82124         * conform/data/spawn.h-data: Likewise.
82125         * conform/data/stdio.h-data: Likewise.
82126         * conform/data/stdlib.h-data: Likewise.
82127         * conform/data/stropts.h-data: Likewise.
82128         * conform/data/sys/mman.h-data: Likewise.
82129         * conform/data/sys/stat.h-data: Likewise.
82130         * conform/data/sys/types.h-data: Likewise.
82131         * conform/data/sys/wait.h-data: Likewise.
82132         * conform/data/time.h-data: Likewise.
82133         * conform/data/unistd.h-data: Likewise.
82134         * conform/data/utime.h-data: Likewise.
82135
82136         * io/sys/stat.h: fchmod was always in POSIX.
82137         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
82138         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
82139         * rt/aio.h: Define __need_timespec before including <time.h>.
82140         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
82141         struct.  Add forward declaration of pthread_attr_t and use it in
82142         sigevent.
82143         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
82144         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
82145         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
82146         always remove CLK_TCK definition.
82147
82148 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
82149
82150         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
82151
82152 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
82153
82154         * conform/run-conformtest.sh: New file.
82155         * conform/Makefile: Run run-conformtest for tests.
82156         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
82157         support.
82158
82159         * conform/data/uchar.h-data: New file.
82160         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
82161         * conform/data/arpa/inet.h-data: Likewise.
82162         * conform/data/assert.h-data: Likewise.
82163         * conform/data/complex.h-data: Likewise.
82164         * conform/data/cpio.h-data: Likewise.
82165         * conform/data/ctype.h-data: Likewise.
82166         * conform/data/dirent.h-data: Likewise.
82167         * conform/data/dlfcn.h-data: Likewise.
82168         * conform/data/errno.h-data: Likewise.
82169         * conform/data/fcntl.h-data: Likewise.
82170         * conform/data/float.h-data: Likewise.
82171         * conform/data/fmtmsg.h-data: Likewise.
82172         * conform/data/fnmatch.h-data: Likewise.
82173         * conform/data/ftw.h-data: Likewise.
82174         * conform/data/glob.h-data: Likewise.
82175         * conform/data/grp.h-data: Likewise.
82176         * conform/data/iconv.h-data: Likewise.
82177         * conform/data/inttypes.h-data: Likewise.
82178         * conform/data/langinfo.h-data: Likewise.
82179         * conform/data/libgen.h-data: Likewise.
82180         * conform/data/limits.h-data: Likewise.
82181         * conform/data/locale.h-data: Likewise.
82182         * conform/data/math.h-data: Likewise.
82183         * conform/data/monetary.h-data: Likewise.
82184         * conform/data/mqueue.h-data: Likewise.
82185         * conform/data/ndbm.h-data: Likewise.
82186         * conform/data/net/if.h-data: Likewise.
82187         * conform/data/netdb.h-data: Likewise.
82188         * conform/data/netinet/in.h-data: Likewise.
82189         * conform/data/nl_types.h-data: Likewise.
82190         * conform/data/poll.h-data: Likewise.
82191         * conform/data/pthread.h-data: Likewise.
82192         * conform/data/pwd.h-data: Likewise.
82193         * conform/data/regex.h-data: Likewise.
82194         * conform/data/sched.h-data: Likewise.
82195         * conform/data/search.h-data: Likewise.
82196         * conform/data/semaphore.h-data: Likewise.
82197         * conform/data/setjmp.h-data: Likewise.
82198         * conform/data/signal.h-data: Likewise.
82199         * conform/data/spawn.h-data: Likewise.
82200         * conform/data/stdarg.h-data: Likewise.
82201         * conform/data/stdio.h-data: Likewise.
82202         * conform/data/stdlib.h-data: Likewise.
82203         * conform/data/string.h-data: Likewise.
82204         * conform/data/strings.h-data: Likewise.
82205         * conform/data/stropts.h-data: Likewise.
82206         * conform/data/sys/ipc.h-data: Likewise.
82207         * conform/data/sys/mman.h-data: Likewise.
82208         * conform/data/sys/msg.h-data: Likewise.
82209         * conform/data/sys/resource.h-data: Likewise.
82210         * conform/data/sys/select.h-data: Likewise.
82211         * conform/data/sys/sem.h-data: Likewise.
82212         * conform/data/sys/shm.h-data: Likewise.
82213         * conform/data/sys/socket.h-data: Likewise.
82214         * conform/data/sys/stat.h-data: Likewise.
82215         * conform/data/sys/statvfs.h-data: Likewise.
82216         * conform/data/sys/time.h-data: Likewise.
82217         * conform/data/sys/timeb.h-data: Likewise.
82218         * conform/data/sys/times.h-data: Likewise.
82219         * conform/data/sys/types.h-data: Likewise.
82220         * conform/data/sys/uio.h-data: Likewise.
82221         * conform/data/sys/un.h-data: Likewise.
82222         * conform/data/sys/utsname.h-data: Likewise.
82223         * conform/data/sys/wait.h-data: Likewise.
82224         * conform/data/syslog.h-data: Likewise.
82225         * conform/data/tar.h-data: Likewise.
82226         * conform/data/termios.h-data: Likewise.
82227         * conform/data/utime.h-data: Likewise.
82228         * conform/data/utmpx.h-data: Likewise.
82229         * conform/data/varargs.h-data: Likewise.
82230         * conform/data/wchar.h-data: Likewise.
82231         * conform/data/wctype.h-data: Likewise.
82232         * conform/data/wordexp.h-data: Likewise.
82233
82234         * include/stropts.h: New file.
82235         * include/uchar.h: New file.
82236         * include/aio.h: Changes to allow conformtest.pl to use the headers.
82237         * include/assert.h: Likewise.
82238         * include/ctype.h: Likewise.
82239         * include/dirent.h: Likewise.
82240         * include/dlfcn.h: Likewise.
82241         * include/fcntl.h: Likewise.
82242         * include/fnmatch.h: Likewise.
82243         * include/glob.h: Likewise.
82244         * include/grp.h: Likewise.
82245         * include/libio.h: Likewise.
82246         * include/locale.h: Likewise.
82247         * include/math.h: Likewise.
82248         * include/net/if.h: Likewise.
82249         * include/netdb.h: Likewise.
82250         * include/netinet/in.h: Likewise.
82251         * include/pthread.h: Likewise.
82252         * include/pwd.h: Likewise.
82253         * include/regex.h: Likewise.
82254         * include/sched.h: Likewise.
82255         * include/search.h: Likewise.
82256         * include/setjmp.h: Likewise.
82257         * include/signal.h: Likewise.
82258         * include/stdio.h: Likewise.
82259         * include/stdlib.h: Likewise.
82260         * include/string.h: Likewise.
82261         * include/sys/cdefs.h: Likewise.
82262         * include/sys/mman.h: Likewise.
82263         * include/sys/msg.h: Likewise.
82264         * include/sys/resource.h: Likewise.
82265         * include/sys/select.h: Likewise.
82266         * include/sys/socket.h: Likewise.
82267         * include/sys/stat.h: Likewise.
82268         * include/sys/statvfs.h: Likewise.
82269         * include/sys/time.h: Likewise.
82270         * include/sys/times.h: Likewise.
82271         * include/sys/uio.h: Likewise.
82272         * include/sys/utsname.h: Likewise.
82273         * include/sys/wait.h: Likewise.
82274         * include/termios.h: Likewise.
82275         * include/time.h: Likewise.
82276         * include/ulimit.h: Likewise.
82277         * include/unistd.h: Likewise.
82278         * include/utime.h: Likewise.
82279         * include/wchar.h: Likewise.
82280         * include/wctype.h: Likewise.
82281         * include/wordexp.h: Likewise.
82282
82283         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
82284
82285         * time/time.h: TIME_UTC must be a macro.
82286         Make timespec_get available for ISO C11 only as well.
82287
82288 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
82289
82290         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
82291         Reported by Peng Haitao <penght@cn.fujitsu.com>.
82292
82293 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82294
82295         * configure.in: Use -o not -a in test for unsupported multi-arch.
82296
82297 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82298
82299         * manual/texinfo.tex: Update to version 2012-01-19.16.
82300
82301 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82302
82303         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
82304
82305 2012-02-24  Roland McGrath  <roland@hack.frob.com>
82306
82307         [BZ #13738]
82308         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
82309         * manual/fdl-1.3.texi: New file.
82310         * manual/fdl-1.1.texi: File removed.
82311
82312         [BZ #13738]
82313         * manual/libc.texinfo (FDL_VERSION): New @set.
82314         Use it for mention of FDL in cover text.
82315         (Documentation License): Use it in @include file name.
82316
82317 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82318             Roland McGrath  <roland@hack.frob.com>
82319
82320         [BZ #5461]
82321         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
82322         (not LONG_LONG_MAX and LONG_LONG_MIN.
82323         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
82324         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
82325         name.
82326         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
82327
82328 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82329
82330         [BZ #2547]
82331         [BZ #11365]
82332         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
82333         manipulate bits before adding and subtracting TWO23[sx].
82334         * math/libm-test.inc (nearbyint_test): Add more tests.
82335
82336 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82337
82338         [BZ #2548]
82339         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
82340         bits before adding and subtracting TWO23[sx].
82341         * math/libm-test.inc (rint_test): Add more tests.
82342         (rint_test_tonearest): Likewise.
82343         (rint_test_towardzero): Likewise.
82344         (rint_test_downward): Likewise.
82345         (rint_test_upward: Likewise.
82346
82347 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82348
82349         [BZ #10110]
82350         * include/stdc-predef.h: New file.  Extracted from features.h.
82351         * include/features.h: Include stdc-predef.h.
82352         * Makefile (headers): Add stdc-predef.h.
82353         * CONFORMANCE (Compiler limitations): Update.
82354
82355 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82356
82357         * manual/libc.texinfo (VERSION, UPDATED): Revert.
82358
82359 2012-02-21  David S. Miller  <davem@davemloft.net>
82360
82361         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
82362         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82363
82364 2012-02-20  David S. Miller  <davem@davemloft.net>
82365
82366         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
82367         using a normal save/restore sequence, rather than allocating a
82368         dummy stack frame just to store a frame pointer and restore.
82369         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82370
82371 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82372
82373         * manual/install.texi: Fix stray word in line-wrapped comment.
82374
82375 2012-02-20  David S. Miller  <davem@davemloft.net>
82376
82377         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
82378         both binutils and gcc support GOTDATA.
82379
82380         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
82381         "rd %pc" in the PIC register setup sequences.
82382
82383         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
82384         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
82385         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
82386         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
82387         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
82388         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
82389         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
82390         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82391         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
82392         (SYSCALL_ERROR_HANDLER): Likewise.
82393         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
82394         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
82395         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
82396         (SYSCALL_ERROR_HANDLER): Likewise.
82397
82398         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
82399         (HAVE_GCC_GOTDATA): New.
82400         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
82401         relocation support in both binutils and gcc.
82402         * sysdeps/sparc/elf/configure: Regenerate.
82403
82404         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
82405         * sysdeps/sparc/sparc32/elf/configure: Delete.
82406         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
82407         * sysdeps/sparc/sparc64/elf/configure: Delete.
82408         * sysdeps/sparc/elf/configure.in: New file.
82409         * sysdeps/sparc/elf/configure: Generate.
82410
82411         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
82412         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
82413         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
82414         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
82415         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
82416
82417 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82418
82419         * manual/install.texi: Do not mention specific glibc version
82420         numbers.
82421         * manual/libc.texinfo (VERSION, UPDATED): Update.
82422         (@copying): Use @copyright{} and range of years.
82423
82424 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82425
82426         [BZ #13695]
82427         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
82428         [crti.S not in sysdirs] (generated): Do not append.
82429         [crti.S not in sysdirs] (omit-deps): Likewise.
82430         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
82431         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
82432         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
82433         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
82434         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
82435         Likewise.
82436         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
82437         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
82438         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
82439         * csu/defs.awk: Remove file.
82440         * sysdeps/generic/initfini.c: Likewise.
82441         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
82442         variable.
82443         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
82444         Likewise.
82445
82446 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82447
82448         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
82449         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
82450         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
82451         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
82452         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
82453         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
82454         <bits/epoll.h>.
82455         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
82456         (__EPOLL_PACKED): Define to empty if not defined by
82457         <bits/epoll.h>.
82458         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
82459         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82460         bits/epoll.h.
82461
82462 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82463
82464         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
82465         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
82466         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
82467         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
82468         <bits/timerfd.h>.
82469         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
82470         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82471         bits/timerfd.h.
82472
82473 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82474
82475         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
82476         in C locale.
82477         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
82478         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
82479         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
82480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82481
82482 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
82483
82484         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
82485         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82486
82487 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
82488
82489         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
82490         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
82491         defined.
82492         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
82493         Likewise.
82494         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
82495         entry for 2.16.
82496
82497 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
82498
82499         * math/w_acos.c: Use non-signaling floating-point comparisons.
82500         * math/w_acosf.c: Likewise.
82501         * math/w_acosh.c: Likewise.
82502         * math/w_acoshf.c: Likewise.
82503         * math/w_acoshl.c: Likewise.
82504         * math/w_acosl.c: Likewise.
82505         * math/w_asin.c: Likewise.
82506         * math/w_asinf.c: Likewise.
82507         * math/w_asinl.c: Likewise.
82508         * math/w_atanh.c: Likewise.
82509         * math/w_atanhf.c: Likewise.
82510         * math/w_atanhl.c: Likewise.
82511         * math/w_exp2.c: Likewise.
82512         * math/w_exp2f.c: Likewise.
82513         * math/w_exp2l.c: Likewise.
82514         * math/w_j0.c: Likewise.
82515         * math/w_j0f.c: Likewise.
82516         * math/w_j0l.c: Likewise.
82517         * math/w_j1.c: Likewise.
82518         * math/w_j1f.c: Likewise.
82519         * math/w_j1l.c: Likewise.
82520         * math/w_jn.c: Likewise.
82521         * math/w_jnf.c: Likewise.
82522         * math/w_log.c: Likewise.
82523         * math/w_log10.c: Likewise.
82524         * math/w_log10f.c: Likewise.
82525         * math/w_log10l.c: Likewise.
82526         * math/w_log2.c: Likewise.
82527         * math/w_log2f.c: Likewise.
82528         * math/w_log2l.c: Likewise.
82529         * math/w_logf.c: Likewise.
82530         * math/w_logl.c: Likewise.
82531         * math/w_sqrt.c: Likewise.
82532         * math/w_sqrtf.c: Likewise.
82533         * math/w_sqrtl.c: Likewise.
82534         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
82535         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
82536         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
82537         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
82538         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
82539
82540 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82541
82542         [BZ #9739]
82543         * manual/string.texi (strnlen): Use correct parameter name in
82544         equivalent expression.
82545
82546 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82547
82548         [BZ #11174]
82549         * manual/users.texi (seteuid): Consistently use neweuid for
82550         argument name.
82551
82552 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82553
82554         [BZ #13704]
82555         * manual/nss.texi (Services in the NSS configuration): Correct
82556         list of services in example configuration file.
82557
82558 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
82559
82560         [BZ #11322]
82561         * manual/arith.texi: Remove statements about negative zero
82562         behaving identically to zero.
82563
82564 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
82565
82566         [BZ #5993]
82567         * manual/install.texi: Do not document upgrading from libc5.
82568
82569 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
82570
82571         [BZ #4596]
82572         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
82573
82574 2012-02-18  David S. Miller  <davem@davemloft.net>
82575
82576         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
82577         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
82578         %o7 across the call.
82579         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
82580         instead.
82581         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
82582         SETUP_PIC_REG_LEAF.
82583         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
82584         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
82585         * sysdeps/sparc/crtn.S: Likewise.
82586
82587 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
82588
82589         * aout/Makefile: Remove.
82590
82591 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
82592
82593         [BZ #13058]
82594         * manual/examples/argp-ex1.c (main): Format definition in GNU
82595         style.
82596         * manual/examples/argp-ex2.c (main): Likewise.
82597         * manual/examples/argp-ex3.c (main): Likewise.
82598         * manual/examples/argp-ex4.c (main): Likewise.
82599         * manual/examples/longopt.c (main): Use new-style prototype
82600         definition.
82601         * manual/examples/strncat.c (main): Specify return type and use
82602         (void) for arguments.
82603         * manual/examples/subopt.c (main): Use char **argv argument.
82604
82605 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82606
82607         [BZ #5077]
82608         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
82609         rounding modes.
82610
82611 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
82612
82613         [BZ #6907]
82614         * manual/string.texi (strchr): Change when strchrnul is
82615         recommended.
82616
82617 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
82618
82619         [BZ #174]
82620         * manual/locale.texi (setlocale): Document LOCPATH.
82621
82622 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82623
82624         [BZ #10210]
82625         * manual/process.texi (execle): Move @dots{} before last argument.
82626
82627 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
82628
82629         [BZ #12047]
82630         * manual/charset.texi (Generic Charset Conversion): Fix typo
82631         (LC_TYPE -> LC_CTYPE).
82632
82633 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
82634
82635         [BZ #5805]
82636         * manual/arith.texi (scalbn): Use @var{} on parameter names.
82637         (scalbnf): Likewise.
82638         (scalbnl): Likewise.
82639         (scalbln): Likewise.
82640         (scalblnf): Likewise.
82641         (scalblnl): Likewise.
82642         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
82643         (vwarnx): Likewise.
82644         (verr): Likewise.
82645         (verrx): Likewise.
82646         * manual/filesys.texi (telldir): Use braces around return type.
82647         * manual/llio.texi (mmap): Add space after comma.
82648         (mmap64): Likewise.
82649         * manual/math.texi (jn): Use @var{} on parameter names.
82650         (jnf): Likewise.
82651         (jnl): Likewise.
82652         (yn): Likewise.
82653         (ynf): Likewise.
82654         (ynl): Likewise.
82655         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
82656         line.
82657         * manual/resource.texi (ulimit): Use @dots{} instead of literal
82658         "...".
82659         (sched_get_priority_min): Remove semicolon on @deftypefun line.
82660         (sched_get_priority_max): Likewise.
82661         * manual/signal.texi (sigvec): Add space after comma.
82662         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
82663         names.
82664         (if_indextoname): Likewise.
82665         (if_freenameindex): Likewise.
82666         (sendto): Use ',' instead of '.' in prototype.
82667         * manual/startup.texi (syscall): Use @dots{} instead of literal
82668         "...".
82669         * manual/stdio.texi (__fpending): Separate initial words of
82670         paragraph from @deftypefun line.
82671         * manual/syslog.texi (syslog): Use @dots{} instead of literal
82672         "...".
82673         (vsyslog): Use @var{} on parameter names.
82674         * manual/terminal.texi (stty): Use @var{} on parameter names.
82675         * manual/users.texi (getutmp): Use @var{} on parameter names.
82676         (getutmpx): Likewise.
82677
82678 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82679
82680         [BZ #6884]
82681         * manual/stdio.texi (fopen): Fix typos in description of
82682         ",ccs=STRING".
82683
82684 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
82685
82686         [BZ #4026]
82687         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
82688         get clock_id definition.
82689
82690 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
82691
82692         [BZ #4822]
82693         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
82694         (madvise): Cast every argument to void on its own.
82695
82696 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82697
82698         [BZ #9902]
82699         * manual/startup.texi (Exit Status): Fix typo.
82700
82701 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82702
82703         [BZ #10140]
82704         * manual/examples/argp-ex1.c: Include <stdlib.h>.
82705         * manual/examples/argp-ex2.c: Likewise.
82706         * manual/examples/argp-ex3.c: Likewise.
82707
82708 2012-02-16  Richard Henderson  <rth@redhat.com>
82709
82710         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
82711         * sysdeps/s390/s390-32/initfini.c: Remove.
82712         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
82713         * sysdeps/s390/s390-64/initfini.c: Remove.
82714
82715 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
82716
82717         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
82718         compiler output for sysdeps/generic/initfini.c.
82719         * sysdeps/sh/elf/initfini.c: Remove file.
82720
82721 2012-02-16  David S. Miller  <davem@davemloft.net>
82722
82723         [BZ #11494]
82724         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
82725
82726         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
82727         * sysdeps/sparc/crti.S: New file.
82728         * sysdeps/sparc/crtn.S: New file.
82729         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
82730         * sysdeps/sparc/sparc64/Makefile: Likewise.
82731
82732 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
82733
82734         [BZ #3335]
82735         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
82736
82737 2012-02-15  Roland McGrath  <roland@hack.frob.com>
82738
82739         [BZ #4822]
82740         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
82741
82742         * mach/devstream.c (cookie_io_functions_t): Macro removed.
82743         (write, read, close): Likewise.
82744         Patch by Aurelien Jarno <aurelien@aurel32.net>.
82745
82746 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
82747
82748         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
82749         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
82750         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
82751         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
82752         <bits/signalfd.h>.
82753         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
82754         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82755         bits/signalfd.h.
82756
82757 2012-02-14  Marek Polacek  <polacek@redhat.com>
82758
82759         * sysdeps/x86_64/crti.S: New file.
82760         * sysdeps/x86_64/crtn.S: New file.
82761         * sysdeps/x86_64/elf/initfini.c: Remove file.
82762
82763 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
82764
82765         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
82766         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
82767         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
82768         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
82769         <bits/inotify.h>.
82770         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
82771         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82772         bits/inotify.h.
82773
82774 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
82775
82776         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
82777         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
82778         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
82779         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
82780         <bits/eventfd.h>.
82781         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
82782         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82783         bits/eventfd.h.
82784
82785 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
82786
82787         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
82788         __feraiseexcept instead of feraiseexcept.
82789
82790         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
82791         nanosleep invocations.
82792         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
82793         strings, and add error checking for a nanosleep invocations.
82794
82795 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
82796
82797         Replace FSF snail mail address with URLs, as per GNU coding standards.
82798         Most of the snail mail addresses were wrong anyway, and omitting
82799         them makes the source code easier to maintain.  Almost all of the
82800         changes are to license notices and to locale LC_IDENTIFICATION
82801         addresses, except for this one:
82802         * manual/libc.texinfo: In "Published by", give the FSF's URL,
82803         not its snail mail address.
82804
82805 2012-02-09  Richard Henderson  <rth@twiddle.net>
82806
82807         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
82808         of kernel-features.h.
82809
82810         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
82811
82812 2012-02-08  Marek Polacek  <polacek@redhat.com>
82813
82814         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
82815         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
82816         * sysdeps/gnu/_G_config.h: Likewise.
82817         * sysdeps/generic/_G_config.h: Likewise.
82818
82819 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
82820
82821         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
82822         tests.
82823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82824
82825         * sysdeps/powerpc/powerpc32/crti.S: New file.
82826         * sysdeps/powerpc/powerpc32/crtn.S: New file.
82827         * sysdeps/powerpc/powerpc64/crti.S: New file.
82828         * sysdeps/powerpc/powerpc64/crtn.S: New file.
82829
82830         * Makeconfig (have-initfini): Don't set.
82831         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
82832         * configure.in (nopic_initfini): Don't substitute.
82833         * config.h.in (HAVE_INITFINI): Don't #undef.
82834         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
82835         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
82836
82837 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
82838
82839         Support crti.S and crtn.S provided directly by architectures.
82840         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
82841         [crti.S in sysdirs] (omit-deps): Likewise.
82842         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
82843         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
82844         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
82845         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
82846         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
82847         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
82848         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
82849         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
82850         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
82851         compiler output for sysdeps/generic/initfini.c.
82852         * sysdeps/i386/elf/Makefile: Remove file.
82853         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
82854
82855 2012-02-07  Marek Polacek  <polacek@redhat.com>
82856
82857         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
82858         * sysdeps/gnu/_G_config.h: Likewise.
82859         * sysdeps/mach/hurd/_G_config.h: Likewise.
82860
82861 2012-02-07  Marek Polacek  <polacek@redhat.com>
82862
82863         * math/Makefile (tests): Add tst-CMPLX2.
82864         * math/tst-CMPLX2.c: New file.
82865
82866 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
82867
82868         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
82869
82870         * math/libm-test.inc (jn_test): Add missing L suffix.
82871
82872 2012-02-06  Marek Polacek  <polacek@redhat.com>
82873
82874         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
82875         * sysdeps/i386/fpu/e_powf.S: Likewise.
82876         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
82877         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
82878         * sysdeps/i386/fpu/e_acosh.S: Likewise.
82879         * sysdeps/i386/fpu/e_pow.S: Likewise.
82880         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
82881         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
82882         * sysdeps/i386/fpu/s_expm1.S: Likewise.
82883         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
82884         * sysdeps/i386/fpu/e_log2.S: Likewise.
82885         * sysdeps/i386/fpu/e_log2l.S: Likewise.
82886         * sysdeps/i386/fpu/e_scalb.S: Likewise.
82887         * sysdeps/i386/fpu/e_powl.S: Likewise.
82888         * sysdeps/i386/fpu/s_log1p.S: Likewise.
82889         * sysdeps/i386/fpu/e_log10f.S: Likewise.
82890         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
82891         * sysdeps/i386/fpu/e_logl.S: Likewise.
82892         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
82893         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
82894         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
82895         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
82896         * sysdeps/i386/fpu/e_log2f.S: Likewise.
82897         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
82898         * sysdeps/i386/fpu/e_log.S: Likewise.
82899         * sysdeps/i386/fpu/s_cexp.S: Likewise.
82900         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
82901         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
82902         * sysdeps/i386/fpu/e_logf.S: Likewise.
82903         * sysdeps/i386/fpu/e_log10l.S: Likewise.
82904         * sysdeps/i386/fpu/e_atanh.S: Likewise.
82905         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
82906         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
82907         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
82908         * sysdeps/i386/fpu/e_log10.S: Likewise.
82909         * sysdeps/i386/fpu/s_frexp.S: Likewise.
82910         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
82911         * sysdeps/i386/fpu/s_asinh.S: Likewise.
82912         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
82913         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
82914         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
82915         * sysdeps/i386/asm-syntax.h: Likewise.
82916         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
82917         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
82918         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
82919         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
82920         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
82921         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
82922         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
82923         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
82924         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
82925         * sysdeps/powerpc/sysdep.h: Likewise.
82926         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
82927         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
82928
82929 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
82930
82931         [BZ #411]
82932         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
82933
82934 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
82935
82936         * sysdeps/i386/sysdep.h: Include <features.h>.
82937         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
82938         version.
82939
82940 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
82941
82942         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
82943         Define.
82944         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
82945         LOAD_PIC_REG_STR.
82946
82947 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
82948
82949         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
82950         (SETUP_PIC_REG): Use GET_PC_THUNK.
82951         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
82952         macro.
82953
82954 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
82955
82956         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
82957         for non-PIC compilation.
82958         (SETUP_PIC_REG): Add .p2align directive.
82959         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
82960         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
82961         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
82962         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
82963         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
82964         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
82965         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
82966         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
82967         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
82968         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
82969         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
82970         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
82971         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
82972         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
82973         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
82974         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
82975         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
82976         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
82977         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
82978         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
82979         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
82980         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
82981         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
82982         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
82983         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
82984         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
82985         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
82986         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
82987         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
82988         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
82989         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
82990         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
82991         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
82992         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
82993         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
82994         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
82995         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
82996         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
82997         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
82998         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
82999         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
83000
83001 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83002
83003         * math/tst-CMPLX.c: Include <stdio.h>.
83004
83005 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
83006
83007         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
83008         float.
83009         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83010         * sysdeps/sparc/bits/mathdef.h: Likewise.
83011
83012 2012-01-31  Marek Polacek  <polacek@redhat.com>
83013
83014         * libio/libio.h: Don't define _PARAMS.
83015         * locale/programs/config.h: Don't define PARAMS.
83016         * stdlib/strtol_l.c: Likewise.
83017         (__strtol_l): Remove PARAMS from the prototype.
83018
83019 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
83020
83021         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
83022         names.  Just use the correct names.  Remove unnecessary wrapper
83023         functions.
83024         * malloc/arena.c: Likewise.
83025         * malloc/hooks.c: Likewise.
83026
83027         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
83028         ARENA_TEST says not to.  Simplify test for creation of a new arena.
83029         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
83030
83031 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
83032
83033         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
83034         into tail calls.
83035         (update_get_addr): New function.
83036         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
83037         GET_ADDR_MODULE parameter.
83038
83039 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
83040
83041         * crypt/cert.c: Remove __STDC__ conditionals.
83042         * crypt/crypt-entry.c: Likewise.
83043         * crypt/crypt_util.c: Likewise.
83044         * libio/filedoalloc.c: Likewise.
83045         * libio/fileops.c: Likewise.
83046         * libio/genops.c: Likewise.
83047         * libio/iofclose.c: Likewise.
83048         * libio/iofdopen.c: Likewise.
83049         * libio/iofopen.c: Likewise.
83050         * libio/iofopen64.c: Likewise.
83051         * libio/iogetdelim.c: Likewise.
83052         * libio/iopopen.c: Likewise.
83053         * libio/obprintf.c: Likewise.
83054         * libio/oldfileops.c: Likewise.
83055         * libio/oldiofclose.c: Likewise.
83056         * libio/oldiofdopen.c: Likewise.
83057         * libio/oldiofopen.c: Likewise.
83058         * libio/oldiopopen.c: Likewise.
83059         * libio/wfiledoalloc.c: Likewise.
83060         * libio/wgenops.c: Likewise.
83061         * locale/programs/xmalloc.c: Likewise.
83062         * misc/syslog.c: Likewise.
83063         * stdio-common/xbug.c: Likewise.
83064         * string/memchr.c: Likewise.
83065         * string/memcmp.c: Likewise.
83066         * string/memrchr.c: Likewise.
83067         * string/rawmemchr.c: Likewise.
83068         * sysdeps/posix/getcwd.c: Likewise.
83069         * time/strftime_l.c: Likewise.
83070
83071 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
83072
83073         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
83074         * config.make.in (config-cflags-sse2avx): Define.
83075         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
83076         Fix typo.
83077
83078 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
83079
83080         * scripts/config.guess: Update from upstream config git repository.
83081         * scripts/config.sub: Likewise.
83082
83083 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
83084
83085         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
83086         (EM_NUM): Update.
83087         (R_TILEPRO_*, R_TILEGX_*): New macros.
83088
83089         * scripts/firstversions.awk: Fix bug in version range handling.
83090
83091         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
83092
83093         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
83094
83095         * include/sys/epoll.h: New file.
83096         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
83097         libc_hidden_def.
83098
83099 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
83100
83101         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
83102         Avoid unnecessary __WORDSIZE == 64 test.
83103         (fmaxf): Use VEX format if possible.
83104         (fmax): Likewise.
83105         (fminf): Likewise.
83106         (fmin): Likewise.
83107
83108         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
83109         * math/math_private.h: Remove libc_fegetround* and
83110         libc_fesetround*.
83111         * sysdeps/i386/configure.in: Check for -msse2avx.
83112         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
83113         also if SSE2AVX is defined.
83114         Remove libc_fegetround* and libc_fesetround*.
83115         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
83116         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
83117         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
83118         of HAS_YMM_USABLE.
83119         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83120         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83121         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83122         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83123         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83124
83125         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
83126
83127 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
83128
83129         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
83130         size is not set.
83131         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
83132
83133 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
83134
83135         [BZ #13618]
83136         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
83137         relocation.
83138         * Makeconfig (libm): Define.
83139         * elf/Makefile: Add rules to build and run tst-relsort1.
83140         * elf/tst-relsort1.c: New file.
83141         * elf/tst-relsort1mod1.c: New file.
83142         * elf/tst-relsort1mod2.c: New file.
83143
83144 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
83145
83146         * math/s_ldexp.c: Remove __STDC__ conditionals.
83147         * math/s_ldexpf.c: Likewise.
83148         * math/s_ldexpl.c: Likewise.
83149         * math/s_nextafter.c: Likewise.
83150         * math/s_nexttowardf.c: Likewise.
83151         * math/s_significand.c: Likewise.
83152         * math/s_significandf.c: Likewise.
83153         * math/s_significandl.c: Likewise.
83154         * math/w_jnl.c: Likewise.
83155         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
83156         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
83157         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
83158         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
83159         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
83160         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
83161         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
83162         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
83163         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
83164         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
83165         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
83166         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
83167         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
83168         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
83169         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
83170         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
83171         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
83172         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
83173         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
83174         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
83175         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
83176         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
83177         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
83178         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
83179         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
83180         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
83181         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
83182         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
83183         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
83184         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
83185         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
83186         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
83187         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
83188         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
83189         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
83190         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
83191         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
83192         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
83193         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
83194         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
83195         * sysdeps/ieee754/k_standard.c: Likewise.
83196         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
83197         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
83198         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
83199         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
83200         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
83201         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
83202         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
83203         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
83204         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
83205         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
83206         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
83207         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
83208         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
83209         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
83210         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
83211         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
83212         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
83213         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
83214         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
83215         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
83216         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
83217         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
83218         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
83219         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
83220         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
83221         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
83222         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
83223         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
83224         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
83225         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
83226         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
83227         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
83228         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
83229         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
83230         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
83231         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
83232         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
83233         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
83234         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
83235         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
83236         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
83237         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
83238         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
83239         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
83240         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
83241         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
83242         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
83243         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
83244         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
83245         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
83246         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
83247         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
83248         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
83249         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
83250         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
83251         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
83252         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
83253         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
83254         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
83255         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
83256         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
83257         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
83258         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
83259         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
83260         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
83261         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
83262         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
83263         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
83264         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
83265         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
83266         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
83267         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
83268         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
83269         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
83270         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
83271         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
83272         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
83273         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
83274         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
83275         * sysdeps/ieee754/s_matherr.c: Likewise.
83276         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
83277         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
83278         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
83279         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
83280
83281 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83282
83283         * crypt/md5.h: Remove __STDC__ conditionals.
83284         * libio/libioP.h: Likewise.
83285         * locale/programs/config.h: Likewise.
83286         * sysdeps/generic/sysdep.h: Likewise.
83287         * sysdeps/i386/asm-syntax.h: Likewise.
83288         * sysdeps/s390/asm-syntax.h: Likewise.
83289         * sysdeps/unix/sysdep.h: Likewise.
83290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
83291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
83292
83293 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83294
83295         * libio/libio.h: Remove __STDC__ conditionals.
83296         * malloc/obstack.h: Likewise.
83297         * math/complex.h: Likewise.
83298         * math/math.h: Likewise.
83299         * sysdeps/generic/_G_config.h: Likewise.
83300         * sysdeps/gnu/_G_config.h: Likewise.
83301         * sysdeps/mach/hurd/_G_config.h: Likewise.
83302         * sysdeps/powerpc/bits/mathdef.h: Likewise.
83303         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83304         * sysdeps/sparc/bits/mathdef.h: Likewise.
83305
83306 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
83307
83308         [BZ #13583]
83309         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
83310         Clean up HAS_* macros.
83311         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
83312         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
83313         possible.
83314         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
83315         HAS_AVX.
83316         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83317         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83318         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83319         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83320         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83321
83322 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
83323
83324         * elf/tst-unique3.cc (gets): Remove declaration.
83325         * elf/tst-unique3lib.cc (gets): Likewise.
83326         * elf/tst-unique3lib2.cc (gets): Likewise.
83327         * elf/tst-unique4.cc (gets): Likewise.
83328
83329 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
83330
83331         * include/stdio.h: Add C++ protection.  Add gets declarations and
83332         definitions.
83333         * debug/tst-chk1.c: Don't declare gets here.
83334         * stdio-common/tst-gets.c: Likewise.
83335
83336 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83337
83338         * posix/glob: Remove directory.
83339
83340 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83341
83342         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
83343
83344 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
83345
83346         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
83347         of the non-standard EPFNOSUPPORT.
83348
83349 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83350
83351         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
83352         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
83353         ANYWHERE set to 1 only on KERN_NO_SPACE error.
83354
83355 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
83356
83357         * wcsmbs/uchar.h: Test __STDC_VERSION__.
83358
83359 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
83360
83361         * nscd/aicache.c (addhstaiX): Do not cache negative results of
83362         transient errors.
83363         * nscd/grpcache.c (cache_addgr): Likewise.
83364         * nscd/hstcache.c (cache_addhst): Likewise.
83365         * nscd/initgrcache.c (addinitgroupsX): Likewise.
83366         * nscd/pwdcache.c (cache_addpw): Likewise.
83367         * nscd/servicescache.c (cache_addserv): Likewise.
83368
83369 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
83370
83371         * malloc/malloc.c: Various cleanups.
83372         * malloc/hooks.c: Likewise.
83373
83374         * stdlib/Makefile (tests): Add bug-fmtmsg1.
83375         * stdlib/bug-fmtmsg1.c: New file.
83376
83377         * stdlib/fmtmsg.c (init): Add missing unlock.
83378         Patch by Peng Haitao <penght@cn.fujitsu.com>.
83379
83380 2012-01-12  Marek Polacek  <polacek@redhat.com>
83381
83382         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
83383         and _GNU_SOURCE.
83384
83385 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
83386
83387         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
83388         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
83389         macro to ensure uniqueness of label name.
83390         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
83391         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
83392
83393 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
83394
83395         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
83396
83397         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
83398         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
83399         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
83400         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
83401
83402 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
83403
83404         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
83405
83406         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
83407         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
83408         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
83409
83410         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
83411
83412         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
83413         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
83414         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
83415         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
83416
83417         * math/bits/math-finite.h: Add ldexp support.
83418
83419 2012-01-10  Marek Polacek  <polacek@redhat.com>
83420
83421         * locale/programs/localedef.h (show_archive_content): Add noreturn
83422         attribute.
83423
83424 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
83425
83426         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
83427
83428 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83429
83430         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
83431
83432         * io/Makefile (headers): Add bits/poll2.h.
83433
83434 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
83435
83436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
83437         typo #include statement.
83438
83439 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83440
83441         * include/sys/cdefs.h: Define __attribute_alloc_size.
83442         * catgets/gencat.c: Add alloc_size attribute and apply consistently
83443         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
83444         * elf/pldd.c: Likewise.
83445         * iconv/iconv_charmap.c: Likewise.
83446         * iconv/iconvconfig.c: Likewise.
83447         * iconv/strtab.c: Likewise.
83448         * locale/programs/locale.c: Likewise.
83449         * locale/programs/localedef.h: Likewise.
83450         * locale/programs/simple-hash.c: Likewise.
83451         * nscd/nscd.h: Likewise.
83452         * nss/makedb.c: Likewise.
83453         * sysdeps/generic/ldconfig.h: Likewise.
83454         * locale/programs/localedef.c: Remove xmalloc prototype.
83455         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
83456
83457 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
83458
83459         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
83460         appropriate.
83461
83462 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83463
83464         * math/Makefile (tests): Add tst-CMPLX.
83465         * math/tst-CMPLX.c: New file.
83466
83467         * math/complex.h (CMPLXL): Fix typo.
83468
83469         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
83470         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
83471         GLIBC_2.16.
83472         * debug/tst-chk1.c: Add poll and ppoll tests.
83473         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
83474         * include/sys/poll.h: Add hidden proto for ppoll.
83475         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
83476         * sysdeps/mach/hurd/ppoll.c: Likewise.
83477         * io/ppoll.c: Likewise.
83478         * debug/poll_chk.c: New file.
83479         * debug/ppoll_chk.c: New file.
83480         * include/bits/poll2.h: New file.
83481         * io/bits/poll2.h: New file.
83482
83483         [BZ #1350]
83484         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
83485
83486         * configure.in: static is always set to yes.  Remove.
83487         * config.make.in: Don't set build-static.
83488         * Makeconfig: Remove use of build-static.
83489         * dlfcn/Makefile: Likewise.
83490         * elf/Makefile: Likewise.
83491         * math/Makefile: Likewise.
83492         * misc/Makefile: Likewise.
83493         * nptl/Makefile: Likewise.
83494         * sysdeps/mach/hurd/Makefile: Likewise.
83495
83496         * configure.in: PWD_P is not used anymore.
83497         * config.make.in: Remove PWD_P entry.
83498
83499         * configure.in: Remove last remnants of RANLIB.
83500         No need to check for signed size_t anymore.
83501         Don't set libc_commonpagesize and libc_relro_required here for Alpha
83502         and IA-64.
83503         Remove __builtin_expect test because we require at least gcc 3.4.
83504         * aclocal.m4: Likewise.
83505
83506         * wcsmbs/mbrtoc16.c: Implement using towc function.
83507         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
83508         * wcsmbs/wcsmbsload.c: Likewise.
83509         * iconv/gconv_simple.c: Likewise.
83510         * iconv/gconv_int.h: Likewise.
83511         * iconv/gconv_builtin.h: Likewise.
83512         * iconv/iconv_prog.c: Remove CHAR16 handling.
83513
83514         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
83515
83516         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
83517
83518         * configure.in: Remove --with-elf and --enable-bounded options.
83519         Dont set base_machine for ia64.  More non-ELF conditions removed.
83520         Remove testing and setting of leading underscore information.
83521         * config.make.in (build-bounded): Set to no.
83522         * config.h.in: Remove NO_UNDERSCORES entry.
83523         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
83524         them.
83525         * csu/start.c: Remove !NO_UNDERSCORE code.
83526         * locale/localeinfo.h: Likewise.
83527         * sysdeps/generic/machine-gmon.h: Likewise.
83528         * sysdeps/generic/sysdep.h: Likewise.
83529         * sysdeps/i386/sysdep.h: Likewise.
83530         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
83531         * sysdeps/mach/sysdep.h: Likewise.
83532         * sysdeps/s390/s390-32/sysdep.h: Likewise.
83533         * sysdeps/s390/s390-64/sysdep.h: Likewise.
83534         * sysdeps/sh/sysdep.h: Likewise.
83535         * sysdeps/sparc/sparc32/alloca.S: Likewise.
83536         * sysdeps/unix/i386/sysdep.S: Likewise.
83537         * sysdeps/unix/sparc/start.c: Likewise.
83538         * sysdeps/unix/sparc/sysdep.S: Likewise.
83539         * sysdeps/unix/sparc/sysdep.h: Likewise.
83540         * sysdeps/unix/start.c: Likewise.
83541         * sysdeps/unix/x86_64/sysdep.S: Likewise.
83542         * sysdeps/x86_64/sysdep.h: Likewise.
83543
83544 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
83545
83546         [BZ #13553]
83547         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
83548         for non-gcc.
83549         * argp/argp-fmtstream.h: Use const instead __const.
83550         * argp/argp.h: Likewise.
83551         * assert/assert.h: Likewise.
83552         * bits/fenv.h: Likewise.
83553         * bits/sched.h: Likewise.
83554         * bits/sigset.h: Likewise.
83555         * bits/sigthread.h: Likewise.
83556         * catgets/nl_types.h: Likewise.
83557         * conform/data/pthread.h-data: Likewise.
83558         * crypt/crypt-private.h: Likewise.
83559         * crypt/crypt.h: Likewise.
83560         * crypt/crypt_util.c: Likewise.
83561         * ctype/ctype.h: Likewise.
83562         * debug/execinfo.h: Likewise.
83563         * debug/mbsnrtowcs_chk.c: Likewise.
83564         * debug/mbsrtowcs_chk.c: Likewise.
83565         * debug/wcsnrtombs_chk.c: Likewise.
83566         * debug/wcsrtombs_chk.c: Likewise.
83567         * debug/wcstombs_chk.c: Likewise.
83568         * dirent/dirent.h: Likewise.
83569         * dlfcn/dlfcn.h: Likewise.
83570         * elf/neededtest4.c: Likewise.
83571         * grp/grp.h: Likewise.
83572         * gshadow/gshadow.h: Likewise.
83573         * iconv/gconv.h: Likewise.
83574         * iconv/gconv_int.h: Likewise.
83575         * iconv/gconv_simple.c: Likewise.
83576         * iconv/iconv.h: Likewise.
83577         * iconv/loop.c: Likewise.
83578         * iconv/skeleton.c: Likewise.
83579         * include/aio.h: Likewise.
83580         * include/aliases.h: Likewise.
83581         * include/argz.h: Likewise.
83582         * include/arpa/inet.h: Likewise.
83583         * include/assert.h: Likewise.
83584         * include/dirent.h: Likewise.
83585         * include/dlfcn.h: Likewise.
83586         * include/execinfo.h: Likewise.
83587         * include/fcntl.h: Likewise.
83588         * include/fenv.h: Likewise.
83589         * include/glob.h: Likewise.
83590         * include/grp.h: Likewise.
83591         * include/libintl.h: Likewise.
83592         * include/mntent.h: Likewise.
83593         * include/netdb.h: Likewise.
83594         * include/pwd.h: Likewise.
83595         * include/rpc/netdb.h: Likewise.
83596         * include/sched.h: Likewise.
83597         * include/search.h: Likewise.
83598         * include/shadow.h: Likewise.
83599         * include/signal.h: Likewise.
83600         * include/stdio.h: Likewise.
83601         * include/stdlib.h: Likewise.
83602         * include/string.h: Likewise.
83603         * include/sys/socket.h: Likewise.
83604         * include/sys/stat.h: Likewise.
83605         * include/sys/statfs.h: Likewise.
83606         * include/sys/statvfs.h: Likewise.
83607         * include/sys/syslog.h: Likewise.
83608         * include/sys/time.h: Likewise.
83609         * include/sys/uio.h: Likewise.
83610         * include/time.h: Likewise.
83611         * include/unistd.h: Likewise.
83612         * include/utmp.h: Likewise.
83613         * include/wchar.h: Likewise.
83614         * include/wctype.h: Likewise.
83615         * inet/aliases.h: Likewise.
83616         * inet/arpa/inet.h: Likewise.
83617         * inet/netinet/ether.h: Likewise.
83618         * inet/netinet/in.h: Likewise.
83619         * intl/libintl.h: Likewise.
83620         * io/bits/fcntl2.h: Likewise.
83621         * io/fcntl.h: Likewise.
83622         * io/ftw.h: Likewise.
83623         * io/sys/poll.h: Likewise.
83624         * io/sys/stat.h: Likewise.
83625         * io/sys/statfs.h: Likewise.
83626         * io/sys/statvfs.h: Likewise.
83627         * io/utime.h: Likewise.
83628         * libio/bits/stdio.h: Likewise.
83629         * libio/bits/stdio2.h: Likewise.
83630         * libio/libio.h: Likewise.
83631         * libio/libioP.h: Likewise.
83632         * libio/stdio.h: Likewise.
83633         * locale/lc-ctype.c: Likewise.
83634         * locale/locale.h: Likewise.
83635         * login/utmp.h: Likewise.
83636         * malloc/arena.c: Likewise.
83637         * malloc/malloc.c: Likewise.
83638         * malloc/malloc.h: Likewise.
83639         * malloc/mcheck.c: Likewise.
83640         * malloc/mtrace.c: Likewise.
83641         * math/bits/mathcalls.h: Likewise.
83642         * math/fenv.h: Likewise.
83643         * math/math_private.h: Likewise.
83644         * misc/bits/error.h: Likewise.
83645         * misc/bits/syslog.h: Likewise.
83646         * misc/err.h: Likewise.
83647         * misc/error.h: Likewise.
83648         * misc/fstab.h: Likewise.
83649         * misc/mntent.h: Likewise.
83650         * misc/regexp.h: Likewise.
83651         * misc/search.h: Likewise.
83652         * misc/sgtty.h: Likewise.
83653         * misc/sys/mman.h: Likewise.
83654         * misc/sys/syslog.h: Likewise.
83655         * misc/sys/uio.h: Likewise.
83656         * misc/sys/xattr.h: Likewise.
83657         * misc/ttyent.h: Likewise.
83658         * nis/rpcsvc/ypclnt.h: Likewise.
83659         * nss/nss.h: Likewise.
83660         * posix/bits/unistd.h: Likewise.
83661         * posix/fnmatch.h: Likewise.
83662         * posix/glob.h: Likewise.
83663         * posix/sched.h: Likewise.
83664         * posix/spawn.h: Likewise.
83665         * posix/sys/wait.h: Likewise.
83666         * posix/unistd.h: Likewise.
83667         * posix/wordexp.h: Likewise.
83668         * pwd/pwd.h: Likewise.
83669         * resolv/netdb.h: Likewise.
83670         * resource/sys/resource.h: Likewise.
83671         * rt/aio.h: Likewise.
83672         * rt/bits/mqueue2.h: Likewise.
83673         * rt/mqueue.h: Likewise.
83674         * shadow/shadow.h: Likewise.
83675         * signal/signal.h: Likewise.
83676         * socket/send.c: Likewise.
83677         * socket/sendto.c: Likewise.
83678         * socket/sys/socket.h: Likewise.
83679         * stdio-common/printf.h: Likewise.
83680         * stdlib/bits/stdlib.h: Likewise.
83681         * stdlib/fmtmsg.h: Likewise.
83682         * stdlib/monetary.h: Likewise.
83683         * stdlib/stdlib.h: Likewise.
83684         * stdlib/ucontext.h: Likewise.
83685         * streams/stropts.h: Likewise.
83686         * string/argz.h: Likewise.
83687         * string/bits/string2.h: Likewise.
83688         * string/string.h: Likewise.
83689         * string/strings.h: Likewise.
83690         * sunrpc/rpc/auth.h: Likewise.
83691         * sunrpc/rpc/auth_des.h: Likewise.
83692         * sunrpc/rpc/clnt.h: Likewise.
83693         * sunrpc/rpc/netdb.h: Likewise.
83694         * sunrpc/rpc/pmap_clnt.h: Likewise.
83695         * sunrpc/rpc/xdr.h: Likewise.
83696         * sysdeps/generic/inttypes.h: Likewise.
83697         * sysdeps/generic/net/if.h: Likewise.
83698         * sysdeps/generic/sys/swap.h: Likewise.
83699         * sysdeps/gnu/net/if.h: Likewise.
83700         * sysdeps/gnu/utmpx.h: Likewise.
83701         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
83702         * sysdeps/i386/i486/bits/string.h: Likewise.
83703         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
83704         * sysdeps/s390/bits/string.h: Likewise.
83705         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
83706         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
83707         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
83708         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
83709         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
83710         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
83711         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
83712         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
83713         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
83714         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
83715         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
83716         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
83717         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
83718         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
83719         * sysdeps/unix/sysv/linux/readv.c: Likewise.
83720         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
83721         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
83722         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
83723         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
83724         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
83725         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
83726         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
83727         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
83728         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
83729         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
83730         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
83731         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
83732         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
83733         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
83734         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
83735         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
83736         * sysvipc/sys/ipc.h: Likewise.
83737         * sysvipc/sys/msg.h: Likewise.
83738         * sysvipc/sys/sem.h: Likewise.
83739         * sysvipc/sys/shm.h: Likewise.
83740         * termios/termios.h: Likewise.
83741         * time/sys/time.h: Likewise.
83742         * time/time.h: Likewise.
83743         * wcsmbs/bits/wchar2.h: Likewise.
83744         * wcsmbs/uchar.h: Likewise.
83745         * wcsmbs/wchar.h: Likewise.
83746         * wctype/wctype.h: Likewise.
83747
83748         [BZ #13551]
83749         * Makeconfig: Remove all but ELF support including AIX support.
83750         * Makerules: Likewise.
83751         * config.h.in: Likewise.
83752         * config.make.in: Likewise.
83753         * configure: Likewise.
83754         * configure.in: Likewise.
83755         * csu/Makefile: Likewise.
83756         * csu/version.c: Likewise.
83757         * debug/Makefile: Likewise.
83758         * dlfcn/Makefile: Likewise.
83759         * elf/Makefile: Likewise.
83760         * extra-lib.mk: Likewise.
83761         * iconv/Makefile: Likewise.
83762         * include/libc-symbols.h: Likewise.
83763         * include/shlib-compat.h: Likewise.
83764         * resolv/Makefile: Likewise.
83765         * resolv/res_libc.c: Likewise.
83766         * rt/Makefile: Likewise.
83767         * sysdeps/i386/asm-syntax.h: Likewise.
83768         * sysdeps/i386/sysdep.h: Likewise.
83769         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
83770         * sysdeps/mach/sysdep.h: Likewise.
83771         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
83772         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
83773         * sysdeps/s390/asm-syntax.h: Likewise.
83774         * sysdeps/s390/s390-32/sysdep.h: Likewise.
83775         * sysdeps/s390/s390-64/sysdep.h: Likewise.
83776         * sysdeps/sh/sysdep.h: Likewise.
83777         * sysdeps/unix/sparc/sysdep.h: Likewise.
83778         * sysdeps/wordsize-32/divdi3.c: Likewise.
83779         * sysdeps/x86_64/sysdep.h: Likewise.
83780
83781         * argp/Versions: Remove _argp_unlock_xxx.
83782
83783         [BZ #13559]
83784         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
83785         * abilist/libBrokenLocale.abilist: Likewise.
83786         * abilist/libanl.abilist: Likewise.
83787         * abilist/libc.abilist: Likewise.
83788         * abilist/libcrypt.abilist: Likewise.
83789         * abilist/libdl.abilist: Likewise.
83790         * abilist/libm.abilist: Likewise.
83791         * abilist/libnsl.abilist: Likewise.
83792         * abilist/libpthread.abilist: Likewise.
83793         * abilist/libresolv.abilist: Likewise.
83794         * abilist/librt.abilist: Likewise.
83795         * abilist/libthread_db.abilist: Likewise.
83796         * abilist/libutil.abilist: Likewise.
83797         * abilist/libnss_db.abilist: New file.
83798
83799         * scripts/abilist.awk: Add support for indirect functions.
83800
83801         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
83802
83803         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
83804
83805         * shlib-versions: Remove entries for ports architectures.
83806
83807         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
83808         files in ports.
83809         * elf/stackguard-macros.h: Remove support for IA-64.
83810         * elf/tst-auditmod1.c: Likewise.
83811         * sysdeps/generic/ldsodefs.h: Likewise.
83812
83813         * sysdeps/unix/sysv/linux/configure.in: Ports should define
83814         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
83815         configure files.
83816
83817         [BZ #13552]
83818         * configure.in: Remove --enable-omitfp support.
83819         * FAQ.in: Adjust.
83820         * config.make.in: Likewise.
83821         * Makeconfig: Likewise.
83822         * manual/install.texi: Likewise.
83823
83824         In case anyone cares, the IA-64 architecture could move to ports.
83825         * sysdeps/ia64/*: Removed.
83826         * sysdeps/unix/sysv/linux/ia64/*: Removed.
83827         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
83828
83829         [BZ #13555]
83830         * configure.in: Remove entries for unsupported architectures.
83831
83832         [BZ #13533]
83833         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
83834         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
83835         routines.
83836         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
83837         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
83838         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
83839         fall back to using wcrtomb.
83840         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
83841         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
83842         renaming.
83843         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
83844         * wcsmbs/tst-c16c32-1.c: New file.
83845
83846         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
83847         local variable.
83848
83849         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
83850
83851         * elf/tst-unique3.cc: Add explicit declaration of gets.
83852         * elf/tst-unique3lib.cc: Likewise.
83853         * elf/tst-unique3lib2.cc: Likewise.
83854         * elf/tst-unique4.cc: Likewise.
83855
83856         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
83857
83858 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
83859
83860         [BZ #13566]
83861         * assert/assert.h (static_assert): Don't define for C++.
83862         * libio/stdio.h (gets): Do declare for C++ <= C++11.
83863         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
83864
83865 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
83866
83867         * iconv/loop.c (single loop): Fix assertion in storing of
83868         remaining bytes.
83869
83870         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
83871
83872 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
83873
83874         * posix/getconf.c: Update copyright year.
83875         * nss/getent.c: Likewise.
83876         * nss/makedb.c: Likewise.
83877         * iconv/iconvconfig.c: Likewise.
83878         * iconv/iconv_prog.c: Likewise.
83879         * elf/ldconfig.c: Likewise.
83880         * elf/pldd.c: Likewise.
83881         * elf/sotruss.ksh: Likewise.
83882         * catgets/gencat.c: Likewise.
83883         * csu/version.c: Likewise.
83884         * elf/ldd.bash.in: Likewise.
83885         * elf/sprof.c (print_version): Likewise.
83886         * locale/programs/locale.c: Likewise.
83887         * locale/programs/localedef.c: Likewise.
83888         * login/programs/pt_chown.c: Likewise.
83889         * nscd/nscd.c (print_version): Likewise.
83890         * debug/xtrace.sh: Likewise.
83891         * malloc/memusage.sh: Likewise.
83892         * malloc/mtrace.pl: Likewise.
83893         * debug/catchsegv.sh: Likewise.
83894
83895 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
83896
83897         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
83898         pure attribute.
83899
83900 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
83901
83902         [BZ #13533]
83903         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
83904         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
83905         transformations.
83906         * iconv/gconv_int.h: Likewise.
83907         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
83908         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
83909         from libc for GLIBC_2.16.
83910         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
83911         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
83912         * wcsmbs/uchar.h: Really define mbstate_t.
83913         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
83914         * wcsmbs/c16rtomb.c: New file.
83915         * wcsmbs/mbrtoc16.c: New file.
83916         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
83917         for C/POSIX locale.
83918         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
83919         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
83920
83921         * wcsmbs/wchar.h: Add missing __restrict.
83922
83923 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
83924
83925         [BZ #13532]
83926         * time/Makefile (routines): Add timespec_get.
83927         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
83928         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
83929         timespec for ISO C11.
83930         * time/timespec_get.c: New file.
83931         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
83932         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
83933
83934         [BZ #13531]
83935         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
83936         * stdlib/stdlib.h: Declare aligned_alloc.
83937         * Versions.def: Add GLIBC_2.16 for libc.
83938         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
83939
83940         [BZ 13527]
83941         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
83942         ISO C11.
83943
83944         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
83945         code.
83946
83947         [BZ #13528]
83948         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
83949
83950         [BZ #13529]
83951         * assert/assert.h (static_assert): Define.
83952
83953         * version.h: Update for 2.16 development version.
83954
83955         [BZ #13526]
83956         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
83957         _ISOC11_SOURCE.
83958
83959         * version.h (RELEASE): Bump for 2.15 release.
83960         * include/features.h (__GLIBC_MINOR__): Bump to 15.
83961
83962         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
83963         Patch by Marek Polacek <mpolacek@redhat.com>.
83964
83965         * bits/byteswap.h: Protect long long constants with __extension__.
83966         * sysdeps/i386/bits/byteswap.h: Likewise.
83967         * sysdeps/ia64/bits/byteswap.h: Likewise.
83968         * sysdeps/s390/bits/byteswap.h: Likewise.
83969         * sysdeps/x86_64/bits/byteswap.h: Likewise.
83970
83971 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83972
83973         [BZ #13540]
83974         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
83975         destination buffer.
83976         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
83977
83978 2011-12-23  Marek Polacek  <polacek@redhat.com>
83979
83980         * elf/dl-addr.c (determine_info): Add inline keyword.
83981         * elf/tst-auditmod4b.c (check_avx): Likewise.
83982         * elf/tst-auditmod6b.c (check_avx): Likewise.
83983         * elf/tst-auditmod6c.c (check_avx): Likewise.
83984         * elf/tst-auditmod7b.c (check_avx): Likewise.
83985
83986 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
83987
83988         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
83989         !__SSE_MATH__.
83990
83991 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83992
83993         [BZ #13540]
83994         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
83995         processing for last bytes.
83996
83997 2011-08-06  Bruno Haible  <bruno@clisp.org>
83998
83999         [BZ #13061]
84000         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
84001         U+0385, not to U+1FEE.
84002
84003         [BZ #13062]
84004         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
84005         entry for U+00A5 U+0301.
84006
84007 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
84008
84009         [BZ #13166]
84010         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
84011         buffer for the output is too small.
84012
84013         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
84014         optimization.
84015
84016         [BZ #13185]
84017         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
84018         SSE flags if possible.
84019
84020 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84021
84022         [BZ #13540]
84023         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
84024         processing for last bytes.
84025
84026 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
84027
84028         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
84029         (syscall-list-default-options, syscall-list-default-condition)
84030         (syscall-list-includes): Define.
84031         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
84032         list of ABIs and options and #if conditions for each ABI.  Do not
84033         handle common syscalls between ABIs specially.
84034         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
84035         Remove.
84036         (syscall-list-variants, syscall-list-32bit-options)
84037         (syscall-list-32bit-condition, syscall-list-64bit-options)
84038         (syscall-list-64bit-condition): Define.
84039         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
84040         (syscall-list-variants, syscall-list-32bit-options)
84041         (syscall-list-32bit-condition, syscall-list-64bit-options)
84042         (syscall-list-64bit-condition): Define.
84043         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
84044         Remove.
84045         (syscall-list-variants, syscall-list-32bit-options)
84046         (syscall-list-32bit-condition, syscall-list-64bit-options)
84047         (syscall-list-64bit-condition): Define.
84048         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
84049         Remove.
84050         (syscall-list-variants, syscall-list-32bit-options)
84051         (syscall-list-32bit-condition, syscall-list-64bit-options)
84052         (syscall-list-64bit-condition): Define.
84053
84054 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
84055
84056         * locale/iso-639.def: Add brx entry.
84057
84058         [BZ #13328]
84059         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
84060         Proposed by Mariusz_Cukr <marcukr@op.pl>.
84061
84062         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
84063         __feraiseexcept_renamed.
84064
84065 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
84066
84067         [BZ #13538]
84068         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
84069         EPOLLET with unsigned values.
84070         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
84071         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
84072
84073         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
84074         to large cancellation.
84075         * math/s_cacoshf.c: Likewise.
84076         * math/s_cacoshl.c: Likewise.
84077
84078 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
84079
84080         [BZ #13305]
84081         [BZ #12786]
84082         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
84083         * math/s_cacoshf.c: Likewise.
84084         * math/s_cacoshl.c: Likewise.
84085
84086 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
84087
84088         [BZ #13439]
84089         * iconv/gconv.h: Define __GCONV_SWAP.
84090         * iconvdata/unicode.c: The swap bit must be stored in __flags.
84091         * iconvdata/utf-16.c: Likewise.
84092         * iconvdata/utf-32.c: Likewise.
84093
84094 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
84095
84096         [BZ #13524]
84097         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
84098         numerator after shifting it by one limb.
84099
84100 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
84101
84102         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
84103         under [__USE_EXTERN_INLINES].
84104
84105 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84106
84107         [BZ #13446]
84108         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
84109
84110 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84111
84112         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
84113         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
84114         optimized code.
84115         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
84116         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
84117         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
84118         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
84119         for strncasecmp/strncasecmp_l compilation.
84120         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
84121         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
84122
84123 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
84124
84125         [BZ #13484]
84126         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
84127         of __asm__.
84128
84129 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84130
84131         [BZ #13506]
84132         * time/tzfile.c (__tzfile_read): Check values from file header.
84133
84134 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
84135
84136         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
84137         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
84138         * powerpc/powerpc32/dl-start.S: Likewise.
84139         * powerpc/powerpc32/elf/start.S: Likewise.
84140         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
84141         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
84142         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
84143         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
84144         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
84145         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
84146         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
84147         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
84148         * powerpc/powerpc32/fpu/s_round.S: Likewise.
84149         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
84150         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
84151         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
84152         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
84153         * powerpc/powerpc32/memset.S: Likewise.
84154         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
84155         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
84156         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
84157         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
84158         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
84159         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
84160         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
84161         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
84162         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
84163         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
84164         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
84165         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
84166         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
84167
84168 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84169
84170         * math/libm-test.inc: Added more nearbyint tests.
84171         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
84172         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
84173         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
84174         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
84175
84176 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
84177
84178         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
84179         FD_CLOEXEC.
84180
84181 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84182
84183         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
84184         Add wcscpy-ssse3 wcscpy-c.
84185         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
84186         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
84187         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
84188         * sysdeps/x86_64/wcschr.S: New file.
84189         * sysdeps/x86_64/wcsrchr.S: New file.
84190         * string/test-strcmp.c: Remove checking of wcscmp function for
84191         wrong alignments.
84192         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
84193         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
84194         wcsrchr-sse2 wcsrchr-c.
84195         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
84196         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
84197         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
84198         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
84199         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
84200         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
84201         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
84202         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
84203         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
84204         * wcsmbc/wcschr.c (WCSCHR): New macro.
84205
84206 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84207
84208         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
84209         * wcsmbs/test-wcsrchr.c: New file.
84210         * string/test-strrchr.c: Add wcsrchr support.
84211         (WIDE): New macro.
84212         * wcsmbs/test-wcscpy.c: New file.
84213         * string/test-strcpy.c: Add wcscpy support.
84214         (WIDE): New macro.
84215
84216 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
84217
84218         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
84219         the inner loop.
84220
84221 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
84222
84223         [BZ #13472]
84224         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
84225
84226 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
84227
84228         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
84229         Minor optimizations.
84230
84231         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
84232         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
84233         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
84234
84235 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
84236
84237         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
84238         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
84239         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
84240         for gcc to avoid warnings.
84241         * inet/Makefile (tests): Add tst-checks.
84242         * inet/tst-checks.c: New file.
84243
84244         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
84245         warning.
84246
84247         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
84248         __wmemcmp_sse2.
84249
84250         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
84251         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
84252
84253         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
84254
84255 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
84256
84257         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
84258         problem.
84259
84260         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
84261
84262 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
84263
84264         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
84265         conditional on GCC version.
84266         (__arch_compare_and_exchange_val_8_acq)
84267         (__arch_compare_and_exchange_val_16_acq)
84268         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
84269         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
84270         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
84271
84272 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
84273
84274         * sysdeps/sh/backtrace.c: New file.
84275
84276 2011-12-02  Andreas Schwab  <schwab@redhat.com>
84277
84278         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
84279         parenthesis.
84280
84281 2011-12-01  Andreas Schwab  <schwab@redhat.com>
84282
84283         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
84284         falling back to utime.
84285
84286 2011-11-30  Andreas Schwab  <schwab@redhat.com>
84287
84288         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
84289         expectations for float.
84290
84291 2011-11-29  Andreas Schwab  <schwab@redhat.com>
84292
84293         * locale/weight.h (findidx): Add parameter len.
84294         * locale/weightwc.h (findidx): Likewise.
84295         * posix/fnmatch_loop.c (FCT): Adjust caller.
84296         * posix/regcomp.c (build_equiv_class): Likewise.
84297         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
84298         * posix/regexec.c (check_node_accept_bytes): Likewise.
84299         * string/strcoll_l.c (STRCOLL): Likewise.
84300         * string/strxfrm_l.c (STRXFRM): Likewise.
84301
84302 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
84303
84304         * Makefile.in: Remove CVSOPT handling.
84305         * configure.in: Remove use of AC_REVISION.
84306         * iconvdata/Makefile (distribute): No need to filter out CVS.
84307         * scripts/list-sources.sh: Remove CVS, subversion and monotone
84308         handling.
84309
84310 2011-11-16  Andreas Schwab  <schwab@redhat.com>
84311
84312         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
84313         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
84314         [USE_AS_STRNCASECMP_L]: Likewise.
84315         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
84316         NO_TLS_DIRECT_SEG_REFS.
84317         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
84318         Fix argument offsets for non-PIC.
84319         [USE_AS_STRNCASECMP_L]: Likewise.
84320         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
84321         NO_TLS_DIRECT_SEG_REFS.
84322
84323 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84324
84325         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
84326         O_CLOEXEC.
84327         * locale/loadlocale.c (_nl_load_locale): Likewise.
84328
84329 2011-11-15  Andreas Schwab  <schwab@redhat.com>
84330
84331         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
84332         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
84333         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
84334         (SYSCALL_GETTIME): Set errno on error.
84335
84336         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
84337         count references to noai6ai_cached.
84338
84339 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84340
84341         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
84342
84343         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
84344         FD_CLOEXEC for /proc/self/maps.
84345
84346         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
84347         FD_CLOEXEC for /proc/meminfo.
84348
84349         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
84350         gai.conf.
84351
84352         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
84353         FD_CLOEXEC for given file.
84354
84355         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
84356
84357         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
84358         FD_CLOEXEC for /etc/hosts.
84359         (_gethtent): Likewise.
84360
84361         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
84362
84363         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
84364         cancellation and set FD_CLOEXEC for /etc/netgroup.
84365
84366         * nss/nss_files/files-key.c (search): Don't allow cancellation when
84367         reading /etc/publickey.
84368
84369         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
84370         allow cancellation when reading /etc/group.
84371
84372         * nss/nss_files/files-alias.c (internal_setent): Don't allow
84373         cancellation.
84374         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
84375
84376         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
84377         when using data file.
84378
84379         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
84380
84381         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
84382         (write_nis_obj): Use "c" and "e" in fopen.
84383
84384         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
84385
84386         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
84387
84388         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
84389
84390         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
84391
84392         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
84393         locale.alias.
84394
84395         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
84396
84397         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
84398
84399         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
84400
84401         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
84402         file parsing and set FD_CLOEXEC.
84403
84404 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84405
84406         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
84407
84408 2011-11-14  Andreas Schwab  <schwab@redhat.com>
84409
84410         * malloc/arena.c (arena_get2): Don't call reused_arena when
84411         _int_new_arena failed.
84412
84413 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84414
84415         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
84416         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
84417         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
84418         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
84419         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
84420         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
84421         to compile strcasecmp and strncasecmp.
84422         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
84423         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
84424
84425         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
84426
84427 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
84428
84429         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
84430         locale-defines.sym to gen-as-const-headers.
84431         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
84432         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
84433         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
84434         to compile strcasecmp and strncasecmp.
84435         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
84436         strcasecmp_l and strncasecmp_l.
84437         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
84438         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
84439         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
84440         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
84441         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
84442         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
84443         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
84444         * sysdeps/i386/i686/multiarch/strncase.S: New file.
84445         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
84446         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
84447         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
84448
84449 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
84450
84451         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
84452         result of SYSDEP_GETTIME_CPU to retval.
84453         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
84454         parameter list to macro.  Remove trailing semicolon.  Adjust users.
84455
84456         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
84457         variable.
84458
84459         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
84460         mantissa words.
84461         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
84462
84463         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
84464         from unused variable.
84465
84466         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
84467         DWARF definitions.
84468         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
84469         for assembling.
84470
84471         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
84472         over namespaces.
84473
84474         * sunrpc/rpc_prot.c (rejected): Fix case value.
84475
84476         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
84477         unsigned long long int to avoid warnings in shift.
84478
84479         * posix/regex_internal.c (re_string_reconstruct): Actually use result
84480         of use of trans.
84481         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
84482         variable tmp.
84483
84484         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
84485         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
84486         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
84487
84488         * nis/nis_table.c (nis_list): Use variable of correct type for
84489         result of __follow_path call.
84490
84491 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84492
84493         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
84494         of math functions ceil, trunc, floor, round, and sqrt, when
84495         avaliable on the platform.
84496         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
84497         name clash.
84498         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
84499         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
84500         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
84501
84502 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
84503
84504         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
84505         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
84506
84507 2011-11-11  Roland McGrath  <roland@hack.frob.com>
84508
84509         * include/unistd.h: Fix __readlink return type.
84510         Reported by Chris Metcalf <cmetcalf@tilera.com>.
84511
84512 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
84513
84514         * stdlib/ucontext.h: Undo last change for makecontext.
84515
84516 2011-11-11  Andreas Schwab  <schwab@redhat.com>
84517
84518         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
84519
84520         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
84521         * setjmp/setjmp.h: Mark functions as non-leaf.
84522         * setjmp/bits/setjmp2.h: Likewise.
84523         * stdlib/ucontext.h: Likewise.
84524
84525 2011-11-10  Andreas Schwab  <schwab@redhat.com>
84526
84527         * malloc/arena.c (_int_new_arena): Don't increment narenas.
84528         (reused_arena): Don't check arena limit.
84529         (arena_get2): Atomically check arena limit.
84530
84531 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
84532
84533         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
84534         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
84535
84536         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
84537         instructions.
84538
84539 2011-11-07  Andreas Schwab  <schwab@redhat.com>
84540
84541         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
84542         handler when locking.
84543
84544         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
84545         Fix size of allocated buffer.
84546
84547 2011-11-04  Andreas Schwab  <schwab@redhat.com>
84548
84549         [BZ #10103]
84550         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
84551         declarations for long double functions.
84552         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
84553
84554         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
84555
84556 2011-11-03  Andreas Schwab  <schwab@redhat.com>
84557
84558         * nscd/nscd.c (main): Don't start AVC thread until credentials are
84559         installed.
84560
84561         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
84562         is disabled.
84563
84564 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
84565
84566         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
84567
84568 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
84569
84570         * include/alloca.h (stackinfo_alloca_round): Define.
84571         (extend_alloca): Use it.
84572         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
84573         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
84574         here.
84575
84576         * scripts/check-local-headers.sh: Ignore libaudit.h.
84577
84578         * nscd/Makefile (extra-objs): Make recursively expanded.
84579
84580 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
84581
84582         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
84583         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
84584
84585         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
84586         * posix/tst-rfc3484-2.c: Likewise.
84587         * posix/tst-rfc3484-3.c: Likewise.
84588
84589         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
84590         process_vm_writev.
84591         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
84592         process_vm_writev.
84593         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
84594         process_vm_writev from libc using GLIBC_2.15 version.
84595
84596         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
84597
84598 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
84599
84600         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
84601         stack usage.
84602
84603 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
84604
84605         [BZ #13367]
84606         * nss/getent.c (initgroups_keys): Show error message in case no group
84607         names are given.
84608
84609         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
84610         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
84611         __bump_nl_timestamp.
84612         * nscd/connections (nscd_init): When host database is served open
84613         netlink socket and request notification about configuration changes.
84614         (main_loop_poll): Track netlink file descriptor and bump timestamp
84615         in case data becomes available.
84616         (main_loop_epoll): Likewise.
84617         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
84618         (database_pers_head): Add extra_data fileds.
84619         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
84620         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
84621         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
84622         Adjust caller.
84623         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
84624         in6ai data, call __free_in6ai.
84625         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
84626         Add -DHAVE_NETLINK.
84627         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
84628         interface information.  Reuse previous data if netlink timestamp
84629         is not changed.
84630         (__bump_nl_timestamp): New function.
84631         (__free_in6ai): New function.
84632
84633 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
84634
84635         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
84636         close_not_cancel_no_status here.
84637         (__check_pf): Reorganize code a bit to not call close twice if OOM.
84638
84639 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
84640
84641         [BZ #13276]
84642         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
84643         return value.
84644
84645         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
84646         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
84647         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
84648
84649 2011-07-03  Andreas Jaeger  <aj@suse.de>
84650
84651         [BZ #10709]
84652         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
84653         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
84654         * math/libm-test.inc (sin_test): Add test case.
84655
84656 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
84657
84658         [BZ #13337]
84659         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
84660         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
84661
84662         * elf/chroot_canon.c (chroot_canon): Cleanups.
84663
84664         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
84665
84666         [BZ #13335]
84667         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
84668         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
84669
84670         * string/test-strchr.c: Make usable for strchrnul testing.
84671         * string/test-strchrnul.c: New file.
84672         * string/Makefile (strop-tests): Add strchrnul.
84673
84674         * po/it.po: Update from translation team.
84675         * po/es.po: Likewise.
84676
84677 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
84678
84679         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
84680         the three constants needed as parameters.  Drop the others.
84681         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
84682         __m128i_strloadu_tolower.
84683         Create and initialize variable zero and use it in all the places
84684         where _mm_setzero_si128 was used.
84685
84686         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
84687         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
84688         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
84689         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
84690         anymore.
84691         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
84692         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
84693         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
84694         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
84695         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
84696         __mpranred, __mptan.
84697         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
84698         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
84699         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
84700         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
84701         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
84702         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
84703         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
84704         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
84705         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
84706
84707 2011-10-28  Andreas Schwab  <schwab@redhat.com>
84708
84709         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
84710         redefine if SHARED.
84711         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
84712
84713         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
84714         wide char related routines to wcsmbs subdir.
84715
84716 2011-10-27  Andreas Schwab  <schwab@redhat.com>
84717
84718         [BZ #13344]
84719         * misc/sys/cdefs.h (__THROWNL): Define.
84720         * posix/unistd.h: Use __THREADNL instead of __THREAD
84721         for memory synchronization functions.
84722
84723 2011-10-26  Roland McGrath  <roland@hack.frob.com>
84724
84725         [BZ #13349]
84726         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
84727         doesn't exist.
84728         * manual/stdio.texi (Obstack Streams): Node removed.
84729
84730 2011-10-26  Andreas Schwab  <schwab@redhat.com>
84731
84732         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
84733         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
84734         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
84735
84736         * math/math_private.h (math_force_eval): Allow non-addressable
84737         arguments.
84738         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
84739
84740 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84741
84742         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
84743         file is not needed.
84744
84745         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
84746         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
84747         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
84748         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
84749         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
84750         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
84751         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
84752         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
84753         Add AVX variants.
84754         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
84755         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
84756         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
84757         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
84758         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
84759         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
84760         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
84761         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
84762         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
84763         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
84764         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
84765         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
84766         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
84767         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
84768         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
84769         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
84770         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
84771         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
84772         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
84773
84774         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
84775         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
84776
84777         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
84778         place.  Use VEX encoding when compiling for AVX.
84779
84780 2011-10-25  Andreas Schwab  <schwab@redhat.com>
84781
84782         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
84783         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
84784
84785         * string/test-strchr.c (do_test): Don't generate NUL bytes.
84786
84787 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84788
84789         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
84790         useless if() expression.
84791         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
84792         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
84793         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
84794         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
84795         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
84796         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
84797         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
84798         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
84799         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
84800         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
84801         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
84802         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
84803         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
84804         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
84805         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
84806         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
84807         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
84808         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
84809         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
84810
84811         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
84812
84813 2011-10-25  Andreas Schwab  <schwab@redhat.com>
84814
84815         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
84816         condition.
84817         * elf/dl-fini.c (_dl_sort_fini): Likewise.
84818
84819 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84820
84821         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
84822         .text section.  Avoid duplicate constants.
84823         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
84824         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84825         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
84826         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84827         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84828         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84829         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84830         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84831         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
84832         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
84833         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
84834         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
84835         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
84836         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
84837         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
84838         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
84839         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
84840         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
84841         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
84842         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84843         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
84844         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
84845         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
84846         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
84847         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
84848         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
84849         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
84850         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
84851         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
84852         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
84853         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
84854         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
84855         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
84856         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
84857         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
84858         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
84859         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
84860         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
84861         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
84862         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
84863         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
84864         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
84865         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
84866         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
84867         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
84868
84869 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
84870
84871         * sysdeps/x86_64/dla.h: Move to ...
84872         * sysdeps/x86_64/fpu/dla.h: ...here.
84873         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
84874         situations.  Use __builtin_fma only for gcc 4.6 and up.
84875
84876         * config.make.in: Add have-mfma4 entry.
84877         * configure.in: Substitute libc_cv_cc_fma4.
84878         * math/Makefile (dbl-only-routines): Add sincostab.
84879         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
84880         Use __sincostab not sincos.
84881         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
84882         name is a macro.
84883         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84884         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84885         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84886         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
84887         using __copysign.
84888         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
84889         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
84890         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
84891         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
84892         and __inv.
84893         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
84894         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
84895         __copysign.
84896         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
84897         define aliases when function name is a macro.
84898         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
84899         sysdeps/ieee754/dbl-64/sincos.tbl.
84900         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
84901         fma4-enabled routines.
84902         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
84903         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
84904         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
84905         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
84906         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
84907         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
84908         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
84909         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
84910         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
84911         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
84912         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
84913         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
84914         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
84915         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
84916         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
84917         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
84918         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
84919         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
84920         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
84921         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
84922         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
84923         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
84924         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
84925         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
84926         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
84927         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
84928         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
84929         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
84930         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
84931         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
84932
84933         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
84934         rename.
84935         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84936         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84937         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84938         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84939         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84940         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84941         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
84942         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84943
84944 2011-10-24  Andreas Schwab  <schwab@redhat.com>
84945
84946         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
84947
84948 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
84949
84950         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
84951
84952         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
84953         prediction.
84954         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
84955
84956         * string/strnlen.c: Don't define STRNLEN, reverse logic.
84957         Remove unused variable magic_bits.
84958         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
84959
84960         * string/strnlen.c: Define and use STRNLEN macro.
84961         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
84962         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
84963         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
84964         * wcsmbs/wcslen.c: Define and use WCSLEN.
84965         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
84966         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
84967         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
84968         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
84969         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
84970         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
84971         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
84972
84973 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84974
84975         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
84976         strnlen-sse2-no-bsf.
84977         Rename strlen-no-bsf to strlen-sse2-no-bsf.
84978         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
84979         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
84980         Add strnlen support.
84981         (USE_AS_STRNLEN): New macro.
84982         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
84983         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
84984         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
84985         * sysdeps/x86_64/wcslen.S: New file.
84986
84987 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
84988
84989         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
84990         XMM-moves are used for copying on small sizes.
84991
84992 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84993
84994         * wcsmbs/Makefile (strop-tests): Add wcschr.
84995         * wcsmbs/test-wcschr.c: New file.
84996         * string/test-strchr.c: Update.
84997         Add wcschr support.
84998         (WIDE): New macro.
84999
85000 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85001
85002         * wcsmbs/Makefile (strop-tests): Add wcslen.
85003         * wcsmbs/test-wcslen.c: New file.
85004         * string/test-strlen.c: Update.
85005         Add wcslen support.
85006         (WIDE): New macro.
85007
85008 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85009
85010         * po/it.po: Update from translation team.
85011
85012 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85013
85014         * sysdeps/x86_64/wcscmp.S: Update.
85015         Fix wrong comparison semantics.
85016         wcscmp shall use signed comparison not unsigned.
85017         Don't use substraction to avoid overflow bug.
85018         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
85019         * wcsmbc/wcscmp.c: Likewise.
85020         * string/test-strcmp.c: Likewise.
85021         Add new tests to check cases with negative values.
85022
85023 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85024
85025         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
85026         * sysdeps/x86_64/dla.h: ...here.  New file.
85027         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
85028         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85029         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85030         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85031         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85032         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
85033         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85034         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85035         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85036
85037 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
85038
85039         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
85040         __ynl_finite aliases.
85041
85042 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
85043
85044         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
85045
85046         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
85047         define DLA_FMA.
85048         [DLA_FMA] (EMULV): Use DLA_FMA.
85049         [DLA_FMA] (MUL12): Use EMULV.
85050         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
85051         that are not needed.
85052         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85053         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85054         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85055         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85056         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85057         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85058         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85059
85060 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
85061
85062         * math/s_nan.c: Undef __nan.
85063         * math/s_nanf.c: Undef __nanf.
85064         * math/s_nanl.c: Undef __nanl.
85065         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
85066         "math_private.h".
85067
85068 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
85069
85070         * math/s_catan.c: Add branch predictions.
85071         * math/s_catanf.c: Likewise.
85072         * math/s_catanh.c: Likewise.
85073         * math/s_catanhf.c: Likewise.
85074         * math/s_catanhl.c: Likewise.
85075         * math/s_catanl.c: Likewise.
85076         * math/s_cexp.c: Likewise.
85077         * math/s_cexpf.c: Likewise.
85078         * math/s_cexpl.c: Likewise.
85079         * math/s_clog.c: Likewise.
85080         * math/s_clog10.c: Likewise.
85081         * math/s_clog10f.c: Likewise.
85082         * math/s_clog10l.c: Likewise.
85083         * math/s_clogf.c: Likewise.
85084         * math/s_clogl.c: Likewise.
85085         * math/s_csqrt.c: Likewise.
85086         * math/s_csqrtf.c: Likewise.
85087         * math/s_csqrtl.c: Likewise.
85088         * math/s_ctanf.c: Likewise.
85089         * math/s_ctanh.c: Likewise.
85090         * math/s_ctanhf.c: Likewise.
85091         * math/s_ctanhl.c: Likewise.
85092         * math/s_ctanl.c: Likewise.
85093
85094         * math/math_private.h: Define __nan, __nanf, __nanl.
85095         * math/s_cacosh.c: Include <math_private.h>.
85096         * math/s_cacoshl.c: Likewise.
85097         * math/s_casinh.c: Likewise.
85098         * math/s_casinhf.c: Likewise.
85099         * math/s_casinhl.c: Likewise.
85100         * math/s_ccos.c: Rely entire on ccosh.
85101         * math/s_ccosf.c: Rely entire on ccoshf.
85102         * math/s_ccosl.c: Rely entirely on ccoshl.
85103         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
85104         Remove tests for FE_INVALID.
85105         * math/s_ccoshf.c: Likewise.
85106         * math/s_ccoshl.c: Likewise.
85107         * math/s_csin.c: Likewise.
85108         * math/s_csinf.c: Likewise.
85109         * math/s_csinh.c Likewise.
85110         * math/s_csinhf.c: Likewise.
85111         * math/s_csinhl.c: Likewise.
85112         * math/s_csinl.c: Likewise.
85113         * math/s_ctan.c: Likewise.
85114         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
85115         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
85116         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
85117
85118 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
85119
85120         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
85121         compilation problems.
85122
85123         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
85124         __builtin_expect.
85125
85126 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
85127
85128         * sysdeps/i386/configure.in: Test for -mfma4 option.
85129         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
85130         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
85131         COMMON_CPUID_INDEX_80000001.
85132         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
85133         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
85134         use it if FMA3 is not supported.
85135         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
85136
85137         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
85138         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
85139
85140 2011-10-20  Andreas Schwab  <schwab@redhat.com>
85141
85142         [BZ #12892]
85143         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
85144         it would create a cycle with a link time dependency.
85145
85146 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
85147
85148         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
85149         instruction.
85150         * string/Makefile (strop-tests): Add rawmemchr.
85151         * string/test-rawmemchr.c: New file.
85152
85153         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
85154         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
85155         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
85156         when compiling str{,n}casecmp and when AVX is available.  Hook up
85157         new optimized code in initializers.
85158
85159 2011-10-19  Andreas Schwab  <schwab@redhat.com>
85160
85161         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
85162         __feraiseexcept instead of feraiseexcept.
85163
85164 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
85165
85166         * math/math_private.h: Define defaults for libc_fetestexcept and
85167         libc_feupdateenv.
85168         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
85169         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
85170         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85171         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85172         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
85173         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85174         libc_fetestexcept and libc_feupdateenv.
85175
85176         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
85177         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
85178         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
85179         * sysdeps/x86_64/fpu/math_private.h: Define special version of
85180         libc_feholdexcept_setround.
85181
85182         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
85183         Add s_nearbyint-c and s_nearbyintf-c.
85184         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
85185         nearbyintf inlines.
85186         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
85187         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
85188         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
85189         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
85190
85191         * math/math_private.h: Define defaults for libc_fegetround,
85192         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
85193         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
85194         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
85195         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
85196         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
85197         standard functions.
85198         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85199         Remove comments and hacks for old compiler versions.
85200         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85201         libc_fegetround, libc_fesetround, libc_feholdexcept, and
85202         libc_feholdexceptl.
85203
85204 2011-10-18  Andreas Schwab  <schwab@redhat.com>
85205
85206         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
85207         (__feraiseexcept_renamed): Add __NTH.
85208         (feraiseexcept): Add __NTH.  Rename local variables to fix
85209         namespace violations.
85210
85211 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
85212
85213         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
85214
85215         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
85216
85217         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
85218         recently added interfaces.
85219         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
85220
85221         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
85222         about macro parameter expansion.
85223
85224         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
85225         __NO_MATH_INLINES is defined.  Cleanups.
85226
85227         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
85228         and __floorf is target has SSE4.1.
85229         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
85230         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
85231         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
85232         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
85233
85234         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
85235         name.
85236         (floorf): Likewise.
85237
85238         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
85239
85240 2011-10-17  Andreas Schwab  <schwab@redhat.com>
85241
85242         * misc/sys/cdefs.h: Fix last change.
85243
85244         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
85245         database lookup.
85246
85247 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
85248
85249         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
85250
85251         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
85252         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
85253         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
85254         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
85255         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
85256         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
85257         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
85258         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
85259         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
85260         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
85261         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
85262         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
85263         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
85264         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
85265         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
85266         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
85267         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
85268         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
85269         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
85270         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
85271         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
85272         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
85273
85274         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
85275         ceil, ceilf, floor, floorf.
85276
85277         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
85278         Perform IRELATIVE relocations last.
85279
85280         * elf/do-rel.h: Add another parameter nrelative, replacing the
85281         local variable with the same name.  Change name of the function
85282         to end in Rel or Rela (uppercase).
85283         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
85284         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
85285         elf_dynamic_do_##reloc function.
85286
85287 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85288
85289         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
85290         is sufficient, at least on modern CPUs.
85291
85292         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
85293
85294         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
85295         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
85296
85297         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
85298         __expl_finite.
85299         * math/bits/math-finite.h: Add entries for exp.
85300         * math/e_expl.c: Add __*_finite alias.
85301         * sysdeps/i386/fpu/e_exp.S: Likewise.
85302         * sysdeps/i386/fpu/e_expf.S: Likewise.
85303         * sysdeps/i386/fpu/e_expl.c: Likewise.
85304         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85305         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85306         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
85307         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
85308         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
85309         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
85310         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
85311
85312         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
85313         is sufficient, at least on modern CPUs.
85314
85315         * ctype/ctype-info.c (__ctype_init): Define.
85316         * include/ctype.h (__ctype_init): Declare.
85317         (__ctype_b_loc): The variable is always initialized.
85318         (__ctype_toupper_loc): Likewise.
85319         (__ctype_tolower_loc): Likewise.
85320         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
85321         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
85322
85323 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
85324
85325         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
85326
85327         * configure.in: Also look in $cxxmachine/include for C++ system
85328         headers.
85329
85330 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85331
85332         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
85333         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
85334         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
85335         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
85336         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
85337         (USE_AS_WMEMCMP): New macro.
85338         Fixing indents.
85339         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
85340         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
85341         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
85342         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
85343         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85344         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
85345         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
85346         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
85347         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
85348         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
85349         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
85350         (USE_AS_WMEMCMP): New macro.
85351         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
85352         * sysdeps/string/test-memcmp.c: Update.
85353         Fix simple_wmemcmp.
85354         Add new tests.
85355         * wcsmbs/wmemcmp.c: Update.
85356         (WMEMCMP): New macro.
85357         Fix overflow bug.
85358
85359 2011-10-12  Andreas Jaeger  <aj@suse.de>
85360
85361         [BZ #13268]
85362         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
85363
85364 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85365
85366         * libio/iofwide.c (do_length): Avoid warning.
85367
85368         * ctype/ctype.h (__isctype_f): Add missing __THROW.
85369
85370 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
85371
85372         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
85373
85374         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
85375         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
85376         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
85377         * sysdeps/i386/i686/fpu/e_log.S: New file.
85378         * sysdeps/i386/i686/fpu/e_logf.S: New file.
85379         * sysdeps/i386/i686/fpu/e_logl.S: New file.
85380
85381         * ctype/ctype.h: Add support for inlined isXXX functions when
85382         compiling C++ code.
85383
85384 2011-10-14  Andreas Schwab  <schwab@redhat.com>
85385
85386         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
85387
85388         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
85389
85390 2011-10-13  Roland McGrath  <roland@hack.frob.com>
85391
85392         [BZ #13291]
85393         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
85394
85395 2011-10-13  Andreas Schwab  <schwab@redhat.com>
85396
85397         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
85398         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
85399         feraiseexcept.
85400
85401         * sysdeps/x86_64/memrchr.S: Check for zero size.
85402
85403         * string/stratcliff.c: Add memrchr tests.
85404
85405 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85406
85407         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85408         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
85409         rawmemchr-sse2 rawmemchr-sse2-bsf.
85410         * sysdeps/i386/i686/multiarch/memchr.S: New file.
85411         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
85412         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
85413         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
85414         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
85415         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
85416         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
85417         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
85418         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
85419         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
85420         * string/memrchr.c (MEMRCHR): New macro.
85421
85422 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
85423
85424         Add integration with gcc's -ffinite-math-only and optimize wrapper
85425         functions in libm.
85426         * Versions.def: Define GLIBC_2.15 version for libm.
85427         * math/Makefile (headers): Add bits/math-finite.h.
85428         * math/bits/math-finite.h: New file.
85429         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
85430         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
85431         * math/e_acoshl.c: Add __*_finite alias.
85432         * math/e_acosl.c: Likewise.
85433         * math/e_asinl.c: Likewise.
85434         * math/e_atan2l.c: Likewise.
85435         * math/e_atanhl.c: Likewise.
85436         * math/e_coshl.c: Likewise.
85437         * math/e_exp10.c: Likewise.
85438         * math/e_exp10f.c: Likewise.
85439         * math/e_exp10l.c: Likewise.
85440         * math/e_exp2l.c: Likewise.
85441         * math/e_fmodl.c: Likewise.
85442         * math/e_gammal_r.c: Likewise.
85443         * math/e_hypotl.c: Likewise.
85444         * math/e_j0l.c: Likewise.
85445         * math/e_j1l.c: Likewise.
85446         * math/e_jnl.c: Likewise.
85447         * math/e_lgammal_r.c: Likewise.
85448         * math/e_log10l.c: Likewise.
85449         * math/e_log2l.c: Likewise.
85450         * math/e_logl.c: Likewise.
85451         * math/e_powl.c: Likewise.
85452         * math/e_sinhl.c: Likewise.
85453         * math/e_sqrtl.c: Likewise.
85454         * math/e_scalb.c: Completely rewritten and optimized.
85455         * math/e_scalbf.c: Likewise.
85456         * math/e_scalbl.c: Likewise.
85457         * math/w_acos.c: Likewise.
85458         * math/w_acosf.c: Likewise.
85459         * math/w_acosl.c: Likewise.
85460         * math/w_acosh.c: Likewise.
85461         * math/w_acoshf.c: Likewise.
85462         * math/w_acoshl.c: Likewise.
85463         * math/w_asin.c: Likewise.
85464         * math/w_asinf.c: Likewise.
85465         * math/w_asinl.c: Likewise.
85466         * math/w_atan2.c: Likewise.
85467         * math/w_atan2f.c: Likewise.
85468         * math/w_atan2l.c: Likewise.
85469         * math/w_atanh.c: Likewise.
85470         * math/w_atanhf.c: Likewise.
85471         * math/w_atanhl.c: Likewise.
85472         * math/w_exp10.c: Likewise.
85473         * math/w_exp10f.c: Likewise.
85474         * math/w_exp10l.c: Likewise.
85475         * math/w_fmod.c: Likewise.
85476         * math/w_fmodf.c: Likewise.
85477         * math/w_fmodl.c: Likewise.
85478         * math/w_j0.c: Likewise.
85479         * math/w_j0f.c: Likewise.
85480         * math/w_j0l.c: Likewise.
85481         * math/w_j1.c: Likewise.
85482         * math/w_j1f.c: Likewise.
85483         * math/w_j1l.c: Likewise.
85484         * math/w_jn.c: Likewise.
85485         * math/w_jnf.c: Likewise.
85486         * math/w_log.c: Likewise.
85487         * math/w_logf.c: Likewise.
85488         * math/w_logl.c: Likewise.
85489         * math/w_log10.c: Likewise.
85490         * math/w_log10f.c: Likewise.
85491         * math/w_log10l.c: Likewise.
85492         * math/w_log2.c: Likewise.
85493         * math/w_log2f.c: Likewise.
85494         * math/w_log2l.c: Likewise.
85495         * math/w_pow.c: Likewise.
85496         * math/w_powf.c: Likewise.
85497         * math/w_powl.c: Likewise.
85498         * math/w_remainder.c: Likewise.
85499         * math/w_remainderf.c: Likewise.
85500         * math/w_remainderl.c: Likewise.
85501         * math/w_scalb.c: Likewise.
85502         * math/w_scalbf.c: Likewise.
85503         * math/w_scalbl.c: Likewise.
85504         * math/w_sqrt.c: Likewise.
85505         * math/w_sqrtf.c: Likewise.
85506         * math/w_sqrtl.c: Likewise.
85507         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
85508         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
85509         used.
85510         * math/math_private.h: Declare __kernel_standard_f.
85511         * math/w_cosh.c: Remove cruft and optimize a bit.
85512         * math/w_coshf.c: Likewise.
85513         * math/w_coshl.c: Likewise.
85514         * math/w_exp2.c: Likewise.
85515         * math/w_exp2f.c: Likewise.
85516         * math/w_exp2l.c: Likewise.
85517         * math/w_hypot.c: Likewise.
85518         * math/w_hypotf.c: Likewise.
85519         * math/w_hypotl.c: Likewise.
85520         * math/w_lgamma.c: Likewise.
85521         * math/w_lgamma_r.c: Likewise.
85522         * math/w_lgammaf.c: Likewise.
85523         * math/w_lgammaf_r.c: Likewise.
85524         * math/w_lgammal.c: Likewise.
85525         * math/w_lgammal_r.c: Likewise.
85526         * math/w_sinh.c: Likewise.
85527         * math/w_sinhf.c: Likewise.
85528         * math/w_sinhl.c: Likewise.
85529         * math/w_tgamma.c: Likewise.
85530         * math/w_tgammaf.c: Likewise.
85531         * math/w_tgammal.c: Likewise.
85532         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
85533         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
85534         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
85535         Minor optimizations.  Pretty printing.  Remove cruft.
85536         * sysdeps/i386/fpu/e_acosf.S: Likewise.
85537         * sysdeps/i386/fpu/e_acosh.S: Likewise.
85538         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
85539         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
85540         * sysdeps/i386/fpu/e_acosl.c: Likewise.
85541         * sysdeps/i386/fpu/e_asin.S: Likewise.
85542         * sysdeps/i386/fpu/e_asinf.S: Likewise.
85543         * sysdeps/i386/fpu/e_atan2.S: Likewise.
85544         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
85545         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
85546         * sysdeps/i386/fpu/e_atanh.S: Likewise.
85547         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
85548         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
85549         * sysdeps/i386/fpu/e_exp10.S: Likewise.
85550         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
85551         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
85552         * sysdeps/i386/fpu/e_exp2.S: Likewise.
85553         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
85554         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
85555         * sysdeps/i386/fpu/e_fmod.S: Likewise.
85556         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
85557         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
85558         * sysdeps/i386/fpu/e_hypot.S: Likewise.
85559         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
85560         * sysdeps/i386/fpu/e_log.S: Likewise.
85561         * sysdeps/i386/fpu/e_log10.S: Likewise.
85562         * sysdeps/i386/fpu/e_log10f.S: Likewise.
85563         * sysdeps/i386/fpu/e_log10l.S: Likewise.
85564         * sysdeps/i386/fpu/e_log2.S: Likewise.
85565         * sysdeps/i386/fpu/e_log2f.S: Likewise.
85566         * sysdeps/i386/fpu/e_log2l.S: Likewise.
85567         * sysdeps/i386/fpu/e_logf.S: Likewise.
85568         * sysdeps/i386/fpu/e_logl.S: Likewise.
85569         * sysdeps/i386/fpu/e_pow.S: Likewise.
85570         * sysdeps/i386/fpu/e_powf.S: Likewise.
85571         * sysdeps/i386/fpu/e_powl.S: Likewise.
85572         * sysdeps/i386/fpu/e_remainder.S: Likewise.
85573         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
85574         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
85575         * sysdeps/i386/fpu/e_scalb.S: Likewise.
85576         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
85577         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
85578         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
85579         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
85580         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
85581         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
85582         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
85583         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85584         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
85585         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85586         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
85587         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
85588         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
85589         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
85590         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
85591         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
85592         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
85593         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85594         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
85595         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
85596         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85597         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
85598         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
85599         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
85600         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85601         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
85602         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
85603         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
85604         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
85605         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
85606         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
85607         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85608         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
85609         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
85610         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
85611         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
85612         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
85613         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
85614         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
85615         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
85616         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
85617         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
85618         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
85619         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
85620         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
85621         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
85622         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
85623         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
85624         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
85625         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
85626         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
85627         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
85628         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
85629         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
85630         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
85631         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
85632         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
85633         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
85634         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
85635         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
85636         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
85637         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
85638         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
85639         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
85640         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
85641         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
85642         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
85643         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
85644         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
85645         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
85646         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
85647         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
85648         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
85649         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
85650         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
85651         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
85652         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
85653         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
85654         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
85655         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
85656         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
85657         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
85658         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
85659         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
85660         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
85661         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
85662         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
85663         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
85664         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
85665         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
85666         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
85667         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
85668         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
85669         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
85670         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
85671         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
85672         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
85673         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
85674         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
85675         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
85676         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
85677         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
85678         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
85679         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
85680         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
85681         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
85682         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
85683         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
85684         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
85685         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
85686         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
85687         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
85688         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
85689         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
85690         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
85691         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
85692         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
85693         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
85694         (__isnanf): Likewise.
85695         (__isinf_ns): Likewise.
85696         (__isinf_nsf): Likewise.
85697         (__finite): Likewise.
85698         (__finitef): Likewise.
85699         (__ieee754_sqrt): Define as macro.
85700         (__ieee754_sqrtf): Define as macro.
85701         (__ieee754_sqrtl): Define as macro.
85702         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
85703         inlined copy.
85704         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
85705         __FINITE_MATH_ONLY__ consistent.
85706         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
85707
85708 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
85709
85710         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
85711         of rawmemchr.
85712
85713         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
85714
85715 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
85716
85717         * po/ja.po: Update from translation team.
85718
85719 2011-10-08  Roland McGrath  <roland@hack.frob.com>
85720
85721         * locale/programs/locarchive.c (prepare_address_space): New function.
85722         (create_archive, enlarge_archive, open_archive): Use it.
85723
85724         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
85725         inside [SHARED], where it is used.
85726
85727         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
85728
85729         * nss/getent.c (netgroup_keys): Remove unused variable.
85730         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
85731
85732 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
85733
85734         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
85735         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
85736         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
85737         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
85738         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
85739         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
85740         * math/Makefile (libm-calls): Add s_isinf_ns.
85741         * math/divtc3.c: Use __isinf_nsl instead of isinf.
85742         * math/multc3.c: Likewise.
85743         * math/s_casin.c: Likewise.
85744         * math/s_casinf.c: Likewise.
85745         * math/s_casinl.c: Likewise.
85746         * math/s_ccos.c: Likewise.
85747         * math/s_ccosf.c: Likewise.
85748         * math/s_ccosl.c: Likewise.
85749         * math/s_ctan.c: Likewise.
85750         * math/s_ctanf.c: Likewise.
85751         * math/s_ctanh.c: Likewise.
85752         * math/s_ctanhf.c: Likewise.
85753         * math/s_ctanhl.c: Likewise.
85754         * math/s_ctanl.c: Likewise.
85755         * math/w_fmod.c: Likewise.
85756         * math/w_fmodf.c: Likewise.
85757         * math/w_fmodl.c: Likewise.
85758         * math/w_remainder.c: Likewise.
85759         * math/w_remainderf.c: Likewise.
85760         * math/w_remainderl.c: Likewise.
85761         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
85762         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
85763         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
85764         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
85765         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
85766         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
85767         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
85768         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
85769
85770         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
85771         of the number.
85772         * stdio-common/printf_fphex.c: Likewise.
85773         * stdio-common/printf_size.c: Likewise.
85774
85775         * math/e_exp10.c: Include math_private.h using <...> not "...".
85776         * math/e_exp10f.c: Likewise.
85777         * math/e_exp10l.c: Likewise.
85778         * math/e_exp2l.c: Likewise.
85779         * math/e_j0l.c: Likewise.
85780         * math/e_j1l.c: Likewise.
85781         * math/e_jnl.c: Likewise.
85782         * math/e_lgammal_r.c: Likewise.
85783         * math/e_rem_pio2l.c: Likewise.
85784         * math/e_scalb.c: Likewise.
85785         * math/e_scalbf.c: Likewise.
85786         * math/e_scalbl.c: Likewise.
85787         * math/k_cosl.c: Likewise.
85788         * math/k_sinl.c: Likewise.
85789         * math/k_tanl.c: Likewise.
85790         * math/s_cacoshf.c: Likewise.
85791         * math/s_catan.c: Likewise.
85792         * math/s_catanf.c: Likewise.
85793         * math/s_catanh.c: Likewise.
85794         * math/s_catanhf.c: Likewise.
85795         * math/s_catanhl.c: Likewise.
85796         * math/s_catanl.c: Likewise.
85797         * math/s_ccosh.c: Likewise.
85798         * math/s_ccoshf.c: Likewise.
85799         * math/s_ccoshl.c: Likewise.
85800         * math/s_cexp.c: Likewise.
85801         * math/s_cexpf.c: Likewise.
85802         * math/s_cexpl.c: Likewise.
85803         * math/s_clog.c: Likewise.
85804         * math/s_clog10.c: Likewise.
85805         * math/s_clog10f.c: Likewise.
85806         * math/s_clog10l.c: Likewise.
85807         * math/s_clogf.c: Likewise.
85808         * math/s_clogl.c: Likewise.
85809         * math/s_csin.c: Likewise.
85810         * math/s_csinf.c: Likewise.
85811         * math/s_csinh.c: Likewise.
85812         * math/s_csinhf.c: Likewise.
85813         * math/s_csinhl.c: Likewise.
85814         * math/s_csinl.c: Likewise.
85815         * math/s_csqrt.c: Likewise.
85816         * math/s_csqrtf.c: Likewise.
85817         * math/s_csqrtl.c: Likewise.
85818         * math/s_ctan.c: Likewise.
85819         * math/s_ctanf.c: Likewise.
85820         * math/s_ctanh.c: Likewise.
85821         * math/s_ctanhf.c: Likewise.
85822         * math/s_ctanhl.c: Likewise.
85823         * math/s_ctanl.c: Likewise.
85824         * math/s_ldexp.c: Likewise.
85825         * math/s_ldexpf.c: Likewise.
85826         * math/s_ldexpl.c: Likewise.
85827         * math/s_significand.c: Likewise.
85828         * math/s_significandf.c: Likewise.
85829         * math/s_significandl.c: Likewise.
85830         * math/w_acos.c: Likewise.
85831         * math/w_acosf.c: Likewise.
85832         * math/w_acosh.c: Likewise.
85833         * math/w_acoshf.c: Likewise.
85834         * math/w_acoshl.c: Likewise.
85835         * math/w_acosl.c: Likewise.
85836         * math/w_asin.c: Likewise.
85837         * math/w_asinf.c: Likewise.
85838         * math/w_asinl.c: Likewise.
85839         * math/w_atan2.c: Likewise.
85840         * math/w_atan2f.c: Likewise.
85841         * math/w_atan2l.c: Likewise.
85842         * math/w_atanh.c: Likewise.
85843         * math/w_atanhf.c: Likewise.
85844         * math/w_atanhl.c: Likewise.
85845         * math/w_cosh.c: Likewise.
85846         * math/w_coshf.c: Likewise.
85847         * math/w_coshl.c: Likewise.
85848         * math/w_dremf.c: Likewise.
85849         * math/w_exp10.c: Likewise.
85850         * math/w_exp10f.c: Likewise.
85851         * math/w_exp10l.c: Likewise.
85852         * math/w_exp2.c: Likewise.
85853         * math/w_exp2f.c: Likewise.
85854         * math/w_fmod.c: Likewise.
85855         * math/w_fmodf.c: Likewise.
85856         * math/w_fmodl.c: Likewise.
85857         * math/w_hypot.c: Likewise.
85858         * math/w_hypotf.c: Likewise.
85859         * math/w_hypotl.c: Likewise.
85860         * math/w_j0.c: Likewise.
85861         * math/w_j0f.c: Likewise.
85862         * math/w_j0l.c: Likewise.
85863         * math/w_j1.c: Likewise.
85864         * math/w_j1f.c: Likewise.
85865         * math/w_j1l.c: Likewise.
85866         * math/w_jn.c: Likewise.
85867         * math/w_jnf.c: Likewise.
85868         * math/w_jnl.c: Likewise.
85869         * math/w_lgamma.c: Likewise.
85870         * math/w_lgamma_r.c: Likewise.
85871         * math/w_lgammaf.c: Likewise.
85872         * math/w_lgammaf_r.c: Likewise.
85873         * math/w_lgammal.c: Likewise.
85874         * math/w_lgammal_r.c: Likewise.
85875         * math/w_log.c: Likewise.
85876         * math/w_log10.c: Likewise.
85877         * math/w_log10f.c: Likewise.
85878         * math/w_log10l.c: Likewise.
85879         * math/w_log2.c: Likewise.
85880         * math/w_log2f.c: Likewise.
85881         * math/w_log2l.c: Likewise.
85882         * math/w_logf.c: Likewise.
85883         * math/w_logl.c: Likewise.
85884         * math/w_pow.c: Likewise.
85885         * math/w_powf.c: Likewise.
85886         * math/w_powl.c: Likewise.
85887         * math/w_remainder.c: Likewise.
85888         * math/w_remainderf.c: Likewise.
85889         * math/w_remainderl.c: Likewise.
85890         * math/w_scalb.c: Likewise.
85891         * math/w_scalbf.c: Likewise.
85892         * math/w_scalbl.c: Likewise.
85893         * math/w_sinh.c: Likewise.
85894         * math/w_sinhf.c: Likewise.
85895         * math/w_sinhl.c: Likewise.
85896         * math/w_sqrt.c: Likewise.
85897         * math/w_sqrtf.c: Likewise.
85898         * math/w_sqrtl.c: Likewise.
85899         * math/w_tgamma.c: Likewise.
85900         * math/w_tgammaf.c: Likewise.
85901         * math/w_tgammal.c: Likewise.
85902
85903         * po/ja.po: Update from translation team.
85904
85905 2011-09-29  Andreas Jaeger  <aj@suse.de>
85906
85907         [BZ #13179]
85908         * sunrpc/netname.c (netname2host): Fix logic.
85909
85910         [BZ #6779]
85911         [BZ #6783]
85912         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
85913         correctly.
85914         * math/w_remainder.c (__remainder): Likewise.
85915         * math/w_remainderf.c (__remainderf): Likewise.
85916         * math/libm-test.inc (remainder_test): Add test cases.
85917
85918 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
85919
85920         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
85921         sdiv_qrnnd.
85922
85923 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
85924
85925         * string/test-memcmp.c: Avoid unncessary #defines.
85926         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
85927
85928 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85929
85930         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
85931         Use new sse2 version for core i3 - i7 as it's faster
85932         than sse42 version.
85933         (bit_Prefer_PMINUB_for_stringop): New.
85934         * sysdeps/x86_64/rawmemchr.S: Update.
85935         Replace with faster SSE2 version.
85936         * sysdeps/x86_64/memrchr.S: New file.
85937         * sysdeps/x86_64/memchr.S: Update.
85938         Replace with faster SSE2 version.
85939
85940 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
85941
85942         * elf/dl-load.c (lose): Add cast to avoid warning.
85943
85944 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
85945
85946         * po/ca.po: Update from translation team.
85947
85948         * inet/getnetgrent_r.c: Hook up nscd.
85949         * nscd/Makefile (routines): Add nscd_netgroup.
85950         (nscd-modules): Add netgroupcache.
85951         (CFLAGS-netgroupcache.c): Define.
85952         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
85953         (cache_search): Add const to second parameter.
85954         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
85955         INNETGR.
85956         (dbs): Add netgrdb entry.
85957         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
85958         (verify_persistent_db): Handle netgrdb.
85959         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
85960         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
85961         GETFDNETGR.
85962         (netgroup_response_header): Define.
85963         (innetgroup_response_header): Define.
85964         (datahead): Add netgroup_response_header and innetgroup_response_header
85965         elements.
85966         * nscd/nscd.conf: Add entries for netgroup cache.
85967         * nscd/nscd.h (dbtype): Add netgrdb.
85968         (_PATH_NSCD_NETGROUP_DB): Define.
85969         (netgroup_iov_disabled): Declare.
85970         (xmalloc, xcalloc, xrealloc): Move declarations here.
85971         (cache_search): Adjust prototype.
85972         Add netgroup-related prototypes.
85973         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
85974         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
85975         (__nscd_innetgr): Declare.
85976         * nscd/selinux.c (perms): Use access_vector_t as element type and
85977         add netgroup-related initializers.
85978         * nscd/netgroupcache.c: New file.
85979         * nscd/nscd_netgroup.c: New file.
85980         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
85981         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
85982         For four parameters use innetgr.
85983         * nss/nss_files/files-init.c: Add definition and callback for netgr.
85984         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
85985         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
85986         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
85987
85988         * nscd/connections.c (register_traced_file): Don't register file
85989         for disabled databases.
85990
85991 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
85992
85993         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
85994
85995         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
85996         from tree and freeing node.
85997
85998 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
85999
86000         * nss/nsswitch.c (__nss_database_lookup): Handle
86001         nss_parse_service_list out of memory case.
86002
86003 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
86004
86005         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
86006         out of memory case.
86007
86008 2011-10-04  Andreas Schwab  <schwab@redhat.com>
86009
86010         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
86011         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
86012         pass it down.
86013         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
86014         elf_machine_rela, elf_machine_lazy_rel.
86015         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
86016         (ELF_DYNAMIC_DO_REL): Likewise.
86017         (ELF_DYNAMIC_DO_RELA): Likewise.
86018         (ELF_DYNAMIC_RELOCATE): Likewise.
86019         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
86020         to ELF_DYNAMIC_DO_REL.
86021         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
86022         (dl_main): In trace mode always set __RTLD_NOIFUNC.
86023         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
86024         elf_machine_rela.
86025         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
86026         skip_ifunc, don't call ifunc function if non-zero.
86027         (elf_machine_rela): Likewise.
86028         (elf_machine_lazy_rel): Likewise.
86029         (elf_machine_lazy_rela): Likewise.
86030         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
86031         (elf_machine_lazy_rel): Likewise.
86032         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
86033         Likewise.
86034         (elf_machine_lazy_rel): Likewise.
86035         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86036         Likewise.
86037         (elf_machine_lazy_rel): Likewise.
86038         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
86039         (elf_machine_lazy_rel): Likewise.
86040         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
86041         (elf_machine_lazy_rel): Likewise.
86042         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
86043         (elf_machine_lazy_rel): Likewise.
86044         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
86045         (elf_machine_lazy_rel): Likewise.
86046         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
86047         (elf_machine_lazy_rel): Likewise.
86048         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
86049         (elf_machine_lazy_rel): Likewise.
86050
86051 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
86052
86053         * nss/nss_files/files-init.c (_nss_files_init): Use static
86054         initialization for all the *_traced_file variables.
86055
86056 2011-09-28  Andreas Schwab  <schwab@redhat.com>
86057
86058         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86059
86060 2011-09-27  Roland McGrath  <roland@hack.frob.com>
86061
86062         [BZ #13226]
86063         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
86064
86065 2011-09-27  Andreas Schwab  <schwab@redhat.com>
86066
86067         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
86068         Reread the line before reparsing it.
86069
86070 2011-09-26  Andreas Schwab  <schwab@redhat.com>
86071
86072         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
86073
86074 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
86075             Maxim Kuvyrkov  <maxim@codesourcery.com>
86076             Joseph Myers  <joseph@codesourcery.com>
86077
86078         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
86079         if needed for __stack_chk_guard.
86080
86081 2011-09-19  Roland McGrath  <roland@hack.frob.com>
86082
86083         * sysdeps/posix/spawni.c (script_execute): Always define it.
86084         It will be optimized away if unused.
86085         (maybe_script_execute): New function.
86086         (__spawni): Call it.
86087
86088         * Makerules: Don't include tls.make.
86089         (config-tls): Always set to thread.
86090         * tls.make.c: File removed.
86091
86092 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
86093
86094         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
86095         * config.make.in (CPPFLAGS-config): New substituted variable.
86096
86097 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
86098
86099         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
86100
86101         [BZ #13192]
86102         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
86103         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
86104
86105 2011-09-15  Roland McGrath  <roland@hack.frob.com>
86106
86107         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
86108         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
86109         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
86110         (CALL_FAIL): Likewise.
86111         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
86112         (CALL_FAIL): Macro removed.
86113         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
86114
86115 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
86116
86117         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
86118         for __FINITE_MATH_ONLY__ == 1.
86119
86120 2011-09-15  Andreas Schwab  <schwab@redhat.com>
86121
86122         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
86123         __ieee754_sqrt instead of sqrt.
86124         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
86125         __ieee754_sqrtf instead of sqrtf.
86126         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
86127         __floorf instead of floorf.
86128         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
86129         __floorf, __truncf instead of floorf, truncf.
86130
86131 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
86132
86133         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
86134
86135         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
86136         __extern_always_inline.
86137         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
86138         32-bit.
86139
86140 2011-09-14  Andreas Schwab  <schwab@redhat.com>
86141
86142         * elf/rtld.c (dl_main): Also relocate in dependency order when
86143         doing symbol dependency testing.
86144
86145 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
86146
86147         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86148         Always define `refsym'.
86149
86150 2011-09-13  Andreas Schwab  <schwab@redhat.com>
86151
86152         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
86153         (__FD_ELT): Renamed from __FDELT.
86154         * misc/bits/select2.h (__FD_ELT): Likewise.
86155         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
86156         __FD_MASK instead of __FDELT, __FDMASK.
86157         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86158         Likewise.
86159         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86160         Likewise.
86161
86162         * elf/Makefile (gen-ldd): Fix pattern.
86163
86164         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
86165         (init_tls): Likewise.
86166
86167 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
86168
86169         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
86170
86171 2011-09-12  Andreas Schwab  <schwab@redhat.com>
86172
86173         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
86174         `struct cmsghdr *' instead of `void *'.
86175         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
86176         Likewise.
86177
86178 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
86179
86180         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
86181         if non-absolute.
86182         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
86183         ldd_rewrite_script.
86184
86185 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
86186
86187         * configure.in: Remove --with-tls option.
86188         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
86189         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
86190         out in case it is missing.
86191         * sysdeps/ia64/elf/configure.in: Likewise.
86192         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
86193         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
86194         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
86195         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
86196         * sysdeps/sh/elf/configure.in: Likewise.
86197         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
86198         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
86199         * sysdeps/x86_64/elf/configure.in: Likewise.
86200         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
86201         * sysdeps/mach/hurd/tls.h: Likewise.
86202
86203         [BZ #13067]
86204         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
86205
86206         [BZ #13090]
86207         * configure.in: Fix use of AC_INIT.
86208
86209         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
86210
86211 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
86212
86213         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
86214         __set_errno.
86215         * malloc/hooks.c: Likewise.
86216
86217         [BZ #11929]
86218         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
86219         variables statically.
86220         (narenas): Initialize.
86221         (list_lock): Initialize.
86222         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
86223         initializtion of main_arena and list_lock.  Small cleanups.
86224         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
86225         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
86226         Add initializers to main_arena and mp_.
86227         (malloc_state): Remove pagesize member.  Change all users to use
86228         GLRO(dl_pagesize).
86229
86230         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
86231         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
86232         is always initialized.
86233
86234         * malloc/malloc.c: Removed unused configurations and dead code.
86235         * malloc/arena.c: Likewise.
86236         * malloc/hooks.c: Likewise.
86237         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
86238
86239         * include/tls.h: Removed.  USE___THREAD must always be defined.
86240         * bits/libc-tsd.h: Don't handle !USE___THREAD.
86241         * elf/dl-libc.c: Likewise.
86242         * elf/dl-tsd.c: Likewise.
86243         * include/errno.h: Likewise.
86244         * include/netdb.h: Likewise.
86245         * include/resolv.h: Likewise.
86246         * inet/herrno-loc.c: Likewise.
86247         * inet/herrno.c: Likewise.
86248         * malloc/arena.c: Likewise.
86249         * malloc/hooks.c: Likewise.
86250         * malloc/malloc.c: Likewise.
86251         * resolv/res-state.c: Likewise.
86252         * resolv/res_libc.c: Likewise.
86253         * sysdeps/i386/dl-machine.h: Likewise.
86254         * sysdeps/ia64/dl-machine.h: Likewise.
86255         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
86256         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
86257         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
86258         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
86259         * sysdeps/sh/dl-machine.h: Likewise.
86260         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
86261         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
86262         * sysdeps/unix/i386/sysdep.S: Likewise.
86263         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
86264         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
86265         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
86266         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
86267         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
86268         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
86269         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
86270         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
86271         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
86272         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
86273         * sysdeps/unix/x86_64/sysdep.S: Likewise.
86274         * sysdeps/x86_64/dl-machine.h: Likewise.
86275         * tls.make.c: Likewise.
86276
86277         * configure.in: Remove --with-__thread option.  Make tests for
86278         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
86279         tls_model attribute fail if no support is available.  Remove
86280         USE_IN_LIBIO.
86281         * Makeconfig: Adjust for dropped configure option.  All features are
86282         now mandatory.
86283         * Makerules: Likewise.
86284         * Versions.def: Likewise.
86285         * argp/argp-fmtstream.c: Likewise.
86286         * argp/argp-fmtstream.h: Likewise.
86287         * argp/argp-help.c: Likewise.
86288         * assert/assert.c: Likewise.
86289         * config.h.in: Likewise.
86290         * config.make.in: Likewise.
86291         * configure: Likewise.
86292         * configure.in: Likewise.
86293         * csu/Versions: Likewise.
86294         * csu/init.c: Likewise.
86295         * elf/tst-audit2.c: Likewise.
86296         * elf/tst-tls10.c: Likewise.
86297         * elf/tst-tls10.h: Likewise.
86298         * elf/tst-tls11.c: Likewise.
86299         * elf/tst-tls12.c: Likewise.
86300         * elf/tst-tls14.c: Likewise.
86301         * elf/tst-tlsmod11.c: Likewise.
86302         * elf/tst-tlsmod12.c: Likewise.
86303         * elf/tst-tlsmod13.c: Likewise.
86304         * elf/tst-tlsmod13a.c: Likewise.
86305         * elf/tst-tlsmod14a.c: Likewise.
86306         * elf/tst-tlsmod15b.c: Likewise.
86307         * elf/tst-tlsmod16a.c: Likewise.
86308         * elf/tst-tlsmod16b.c: Likewise.
86309         * elf/tst-tlsmod7.c: Likewise.
86310         * elf/tst-tlsmod8.c: Likewise.
86311         * elf/tst-tlsmod9.c: Likewise.
86312         * gmon/gmon.c: Likewise.
86313         * grp/fgetgrent_r.c: Likewise.
86314         * grp/putgrent.c: Likewise.
86315         * hurd/fopenport.c: Likewise.
86316         * include/libc-symbols.h: Likewise.
86317         * include/tls.h: Likewise.
86318         * intl/gettextP.h: Likewise.
86319         * intl/loadinfo.h: Likewise.
86320         * locale/global-locale.c: Likewise.
86321         * locale/localeinfo.h: Likewise.
86322         * mach/devstream.c: Likewise.
86323         * malloc/arena.c: Likewise.
86324         * malloc/set-freeres.c: Likewise.
86325         * misc/err.c: Likewise.
86326         * misc/getttyent.c: Likewise.
86327         * misc/mntent_r.c: Likewise.
86328         * posix/getopt.c: Likewise.
86329         * posix/wordexp.c: Likewise.
86330         * pwd/fgetpwent_r.c: Likewise.
86331         * resolv/Versions: Likewise.
86332         * resolv/res_hconf.c: Likewise.
86333         * shadow/fgetspent_r.c: Likewise.
86334         * shadow/putspent.c: Likewise.
86335         * stdio-common/printf_fphex.c: Likewise.
86336         * stdio-common/tmpfile.c: Likewise.
86337         * stdlib/abort.c: Likewise.
86338         * stdlib/fmtmsg.c: Likewise.
86339         * sunrpc/auth_unix.c: Likewise.
86340         * sunrpc/clnt_perr.c: Likewise.
86341         * sunrpc/clnt_tcp.c: Likewise.
86342         * sunrpc/clnt_udp.c: Likewise.
86343         * sunrpc/clnt_unix.c: Likewise.
86344         * sunrpc/openchild.c: Likewise.
86345         * sunrpc/svc_simple.c: Likewise.
86346         * sunrpc/svc_tcp.c: Likewise.
86347         * sunrpc/svc_udp.c: Likewise.
86348         * sunrpc/svc_unix.c: Likewise.
86349         * sunrpc/xdr.c: Likewise.
86350         * sunrpc/xdr_array.c: Likewise.
86351         * sunrpc/xdr_rec.c: Likewise.
86352         * sunrpc/xdr_ref.c: Likewise.
86353         * sunrpc/xdr_stdio.c: Likewise.
86354
86355 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86356
86357         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86358
86359 2011-07-03  Andreas Jaeger  <aj@suse.de>
86360
86361         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
86362         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
86363         regenerate with gen-libm-tests.pl.
86364
86365 2010-05-12  Petr Baudis  <pasky@suse.cz>
86366
86367         [BZ #11589]
86368         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
86369         around j0() zero points by switching to j1().
86370         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
86371         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
86372         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
86373         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
86374
86375 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86376
86377         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
86378         instead of 0.
86379         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
86380         instead of 0.
86381         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
86382         Patch in part by Pavel Roskin <proski@gnu.org>.
86383
86384         [BZ #13138]
86385         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
86386         realloc.
86387         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
86388         Free memory block if necessary.
86389
86390         [BZ #12847]
86391         * libio/genops.c (INTDEF): For string streams the _lock pointer can
86392         be NULL.  Don't lock in this case.
86393
86394 2011-09-09  Roland McGrath  <roland@hack.frob.com>
86395
86396         * elf/elf.h (ELFOSABI_GNU): New macro.
86397         (ELFOSABI_LINUX): Define to that.
86398
86399 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
86400
86401         * string/strncat.c (strncat): Undef the symbol in case it has been
86402         defined in bits/string.h.
86403
86404 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86405
86406         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
86407
86408         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
86409         link map.
86410
86411 2011-08-17  Andreas Jaeger  <aj@suse.de>
86412
86413         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
86414
86415 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
86416             Ian Lance Taylor  <iant@google.com>
86417
86418         * math/libm-test.inc (lround_test): New testcase.
86419         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
86420
86421 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
86422
86423         * Makefile: Remove support for automatic cvs check-ins.
86424         * Makerules: Likewise.
86425         * config.make.in: Likewise.
86426         * configure.in: Likewise.
86427         * intl/Makefile: Likewise.
86428         * locale/Makefile: Likewise.
86429         * po/Makefile: Likewise.
86430         * posix/Makefile: Likewise.
86431         * sysdeps/gnu/Makefile: Likewise.
86432         * sysdeps/mach/hurd/Makefile: Likewise.
86433         * sysdeps/sparc/sparc32/Makefile: Likewise.
86434
86435         [BZ #13118]
86436         * posix/Makefile (bug-regex32-ENV): Define.
86437         Patch by John Stanley <jpsinthemix@verizon.net>.
86438
86439         * misc/Makefile (headers): Add bits/select2.h.
86440         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
86441         * misc/bits/select2.h: New file.
86442         * include/bits/select2.h: New file.
86443         * debug/Makefile (routines): Add fdelt_chk.
86444         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
86445         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
86446         FD_ISSET.
86447         * debug/fdelt_chk.c: New file.
86448
86449         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
86450         * wcsmbs/test-wmemcmp.c: Likewise.
86451         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
86452         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
86453
86454 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86455
86456         * string/Makefile (strop-tests): Add memcmp.
86457         * string/test-wmemcmp.c: New file.
86458         * string/test-memcmp.c: Add wmemcmp support.
86459
86460 2011-09-08  Roland McGrath  <roland@hack.frob.com>
86461
86462         [BZ #13153]
86463         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
86464         2011-07-19 change.
86465
86466         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
86467         garbage value in a __mach_port_mod_refs call in the cases of the
86468         task-self and thread-self ports.
86469
86470 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
86471
86472         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
86473
86474 2011-09-08  Andreas Schwab  <schwab@redhat.com>
86475
86476         * elf/dl-load.c (lose): Check for non-null L.
86477
86478 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
86479
86480         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
86481
86482         * elf/dl-libc.c (dlerror_run): Pass back error code from
86483         dl_catch_error.
86484
86485         [BZ #13123]
86486         * elf/dl-load.c (lose): Free l_origin if it is valid.
86487
86488         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
86489         names.
86490         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
86491         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
86492         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
86493         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
86494         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
86495         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
86496
86497 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
86498
86499         * sysdeps/powerpc/fpu/e_hypot.c: New file.
86500         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
86501         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
86502         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
86503         * sysdeps/powerpc/fpu/k_cosf.c: New file.
86504         * sysdeps/powerpc/fpu/k_sinf.c: New file.
86505         * sysdeps/powerpc/fpu/s_cosf.c: New file.
86506         * sysdeps/powerpc/fpu/s_sinf.c: New file.
86507         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
86508         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
86509
86510 2011-08-15  Alan Modra  <amodra@gmail.com>
86511
86512         [BZ #13092]
86513         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
86514         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
86515         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
86516         ppc_mcount to static-only-routines.
86517         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
86518         __mcount_internal.
86519         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
86520         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
86521
86522 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
86523
86524         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
86525         for finite and infinity parameters.
86526
86527 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
86528
86529         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
86530         and add nop instructions for throughput optimization.
86531         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
86532
86533 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
86534
86535         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
86536         aligned copy for power7 with vector-scalar instructions.
86537         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
86538
86539 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
86540
86541         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
86542         AVX check.
86543
86544 2011-09-07  Andreas Schwab  <schwab@redhat.com>
86545
86546         [BZ #13144]
86547         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
86548         last change.
86549
86550 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
86551
86552         * sysdeps/unix/sysv/linux/x86_64/init-first.c
86553         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
86554         syscall wrapper around clock_gettime in __vdso_clock_gettime.
86555         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
86556         clock_gettime.
86557
86558 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
86559
86560         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
86561         Forgot to demangle the pointer.
86562
86563         * sysdeps/i386/sysdep.h: Define atom_text_section.
86564         * sysdeps/x86_64/sysdep.h: Likewise.
86565         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
86566         section with atom_text_section.
86567         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
86568         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
86569         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
86570         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
86571         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
86572
86573         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
86574         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
86575         already be defined.  Change to take two parameters and don't assign
86576         result to variable.  Adjust all users.
86577         Define INTERNAL_GETTIME if not already defined.
86578         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
86579         call.
86580         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
86581         HAVE_CLOCK_GETTIME_VSYSCALL.
86582         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
86583
86584         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
86585         gettimeofday vsyscall, just use time.
86586
86587 2011-09-06  Andreas Schwab  <schwab@redhat.com>
86588
86589         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
86590         <errno.h>.
86591
86592 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
86593
86594         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
86595         syscall on x86-64.
86596         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
86597         syscall.
86598         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
86599         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
86600         syscall if possible.
86601
86602 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86603
86604         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
86605         e_ident.  Don't pass to find_mapsXX.
86606         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
86607
86608 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86609
86610         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
86611         strchr-sse2-no-bsf strrchr-sse2-no-bsf
86612         * sysdeps/x86_64/multiarch/strchr.S: Update.
86613         Check bit_slow_BSF bit.
86614         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
86615         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
86616         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
86617
86618 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86619
86620         [BZ #13134]
86621         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
86622         before glibc 2.15.
86623         (tryshell): Define.
86624         (__spawni): Change last parameter to be flag.  Test
86625         SPAWN_XFLAGS_USE_PATH flag to use path or not.
86626         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
86627         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
86628         * posix/spawni.c: Likewise.
86629         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
86630         * posix/spawnp.c: Likewise.  Change normal version to use
86631         SPAWN_XFLAGS_USE_PATH.
86632         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
86633         SPAWN_XFLAGS_TRY_SHELL.
86634
86635         [BZ #13150]
86636         * posix/glob.h: Remove gcc 1.x support.
86637
86638         [BZ #13068]
86639         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
86640
86641 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86642
86643         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
86644         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
86645         strrchr-sse2-bsf
86646         * sysdeps/i386/i686/multiarch/strchr.S: New file.
86647         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
86648         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
86649         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
86650         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
86651         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
86652
86653 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86654
86655         * sysdeps/x86_64/wcscmp.S: New file.
86656
86657         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
86658         wcscmp-c wcscmp-sse2
86659         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
86660         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
86661         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
86662         * wcsmbs/wcscmp.c: Allow renaming.
86663
86664 2011-09-05  David S. Miller  <davem@davemloft.net>
86665
86666         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
86667         stack slot, rather than the struct return pointer slot.
86668         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
86669         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
86670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
86671         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
86672
86673 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86674
86675         * po/ja.po: Update from translation team.
86676
86677         [BZ #13144]
86678         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
86679         kernel in 64-bit binaries.
86680
86681 2011-09-01  David S. Miller  <davem@davemloft.net>
86682
86683         * elf/elf.h (HWCAP_SPARC_*): Move to..
86684         * sysdeps/sparc/sysdep.h: this new file and add new values.
86685         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
86686         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
86687         _DL_HWCAP_COUNT to 24.
86688         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
86689         entries.
86690         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
86691         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
86692         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
86693         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
86694         instead of magic constants.
86695         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
86696
86697 2011-08-31  David S. Miller  <davem@davemloft.net>
86698
86699         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
86700         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
86701         Reimplement to do errno handling inline.
86702         (SYSCALL_ERROR_HANDLER): New macro.
86703         (__SYSCALL_STRING): Do not do errno handling in asm.
86704         (__CLONE_SYSCALL_STRING): Delete.
86705         (__INTERNAL_SYSCALL_STRING): Delete.
86706         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
86707         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
86708         (PSEUDO): Reimplement to do errno handling inline.
86709         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
86710         (SYSCALL_ERROR_HANDLER): New macro.
86711         (__SYSCALL_STRING): Do not do errno handling in asm.
86712         (__CLONE_SYSCALL_STRING): Delete.
86713         (__INTERNAL_SYSCALL_STRING): Delete.
86714         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
86715         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
86716         i386.
86717         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
86718         (inline_syscall*): Add 'err' argument.
86719         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
86720         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
86721         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
86722         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
86723
86724         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
86725         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
86726
86727 2011-08-30  Andreas Schwab  <schwab@redhat.com>
86728
86729         * elf/rtld.c (dl_main): Relocate objects in dependency order.
86730
86731 2011-08-29  Jiri Olsa <jolsa@redhat.com>
86732
86733         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
86734         directive.
86735
86736 2011-08-24  David S. Miller  <davem@davemloft.net>
86737
86738         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
86739
86740 2011-08-24  Andreas Schwab  <schwab@redhat.com>
86741
86742         * elf/Makefile: Add rules to build and run unload8 test.
86743         * elf/unload8.c: New file.
86744         * elf/unload8mod1.c: New file.
86745         * elf/unload8mod1x.c: New file.
86746         * elf/unload8mod2.c: New file.
86747         * elf/unload8mod3.c: New file.
86748
86749         * elf/dl-close.c (_dl_close_worker): Reset private search list if
86750         it wasn't used.
86751
86752 2011-08-23  David S. Miller  <davem@davemloft.net>
86753
86754         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
86755         subtract stack bias.
86756         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
86757         %sp not %fp in calculations.
86758         (_JMPBUF_UNWINDS_ADJ): Likewise.
86759
86760         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
86761         (aio_suspend): Call it to force an exception region around the
86762         AIO_MISC_WAIT() invocation.
86763
86764 2011-08-23  Andreas Schwab  <schwab@redhat.com>
86765
86766         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
86767         backslash.
86768
86769 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
86770
86771         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
86772         protection macro.
86773         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
86774         and <dl-machine.h>.
86775         (Elf64_FuncDesc): Remove.
86776
86777 2011-08-22  David S. Miller  <davem@davemloft.net>
86778
86779         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
86780         sigaltstack check, add missing cfi directives.
86781         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
86782         missing cfi directives, and sigaltstack handling.
86783
86784 2011-08-16  Andreas Schwab  <schwab@redhat.com>
86785
86786         [BZ #11724]
86787         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
86788         object is seen twice.
86789         * elf/dl-fini.c (_dl_sort_fini): Likewise.
86790
86791         * elf/Makefile (distribute): Add tst-initorder2.c.
86792         (tests): Add tst-initorder2.
86793         (modules-names): Add tst-initorder2a tst-initorder2b
86794         tst-initorder2c tst-initorder2d.  Add rules to build them.
86795         ($(objpfx)tst-initorder2.out): New rule.
86796         * elf/tst-initorder2.c: New file.
86797         * elf/tst-initorder2.exp: New file.
86798
86799 2011-08-22  Andreas Schwab  <schwab@redhat.com>
86800
86801         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
86802
86803         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
86804         dependencies back to end of function.
86805
86806         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
86807         $(elfobjdir)/ld.so.
86808
86809 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
86810
86811         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
86812         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
86813         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
86814         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
86815         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
86816         of __vdso_gettimeofday.
86817         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
86818         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
86819         attribute_hidden.
86820         (_libc_vdso_platform_setup): Remove initialization of
86821         __vdso_gettimeofday and __vdso_time.
86822
86823 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
86824
86825         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
86826         and fgetc_unlocked.
86827         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
86828         getc_unlocked.
86829
86830         * elf/dl-open.c (add_to_global): Report additions to the global scope
86831         for LD_DEBUG=scopes.
86832         (dl_open_worker): Also print scope of newly loaded dependencies.
86833         (_dl_show_scope): Indicate if there is no scope.
86834
86835         [BZ #13114]
86836         * stdio-common/Makefile (tests): Add bug24.
86837         * stdio-common/bug24.c: New file.
86838
86839 2011-08-19  Andreas Jaeger  <aj@suse.de>
86840
86841         [BZ #13114]
86842         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
86843         non-existant file when using close-on-exec mode.
86844
86845 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
86846
86847         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
86848         the very first instruction.
86849
86850         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
86851         the CFI state in the end.
86852         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
86853         inclusion of dl-trampoline.h.
86854         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
86855
86856 2011-08-19  Andreas Schwab  <schwab@redhat.com>
86857
86858         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
86859         expectations for long double.
86860
86861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
86862         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
86863
86864 2011-08-14  David S. Miller  <davem@davemloft.net>
86865
86866         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
86867         artificual limit depends upon the system page size.
86868
86869 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
86870
86871         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
86872         * resolv/Makefile: Define CFLAGS-libresolv.
86873
86874 2011-08-17  Andreas Schwab  <schwab@redhat.com>
86875
86876         * nss/makedb.c (compute_tables): Make variables used in nested
86877         function static.
86878
86879 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
86880
86881         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
86882         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
86883         if buffer was too small.
86884
86885         * elf/pldd.c (main): Attach to all threads in the process.
86886         Rewrite /proc handling to use *at functions.
86887
86888 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
86889
86890         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
86891         specifies first scope to show.
86892         (dl_open_worker): Update callers.  Move printing scope of new
86893         object to before the relocation.
86894         * elf/rtld.c (dl_main): Update _dl_show_scope call.
86895         * sysdeps/generic/ldsodefs.h: Update declaration.
86896
86897         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
86898         string for the scope number.
86899
86900 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
86901
86902         * nscd/servicescache.c (cache_addserv): Make sure written is always
86903         initialized.
86904
86905 2011-08-14  Roland McGrath  <roland@hack.frob.com>
86906
86907         * sysdeps/i386/i486/bits/atomic.h
86908         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
86909         statement expression, so as to suppress "set but not used" warning.
86910         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
86911
86912         * string/strncat.c (STRNCAT): Use prototype definition.
86913
86914         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
86915         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
86916         -Iprograms here.
86917         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
86918         (localedef-modules): Add localedef.
86919         (locale-modules): Add locale.
86920
86921         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
86922         * elf/rtld.c (dl_main): Invert order of assignment in last change,
86923         to avoid a warning.
86924
86925 2011-08-14  David S. Miller  <davem@davemloft.net>
86926
86927         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
86928         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
86929
86930 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
86931
86932         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
86933         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
86934         * elf/rtld.c (dl_main): Set l_name of vDSO.
86935         Call _dl_show_scope when DL_DEBUG_SCOPES.
86936         (process_dl_debug): Recognize scopes flag and also set it for all.
86937         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
86938         Declare _dl_show_scope.
86939
86940         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
86941         (do_dlopen): Pass caller_dlopen to dl_open.
86942         (__libc_dlopen_mode): Initialize caller_dlopen.
86943
86944         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
86945         of libc.  Make tolower call locale-independent.  Optimize a bit by
86946         using isdigit instead of isalnum.
86947         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
86948
86949 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
86950
86951         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
86952         was a dependency or dynamically loaded.
86953
86954 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
86955
86956         * intl/l10nflist.c: Allow architecture-specific pop function.
86957         * sysdeps/x86_64/l10nflist.c: New file.
86958
86959         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
86960         classification.
86961
86962 2011-08-10  Andreas Schwab  <schwab@redhat.com>
86963
86964         * include/dirent.h: Add libc_hidden_proto for scandirat and
86965         scandirat64.  Don't declare __scandirat64.
86966         * dirent/scandirat.c: Add libc_hidden_def.
86967         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
86968         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
86969
86970 2011-08-10  David S. Miller  <davem@davemloft.net>
86971
86972         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
86973         enum.
86974         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
86975         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
86976         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
86977
86978 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
86979
86980         * Versions.def [libc]: Add GLIBC_2.15.
86981         * dirent/Makefile (routines): Add scandirat and scandirat64.
86982         * dirent/Versions [libc]: Export scandirat and scandirat64 for
86983         GLIBC_2.15.
86984         * dirent/dirent.h: Declare scandirat and scandirat64.
86985         * dirent/scandirat.c: New file.
86986         * dirent/scandirat64.c: New file.
86987         * sysdeps/wordsize-64/scandirat.c: New file.
86988         * sysdeps/wordsize-64/scandirat64.c: New file.
86989         * dirent/opendir.c: Define opendirat.
86990         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
86991         using scandirat.
86992         * dirent/scandir64.c: Adjust for scandir.c change.
86993         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
86994         __scandirat64, and __scandir_cancel_handler.
86995         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
86996         additional parameter and use openat instead of open (outside of ld.so).
86997         Add new __opendir as wrapper around __opendirat.
86998         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
86999         here without requiring old scandirat implementation.
87000
87001 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
87002
87003         * dirent/scandir.c (cancel_handler): Renamed to
87004         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
87005         defined.  Adjust users.
87006         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
87007         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
87008
87009 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
87010
87011         * string/test-string.h (IMPL): Use __STRING to expand name and then
87012         stringify it.
87013
87014         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
87015         of cleanups.
87016
87017 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87018
87019         * string/Makefile: Update.
87020         (strop-tests): Append strncat.
87021         * string/test-wcscmp.c: New file.
87022         New comprehensive test for wcscmp.
87023         * string/test-strcmp.c: Update.
87024         (WIDE): New define.
87025
87026 2011-07-22  Andreas Schwab  <schwab@redhat.com>
87027
87028         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
87029         line.
87030
87031 2011-07-26  Andreas Schwab  <schwab@redhat.com>
87032
87033         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
87034         encoding to ACE if AI_IDN.
87035
87036 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
87037
87038         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
87039         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
87040
87041 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87042
87043         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
87044         Fix overflow bug in strncat.
87045         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
87046
87047         * string/test-strncat.c: Update.
87048         Add new tests for checking overflow bugs.
87049
87050 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87051
87052         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87053         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
87054         * sysdeps/i386/i686/multiarch/strcat.S: New file.
87055         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
87056         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
87057         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
87058         * sysdeps/i386/i686/multiarch/strncat.S: New file.
87059         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
87060         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
87061
87062         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
87063         (USE_AS_STRCAT): Define.
87064         Add strcat and strncat support.
87065         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
87066
87067 2011-07-25  Andreas Schwab  <schwab@redhat.com>
87068
87069         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
87070         __n bigger than INT_MAX+1.
87071         (__strncmp_g): Likewise.
87072
87073 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
87074
87075         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
87076         * libio/stido.h: Likewise.
87077
87078         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
87079         (AF_NFC): Define.
87080         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
87081         (AF_NFC): Define.
87082
87083         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
87084         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
87085         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
87086         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
87087         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
87088
87089         [BZ #13021]
87090         * scripts/test-installation.pl: Don't expect libnss_test1 to be
87091         installed.
87092
87093         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
87094         typo.
87095         (_dl_x86_64_save_sse): Likewise.
87096
87097 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
87098
87099         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
87100         OSXSAVE.
87101         (_dl_x86_64_save_sse): Likewise.
87102
87103         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
87104
87105         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
87106
87107 2011-07-21  Andreas Schwab  <schwab@redhat.com>
87108
87109         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
87110         change.
87111         (_dl_x86_64_save_sse): Use correct AVX check.
87112
87113 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87114
87115         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
87116         bug in strncpy/strncat.
87117         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
87118
87119 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
87120
87121         * string/tester.c (test_strcat): Add tests for different alignments
87122         of source and destination.
87123         (test_strncat): Likewise.
87124
87125 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87126
87127         [BZ #12852]
87128         * posix/glob.c (glob): Check passed in values before using them in
87129         expressions to avoid some overflows.
87130         (glob_in_dir): Likewise.
87131
87132         [BZ #13007]
87133         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
87134         check for AVX enablement so that we don't crash with old kernels and
87135         new hardware.
87136         * elf/tst-audit4.c: Add same checks here.
87137         * elf/tst-audit6.c: Likewise.
87138
87139         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
87140
87141 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
87142
87143         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
87144
87145 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87146
87147         * po/cs.po: Update from translation team.
87148         * po/bg.po: Likewise.
87149
87150 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
87151
87152         * misc/sys/cdefs.h: Add support for const attribute.
87153         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
87154         to gnu_dev_{major,minor,makedev} functions.
87155
87156 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
87157
87158         * intl/dcigettext.c (get_output_charset): Add missing bracket.
87159
87160 2011-07-20  Andreas Schwab  <schwab@redhat.com>
87161
87162         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
87163         strlen results.
87164
87165 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87166
87167         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
87168         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
87169         register in order to avoid conflicts with the soft frame pointer
87170         being held in r11 when necessary.
87171         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
87172         (INTERNAL_VSYSCALL_NCS): Likewise.
87173
87174 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
87175
87176         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
87177         * elf/dl-fini.c (_dl_fini): Adjust caller.
87178         * elf/dl-close.c (_dl_close_worker): Likewise.
87179         * sysdeps/generic/ldsodefs.h: Adjust declaration.
87180
87181 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87182
87183         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
87184         "aux_cache->nlibs < 0".
87185
87186         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
87187         in the reload-count case.
87188
87189 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87190
87191         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87192         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
87193         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
87194         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
87195         * sysdeps/x86_64/multiarch/strcat.S: New file.
87196         * sysdeps/x86_64/multiarch/strncat.S: New file.
87197         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
87198         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
87199         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
87200         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
87201         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
87202         (USE_AS_STRCAT): Define.
87203         Add strcat and strncat support.
87204         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
87205         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
87206         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
87207         * string/strncat.c: Update.
87208         (USE_AS_STRNCAT): Define.
87209         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87210         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
87211         and i7.
87212         * sysdeps/x86_64/multiarch/init-arch.h
87213         (bit_Prefer_PMINUB_for_stringop): New.
87214         (index_Prefer_PMINUB_for_stringop): Likewise.
87215         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
87216         bit_Prefer_PMINUB_for_stringop.
87217
87218 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87219
87220         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
87221         buffer64.
87222         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
87223         of casting of buffer.
87224         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
87225         buffer32 and buffer64.
87226         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
87227         writes instead of casting of buffer.
87228         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
87229         buffer32.
87230         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
87231         casting of buffer.
87232
87233 2011-07-19  Andreas Schwab  <schwab@redhat.com>
87234
87235         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
87236
87237 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87238
87239         * nscd/nscd.c (termination_handler): Don't do anything for a database
87240         if it has not yet been initialized.
87241
87242 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87243
87244         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87245
87246 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87247
87248         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87249
87250 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87251
87252         * po/nl.po: Update from translation team.
87253         * po/sv.po: Likewise.
87254
87255 2011-07-16  Roland McGrath  <roland@hack.frob.com>
87256
87257         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
87258         now disallowed by GCC.
87259
87260         * configure.in (use-default-link): Default to yes if a test -shared
87261         link meets our qualifications.
87262         * configure: Regenerated.
87263
87264         * config.make.in (output-format): New variable.
87265         * configure.in: Check for ld --print-output-format support.
87266         * configure: Regenerated.
87267         * Makerules ($(common-objpfx)format.lds)
87268         [$(output-format) != unknown]: Just use $(output-format),
87269         instead of the linker-script munging.
87270
87271 2011-07-14  Roland McGrath  <roland@hack.frob.com>
87272
87273         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
87274         of $(common-objpfx)shlib.lds.
87275         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
87276
87277         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
87278         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
87279
87280         * configure.in (-z relro check): Adjust test code to add a large
87281         writable data section after it.
87282         * configure: Regenerated.
87283
87284 2011-07-11  Roland McGrath  <roland@hack.frob.com>
87285
87286         * configure.in (-z relro check): Fix test code to make the variable
87287         truly const.
87288         * configure: Regenerated.
87289
87290 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
87291
87292         * nscd/nscd.h (struct traced_file): Define.
87293         (struct database_dyn): Remove inotify_descr, reset_res, and filename
87294         elements.  Add traced_files.
87295         (inotify_fd): Declare.
87296         (register_traced_file): Declare.
87297         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
87298         (inotify_fd): Export.
87299         (resolv_conf_descr): Remove.
87300         (nscd_init): Move inotify descriptor creation to main.
87301         Don't register files for notification here.
87302         (register_traced_file): New function.
87303         (invalidate_cache): Don't use reset_res to determine whether to call
87304         res_init, go through the list of registered files.
87305         (main_loop_poll): The inotify descriptors are now stored in the
87306         structures for the traced files.
87307         (main_loop_epoll): Likewise.
87308         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
87309         to __nss_disable_nscd.
87310         * nscd/cache.c (prune_cache): There is no single inotify descriptor
87311         for a database anymore.  Check the records for all the registered
87312         files instead.
87313         * nss/Makefile (libnss_files-routines): Add files-init.
87314         (libnss_db-routines): Add db-init.
87315         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
87316         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
87317         * nss/nss_db/db-init.c: New file.
87318         * nss/nss_files/files-init.c: New file.
87319         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
87320         __nss_lookup_function.
87321         (__nss_lookup_function): Call nss_load_library.
87322         (nss_load_all_libraries): New function.
87323         (__nss_disable_nscd): Take parameter with callback function for files
87324         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
87325         used for the cached services.
87326         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
87327         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
87328         options for features to all the files in nscd.
87329
87330         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
87331
87332 2011-07-10  Roland McGrath  <roland@hack.frob.com>
87333
87334         * csu/elf-init.c (__libc_csu_init): Comment typo.
87335
87336 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
87337
87338         * po/pl.po: Update from translation team.
87339         * po/ja.po: Likewise.
87340         * po/ru.po: Likewise.
87341         * po/ko.po: Likewise.
87342         * po/fr.po: Likewise.
87343
87344 2011-07-09  Roland McGrath  <roland@hack.frob.com>
87345
87346         * configure.in (.ctors/.dtors header and trailer check):
87347         Use an empirical test on a built program.
87348         * configure: Regenerated.
87349
87350         * configure.in (-z relro check): Use an empirical test on a built DSO.
87351         Detect, but do not require, on ia64.
87352         * configure: Regenerated.
87353
87354         * configure.in (READELF): Find it with AC_CHECK_TOOL.
87355         Update tests that use readelf to use $READELF instead.
87356         * configure: Regenerated.
87357
87358 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
87359
87360         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
87361         if the result is not used.
87362
87363 2011-07-05  Andreas Jaeger  <aj@suse.de>
87364
87365         [BZ #9696]
87366         * stdlib/tst-strtod.c: Add testcase.
87367
87368 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
87369
87370         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
87371         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
87372         The latter has a higher limit.  Take additional parameter to pass to
87373         the new function.
87374         (__pathconf): Pass file to __statfs_link_max.
87375         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
87376         __statfs_link_max.
87377         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
87378         __statfs_link_max.
87379
87380         [BZ #12868]
87381         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
87382         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
87383         Handle Lustre.
87384         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
87385         (__statfs_filesize_max): Likewise.
87386         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
87387
87388 2011-07-05  Andreas Jaeger  <aj@suse.de>
87389
87390         * resolv/res_comp.c (dn_skipname): Remove unused variable.
87391
87392 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
87393
87394         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
87395         `status' variable.
87396         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
87397         Likewise.
87398
87399 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
87400
87401         * Makefile (strop-tests): Add strncat.
87402         * string/test-strncat.c: New file.
87403
87404 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
87405
87406         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
87407
87408 2011-06-21  Andreas Jaeger  <aj@suse.de>
87409
87410         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
87411         Copy rule from iconvdata/Makefile.
87412
87413 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87414
87415         [BZ #12922]
87416         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
87417         but no long options are defined, just return 'W'.
87418
87419 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
87420
87421         [BZ #9696]
87422         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
87423
87424 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87425
87426         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
87427         netgroups to read.
87428         (innetgr): Likewise.
87429
87430 2011-07-05  Roland McGrath  <roland@hack.frob.com>
87431
87432         * config.make.in (install_root): Default to $(DESTDIR).
87433
87434 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
87435
87436         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
87437
87438 2011-07-02  Roland McGrath  <roland@hack.frob.com>
87439
87440         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
87441
87442         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
87443         containing directory rather than embedding absolute directory names.
87444
87445         * scripts/check-local-headers.sh: Rewritten using awk.
87446         Match by word, not by line.  Print error messages for matches.
87447         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
87448
87449         * Makerules [shlib-lds-flags empty]:
87450         ($(common-objpfx)libc_pic.opts): New target.
87451         ($(common-objpfx)libc_pic.os.clean): New target.
87452         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
87453
87454         * config.make.in (OBJCOPY): New variable.
87455         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
87456         * configure: Regenerated.
87457
87458         * config.make.in (use-default-link): New variable.
87459         * configure.in (use_default_link): Grok --with-default-link to set it.
87460         * configure: Regenerated.
87461         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
87462         (shlib-lds, shlib-lds-flags): Define to empty.
87463
87464         * Makerules (shlib-lds): New variable.
87465         (shlib-lds-flags): New variable.
87466         (build-shlib, build-moduile, build-module-asneeded): Use it.
87467         ($(common-objpfx)libc.so): Use $(shlib-lds).
87468         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
87469         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
87470
87471         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
87472         DT_FLAGS/DT_FLAGS_1 with zero flags.
87473
87474         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
87475         linker script munging.
87476
87477 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
87478
87479         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
87480         as 128-bit value.
87481         * crypt/sha512.c (sha512_process_block): Perform total addition using
87482         128-bit if possible.
87483         (__sha512_finish_ctx): Likewise.
87484         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
87485         as 64-bit value.
87486         * crypt/sha256.c (SWAP64): Define.
87487         (sha256_process_block): Perform total addition using 64-bit if
87488         possible.
87489         (__sha256_finish_ctx): Likewise.
87490
87491 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
87492
87493         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
87494         * nscd/initgrcache.c (addinitgroupsX): Likewise.
87495         * nscd/hstcache.c (cache_addhst): Likewise.
87496         * nscd/grpcache.c (cache_addgr): Likewise.
87497         * nscd/aicache.c (addhstaiX): Likewise.
87498         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
87499
87500 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
87501
87502         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
87503         * nscd/initgrcache.c (addinitgroupsX): Likewise.
87504         * nscd/hstcache.c (cache_addhst): Likewise.
87505         * nscd/grpcache.c (cache_addgr): Likewise.
87506         * nscd/aicache.c (addhstaiX): Likewise.
87507
87508 2011-07-01  Andreas Schwab  <schwab@redhat.com>
87509
87510         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
87511         domain only when needed.
87512
87513 2011-06-30  Andreas Schwab  <schwab@redhat.com>
87514
87515         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
87516         is always restored.
87517
87518 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
87519
87520         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
87521         are re-adding the entry.
87522         * nscd/servicescache.c (cache_addserv): Likewise.
87523
87524 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
87525
87526         * sysdeps/generic/dl-irel.h: fix protection against multiple
87527         inclusions.
87528         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
87529
87530 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
87531
87532         [BZ #12935]
87533         * malloc/memusage.sh: Fix quoting in message.
87534         * debug/xtrace.sh: Likewise.
87535
87536         * configure.in: Remove support for --experimental-malloc option, make
87537         it the default.
87538         * config.make.in: Likewise.
87539         * malloc/Makefile: Likewise.
87540
87541 2011-06-27  Andreas Schwab  <schwab@redhat.com>
87542
87543         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
87544         two-byte characters.
87545
87546 2011-06-27  Roland McGrath  <roland@hack.frob.com>
87547
87548         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
87549         AC_CACHE_CHECK invocation.
87550         * configure: Regenerated.
87551
87552         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
87553
87554 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
87555
87556         [BZ #12350]
87557         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
87558         bit from old_res_options.
87559
87560         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
87561
87562         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
87563         value type for setfct.
87564
87565 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
87566
87567         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
87568         __gettimeofday instead of gettimeofday.
87569
87570 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
87571
87572         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
87573
87574 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
87575
87576         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
87577
87578         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
87579         info.
87580
87581 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
87582
87583         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87584         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
87585         strcpy-sse2-unaligned strncpy-sse2-unaligned
87586         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
87587         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
87588         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
87589         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
87590         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
87591         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
87592         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
87593         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
87594         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
87595         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
87596         (STRCPY): Support SSE2 and SSSE3 versions.
87597
87598 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
87599
87600         [BZ #12874]
87601         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
87602         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
87603         kernels which artificially limit size of requests.
87604
87605 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
87606
87607         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87608         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
87609         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
87610         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
87611         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
87612         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
87613         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
87614         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
87615         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
87616         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
87617         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
87618         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
87619         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
87620         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
87621         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
87622         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87623         Enable unaligned load optimization for Intel Core i3, i5 and i7
87624         processors.
87625         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
87626         Define.
87627         (index_Fast_Unaligned_Load): Define.
87628         (HAS_FAST_UNALIGNED_LOAD): Define.
87629
87630 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
87631
87632         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
87633
87634 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
87635
87636         [BZ #12907]
87637         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
87638         until it is clear that the information is realy needed.
87639         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
87640
87641 2011-06-22  Andreas Schwab  <schwab@redhat.com>
87642
87643         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
87644
87645 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
87646
87647         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
87648         /sys/devices/system/cpu/online if it is usable.
87649
87650         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
87651         reading the information from the /proc filesystem to once a second.
87652
87653 2011-06-21  Andreas Jaeger  <aj@suse.de>
87654
87655         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
87656         NULL after inclusion of kernel headers.
87657
87658 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
87659
87660         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
87661         calls to internal_setent.
87662
87663         [BZ #12885]
87664         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
87665         addresses using gethostbyname4_r ignore IPv4 addresses.
87666
87667         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
87668         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
87669
87670         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
87671
87672 2011-06-20  David S. Miller  <davem@davemloft.net>
87673
87674         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
87675         inclusions.
87676         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
87677
87678         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
87679         (elf_irel): Use it.
87680         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
87681         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
87682         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
87683         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
87684         * sysdeps/x86_64/dl-irel.h: Likewise.
87685
87686         * elf/dl-runtime.c: Use elf_ifunc_invoke.
87687         * elf/dl-sym.c: Likewise.
87688
87689 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
87690
87691         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
87692         need to dereference resplen2.
87693
87694 2011-06-14  Andreas Schwab  <schwab@redhat.com>
87695
87696         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
87697
87698 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
87699
87700         * Makeconfig: Define vardbdir and inst_vardbdir.
87701         * nss/Makefile: Add rules to install db-Makefile.
87702
87703         * nss/nss_db/db-XXX.c: Cleanup.
87704
87705         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
87706         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
87707         GLIBC_PRIVATE.
87708         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
87709         * nss/makedb.c: Implement -g option to specify that value strings
87710         are generated and should not be added to table iterated over for
87711         get*ent calls.
87712         * nss/nss_db/db-initgroups.c: New file.
87713
87714         * nss/getent.c: Add support for initgroups lookups through getgrouplist
87715         interface.
87716
87717         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
87718         (internal_getgrouplist): Adjust to name change.
87719         Update use_initgroups_entry if this is not the first call.
87720         * nss/databases.def: Add initgroups entry.
87721
87722         * nss/makedb.c (compute_tables): Check result of multiple hash table
87723         sizes to minimize maximum chain length.
87724
87725 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
87726
87727         * Versions.def: Add entry for libnss_db.
87728         * shlib-versions: Likewise.
87729         * nss/Makefile: Add rules to build libnss_db.
87730         * nss/Versions: Add libnss_db information.  Organize libnss_files
87731         entries better.
87732         * nss/db-Makefile: Add gshadow support.  Change rules for the new
87733         makedb progra.  Some minor improvements to generate smaller files.
87734         * nss/nss_db/nss_db.h: Move NSS database header data structures to
87735         here from...
87736         * nss/makedb.c: ...here.
87737         Improve database format to be smaller and require less memory at
87738         runtime.
87739         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
87740         db anymore.
87741         * nss/nss_db/db-netgrp.c: Likewise.
87742         * nss/nss_db/db-open.c: Likewise.
87743         * nss/nss_files/flies-XXX.x: Adjust comments.
87744         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
87745         * nss/nss_files/files-grp.c: Likewise.
87746         * nss/nss_files/files-hosts.c: Likewise.
87747         * nss/nss_files/files-network.c: Likewise.
87748         * nss/nss_files/files-proto.c: Likewise.
87749         * nss/nss_files/files-pwd.c: Likewise.
87750         * nss/nss_files/files-rpc.c: Likewise.
87751         * nss/nss_files/files-service.c: Likewise.
87752         * nss/nss_files/files-sgrp.c: Likewise.
87753         * nss/nss_files/files-spwd.c: Likewise.
87754         * nss/nss_db/db-alias.c: Removed.
87755         * nss/nss_db/dummy-db.h: Removed.
87756
87757 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
87758
87759         * nss/makedb.c: Rewritten to not use database library.
87760         * nss/Makefile: Update to build new makedb program.
87761
87762 2011-06-14  Andreas Jaeger  <aj@suse.de>
87763
87764         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
87765         memset declaration.
87766
87767 2011-06-10  Andreas Schwab  <schwab@redhat.com>
87768
87769         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
87770         tmpbuf.
87771
87772 2011-06-10  Roland McGrath  <roland@hack.frob.com>
87773
87774         * Makerules (shlib.lds): Fail if the linker script comes out empty.
87775         * elf/Makefile ($(objpfx)ld.so): Likewise.
87776
87777         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
87778         Don't list ld.so twice in dependencies.
87779
87780         * posix/bug-regex31.c: Include <stdlib.h>.
87781
87782         * nscd/hstcache.c (cache_addhst): Remove unused variable.
87783
87784         * nis/nss_compat/compat-spwd.c
87785         (getspent_next_nss_netgr): Remove unused variable.
87786         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
87787
87788         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
87789         nonmembers" output to use the right array.
87790
87791         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
87792
87793         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
87794
87795         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
87796         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
87797         * catgets/gencat.c (read_input_file): Likewise.
87798         * locale/programs/locarchive.c (enlarge_archive): Likewise.
87799
87800         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
87801         variable definition inside #if's controlling its use.
87802
87803         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
87804
87805         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
87806
87807         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
87808
87809         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
87810         unreachable code.
87811
87812         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
87813
87814         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
87815         * configure: Regenerated.
87816
87817         * Makerules: Revert last change.
87818         * elf/Makefile: Likewise.
87819
87820 2011-06-09  Roland McGrath  <roland@hack.frob.com>
87821
87822         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
87823         * elf/Makefile ($(objpfx)librtld.os): Likewise.
87824         (reloc-link): Likewise.
87825
87826 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
87827
87828         * elf/Makefile: Add rules to build pldd.
87829         * elf/pldd.c: New file.
87830         * elf/pldd-xx.c: New file.
87831
87832 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
87833
87834         * version.h: Update for 2.15 development version.
87835
87836 2011-06-07  David S. Miller  <davem@davemloft.net>
87837
87838         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
87839         ifuncs.
87840         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
87841         elf_machine_lazy_rel): Likewise.
87842         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
87843         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
87844         elf_machine_lazy_rel): Likewise.
87845         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
87846         dl_hwcap via passed in argument.
87847         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
87848         Likewise.
87849
87850 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87851
87852         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
87853
87854 2011-06-06  Roland McGrath  <roland@hack.frob.com>
87855
87856         [BZ #12849]
87857         * manual/fdl-1.1.texi: New file, verbatim from:
87858         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
87859         * manual/lgpl-2.1.texi: New file, verbatim from:
87860         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
87861         * manual/Makefile (licenses): New variable, list those new file names.
87862         (texis): Use it.
87863         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
87864
87865         * manual/fdl.texi: File removed.
87866         * manual/lesser.texi: File removed.
87867         * manual/libc.texinfo (Copying, Documentation License):
87868         Use new @include file names, put @appendix directive before @include.
87869
87870 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
87871
87872         [BZ #12841]
87873         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
87874         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
87875         (mq_open): Add __NTH.
87876
87877 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
87878
87879         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87880         Assume Intel Core i3/i5/i7 processor if AVX is available.
87881
87882 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
87883
87884         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
87885         typo.
87886
87887 2011-05-31  Andreas Schwab  <schwab@redhat.com>
87888
87889         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
87890         memory.  Use alloca_account.  Fix memory leak when retrying.
87891
87892 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
87893
87894         * version.h (RELEASE): Bump for 2.14 release.
87895         * include/features.h (__GLIBC_MINOR__): Bump to 14.
87896
87897         * config.make.in (RANLIB): Remove entry.
87898
87899 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
87900
87901         * po/Makefile (po-sed-cmd): Add ksh to extensions.
87902         (libc.pot): Work around missing support for .ksh extension in xgettext.
87903
87904         [BZ #12684]
87905         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
87906         if both request failed.
87907         (send_dg): In case of server errors clear resplen or *resplen2.
87908
87909         [BZ #12454]
87910         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
87911         when there are multiple maps.
87912         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
87913         (_dl_fini): Remove test here.
87914
87915         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
87916
87917 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
87918
87919         [BZ #12350]
87920         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
87921         bit from old_res_options.
87922         (gaih_inet): Likewise.
87923
87924         [BZ #11099]
87925         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
87926         as signed.
87927
87928         * resolv/res_init.c (res_setoptions): Make the code more compact.
87929
87930         [BZ #11558]
87931         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
87932         set RES_USEVC.
87933
87934         [BZ #11634]
87935         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
87936
87937         * malloc/malloc.h: Mark malloc hook variables as deprecated.
87938
87939         [BZ #11781]
87940         * malloc/malloc.h: Declare malloc hook variables as volatile.
87941
87942         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
87943         in last patch.
87944
87945         [BZ #11799]
87946         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
87947         raise in the comment.
87948         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
87949         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
87950         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
87951
87952 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
87953
87954         [BZ #12811]
87955         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
87956         grow the buffers more if it already has to be sufficient.
87957         (build_wcs_upper_buffer): Likewise.
87958         * posix/regexec.c (check_matching): Likewise.
87959         (clean_state_log_if_needed): Likewise.
87960         (extend_buffers): Don't enlarge buffers beyond size of the input
87961         buffer.
87962         Patches mostly by Emil Wojak <emil@wojak.eu>.
87963         * posix/bug-regex32.c: New file.
87964         * posix/Makefile (tests): Add bug-regex32.
87965
87966         * locale/findlocale.c (_nl_find_locale): Return right away if
87967         _nl_explode_name failed.
87968         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
87969
87970         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
87971
87972         * debug/xtrace.sh: Unify messages.
87973         * malloc/memusage.sh: Likewise.
87974
87975         [BZ #12813]
87976         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
87977         time symbol from vDSO.  Substitute with vsyscall if not available.
87978         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
87979         __vdso_time.
87980
87981         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
87982         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
87983         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
87984         Add sendmmsg and internal_sendmmsg.
87985         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
87986         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
87987         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
87988
87989         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
87990         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
87991         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
87992
87993 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
87994
87995         [BZ #12813]
87996         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
87997         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
87998         available.
87999         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
88000         __vdso_getcpu.
88001
88002         [BZ #12814]
88003         * iconvdata/Makefile (tests): Add bug-iconv9.
88004         * iconvdata/bug-iconv9.c: New file.
88005
88006 2011-05-27  Andreas Schwab  <schwab@redhat.com>
88007
88008         [BZ #12814]
88009         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
88010
88011 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
88012
88013         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88014         (struct user_regs_struct): Change intcs field back to cs.
88015
88016 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
88017
88018         * po/ja.po: Update from translation team.
88019
88020 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
88021
88022         [BZ #12795]
88023         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
88024         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
88025
88026 2011-05-20  Andreas Schwab  <schwab@redhat.com>
88027
88028         * stdlib/longlong.h: Update from GCC.
88029
88030 2011-05-23  Andreas Schwab  <schwab@redhat.com>
88031
88032         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
88033         parameter name.
88034         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
88035         Add parameter name.
88036         (__sysconf): Pass it down.
88037
88038 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
88039
88040         [BZ #12671]
88041         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
88042         some situations.
88043         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
88044         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
88045         add in in __libc_use_alloca calls.  Adjust callers.
88046         (glob): Use malloc in some situations.
88047
88048         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
88049         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
88050         pltexit.
88051
88052 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
88053
88054         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
88055         and CLOCK_BOOTTIME_ALARM.
88056
88057         [BZ #12782]
88058         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
88059         is returned.
88060
88061         * string/_strerror.c (__strerror_r): Print negative errors as signed
88062         numbers.
88063
88064         [BZ #12777]
88065         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
88066         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
88067         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
88068
88069         * configure.in: Fix typo in redirection and correct removal of test
88070         files in two cases.
88071
88072         [BZ #12788]
88073         * locale/setlocale.c (new_composite_name): Fix test to check for
88074         identical name of all categories.
88075
88076         [BZ #12792]
88077         * libio/filedoalloc.c (local_isatty): New function.
88078         (_IO_file_doallocate): Use local_isatty.
88079         * stdio-common/perror.c (perror): In case a new stream is used
88080         forward the stream error.
88081         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
88082         error flag.
88083
88084 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
88085
88086         [BZ #11884]
88087         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
88088         alloca.
88089         * include/alloca.h (extend_alloca_account): Define.
88090
88091         [BZ #11857]
88092         * posix/regex.h: Fix comments with documentation of user-accessible
88093         fields after compilation and describe correct free'ing of pattern
88094         after re_compile_pattern.
88095         Patch by Reuben Thomas <rrt@sc3d.org>.
88096
88097 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
88098
88099         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
88100         and -mno-altivec to prevent the compiler from using Altivec and/or
88101         VSX instructions when the corresponding registers are not available.
88102
88103 2011-05-19  Andreas Schwab  <schwab@redhat.com>
88104
88105         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
88106
88107 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
88108
88109         * libio/freopen.c (freopen): Use __dup2, not dup2.
88110         * libio/freopen64.c (freopen64): Likewise.
88111
88112 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
88113
88114         [BZ #12775]
88115         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
88116         * math/Makefile (tests): Add test-powl.
88117         (CFLAGS-test-powl.c): Define.
88118         * math/test-powl.c: New file.
88119
88120 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
88121
88122         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
88123
88124 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
88125
88126         [BZ #11837]
88127         * iconvdata/gb18030.c: Update to GB18020-2005.
88128
88129 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
88130
88131         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
88132         RE_SYNTAX_POSIX_AWK): Update to match recent development.
88133         Patch by Aharon Robbins <arnold@skeeve.com>.
88134
88135         [BZ #11892]
88136         * stdlib/putenv.c (putenv): Don't always create copy of the variable
88137         on the stack.
88138
88139         [BZ #11895]
88140         * misc/pselect.c (__pselect): Handle timeout value errors hidden
88141         through underflows.
88142
88143         [BZ #12766]
88144         * misc/error.c (error_at_line): Ensure file_name and old_file_name
88145         point to strings before performing equality test for error_one_per_line
88146         mode.
88147
88148         [BZ #11697]
88149         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
88150
88151         [BZ #11820]
88152         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88153         (struct user_fpregs_struct): Avoid __uint*_t types.
88154
88155         [BZ #6420]
88156         * malloc/mtrace.c (tr_where): Add additional parameter to point to
88157         symbol info.  Use it instead of calling _dl_addr locally.
88158         (lock_and_info): New function.
88159         (tr_freehook): Call lock_and_info and pass symbol info as additional
88160         parameter to tr_where.
88161         (tr_mallochook): Likewise.
88162         (tr_reallochook): Likewise.
88163         (tr_memalignhook): Likewise.
88164
88165         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
88166         used and couldn't be at all thread-safe.
88167
88168 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
88169
88170         * libio/freopen.c (freopen): Don't close old file descriptor
88171         before the new one is opened.  Instead dup the new file descriptor
88172         to the old one after the new stream is created.
88173         * libio/freopen64.c (freopen64): Likewise.
88174         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
88175         * libio/fileops.c (_IO_new_file_close_it): Handle new
88176         _IO_FLAGS2_NOCLOSE flag.
88177         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
88178         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
88179         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
88180         _IO_FLAGS2_NOCLOSE flag.
88181         * include/unistd.h: Add hidden_proto for dup3.
88182         Define __have_dup3.
88183         * io/dup3.c: Define hidden symbol.
88184         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
88185
88186         [BZ #7101]
88187         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
88188         when an incomplete long option is used.
88189         * posix/tst-getopt_long1.c: New file.
88190         * posix/Makefile (tests): Add tst-getopt_long1.
88191
88192         [BZ #10138]
88193         * scripts/config.guess: Update from autoconf-2.68.
88194         * scripts/config.sub: Likewise.
88195
88196         [BZ #10157]
88197         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
88198         tests into ...
88199         (has_cpuclock): ...this.  New function.
88200         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
88201         macro here based on has_cpuclock code.
88202
88203         [BZ #10149]
88204         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88205         First byte (not low byte) is now always NUL.
88206         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
88207
88208         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88209         Use non-cancelable interfaces.
88210
88211         [BZ #9809]
88212         * locale/iso-639.def: Add entry for Sorani.
88213
88214         [BZ #11901]
88215         * include/stdlib.h: Move include protection to the right place.
88216         Define abort_msg_s.  Declare __abort_msg with it.
88217         * stdlib/abort.c (__abort_msg): Adjust type.
88218         * assert/assert.c (__assert_fail_base): New function.  Majority
88219         of code from __assert_fail.  Allocate memory for __abort_msg with
88220         mmap.
88221         (__assert_fail): Now call __assert_fail_base.
88222         * assert/assert-perr.c: Remove bulk of implementation.  Use
88223         __assert_fail_base.
88224         * include/assert.hL Declare __assert_fail_base.
88225         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
88226         mmap.
88227         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
88228
88229 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
88230
88231         [BZ #11952]
88232         [BZ #12453]
88233         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
88234         until all modules are registered in the DTV.
88235         * elf/Makefile: Add rules to build and run tst-tls19.
88236         * elf/tst-tls19.c: New file.
88237         * elf/tst-tls19mod1.c: New file.
88238         * elf/tst-tls19mod2.c: New file.
88239         * elf/tst-tls19mod3.c: New file.
88240         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
88241
88242         [BZ #12083]
88243         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
88244         correctly.
88245
88246         [BZ #12601]
88247         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
88248         two-byte sequence errors.
88249         * iconvdata/Makefile (tests): Add bug-iconv8.
88250         * iconvdata/bug-iconv8.c: New file.
88251
88252         [BZ #12626]
88253         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
88254         buf2 definition.
88255
88256         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
88257
88258         [BZ #12432]
88259         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
88260         (dummy_getcfa): New function.
88261         (init): Get _Unwind_GetCFA address, use dummy if not found.
88262         (backtrace_helper): In recursion check, also check whether CFA changes.
88263         (__backtrace): Completely initialize arg.
88264
88265         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
88266         storing incomplete byte sequence in state object.  Avoid testing for
88267         guaranteed too small input if we know there is enough data available.
88268
88269 2011-05-11  Andreas Schwab  <schwab@redhat.com>
88270
88271         * Makeconfig (+link-pie): Indent.
88272         * Rules (binaries-pie): Define if $(have-fpie) and
88273         $(build-shared).
88274         (binaries-shared): Also filter out $(binaries-pie).
88275         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
88276         * nscd/Makefile (others-pie): Add nscd.
88277         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
88278         ($(objpfx)nscd): Remove command override.
88279         * login/Makefile (others-pie): Add pt_chown.
88280         ($(objpfx)pt_chown): Remove command override.
88281         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
88282         remove command overrides.
88283
88284 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
88285
88286         * libio/tst_putwc.c: Fix error messages.
88287
88288         [BZ #12724]
88289         * libio/fileops.c (_IO_new_file_close_it): Always flush when
88290         currently writing and seek to current position when not.
88291         * libio/Makefile (tests): Add bug-fclose1.
88292         * libio/bug-fclose1.c: New file.
88293
88294 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
88295
88296         [BZ #12511]
88297         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
88298         don't set DF_1_NODELETE here.
88299         (do_lookup_x): When entering new entry test for copy relocation
88300         and if necessary set DF_1_NODELETE flag.
88301         * elf/tst-unique4.cc: New file.
88302         * elf/tst-unique4.h: New file.
88303         * elf/tst-unique4lib.cc: New file.
88304         * elf/Makefile: Add rules to build and run tst-unique4.
88305         Patch by Piotr Bury <pbury@goahead.com>.
88306
88307 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
88308
88309         [BZ #12052]
88310         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
88311
88312         [BZ #12625]
88313         * misc/mntent_r.c (addmntent): Flush the stream after the output
88314
88315         [BZ #12393]
88316         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
88317         (is_trusted_path_normalize): Skip initial colon.  Append slash
88318         to empty buffer.  Duplicate is_trusted_path code but allow
88319         constructed patch to be prefix.
88320         (is_dst): Allow $ORIGIN followed by /.
88321         (_dl_dst_substitute): Correct clearing of check_for_trusted.
88322         Correct testing of result of is_trusted_path_normalize
88323         (decompose_rpath): Fix warning.
88324
88325 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
88326
88327         [BZ #11257]
88328         * grp/initgroups.c (internal_getgrouplist): When we found the service
88329         list through the initgroups entry in nsswitch.conf do not always
88330         continue on a successful lookup.  Don't always use the
88331         __nss_group_database value if it is set.
88332         * nss/nsswitch.conf (initgroups): Change action for successful db
88333         lookup to continue for compatibility.
88334
88335 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
88336
88337         [BZ #11532]
88338         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
88339         and CP774 modules.
88340         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
88341         and CP774 modules.
88342         * iconvdata/tst-tables.sh: Likewise.
88343         * iconvdata/cp770.c: New file.
88344         * iconvdata/cp771.c: New file.
88345         * iconvdata/cp772.c: New file.
88346         * iconvdata/cp773.c: New file.
88347         * iconvdata/cp774.c: New file.
88348         * iconvdata/testdata/CP770: New file.
88349         * iconvdata/testdata/CP770..UTF8: New file.
88350         * iconvdata/testdata/CP771: New file.
88351         * iconvdata/testdata/CP771..UTF8: New file.
88352         * iconvdata/testdata/CP772: New file.
88353         * iconvdata/testdata/CP772..UTF8: New file.
88354         * iconvdata/testdata/CP773: New file.
88355         * iconvdata/testdata/CP773..UTF8: New file.
88356         * iconvdata/testdata/CP774: New file.
88357         * iconvdata/testdata/CP774..UTF8: New file.
88358
88359         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
88360         END CHARMAP line.
88361         * iconvdata/gen-8bit-gap.sh: Likewise.
88362         * iconvdata/gen-8bit.sh: Likewise.
88363
88364         * locale/iso-639.def: Add ary entry.
88365
88366         [BZ #11258]
88367         * locale/C-translit.h.in: Add U20A1 transliteration.
88368
88369         [BZ #12178]
88370         * locale/iso-639.def: Add wae entry.
88371         Patch by Kevin Bortis <bortis@translate-wae.ch>.
88372
88373         [BZ #12545]
88374         * locale/programs/localedef.c (construct_output_path): Use ssize_t
88375         for n.
88376
88377         [BZ #12711]
88378         * locale/C-translit.h.in: Add entry for U20B9.
88379         Patch by pravin.d.s@gmail.com.
88380
88381 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
88382
88383         [BZ #12713]
88384         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
88385         ENAMETOOLONG use generic getcwd.
88386         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
88387         in rtld.  Use *stat64.
88388         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
88389         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
88390         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
88391         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
88392         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
88393         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
88394         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
88395         __fstatat64 macros.
88396         * include/dirent.h: Add libc_hidden_proto for rewinddir.
88397         * dirent/rewinddir.c: Add libc_hidden_def.
88398         * sysdeps/mach/hurd/rewinddir.c: Likewise.
88399         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
88400
88401         * include/dirent.h (__alloc_dir): Add flags parameter.
88402         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
88403         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
88404         __alloc_dir.
88405         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
88406         from fdopendir if O_CLOEXEC is already set.
88407
88408 2011-03-15  Alan Modra  <amodra@gmail.com>
88409
88410         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
88411         l_tls_firstbyte_offset non-zero.  Save padding offset in
88412         l_tls_firstbyte_offset for later use.
88413         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
88414         freeing static tls block.
88415
88416 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
88417
88418         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
88419         where #ifdef was intended.  The intent is to prevent ARG_MAX from
88420         being defined by the kernel headers.
88421
88422 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
88423
88424         [BZ #12734]
88425         * resolv/resolv.h: Define RES_NOTLDQUERY.
88426         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
88427         no-tld-query and set RES_NOTLDQUERY.
88428         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
88429         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
88430         modern BIND to search name as TLD unless forbidden.
88431
88432 2011-05-07  Petr Baudis  <pasky@suse.cz>
88433             Ulrich Drepper  <drepper@gmail.com>
88434
88435         [BZ #12393]
88436         * elf/dl-load.c (fillin_rpath): Move trusted path check...
88437         (is_trusted_path): ...to here.
88438         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
88439         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
88440         using is_trusted_path_normalize() in setuid scripts.
88441
88442 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
88443
88444         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
88445         __BEGIN/__END_DECLS.
88446
88447 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
88448
88449         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
88450         NSS_STATUS_NOTFOUND if no record was found.
88451
88452 2011-05-05  Andreas Schwab  <schwab@redhat.com>
88453
88454         * sunrpc/Makefile (headers): Add rpc/netdb.h.
88455         (headers-not-in-tirpc): Remove rpc/netdb.h
88456         * resolv/netdb.h: Revert last change.
88457
88458 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
88459
88460         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
88461         circular dependency between libgcc.a and libc.a.
88462
88463 2011-05-05  Andreas Schwab  <schwab@redhat.com>
88464
88465         * resolv/netdb.h: Don't include <rpc/netdb.h>.
88466         * nis/Makefile: Don't install rpcsvc/*.
88467         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
88468         instead of <rpc/types.h>.
88469         (MAXHOSTNAMELEN): Define.
88470
88471 2011-05-03  Andreas Schwab  <schwab@redhat.com>
88472
88473         * elf/ldconfig.c (add_dir): Don't crash on empty path.
88474
88475 2011-04-28  Maciej Babinski  <mbabinski@google.com>
88476
88477         [BZ #12714]
88478         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
88479         gethostbyname4_r when IPv6 results are possible.
88480
88481 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
88482
88483         [BZ #12723]
88484         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
88485         _PC_PIPE_BUF handling.
88486
88487 2011-04-30  Bruno Haible  <bruno@clisp.org>
88488
88489         [BZ #12717]
88490         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
88491         * resolv/netdb.h (getnameinfo): Change type of flags parameter
88492         to 'int'.
88493         * inet/getnameinfo.c (getnameinfo): Likewise.
88494
88495 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
88496
88497         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
88498         to groups setting in database lookup.
88499         * nss/nsswitch.conf: Add initgroups entry.
88500
88501 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
88502
88503         [BZ #12685]
88504         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
88505         mode string.
88506         Patch by Eric Blake <eblake@redhat.com>.
88507
88508 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
88509
88510         * sunrpc/Makefile (need-export-routines): Add svc_run.
88511         (routines): Remove svc_run.
88512         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
88513         * sunrpc/clnt_perr.c (clnt_perrno): Export.
88514         * sunrpc/svc_run.c (svc_run): Likewise.
88515         * sunrpc/svc_udp.c (svcudp_create): Likewise.
88516
88517 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
88518
88519         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
88520         problem in reallocation in last patch.
88521
88522 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
88523
88524         * sunrpc/Makefile: Move inclusion of Rules.
88525
88526 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
88527
88528         * nss/nss_files/files-initgroups.c: New file.
88529         * nss/Makefile (libnss_files-routines): Add files-initgroups.
88530         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
88531         _nss_files_initgroups_dyn.
88532
88533 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
88534
88535         * elf/elf.h (R_ARM_IRELATIVE): Define.
88536
88537 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
88538
88539         * po/ru.po: Update from translation team.
88540
88541 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
88542
88543         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
88544         dependencies.
88545
88546 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
88547
88548         [BZ #12653]
88549         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
88550         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
88551         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
88552         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
88553         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
88554
88555 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
88556
88557         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
88558         differing bytes.
88559         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
88560         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
88561         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
88562
88563 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
88564
88565         [BZ #12420]
88566         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
88567         storing it.
88568         * stdlib/bug-getcontext.c: New file.
88569         * stdlib/Makefile: Add rules to build and run bug-getcontext.
88570
88571 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88572
88573         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
88574         instructions into .machine "z9-109".
88575         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
88576         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
88577
88578 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88579
88580         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
88581         between environment variables and auxiliary vector.
88582
88583 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
88584
88585         * Makefile: Add rules to build linkobj/libc.so.
88586         * include/libc-symbols.h: Define libc_hidden_nolink.
88587         * include/rpc/auth.h: Mark functions which are to be hidden.
88588         * include/rpc/auth_des.h: Likewise.
88589         * include/rpc/auth_unix.h: Likewise.
88590         * include/rpc/clnt.h: Likewise.
88591         * include/rpc/des_crypt.h: Likewise.
88592         * include/rpc/key_prot.h: Likewise.
88593         * include/rpc/pmap_clnt.h: Likewise.
88594         * include/rpc/pmap_prot.h: Likewise.
88595         * include/rpc/pmap_rmt.h: Likewise.
88596         * include/rpc/rpc_msg.h: Likewise.
88597         * include/rpc/svc.h: Likewise.
88598         * include/rpc/svc_auth.h: Likewise.
88599         * include/rpc/xdr.h: Likewise.
88600         * nis/Makefile: Link all DSOs against linkobj/libc.so.
88601         * nss/Makefile: Likewise.
88602         * sunrpc/Makefile: Don't install headers.  Build library with normal
88603         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
88604         * sunrpc/auth_des.c: Hide exported symbols by default, export some
88605         for the compat linking library.  Remove use of INTDEF/INTUSE.
88606         * sunrpc/auth_none.c: Likewise.
88607         * sunrpc/auth_unix.c: Likewise.
88608         * sunrpc/authdes_prot.c: Likewise.
88609         * sunrpc/authuxprot.c: Likewise.
88610         * sunrpc/clnt_gen.c: Likewise.
88611         * sunrpc/clnt_perr.c: Likewise.
88612         * sunrpc/clnt_raw.c: Likewise.
88613         * sunrpc/clnt_simp.c: Likewise.
88614         * sunrpc/clnt_tcp.c: Likewise.
88615         * sunrpc/clnt_udp.c: Likewise.
88616         * sunrpc/clnt_unix.c: Likewise.
88617         * sunrpc/des_crypt.c: Likewise.
88618         * sunrpc/des_soft.c: Likewise.
88619         * sunrpc/get_myaddr.c: Likewise.
88620         * sunrpc/key_call.c: Likewise.
88621         * sunrpc/key_prot.c: Likewise.
88622         * sunrpc/netname.c: Likewise.
88623         * sunrpc/pm_getmaps.c: Likewise.
88624         * sunrpc/pm_getport.c: Likewise.
88625         * sunrpc/pmap_clnt.c: Likewise.
88626         * sunrpc/pmap_prot.c: Likewise.
88627         * sunrpc/pmap_prot2.c: Likewise.
88628         * sunrpc/pmap_rmt.c: Likewise.
88629         * sunrpc/publickey.c: Likewise.
88630         * sunrpc/rpc_cmsg.c: Likewise.
88631         * sunrpc/rpc_common.c: Likewise.
88632         * sunrpc/rpc_dtable.c: Likewise.
88633         * sunrpc/rpc_prot.c: Likewise.
88634         * sunrpc/rpc_thread.c: Likewise.
88635         * sunrpc/rtime.c: Likewise.
88636         * sunrpc/svc.c: Likewise.
88637         * sunrpc/svc_auth.c: Likewise.
88638         * sunrpc/svc_authux.c: Likewise.
88639         * sunrpc/svc_raw.c: Likewise.
88640         * sunrpc/svc_run.c: Likewise.
88641         * sunrpc/svc_simple.c: Likewise.
88642         * sunrpc/svc_tcp.c: Likewise.
88643         * sunrpc/svc_udp.c: Likewise.
88644         * sunrpc/svc_unix.c: Likewise.
88645         * sunrpc/svcauth_des.c: Likewise.
88646         * sunrpc/xcrypt.c: Likewise.
88647         * sunrpc/xdr.c: Likewise.
88648         * sunrpc/xdr_array.c: Likewise.
88649         * sunrpc/xdr_float.c: Likewise.
88650         * sunrpc/xdr_intXX_t.c: Likewise.
88651         * sunrpc/xdr_mem.c: Likewise.
88652         * sunrpc/xdr_rec.c: Likewise.
88653         * sunrpc/xdr_ref.c: Likewise.
88654         * sunrpc/xdr_sizeof.c: Likewise.
88655         * sunrpc/xdr_stdio.c: Likewise.
88656
88657 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
88658
88659         [BZ #12650]
88660         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
88661         * sysdeps/ia64/dl-tls.h: Likewise.
88662         * sysdeps/powerpc/dl-tls.h: Likewise.
88663         * sysdeps/s390/dl-tls.h: Likewise.
88664         * sysdeps/sh/dl-tls.h: Likewise.
88665         * sysdeps/sparc/dl-tls.h: Likewise.
88666         * sysdeps/x86_64/dl-tls.h: Likewise.
88667         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
88668
88669 2011-03-14  Andreas Schwab  <schwab@redhat.com>
88670
88671         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
88672         rpath element also skip the following colon.
88673         (expand_dynamic_string_token): Add is_path parameter and pass
88674         down to DL_DST_REQUIRED and _dl_dst_substitute.
88675         (decompose_rpath): Call expand_dynamic_string_token with
88676         non-zero is_path.  Ignore empty rpaths.
88677         (_dl_map_object_from_fd): Call expand_dynamic_string_token
88678         with zero is_path.
88679
88680 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
88681
88682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
88683         Make cancelable.
88684
88685 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
88686
88687         [BZ #12655]
88688         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
88689         Patch by Filipe David Manana <fdmanana@apache.org>.
88690
88691 2011-04-07  Andreas Schwab  <schwab@redhat.com>
88692
88693         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
88694         Maintain aligned stack.
88695         (CHECK_RSP): Remove unused macro.
88696
88697 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
88698
88699         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
88700         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
88701
88702 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
88703
88704         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
88705
88706         * include/features.h: Mention __USE_XOPEN2K8 in comment.
88707
88708 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
88709
88710         [BZ #12518]
88711         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
88712         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
88713         * sysdeps/x86_64/memmove.c: New file.
88714         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
88715         (memcpy): Renamed to ...
88716         (__new_memcpy): This.
88717         (memcpy): Provide GLIBC_2_14 memcpy.
88718         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
88719         (memcpy): Provide GLIBC_2_2_5 memcpy.
88720
88721 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88722
88723         [BZ #12631]
88724         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
88725
88726 2011-03-30  Andreas Schwab  <schwab@redhat.com>
88727
88728         * misc/syncfs.c: New file.
88729         * misc/Makefile (routines): Add syncfs.
88730         * posix/unistd.h: Declare syncfs.
88731         * sysdeps/unix/syscalls.list: Add syncfs.
88732
88733 2011-04-01  Andreas Schwab  <schwab@redhat.com>
88734
88735         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
88736         open_by_handle_at.
88737         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
88738         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88739         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88740         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88741         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88742         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
88743         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88744
88745 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88746
88747         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
88748         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88749         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
88750         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88751         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88752         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88753         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88754
88755         * io/Makefile: Compile fallocate.c, fallocate64.c, and
88756         sync_file_range.c with -fexceptions.
88757         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
88758         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
88759         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
88760         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
88761         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
88762         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
88763         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
88764         sync_file_range as cancellation point
88765         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
88766         now a wrapper around __call_sync_file_range with cancellation handling.
88767         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
88768         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
88769         function name to __call_sync_file_range.
88770         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
88771         Add call_sync_file_range.
88772
88773 2011-04-01  Andreas Schwab  <schwab@redhat.com>
88774
88775         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
88776         bits/timex.h.
88777
88778 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88779
88780         * iconv/iconv.h: Fix typo in comment.
88781         * io/fcntl.h: Likewise.
88782         * libio/stdio.h: Likewise.
88783         * posix/spawn.h: Likewise.
88784         * posix/unistd.h: Likewise.
88785         * stdlib/stdlib.h: Likewise.
88786         * time/time.h: Likewise.
88787         * wcsmbs/wchar.h: Likewise.
88788
88789         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
88790         open_by_handle): Add.
88791         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
88792         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
88793         Augment a few comments.
88794         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88795         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88796         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88797         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88798         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88799         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
88800         open_by_handle.
88801
88802         * io/fcntl.h (AT_EMPTY_PATH): Define.
88803
88804 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
88805
88806         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
88807         * sysdeps/unix/sysv/linux/bits/time.h: New file.
88808         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
88809         to...
88810         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
88811         * Versions.def: Add GLIBC_2.14.
88812         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
88813         Export.
88814
88815 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
88816
88817         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
88818         round counter.
88819         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
88820
88821 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
88822
88823         [BZ #12597]
88824         * string/test-strncmp.c (do_page_test): New function.
88825         (check2): Likewise.
88826         (test_main): Call check2.
88827         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
88828
88829 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
88830
88831         [BZ #12587]
88832         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
88833         Handle cache information in CPU leaf 4.
88834         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
88835
88836 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
88837
88838         [BZ #12583]
88839         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
88840         character representation.
88841         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
88842
88843 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
88844
88845         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
88846         END(__isnan) to END(__isnanf) to match function entry point/label
88847         EALIGN(__isnanf,...).
88848
88849 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
88850
88851         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
88852
88853 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
88854
88855         [BZ #12510]
88856         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
88857         copy from the symbol referenced in the relocation to initialize the
88858         used variable.
88859         Patch by Piotr Bury <pbury@goahead.com>.
88860         * elf/Makefile: Add rules to build and tst-unique3.
88861         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
88862         * elf/tst-unique3.cc: New file.
88863         * elf/tst-unique3.h: New file.
88864         * elf/tst-unique3lib.cc: New file.
88865         * elf/tst-unique3lib2.cc: New file.
88866
88867         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
88868
88869 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
88870
88871         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
88872         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
88873         to _start.
88874
88875 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
88876
88877         * elf/dl-load.c (_dl_map_object): If we are looking for the first
88878         to-be-loaded object along a path to loader is ld.so.
88879
88880 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
88881             Ulrich Drepper  <drepper@gmail.com>
88882
88883         * sysdeps/x86_64/memset.S: After aligning destination, code
88884         branches to different locations depending on the value of
88885         misalignment, when multiarch is enabled. Fix this.
88886
88887 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
88888
88889         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
88890         Set _x86_64_preferred_memory_instruction for AMD processsors.
88891         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
88892         Set bit_Prefer_SSE_for_memop for AMD processors.
88893
88894 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
88895
88896         * libio/fmemopen.c (fmemopen): Optimize a bit.
88897
88898 2011-03-03  Andreas Schwab  <schwab@redhat.com>
88899
88900         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
88901
88902 2011-03-03  Roland McGrath  <roland@redhat.com>
88903
88904         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
88905
88906 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
88907
88908         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
88909         __bzero_ultra1 instead of __memset_ultra1.
88910
88911 2011-02-23  Andreas Schwab  <schwab@redhat.com>
88912             Ulrich Drepper  <drepper@gmail.com>
88913
88914         [BZ #12509]
88915         * include/link.h (struct link_map): Add l_orig_initfini.
88916         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
88917         returning unsuccessfully.
88918         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
88919         close of a file loaded at startup, restore the original l_initfini
88920         list.
88921         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
88922         list, store the pointer.
88923         * elf/Makefile ($(objpfx)noload-mem): New rule.
88924         (noload-ENV): Define.
88925         (tests): Add $(objpfx)noload-mem.
88926         * elf/noload.c: Include <memcheck.h>.
88927         (main): Call mtrace.  Close all opened handles.
88928
88929 2011-02-17  Andreas Schwab  <schwab@redhat.com>
88930
88931         [BZ #12454]
88932         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
88933         dependencies are missing.
88934
88935 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
88936
88937         Fix __if_freereq crash: Unlike the generic version which uses free,
88938         Hurd needs munmap.
88939         * sysdeps/mach/hurd/ifreq.h: New file.
88940
88941 2011-01-27  Petr Baudis  <pasky@suse.cz>
88942             Ulrich Drepper  <drepper@gmail.com>
88943
88944         [BZ 12445]#
88945         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
88946         to extend_alloca().
88947         * stdio-common/bug23.c: New file.
88948         * stdio-common/Makefile (tests): Add bug23.
88949
88950 2010-09-28  Andreas Schwab  <schwab@redhat.com>
88951             Ulrich Drepper  <drepper@gmail.com>
88952
88953         [BZ #12489]
88954         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
88955         before performing relro protection.  At old place add assertion
88956         to make sure nothing changed.
88957
88958 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
88959             Glauber de Oliveira Costa  <glommer@gmail.com>
88960
88961         * elf/elf.h: Add new ARM TLS relocs.
88962
88963 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
88964
88965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
88966         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
88967         cast from r3.
88968         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
88969         'tests' variable.
88970         * sysdeps/wordsize-64/tst-writev.c: New file.
88971
88972 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
88973
88974         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
88975         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
88976         insns in _dl_start to prevent a TOC reference before relocs are
88977         resolved.
88978
88979 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
88980
88981         [BZ #12469]
88982         * Makeconfig: Remove RANLIB definition.
88983         * Makerules: Don't use RANLIB.
88984         * aclocal.m4: Remove ranlib test.
88985         * configure.in: No need to check for ranlib.
88986         * elf/rtld-Rules: Don't use RANLIB.
88987
88988 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
88989
88990         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
88991         protection macro.
88992         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
88993         inclusion protection macro.
88994
88995         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
88996         SIGRTMIN and SIGRTMAX and print information in that case only when
88997         SIGRTMIN is defined.
88998
88999 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
89000
89001         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
89002         arginfo fn returning -1.
89003
89004         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
89005         and thousands string is zero terminated.
89006
89007 2011-02-03  Andreas Schwab  <schwab@redhat.com>
89008
89009         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
89010         sysdeps/unix/sysv/linux/bits/socket.h.
89011
89012 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89013
89014         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
89015         (__CPU_COUNT): Remove old macros.
89016         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
89017         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
89018         (__CPU_ALLOC, __CPU_FREE): Add macros.
89019         (__sched_cpualloc, __sched_cpufree): Add declarations.
89020
89021 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
89022
89023         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
89024         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
89025         * nscd/aicache.c (addhstaiX): Return timeout of added value.
89026         (readdhstai): Return value of addhstaiX call.
89027         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
89028         (addgrbyX): Return value returned by cache_addgr.
89029         (readdgrbyname): Return value returned by addgrbyX.
89030         (readdgrbygid): Likewise.
89031         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
89032         (addpwbyX): Return value returned by cache_addpw.
89033         (readdpwbyname): Return value returned by addhstbyX.
89034         (readdpwbyuid): Likewise.
89035         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
89036         (addservbyX): Return value returned by cache_addserv.
89037         (readdservbyname): Return value returned by addservbyX:
89038         (readdservbyport): Likewise.
89039         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
89040         (addhstbyX): Return value returned by cache_addhst.
89041         (readdhstbyname): Return value returned by addhstbyX.
89042         (readdhstbyaddr): Likewise.
89043         (readdhstbynamev6): Likewise.
89044         (readdhstbyaddrv6): Likewise.
89045         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
89046         (readdinitgroups): Return value returned by addinitgroupsX.
89047         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
89048         (prune_cache): Keep track of timeout value of re-added entries.
89049         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
89050         * nscd/nscd.h: Adjust prototypes of readd* functions.
89051
89052 2011-02-04  Roland McGrath  <roland@redhat.com>
89053
89054         * nis/nis_server.c (nis_servstate): Use the right name for 0.
89055         (nis_stats): Likewise.
89056         * nis/nis_modify.c (nis_modify): Likewise.
89057         * nis/nis_remove.c (nis_remove): Likewise.
89058         * nis/nis_add.c (nis_add): Likewise.
89059
89060         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
89061
89062         * posix/fnmatch_loop.c: Add some consts.
89063
89064         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
89065
89066 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
89067
89068         [BZ #12460]
89069         * config.make.in (config-cflags-novzeroupper): Define.
89070         * configure.in: Substitute libc_cv_cc_novzeroupper.
89071         * elf/Makefile (AVX-CFLAGS): Define.
89072         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
89073         (CFLAGS-tst-auditmod4a.c): Likewise.
89074         (CFLAGS-tst-auditmod4b.c): Likewise.
89075         (CFLAGS-tst-auditmod6b.c): Likewise.
89076         (CFLAGS-tst-auditmod6c.c): Likewise.
89077         (CFLAGS-tst-auditmod7b.c): Likewise.
89078         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
89079
89080 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
89081
89082         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
89083         function to the callback.
89084         Patch partly by Jiri Olsa <jolsa@redhat.com>.
89085
89086 2011-02-02  Andreas Schwab  <schwab@redhat.com>
89087
89088         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
89089         of errno.
89090
89091 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
89092
89093         [BZ #11724]
89094         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
89095         of constructors.
89096         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
89097         of destructors.
89098         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
89099
89100         [BZ #11724]
89101         * elf/Makefile: Add rules to build and run new test.
89102         * elf/tst-initorder.c: New file.
89103         * elf/tst-initorder.exp: New file.
89104         * elf/tst-initordera1.c: New file.
89105         * elf/tst-initordera2.c: New file.
89106         * elf/tst-initordera3.c: New file.
89107         * elf/tst-initordera4.c: New file.
89108         * elf/tst-initorderb1.c: New file.
89109         * elf/tst-initorderb2.c: New file.
89110         * elf/tst-order-a1.c: New file.
89111         * elf/tst-order-a2.c: New file.
89112         * elf/tst-order-a3.c: New file.
89113         * elf/tst-order-a4.c: New file.
89114         * elf/tst-order-b1.c: New file.
89115         * elf/tst-order-b2.c: New file.
89116         * elf/tst-order-main.c: New file.
89117         New test case by George Gensure <werkt0@gmail.com>.
89118
89119 2010-10-01  Andreas Schwab  <schwab@redhat.com>
89120
89121         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
89122         decoding ACE if AI_CANONIDN.
89123
89124 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
89125
89126         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
89127
89128 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
89129
89130         * version.h (RELEASE): Bump for 2.13 release.
89131         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
89132
89133         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
89134
89135         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
89136         MADV_NOHUGEPAGE.
89137         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
89138         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
89139         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
89140         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
89141         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
89142         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89143
89144         * posix/getconf.c: Update copyright year.
89145         * catgets/gencat.c: Likewise.
89146         * csu/version.c: Likewise.
89147         * debug/catchsegv.sh: Likewise.
89148         * debug/xtrace.sh: Likewise.
89149         * elf/ldconfig.c: Likewise.
89150         * elf/ldd.bash.in: Likewise.
89151         * elf/sprof.c (print_version): Likewise.
89152         * iconv/iconv_prog.c: Likewise.
89153         * iconv/iconvconfig.c: Likewise.
89154         * locale/programs/locale.c: Likewise.
89155         * locale/programs/localedef.c: Likewise.
89156         * malloc/memusage.sh: Likewise.
89157         * malloc/mtrace.pl: Likewise.
89158         * nscd/nscd.c (print_version): Likewise.
89159         * nss/getent.c: Likewise.
89160
89161         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
89162         PF_CAIF, and PF_ALG.
89163         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
89164
89165 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
89166
89167         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
89168         (modules-names): Use them.
89169         (ifunc-test-modules, ifunc-pie-tests): Define.
89170         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
89171         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
89172         (test-extras): Likewise.
89173         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
89174         $(compile-command.c).
89175         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
89176         (all-built-dso): Define.
89177         (check-textrel.out, check-execstack.out): Depend on it.
89178
89179         * configure.in: Don't override --enable-multi-arch.
89180
89181 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
89182
89183         [BZ #6812]
89184         * nscd/hstcache.c (tryagain): Define.
89185         (cache_addhst): Return tryagain not notfound for temporary errors.
89186         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
89187         failed.
89188
89189 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
89190
89191         [BZ #10563]
89192         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
89193         to make the syscall.
89194         * sysdeps/unix/sysv/linux/setgroups.c: New file.
89195
89196         [BZ #12378]
89197         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
89198         and fall back to matching as normal character if the string ends before
89199         the matching ']' is found.  This is what POSIX requires.
89200         * posix/testfnm.c: Adjust test result.
89201         * posix/globtest.sh: Adjust test result.  Add new test.
89202         * posix/tst-fnmatch.input: Likewise.
89203         * posix/tst-fnmatch2.c: Add new test.
89204
89205 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
89206
89207         * elf/Makefile (check-execstack): Revert last change.  Depend on
89208         check-execstack.h.
89209         (check-execstack.h): New target.
89210         (generated): Add check-execstack.h.
89211         * elf/check-execstack.c: Include "check-execstack.h".
89212         (main): Revert last change.
89213         (handle_file): Return zero if GNU_STACK is absent and
89214         DEFAULT_STACK_PERMS doesn't include PF_X.
89215
89216 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
89217
89218         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
89219         in child fails because the descriptor is already closed.
89220         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
89221         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
89222         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
89223
89224         [BZ #12397]
89225         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
89226         syscall.
89227
89228         [BZ #10484]
89229         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
89230         temporary buffer used to handle multi lookups locally.
89231         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
89232
89233 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89234
89235         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
89236         loader is ld.so.
89237
89238 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
89239
89240         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
89241         alignment for SSE2.
89242
89243 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89244
89245         [BZ #12394]
89246         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
89247         characters.  When rounding increased number of integer digits recompute
89248         number of groups.
89249         * stdio-common/tst-grouping.c: New file.
89250         * stdio-common/Makefile: Add rules to build and run tst-grouping.
89251
89252 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
89253
89254         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
89255         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
89256
89257         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
89258         void.
89259         * bits/select.h: Likewise.
89260
89261 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
89262
89263         * po/ja.po: Update from translation team.
89264
89265 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
89266
89267         [BZ #11155]
89268         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
89269         implementation just like for lxstat, fxstatat, et al.
89270
89271 2010-12-27  Jim Meyering  <meyering@redhat.com>
89272
89273         [BZ #12348]
89274         * posix/regexec.c (build_trtable): Return failure indication upon
89275         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
89276
89277 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
89278
89279         [BZ #12201]
89280         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
89281         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
89282         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
89283         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
89284
89285         [BZ #12207]
89286         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
89287
89288         [BZ #12204]
89289         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
89290         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
89291
89292 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
89293
89294         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
89295         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
89296         script has SORT_BY_INIT_PRIORITY.
89297         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
89298         NO_CTORS_DTORS_SECTIONS is defined.
89299         * elf/soinit.c: Likewise.
89300         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
89301         NO_CTORS_DTORS_SECTIONS is defined.
89302         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
89303         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
89304         * sysdeps/sh/init-first.c: Likewise.
89305         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
89306
89307 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
89308
89309         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
89310         always use the slow path.
89311
89312 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
89313
89314         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
89315         similar rule which adds the sysdep directories to the header search in
89316         order to pick up the correct platform stackinfo.h.
89317         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
89318         perform test if it is, otherwise return successfully without testing.
89319         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
89320         DEFAULT_STACK_PERMS define in stackinfo.h.
89321         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
89322         defined in stackinfo.h.
89323         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
89324         DEFAULT_STACK_PERMS defined in stackinfo.h.
89325         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
89326         * sysdeps/ia64/stackinfo.h: Likewise.
89327         * sysdeps/s390/stackinfo.h: Likewise.
89328         * sysdeps/sh/stackinfo.h: Likewise.
89329         * sysdeps/sparc/stackinfo.h: Likewise.
89330         * sysdeps/x86_64/stackinfo.h: Likewise.
89331         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
89332         PF_X for powerpc64.  Retain PF_X for powerpc32.
89333
89334 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
89335
89336         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
89337         accurately.
89338         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
89339         GETDENTS_64BIT_ALIGNED.
89340
89341 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
89342
89343         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
89344
89345 2010-12-10  Andreas Schwab  <schwab@redhat.com>
89346
89347         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
89348         _GNU_SOURCE.
89349
89350         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
89351         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
89352         Remove __restrict.
89353         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
89354         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
89355
89356 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
89357
89358         [BZ #11655]
89359         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
89360         are initialized.
89361
89362 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
89363
89364         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
89365
89366 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
89367
89368         * po/it.po: Update from translation team.
89369
89370 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
89371
89372         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
89373         unused codes.
89374
89375 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
89376
89377         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
89378
89379 2010-11-24  Andreas Schwab  <schwab@redhat.com>
89380
89381         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
89382         specially.
89383         (gaih_getanswer_slice): Likewise.
89384
89385 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
89386
89387         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
89388
89389 2010-05-31  Petr Baudis  <pasky@suse.cz>
89390
89391         [BZ #11149]
89392         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
89393         silently even in the chroot mode.
89394
89395 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
89396
89397         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
89398         last patch a bit.  Pretty printing
89399
89400 2010-05-31  Petr Baudis <pasky@suse.cz>
89401
89402         [BZ #10085]
89403         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
89404         initialization of skip_initgroups_dyn.
89405
89406 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
89407
89408         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
89409         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89410
89411 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
89412
89413         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
89414
89415 2010-11-11  Andreas Schwab  <schwab@redhat.com>
89416
89417         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
89418         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
89419         (tst-fnmatch-ENV): Set MALLOC_TRACE.
89420         ($(objpfx)tst-fnmatch-mem): New rule.
89421         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
89422         * posix/tst-fnmatch.c (main): Call mtrace.
89423
89424 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
89425
89426         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89427         Support Intel processor model 6 and model 0x2c.
89428
89429 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
89430
89431         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
89432           signed comparison.
89433
89434 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
89435
89436         [BZ #12205]
89437         * string/test-strncasecmp.c (check_result): New function.
89438         (do_one_test): Use it.
89439         (check1): New function.
89440         (test_main): Use it.
89441         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
89442         Support strcasecmp and strncasecmp.
89443
89444 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
89445
89446         [BZ #12194]
89447         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
89448         * sysdeps/x86_64/bits/byteswap.h: Likewise.
89449
89450 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
89451
89452         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
89453         IFUNC support.
89454         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
89455         memset-x86-64.
89456         * sysdeps/x86_64/multiarch/bzero.S: New file.
89457         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
89458         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
89459         * sysdeps/x86_64/multiarch/memset.S: New file.
89460         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
89461         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89462         Set bit_Prefer_SSE_for_memop for Intel processors.
89463         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
89464         Define.
89465         (index_Prefer_SSE_for_memop): Define.
89466         (HAS_PREFER_SSE_FOR_MEMOP): Define.
89467
89468 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
89469
89470         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
89471         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
89472
89473 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
89474
89475         [BZ #12191]
89476         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
89477         (__x86_64_raw_data_cache_size_half): Likewise.
89478         (__x86_64_raw_shared_cache_size): Likewise.
89479         (__x86_64_raw_shared_cache_size_half): Likewise.
89480
89481         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
89482         (__x86_64_raw_data_cache_size_half): Likewise.
89483         (__x86_64_raw_shared_cache_size): Likewise.
89484         (__x86_64_raw_shared_cache_size_half): Likewise.
89485         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
89486         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
89487         and __x86_64_raw_shared_cache_size_half.  Round
89488         __x86_64_data_cache_size_half, __x86_64_data_cache_size
89489         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
89490         to multiple of 256 bytes.
89491
89492 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
89493
89494         [BZ #12167]
89495         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
89496         of inacessible symlinks.  Verify result of symlink before returning it.
89497         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
89498         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
89499
89500 2010-10-28  Erich Ritz  <erichritz@gmail.com>
89501
89502         * math/math.h (isinf): Fix typo in comment.
89503
89504 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
89505
89506         * po/da.po: Update from translation team.
89507
89508 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
89509
89510         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
89511         is added to the list.
89512
89513 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89514             Ulrich Drepper  <drepper@gmail.com>
89515
89516         * elf/dl-object.c (_dl_new_object): Don't append the new object to
89517         the global list here.  Move code to...
89518         (_dl_add_to_namespace_list): ...here.  New function.
89519         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
89520         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
89521         * elf/dl-load.c (lose): Don't remove the element from the list.
89522         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
89523         (_dl_map_object): Likewise.
89524
89525 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
89526
89527         [BZ #12159]
89528         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
89529         into all bytes of SSE register.
89530         Patch by Richard Li <richardpku@gmail.com>.
89531
89532 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
89533
89534         [BZ #12140]
89535         * malloc/malloc.c (_int_free): Fill correct number of bytes when
89536         perturbing.
89537
89538 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
89539
89540         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
89541         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
89542         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
89543         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
89544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
89545         submachine.
89546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
89547
89548 2010-10-22  Andreas Schwab  <schwab@redhat.com>
89549
89550         * include/dlfcn.h (__RTLD_SECURE): Define.
89551         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
89552         mode & __RTLD_SECURE instead.
89553         (open_path): Rename preloaded parameter to secure.
89554         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
89555         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
89556         * elf/dl-deps.c (openaux): Likewise.
89557         * elf/rtld.c (struct map_args): Remove is_preloaded.
89558         (map_doit): Don't use it.
89559         (dl_main): Likewise.
89560         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
89561         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
89562
89563 2010-09-09  Andreas Schwab  <schwab@redhat.com>
89564
89565         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
89566         (sysd-rules-targets): Remove duplicates.
89567         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
89568         rtld-%.$o dependency.
89569
89570 2010-10-18  Andreas Schwab  <schwab@redhat.com>
89571
89572         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
89573         _dl_map_object do it.
89574
89575 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
89576
89577         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
89578         fast fma builtins, define the macros in the C99 standard.
89579         (FP_FAST_FMAF): Likewise.
89580         (FP_FAST_FMAL): Likewise.
89581         * sysdeps/x86_64/bits/mathdef.h: Likewise.
89582
89583         * bits/mathdef.h: Update copyright year.
89584         * sysdeps/powerpc/bits/mathdef.h: Likewise.
89585
89586 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
89587
89588         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
89589         builtins, define the macros in the C99 standard.
89590         (FP_FAST_FMAF): Likewise.
89591         (FP_FAST_FMAL): Likewise.
89592         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
89593         multiply/add.
89594         (FP_FAST_FMAF): Likewise.
89595
89596 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
89597
89598         [BZ #3268]
89599         * math/libm-test.inc (fma_test): Some new testcases.
89600         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
89601         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
89602         y and infinite z.  Do multiplication by C already in long double.
89603         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
89604         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
89605         y and infinite z.  Do bitwise or of inexact bit into u.d.
89606         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
89607         * sysdeps/i386/fpu/s_fmaf.S: Removed.
89608         * sysdeps/i386/fpu/s_fma.S: Removed.
89609         * sysdeps/i386/fpu/s_fmal.S: Removed.
89610
89611 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
89612
89613         [BZ #3268]
89614         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
89615         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
89616         computation is not scheduled after fetestexcept.  Fix value
89617         of minimum denormal long double.
89618
89619 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
89620
89621         [BZ #3268]
89622         * math/libm-test.inc (fma_test): Add some more tests.
89623         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
89624         correctly.
89625
89626 2010-10-15  Andreas Schwab  <schwab@redhat.com>
89627
89628         * scripts/data/localplt-s390-linux-gnu.data: New file.
89629         * scripts/data/localplt-s390x-linux-gnu.data: New file.
89630
89631 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
89632
89633         [BZ #3268]
89634         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
89635         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
89636         instead of dbl-64.
89637         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
89638         inlines.
89639         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
89640         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
89641         if one of x and y is very large and the other is subnormal.
89642         * sysdeps/s390/fpu/s_fmaf.c: New file.
89643         * sysdeps/s390/fpu/s_fma.c: New file.
89644         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
89645         * sysdeps/powerpc/fpu/s_fma.S: New file.
89646         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
89647         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
89648         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
89649
89650 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
89651
89652         [BZ #3268]
89653         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
89654         fma tests.
89655         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
89656         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
89657         * sysdeps/i386/i686/multiarch/s_fma.c: Include
89658         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
89659         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
89660         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
89661         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
89662
89663 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
89664
89665         [BZ #12078]
89666         * posix/regcomp.c (parse_branch): One more memory leak plugged.
89667         * posix/bug-regex31.input: Add test case.
89668
89669 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
89670
89671         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
89672         * posix/bug-regex31.input: New file.
89673
89674         [BZ #12078]
89675         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
89676         (parse_sub_exp): Fix last change, use postorder.
89677
89678         * posix/bug-regex31.c: New file.
89679         * posix/Makefile: Add rules to build and run bug-regex31.
89680
89681         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
89682
89683         [BZ #12078]
89684         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
89685
89686         [BZ #12108]
89687         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
89688         to have entries in sys_siglist.
89689
89690         [BZ #12093]
89691         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
89692         be NULL.
89693
89694 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
89695
89696         [BZ #3268]
89697         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
89698         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
89699         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
89700         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
89701         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
89702         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
89703         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
89704         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
89705         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
89706         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
89707         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
89708         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
89709         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
89710         * math/ftestexcept.c (fetestexcept): Likewise.
89711         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
89712         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
89713         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
89714         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
89715         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
89716         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
89717         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
89718
89719 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
89720
89721         [BZ #12107]
89722         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
89723         newline.
89724
89725 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
89726
89727         * string/bug-strstr1.c: New file.
89728         * string/Makefile: Add rules to build and run bug-strstr1.
89729
89730 2010-10-05  Eric Blake  <eblake@redhat.com>
89731
89732         [BZ #12092]
89733         * string/str-two-way.h (two_way_long_needle): Always clear memory
89734         when skipping input due to the shift table.
89735
89736 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
89737
89738         [BZ #12005]
89739         * malloc/mcheck.c: Handle large requests.
89740
89741         [BZ #12077]
89742         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
89743         for strncmp and strncasecmp.
89744         * string/stratcliff.c: Add tests for strcmp and strncmp.
89745         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
89746
89747 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
89748
89749         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
89750         __set_fpscr.
89751
89752 2010-09-30  Andreas Jaeger  <aj@suse.de>
89753
89754         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
89755         (CGROUP_SUPER_MAGIC): Define.
89756         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
89757         Handle btrfs and cgroup file systems.
89758         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
89759         Likewise.
89760
89761 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
89762
89763         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
89764         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
89765
89766 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89767
89768         [BZ #12067]
89769         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
89770         trying to locate the ELF header.
89771
89772 2010-09-27  Andreas Schwab  <schwab@redhat.com>
89773
89774         [BZ #11611]
89775         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
89776         Mask out sign-bit copies when constructing f_fsid.
89777
89778 2010-09-24  Petr Baudis <pasky@suse.cz>
89779
89780         * debug/stack_chk_fail_local.c: Add missing licence exception.
89781         * debug/warning-nop.c: Likewise.
89782
89783 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
89784
89785         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
89786         implementing getdents64 using getdents syscall, set d_type if
89787         __ASSUME_GETDENTS32_D_TYPE.
89788
89789 2010-09-16  Andreas Schwab  <schwab@redhat.com>
89790
89791         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
89792         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
89793
89794 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
89795
89796         [BZ #12037]
89797         * posix/unistd.h: Undo change of feature selection for ftruncate from
89798         2010-01-11.
89799
89800 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
89801
89802         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
89803         detection.
89804
89805 2010-09-20  Andreas Schwab  <schwab@redhat.com>
89806
89807         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
89808         fanotify_mark.
89809         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
89810
89811 2010-09-14  Andreas Schwab  <schwab@redhat.com>
89812
89813         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
89814         variables after CHECK_SP call.
89815         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
89816
89817 2010-09-13  Andreas Schwab  <schwab@redhat.com>
89818             Ulrich Drepper  <drepper@redhat.com>
89819
89820         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
89821         re-relocationg ld.so.
89822         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
89823         _dl_init_paths call.
89824         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
89825         here anymore.
89826
89827 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
89828
89829         * resolv/res_init.c (__res_vinit): Count the default server we added.
89830
89831 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
89832             Ulrich Drepper  <drepper@redhat.com>
89833
89834         [BZ #11968]
89835         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
89836         (____longjmp_chk): Use %ebx for saving value across system call.
89837         Add unwind info.
89838
89839 2010-09-06  Andreas Schwab  <schwab@redhat.com>
89840
89841         * manual/Makefile: Don't mix pattern rules with normal rules.
89842
89843 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
89844
89845         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
89846         operation.
89847         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
89848         * libio/iofopncook.c (_IO_cookie_init): Likewise.
89849         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
89850         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
89851         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
89852         Likewise.
89853
89854 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
89855
89856         [BZ #11979]
89857         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
89858         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
89859
89860 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
89861
89862         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
89863         * sysdeps/x86_64/addmul_1.S: Likewise.
89864         * sysdeps/x86_64/lshift.S: Likewise.
89865         * sysdeps/x86_64/mul_1.S: Likewise.
89866         * sysdeps/x86_64/rshift.S: Likewise.
89867         * sysdeps/x86_64/sub_n.S: Likewise.
89868         * sysdeps/x86_64/submul_1.S: Likewise.
89869
89870 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89871
89872         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
89873         Define __sched_param instead of SCHED_* and sched_param when
89874         <bits/sched.h> is included with __need_schedparam defined.
89875         * bits/sched.h [__need_schedparam]
89876         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
89877         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
89878         (__defined_schedparam): Define to 1.
89879         (__sched_param): New structure, identical to sched_param.
89880         (__need_schedparam): Undefine.
89881
89882 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
89883
89884         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
89885         (epoll_create1): Declare.
89886
89887         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
89888
89889 2010-08-31  Andreas Schwab  <schwab@redhat.com>
89890
89891         [BZ #7066]
89892         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
89893         shifting retval into place.
89894
89895 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
89896
89897         * nis/rpcsvc/nis.h: Update copyright notice.
89898         * nis/rpcsvc/nis.x: Likewise.
89899         * nis/rpcsvc/nis_callback.h: Likewise.
89900         * nis/rpcsvc/nis_callback.x: Likewise.
89901         * nis/rpcsvc/nis_object.x: Likewise.
89902         * nis/rpcsvc/nis_tags.h: Likewise.
89903         * nis/rpcsvc/yp.h: Likewise.
89904         * nis/rpcsvc/yp.x: Likewise.
89905         * nis/rpcsvc/ypupd.h: Likewise.
89906         * nis/yp_xdr.c: Likewise.
89907         * nis/ypupdate_xdr.c: Likewise.
89908
89909         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
89910         mainly the body of pmap_getport.  Add parameters to specify timeouts.
89911         (pmap_getport): Use __libc_rpc_getport.
89912         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
89913         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
89914         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
89915
89916 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
89917
89918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
89919         fanotify_mark.
89920
89921 2010-08-27  Roland McGrath  <roland@redhat.com>
89922
89923         * sysdeps/i386/i686/multiarch/Makefile
89924         (CFLAGS-varshift.c): New variable.
89925
89926 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
89927
89928         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
89929         * sysdeps/i386/i686/multiarch/varshift.c: New file.
89930
89931         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
89932
89933         * sysdeps/x86_64/strlen.S: Minimal code improvement.
89934
89935 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
89936
89937         * sysdeps/x86_64/strlen.S: Unroll the loop.
89938         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
89939         strlen-sse2 strlen-sse2-bsf.
89940         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
89941         __strlen_no_bsf if bit_Slow_BSF is set.
89942         (__strlen_sse42): Removed.
89943         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
89944         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
89945
89946 2010-08-25  Roland McGrath  <roland@redhat.com>
89947
89948         * sysdeps/x86_64/multiarch/varshift.S: File removed.
89949         * sysdeps/x86_64/multiarch/varshift.c: New file.
89950         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
89951         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
89952         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
89953         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
89954
89955 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
89956
89957         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
89958         strlen-sse2 strlen-sse2-bsf.
89959         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
89960         __strlen_sse2_bsf if bit_Slow_BSF is unset.
89961         (__strlen_sse2): Removed.
89962         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
89963         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
89964         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
89965         bit_Slow_BSF for Atom.
89966         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
89967         (index_Slow_BSF): Define.
89968         (HAS_SLOW_BSF): Define.
89969
89970 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
89971
89972         [BZ #10851]
89973         * resolv/res_init.c (__res_vinit): When no server address at all
89974         is given default to loopback.
89975
89976 2010-08-24  Roland McGrath  <roland@redhat.com>
89977
89978         * configure.in: Remove config-name.h generation.
89979         * configure: Regenerated.
89980         * config-name.in: File removed.
89981         * scripts/config-uname.sh: New file.
89982         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
89983         ($(objdir)config-name.h): New target.
89984
89985         * sunrpc/rpc_parse.h: Avoid nested comment.
89986
89987 2010-08-24  Richard Henderson  <rth@redhat.com>
89988             Ulrich Drepper  <drepper@redhat.com>
89989             H.J. Lu  <hongjiu.lu@intel.com>
89990
89991         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
89992         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
89993         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
89994         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
89995         _mm_alignr_epi8 with _mm_loadu_si128.
89996         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
89997         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
89998         (__m128i_shift_right): Removed.
89999         * sysdeps/i386/i686/multiarch/varshift.h: New file.
90000         * sysdeps/i386/i686/multiarch/varshift.S: New file.
90001         * sysdeps/x86_64/multiarch/varshift.h: New file.
90002         * sysdeps/x86_64/multiarch/varshift.S: New file.
90003
90004 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
90005
90006         * configure.in: Move assembler checks to before sysdep dir checking.
90007
90008 2010-08-20  Petr Baudis  <pasky@suse.cz>
90009
90010         * LICENSES: Sync the sunrpc license.
90011
90012 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
90013
90014         * sunrpc/auth_des.c: Update copyright notice once again.
90015         * sunrpc/auth_none.c: Likewise.
90016         * sunrpc/auth_unix.c: Likewise.
90017         * sunrpc/authdes_prot.c: Likewise.
90018         * sunrpc/authuxprot.c: Likewise.
90019         * sunrpc/bindrsvprt.c: Likewise.
90020         * sunrpc/clnt_gen.c: Likewise.
90021         * sunrpc/clnt_perr.c: Likewise.
90022         * sunrpc/clnt_raw.c: Likewise.
90023         * sunrpc/clnt_simp.c: Likewise.
90024         * sunrpc/clnt_tcp.c: Likewise.
90025         * sunrpc/clnt_udp.c: Likewise.
90026         * sunrpc/clnt_unix.c: Likewise.
90027         * sunrpc/des_crypt.c: Likewise.
90028         * sunrpc/des_soft.c: Likewise.
90029         * sunrpc/get_myaddr.c: Likewise.
90030         * sunrpc/getrpcport.c: Likewise.
90031         * sunrpc/key_call.c: Likewise.
90032         * sunrpc/key_prot.c: Likewise.
90033         * sunrpc/openchild.c: Likewise.
90034         * sunrpc/pm_getmaps.c: Likewise.
90035         * sunrpc/pm_getport.c: Likewise.
90036         * sunrpc/pmap_clnt.c: Likewise.
90037         * sunrpc/pmap_prot.c: Likewise.
90038         * sunrpc/pmap_prot2.c: Likewise.
90039         * sunrpc/pmap_rmt.c: Likewise.
90040         * sunrpc/rpc/auth.h: Likewise.
90041         * sunrpc/rpc/auth_unix.h: Likewise.
90042         * sunrpc/rpc/clnt.h: Likewise.
90043         * sunrpc/rpc/des_crypt.h: Likewise.
90044         * sunrpc/rpc/key_prot.h: Likewise.
90045         * sunrpc/rpc/netdb.h: Likewise.
90046         * sunrpc/rpc/pmap_clnt.h: Likewise.
90047         * sunrpc/rpc/pmap_prot.h: Likewise.
90048         * sunrpc/rpc/pmap_rmt.h: Likewise.
90049         * sunrpc/rpc/rpc.h: Likewise.
90050         * sunrpc/rpc/rpc_des.h: Likewise.
90051         * sunrpc/rpc/rpc_msg.h: Likewise.
90052         * sunrpc/rpc/svc.h: Likewise.
90053         * sunrpc/rpc/svc_auth.h: Likewise.
90054         * sunrpc/rpc/types.h: Likewise.
90055         * sunrpc/rpc/xdr.h: Likewise.
90056         * sunrpc/rpc_clntout.c: Likewise.
90057         * sunrpc/rpc_cmsg.c: Likewise.
90058         * sunrpc/rpc_common.c: Likewise.
90059         * sunrpc/rpc_cout.c: Likewise.
90060         * sunrpc/rpc_dtable.c: Likewise.
90061         * sunrpc/rpc_hout.c: Likewise.
90062         * sunrpc/rpc_main.c: Likewise.
90063         * sunrpc/rpc_parse.c: Likewise.
90064         * sunrpc/rpc_parse.h: Likewise.
90065         * sunrpc/rpc_prot.c: Likewise.
90066         * sunrpc/rpc_sample.c: Likewise.
90067         * sunrpc/rpc_scan.c: Likewise.
90068         * sunrpc/rpc_scan.h: Likewise.
90069         * sunrpc/rpc_svcout.c: Likewise.
90070         * sunrpc/rpc_tblout.c: Likewise.
90071         * sunrpc/rpc_util.c: Likewise.
90072         * sunrpc/rpc_util.h: Likewise.
90073         * sunrpc/rpcinfo.c: Likewise.
90074         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
90075         * sunrpc/rpcsvc/key_prot.x: Likewise.
90076         * sunrpc/rpcsvc/klm_prot.x: Likewise.
90077         * sunrpc/rpcsvc/mount.x: Likewise.
90078         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
90079         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
90080         * sunrpc/rpcsvc/rex.x: Likewise.
90081         * sunrpc/rpcsvc/rstat.x: Likewise.
90082         * sunrpc/rpcsvc/rusers.x: Likewise.
90083         * sunrpc/rpcsvc/sm_inter.x: Likewise.
90084         * sunrpc/rpcsvc/spray.x: Likewise.
90085         * sunrpc/rpcsvc/yppasswd.x: Likewise.
90086         * sunrpc/rtime.c: Likewise.
90087         * sunrpc/svc.c: Likewise.
90088         * sunrpc/svc_auth.c: Likewise.
90089         * sunrpc/svc_authux.c: Likewise.
90090         * sunrpc/svc_raw.c: Likewise.
90091         * sunrpc/svc_run.c: Likewise.
90092         * sunrpc/svc_simple.c: Likewise.
90093         * sunrpc/svc_tcp.c: Likewise.
90094         * sunrpc/svc_udp.c: Likewise.
90095         * sunrpc/svc_unix.c: Likewise.
90096         * sunrpc/svcauth_des.c: Likewise.
90097         * sunrpc/xcrypt.c: Likewise.
90098         * sunrpc/xdr.c: Likewise.
90099         * sunrpc/xdr_array.c: Likewise.
90100         * sunrpc/xdr_float.c: Likewise.
90101         * sunrpc/xdr_mem.c: Likewise.
90102         * sunrpc/xdr_rec.c: Likewise.
90103         * sunrpc/xdr_ref.c: Likewise.
90104         * sunrpc/xdr_sizeof.c: Likewise.
90105         * sunrpc/xdr_stdio.c: Likewise.
90106
90107         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
90108         handling.
90109
90110 2010-08-19  Andreas Schwab  <schwab@redhat.com>
90111
90112         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
90113
90114 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
90115
90116         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
90117         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
90118         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
90119         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
90120         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
90121         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
90122         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
90123         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
90124         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
90125         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
90126         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
90127         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
90128         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
90129         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
90130
90131 2010-07-26  Anton Blanchard  <anton@samba.org>
90132
90133         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
90134         * malloc/arena.c (heap_trim): Likewise.
90135
90136 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
90137
90138         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
90139         here.  Not...
90140         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
90141         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
90142
90143 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
90144
90145         * sysdeps/i386/elf/Makefile: New file.
90146
90147 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90148
90149         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
90150         from fanotify_init.
90151         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
90152         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90153
90154 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
90155
90156         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
90157         of strncasecmp_l.
90158         * sysdeps/multiarch/strcmp.S: Likewise.
90159
90160 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
90161
90162         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90163         strncase_l-nonascii.
90164         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90165         Add strncase_l-ssse3.
90166         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
90167         * sysdeps/x86_64/strcmp.S: Likewise.
90168         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
90169         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
90170         * sysdeps/x86_64/strncase.S: New file.
90171         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
90172         * sysdeps/x86_64/strncase_l.S: New file.
90173         * string/Makefile (strop-tests): Add strncasecmp.
90174         * string/test-strncasecmp.c: New file.
90175
90176         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
90177         warning.
90178
90179         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
90180         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
90181
90182 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90183
90184         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
90185
90186 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
90187
90188         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
90189         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
90190         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
90191
90192 2010-05-01  Alan Modra  <amodra@gmail.com>
90193
90194         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
90195         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
90196         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
90197         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
90198         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
90199         tidying.  Don't tail-call __sigjmp_save for static lib.
90200         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
90201         save location.
90202         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
90203         (CALL_MCOUNT): Add eh info, and nop after bl.
90204         (TAIL_CALL_SYSCALL_ERROR): New macro.
90205         (PSEUDO_RET): Use it.
90206         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
90207         Correct save location of integer regs and cr.
90208         (_dl_profile_resolve): Correct cr save location.  Delete nops
90209         after bl when SHARED.  Reduce cfi size a little by better
90210         placement of cfi directives.
90211         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
90212         make a stack frame.  Instead use parm save area as a temp.
90213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
90214         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
90215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
90216         Don't make a stack frame for parent, use parm save area.
90217         Increase child stack frame to 112 bytes.  Don't save unused reg,
90218         and adjust reg usage.  Set up cfi on error recovery and
90219         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
90220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
90221         (__makecontext): Add dummy nop after jump to exit.
90222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
90223         Use correct parm save area and cr save, reduce stack frame.
90224         Correct cfi for possible PSEUDO_RET frame setup.
90225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
90226         Branch to local label emitted by PSEUDO_RET rather than
90227         __syscall_error.
90228
90229 2010-08-12  Andreas Schwab  <schwab@redhat.com>
90230
90231         [BZ #11904]
90232         * locale/programs/locale.c (print_assignment): New function.
90233         (show_locale_vars): Use it.
90234
90235 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
90236
90237         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
90238         field.
90239         (struct statfs64): Likewise.
90240         (_STATFS_F_FLAGS): Define.
90241         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
90242         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
90243         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
90244         (ST_VALID): Define locally.
90245         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
90246         __statvfs_getflags, use the provided value.
90247         * sysdeps/unix/sysv/linux/kernel-features.h: Define
90248         __ASSUME_STATFS_F_FLAGS.
90249
90250         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
90251
90252         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
90253         Add sys/fanotify.h.
90254         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
90255         fanotify_mask for GLIBC_2.13.
90256         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
90257         fanotify_init and fanotify_mark.
90258         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90259         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
90260
90261         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
90262         Add prlimit.
90263         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
90264         prlimit64 for GLIBC_2.13.
90265         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
90266         prlimit64.
90267         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
90268         syscall.
90269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
90270         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
90271         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
90272         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
90273         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
90274         add prlimit alias.
90275         * sysdeps/unix/sysv/linux/prlimit.c: New file.
90276
90277         [BZ #11903]
90278         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
90279         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
90280
90281         * nss/Makefile: Add rules to build and run tst-nss-test1.
90282         * shlib-versions: Add entry for libnss_test1.
90283         * nss/nss_test1.c: New file.
90284         * nss/tst-nss-test1.c: New file.
90285
90286         * nss/nsswitch.c (__nss_database_custom): Define new variable.
90287         (__nss_configure_lookup): Set appropriate entry in
90288         __nss_configure_lookup to true.
90289         * nss/nsswitch.h: Define enum with indeces of databases in
90290         databases and __nss_database_custom arrays.  Declare
90291         __nss_database_custom.
90292         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
90293         to avoid using nscd when custom rules are installed.
90294         * nss/getXXbyYY_r.c: Likewise.
90295         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
90296
90297         * nss/nss_files/files-parse.c: Whitespace fixes.
90298
90299 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
90300
90301         [BZ #11883]
90302         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
90303         * posix/fnmatch_loop.c: Likewise.
90304
90305 2010-07-17  Andi Kleen  <ak@linux.intel.com>
90306
90307         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
90308         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
90309         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
90310         * Versions.def [GLIBC_2.13]: Add.
90311
90312 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
90313
90314         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90315         Also fail if tpwd after pwuid call is NULL.
90316
90317 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90318
90319         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
90320         when converting to ms.
90321
90322 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90323
90324         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
90325         EOPNOTSUPP errors with ENOTTY.
90326         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
90327         EOPNOTSUPP errors with ENOTTY.
90328
90329 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
90330
90331         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90332         Add strcasecmp_l-ssse3.
90333         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
90334         strcasecmp.
90335         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
90336         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
90337         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
90338
90339 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
90340
90341         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
90342
90343         * string/Makefile (strop-tests): Add strcasecmp.
90344         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90345         strcasecmp_l-nonascii.
90346         (gen-as-const-headers): Add locale-defines.sym.
90347         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
90348         * sysdeps/x86_64/strcasecmp.S: New file.
90349         * sysdeps/x86_64/strcasecmp_l.S: New file.
90350         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
90351         * sysdeps/x86_64/locale-defines.sym: New file.
90352         * string/test-strcasecmp.c: New file.
90353
90354         * string/test-strcasestr.c: Test both ends of the range of characters.
90355         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
90356
90357 2010-07-29  Roland McGrath  <roland@redhat.com>
90358
90359         [BZ #11856]
90360         * manual/locale.texi (Yes-or-No Questions): Fix example code.
90361
90362 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
90363
90364         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
90365         for ld.so.
90366
90367 2010-07-27  Andreas Schwab  <schwab@redhat.com>
90368
90369         * manual/memory.texi (Malloc Tunable Parameters): Document
90370         M_PERTURB.
90371
90372 2010-07-26  Roland McGrath  <roland@redhat.com>
90373
90374         [BZ #11840]
90375         * configure.in (-fgnu89-inline check): Set and substitute
90376         gnu89_inline, not libc_cv_gnu89_inline.
90377         * configure: Regenerated.
90378         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
90379
90380 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
90381
90382         * string/test-strnlen.c: New file.
90383         * string/Makefile (strop-tests): Add strnlen.
90384         * string/tester.c (test_strnlen): Add a few more test cases.
90385         * string/tst-strlen.c: Better error reporting.
90386
90387         * sysdeps/x86_64/strnlen.S: New file.
90388
90389 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
90390
90391         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
90392         lower-latency instructions.
90393
90394 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
90395
90396         * string/test-strcasestr.c: New file.
90397         * string/test-strstr.c: New file.
90398         * string/Makefile (strop-tests): Add strstr and strcasestr.
90399         * string/str-two-way.h: Don't undefine MAX.
90400         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
90401
90402 2010-07-21  Andreas Schwab  <schwab@redhat.com>
90403
90404         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90405         strcasestr-nonascii.
90406         (CFLAGS-strcasestr-nonascii.c): Define.
90407         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
90408         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
90409         Remove unused attribute.
90410
90411 2010-07-20  Roland McGrath  <roland@redhat.com>
90412
90413         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
90414         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
90415         ld.so.cache was broken.  With it, there is no way to disable dsocaps
90416         like LD_HWCAP_MASK can disable hwcaps.
90417
90418 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90419
90420         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
90421
90422 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
90423
90424         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
90425         call in strcasestr.
90426         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
90427         __strcasestr_sse42_nonascii.
90428         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
90429         strcasestr-nonascii.c.
90430         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
90431
90432 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
90433
90434         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
90435         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
90436         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
90437         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
90438
90439 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
90440
90441         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
90442         fcntl.
90443
90444 2010-07-06  Andreas Schwab  <schwab@redhat.com>
90445
90446         [BZ #11577]
90447         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
90448         dl_signal_cerror.
90449
90450 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
90451
90452         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
90453         _PC_PIPE_BUF using F_GETPIPE_SZ.
90454
90455 2010-07-05  Roland McGrath  <roland@redhat.com>
90456
90457         * manual/arith.texi (Rounding Functions): Fix rint description
90458         implicit in round description.
90459
90460 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
90461
90462         * elf/Makefile: Fix linking for a few tests to make recent linker
90463         happy.
90464
90465 2010-06-30  Andreas Schwab  <schwab@redhat.com>
90466
90467         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
90468         $(common-objpfx)libc_nonshared.a.
90469
90470 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
90471
90472         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
90473         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
90474         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
90475         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
90476         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
90477         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
90478         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90479         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
90480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
90481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
90482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
90483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
90484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
90485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
90486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
90487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
90488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
90489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
90490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
90492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
90493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
90494         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
90495         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
90496         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
90497         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
90498         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
90499         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
90500         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
90501         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
90502         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
90503         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
90504         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
90505         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
90506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
90507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
90508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
90509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
90510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
90511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
90512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
90513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
90514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
90515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
90516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
90517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
90518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
90519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
90520
90521 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
90522
90523         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
90524         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
90525         * string/memmove.c (memmove): Renamed to ...
90526         (MEMMOVE): ...this.  Default to memmove.
90527         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
90528         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
90529         (END_CHK): Define.
90530         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90531         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
90532         mempcpy-ssse3-back memmove-ssse3-back.
90533         * sysdeps/x86_64/multiarch/bcopy.S: New file .
90534         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
90535         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
90536         * sysdeps/x86_64/multiarch/memcpy.S: New file.
90537         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
90538         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
90539         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
90540         * sysdeps/x86_64/multiarch/memmove.c: New file.
90541         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
90542         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
90543         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
90544         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
90545         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
90546         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
90547         Define.
90548         (index_Fast_Copy_Backward): Define.
90549         (HAS_ARCH_FEATURE): Define.
90550         (HAS_FAST_REP_STRING): Define.
90551         (HAS_FAST_COPY_BACKWARD): Define.
90552
90553 2010-06-21  Andreas Schwab  <schwab@redhat.com>
90554
90555         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90556         Restore proper fallback handling.
90557
90558 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
90559
90560         [BZ #11701]
90561         * posix/group_member.c (__group_member): Correct checking loop.
90562
90563         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
90564         OOM in getpwuid_r correctly.  Return error number when the caller
90565         should return, otherwise -1.
90566         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
90567         call returning > 0 value.
90568         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
90569
90570 2010-06-07  Andreas Schwab  <schwab@redhat.com>
90571
90572         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
90573         libc_nonshared.a from targets in modules-names.
90574
90575 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
90576
90577         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
90578         requires it.
90579
90580 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
90581
90582         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
90583         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
90584         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
90585         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
90586
90587 2010-06-02  Andreas Schwab  <schwab@redhat.com>
90588
90589         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
90590
90591 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
90592
90593         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
90594         and F_GETPIPE_SZ.
90595         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
90596         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
90597         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
90598         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
90599         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
90600         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
90601
90602 2010-06-14  Roland McGrath  <roland@redhat.com>
90603
90604         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
90605
90606 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
90607
90608         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
90609         __REDIRECT followed by __THROW.
90610         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
90611         * posix/getopt.h (getopt): Likewise.
90612
90613 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90614
90615         * hurd/lookup-at.c (__file_name_lookup_at): Accept
90616         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
90617         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
90618         in AT_FLAGS.
90619         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
90620         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
90621
90622 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
90623
90624         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
90625
90626 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
90627
90628         [BZ #11640]
90629         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
90630         Properly check family and model.
90631
90632 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
90633
90634         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
90635
90636 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
90637
90638         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
90639
90640 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
90641
90642         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
90643         symbol reference.
90644
90645 2010-05-19  Andreas Schwab  <schwab@redhat.com>
90646
90647         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
90648         symbol reference.
90649
90650 2010-05-21  Andreas Schwab  <schwab@redhat.com>
90651
90652         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
90653         and internal_recvmmsg.
90654         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
90655         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
90656         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
90657         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
90658
90659         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
90660         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
90661         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
90662
90663 2010-05-20  Andreas Schwab  <schwab@redhat.com>
90664
90665         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
90666
90667 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
90668
90669         POWER7 optimizations.
90670         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
90671         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
90672
90673 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
90674
90675         * version.h: Update for 2.13 development version.
90676
90677 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
90678
90679         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
90680         exceptions.  Return 0.
90681
90682 2010-05-07  Roland McGrath  <roland@redhat.com>
90683
90684         * elf/ldconfig.c (main): Add a const.
90685
90686 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
90687
90688         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
90689         (args_options): Add no-idn option.
90690         (ahosts_keys_int): Add idn_flags to ai_flags.
90691         (parse_option): Handle 'i' option to clear idn_flags.
90692
90693         * malloc/malloc.c (_int_free): Possible race in the most recently
90694         added check.  Only act on the data if no current modification
90695         happened.
90696
90697 See ChangeLog.17 for earlier changes.